SyntaxList Class

Abstract list of SyntaxNode

public abstract class SyntaxList : SyntaxNode
Inheritance
SyntaxNode SyntaxList

Constructors

NameDescription
SyntaxList()

SyntaxList()

SyntaxList.cs
protected SyntaxList()

No documentation is available.

Properties

NameDescription
ChildrenCountGets the number of children.

ChildrenCount

SyntaxList.cs

Gets the number of children.

public sealed override int ChildrenCount { get; }

Property value

int

Methods

NameDescription
Accept(SyntaxVisitor)Allow to visit this instance with the specified visitor.
GetChildImpl(int)Gets a child at the specified index.

Accept(SyntaxVisitor)

SyntaxList.cs

Allow to visit this instance with the specified visitor.

public override void Accept(SyntaxVisitor visitor)

Parameters

visitor SyntaxVisitor
The visitor

GetChildImpl(int)

SyntaxList.cs

Gets a child at the specified index.

protected override SyntaxNode GetChildImpl(int index)

Parameters

index int
Index of the child

Returns

SyntaxNode A child at the specified index

Remarks

The index is safe to use

Fields

NameDescription
ChildrenGets the backing list of child nodes.

Children

Gets the backing list of child nodes.

protected readonly List<SyntaxNode> Children