SyntaxList<TSyntaxNode> Class

Abstract list of SyntaxNode

public sealed class SyntaxList<TSyntaxNode> : SyntaxList, IEnumerable<TSyntaxNode>, IEnumerable where TSyntaxNode : SyntaxNode

Type parameters

TSyntaxNode
Type of the node
Inheritance
SyntaxList SyntaxList<TSyntaxNode>
Implements

Nested types

NameDescription
SyntaxList<TSyntaxNode>.EnumeratorEnumerator of a SyntaxList<TSyntaxNode>

Constructors

NameDescription
SyntaxList()Creates an instance of SyntaxList<TSyntaxNode>

SyntaxList()

SyntaxList.cs

Creates an instance of SyntaxList<TSyntaxNode>

public SyntaxList()

Methods

NameDescription
Add(TSyntaxNode)Adds the specified node to this list.
GetChild(int)Gets a typed child at the specified index.
GetEnumerator()Gets the default enumerator.
RemoveChild(TSyntaxNode)Removes the specified node instance.
RemoveChildAt(int)Removes a node at the specified index.
System.Collections.Generic.IEnumerable<TSyntaxNode>.GetEnumerator()
System.Collections.IEnumerable.GetEnumerator()

Add(TSyntaxNode)

SyntaxList.cs

Adds the specified node to this list.

public void Add(TSyntaxNode node)

Parameters

node TSyntaxNode
Node to add to this list

GetChild(int)

SyntaxList.cs

Gets a typed child at the specified index.

public new TSyntaxNode? GetChild(int index)

Parameters

index int
Index of the child.

Returns

TSyntaxNode? The child node at the specified index.

GetEnumerator()

SyntaxList.cs

Gets the default enumerator.

public SyntaxList<TSyntaxNode>.Enumerator GetEnumerator()

Returns

SyntaxList<TSyntaxNode>.Enumerator The enumerator of this list

RemoveChild(TSyntaxNode)

SyntaxList.cs

Removes the specified node instance.

public void RemoveChild(TSyntaxNode node)

Parameters

node TSyntaxNode
Node instance to remove

RemoveChildAt(int)

SyntaxList.cs

Removes a node at the specified index.

public void RemoveChildAt(int index)

Parameters

index int
Index of the node to remove

System.Collections.Generic.IEnumerable<TSyntaxNode>.GetEnumerator()

SyntaxList.cs
IEnumerator<TSyntaxNode> IEnumerable<TSyntaxNode>.GetEnumerator()

No documentation is available.

System.Collections.IEnumerable.GetEnumerator()

SyntaxList.cs
IEnumerator IEnumerable.GetEnumerator()

No documentation is available.