Class SyntaxNodeCollection
Represents an ordered collection of syntax nodes
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: CilTools.SourceCode.Common
Assembly: CilTools.SourceCode.dll
Syntax
public class SyntaxNodeCollection : SyntaxNode
Properties
Count
Gets the number of nodes in this collection
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
EnumerateChildNodes()
Enumerates child nodes of this node. For the leaf node, returns an empty collection.
Declaration
public override IEnumerable<SyntaxNode> EnumerateChildNodes()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<SyntaxNode> | The collection of child syntax nodes |
Overrides
FromArray(SyntaxNode[])
Creates a new SyntaxNodeCollection
using contents of the specified array
Declaration
public static SyntaxNodeCollection FromArray(SyntaxNode[] nodes)
Parameters
Type | Name | Description |
---|---|---|
SyntaxNode[] | nodes |
Returns
Type | Description |
---|---|
SyntaxNodeCollection |
GetNode(Int32)
Gets the syntax node at the specified index in this collection
Declaration
public SyntaxNode GetNode(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Returns
Type | Description |
---|---|
SyntaxNode |
ToText(TextWriter)
Writes text representation of this node into the specified TextWriter
Declaration
public override void ToText(TextWriter target)
Parameters
Type | Name | Description |
---|---|---|
System.IO.TextWriter | target |