Version

SyntaxNode Class Methods

For a list of all members of this type, see SyntaxNode members.

Public Methods
 NameDescription
Public MethodAncestorsGets the collection of ancestor nodes leading up from the SyntaxNode.  
Public MethodAncestorsAndSelfGets the collection of the SyntaxNode and its ancestor nodes leading up from the node.  
Public MethodChildrenOverloaded. Gets the list of direct child nodes of the SyntaxNode.  
Public MethodDescendantsOverloaded. Gets the list of descendent nodes of the SyntaxNode.  
Public MethodDescendantsAndSelfOverloaded. Gets the list of the SyntaxNode and its descendent nodes.  
Public MethodEqualsCompares the specified object to this object to see if they are equivalent.  
Public MethodGetAnnotatedNodesOverloaded. Returns an enumerator for all nodes within the sub-tree rooted at this node with annotations.  
Public MethodGetAnnotationsOverloaded. Returns an enumerator for all annotation values of the node.  
Public MethodGetChildReturns the child node at a specific index.  
Public MethodGetDiagnosticsReturns an enumerator for all descendant NodeDiagnostic values of the node.  
Public MethodGetFirstTokenNodeReturns the first node in this node's sub-tree which represents a Token.  
Public MethodGetHashCodeReturns the hash code of the object.  
Public MethodGetLastTokenNodeReturns the last node in this node's sub-tree which represents a Token.  
Public MethodGetLeadingIgnoredContentReturns the list of all leading ignored content before this node.  
Public MethodGetTextGets the text of this node and all of its descendants.  
Public MethodGetTokenGets the Token associated with the SyntaxNode if the node represents a token.  
Public MethodToStringReturns the string representation of this object.  
See Also