Show / Hide Table of Contents

Class SyntaxNodeCollection

Represents an ordered collection of syntax nodes

Inheritance
System.Object
SyntaxNode
SyntaxNodeCollection
Inherited Members
SyntaxNode._lead
SyntaxNode._trail
SyntaxNode._parent
SyntaxNode.EmptyArray
SyntaxNode.ToString()
SyntaxNode.GetChildNodes()
SyntaxNode.GetTypeDefSyntax(Type)
SyntaxNode.GetTypeDefSyntax(Type, Boolean, DisassemblerParams)
SyntaxNode.GetAdditionalInfo(String)
SyntaxNode.SetAdditionalInfo(String, Object)
SyntaxNode.LeadingWhitespace
SyntaxNode.TrailingWhitespace
SyntaxNode.Parent
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
SyntaxNode.EnumerateChildNodes()

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
Overrides
SyntaxNode.ToText(TextWriter)
Back to top CIL Tools (published from sources in GitHub repository).
Generated by DocFX