The following tables list the members exposed by SyntaxNode.
Name | Description | |
---|---|---|
ChildCount | Returns the count of child nodes (read-only). | |
ContainsDiagnostics | Gets the value indicating whether GetDiagnostics will return any NodeDiagnostic values representing diagnostic information within the sub-tree rooted at the SyntaxNode. | |
FullSnapshotSpan | Gets the Infragistics.Documents.SnapshotSpan occupied by the SyntaxNode. | |
FullSpan | Gets the full TextSpan occupied by the SyntaxNode. | |
HasAnnotations | Gets the value indicating whether the node has associated annotations. | |
HasLeadingIgnoredContent | Gets the value indicating whether this node has ignored content before it. | |
Index | Returns the zero-based index of this node in its Parent's children (read-only). | |
IsIgnoredContent | Gets the value indicating whether the node represents structured ignored content. | |
IsMissing | Gets the value indicating whether the node is a missing from the text and was inserted while parsing. | |
IsSkipped | Gets the value indicating whether the node was skipped while parsing because it was not expected in its context. | |
IsTokenNode | Gets the value indicating whether the node represents a Token from the document. | |
Language | Returns the associated Language (read-only) | |
LeadingIgnoredContentLength | Gets the number of ignored characters before the node. | |
Length | Returns the aggregate string length (read-only) | |
OverallOffset | Returns the overall offset of the node within the entire tree (read-only) | |
Parent | Returns the parent node (read-only) | |
RelativeOffset | Returns the relatve offset of the node within its parent node (read-only) | |
SnapshotSpan | Gets the Infragistics.Documents.SnapshotSpan occupied by the SyntaxNode. | |
Span | Gets the TextSpan occupied by the SyntaxNode. | |
Symbol | Returns the Symbol which produced this token. | |
SyntaxTree | Gets the SyntaxTree in which the SyntaxNode or null if it does not exist in a SyntaxTree. |
Name | Description | |
---|---|---|
Ancestors | Gets the collection of ancestor nodes leading up from the SyntaxNode. | |
AncestorsAndSelf | Gets the collection of the SyntaxNode and its ancestor nodes leading up from the node. | |
Children | Overloaded. Gets the list of direct child nodes of the SyntaxNode. | |
Descendants | Overloaded. Gets the list of descendent nodes of the SyntaxNode. | |
DescendantsAndSelf | Overloaded. Gets the list of the SyntaxNode and its descendent nodes. | |
Equals | Compares the specified object to this object to see if they are equivalent. | |
GetAnnotatedNodes | Overloaded. Returns an enumerator for all nodes within the sub-tree rooted at this node with annotations. | |
GetAnnotations | Overloaded. Returns an enumerator for all annotation values of the node. | |
GetChild | Returns the child node at a specific index. | |
GetDiagnostics | Returns an enumerator for all descendant NodeDiagnostic values of the node. | |
GetFirstTokenNode | Returns the first node in this node's sub-tree which represents a Token. | |
GetHashCode | Returns the hash code of the object. | |
GetLastTokenNode | Returns the last node in this node's sub-tree which represents a Token. | |
GetLeadingIgnoredContent | Returns the list of all leading ignored content before this node. | |
GetText | Gets the text of this node and all of its descendants. | |
GetToken | Gets the Token associated with the SyntaxNode if the node represents a token. | |
ToString | Returns the string representation of this object. |