Version

Search Results

GetLeadingIgnoredContent Method

Returns the list of all leading ignored content before this node. Syntax Remarks If HasLeadingIgnoredContent is False, GetLeadingIgnoredContent will return IgnoredContentList.Empty.

GetText Method (SyntaxNode)

Gets the text of this node and all of its descendants. Syntax Parameters includeLeadingIgnoredContent If true will include the leading ignored content of the first descendant SyntaxNode. Return Value The reconstructed string contains all of the descendant SyntaxNodes concatenated.

GetToken Method

Gets the Token associated with the SyntaxNode if the node represents a token. Syntax Return Value The Token associated with the SyntaxNode. Exceptions Exception Description System.InvalidOperationException Occurs when the node does not represent a token.

HasAnnotations Property

Gets the value indicating whether the node has associated annotations. Syntax

HasLeadingIgnoredContent Property

Gets the value indicating whether this node has ignored content before it. Syntax

Index Property

Returns the zero-based index of this node in its Parents children (read-only). Syntax Property Value -1 for the root node, otherwise the zero-based index of this node in its parents children.

IsIgnoredContent Property

Gets the value indicating whether the node represents structured ignored content. Syntax

IsMissing Property (SyntaxNode)

Gets the value indicating whether the node is a missing from the text and was inserted while parsing. Syntax

IsSkipped Property (SyntaxNode)

Gets the value indicating whether the node was skipped while parsing because it was not expected in its context. Syntax

IsTokenNode Property

Gets the value indicating whether the node represents a Token from the document. Syntax