Version

Search Results

GetAnnotatedNodes(Type,Nullable<TextSpan>) Method

Returns an enumerator for all nodes within the sub-tree rooted at this node with annotations. Syntax Parameters annotationType The type of annotations to find. All returned nodes will have one or more annotation of type or derived from type.span An optional span to restrict the result. The span offset is relative ...

GetAnnotatedNodes Method

Returns an enumerator for all nodes within the sub-tree rooted at this node with annotations. Overload List

GetAnnotations() Method

Returns an enumerator for all annotation values of the node. Syntax Return Value An enumerator for all annotation values of the node.

GetAnnotations(Type) Method

Returns an enumerator for all annotation values of a specific type of the node. Syntax Parameters annotationType The type of annotations to get. All returned instances will be of type or derived from type. Return Value An enumerator for all annotation values of a specific type of the node. Exceptions Exception Des...

GetAnnotations Method

Returns an enumerator for all annotation values of the node. Overload List

GetChild Method

Returns the child node at a specific index. Syntax Parameters childIndex The 0-based index of the child. Return Value The child node. Exceptions Exception Description System.ArgumentOutOfRangeException Occurs when childIndex is less than 0 or greater than or equal to the ChildCount.

GetDiagnostics Method

Returns an enumerator for all descendant NodeDiagnostic values of the node. Syntax Parameters span An optional span to restrict the result. The span offset is relative to the beginning of the document. Return Value An enumerator for all descendant NodeDiagnostic values of the node.

GetFirstTokenNode Method

Returns the first node in this nodes sub-tree which represents a Token. Syntax Return Value The first node in this nodes sub-tree that is a token node. Remarks Note: if this node is a token node then this method will return itself.

GetHashCode Method (SyntaxNode)

Returns the hash code of the object. Syntax Return Value A hash code for this instance

GetLastTokenNode Method

Returns the last node in this nodes sub-tree which represents a Token. Syntax Return Value The last node in this nodes sub-tree that is a token node. Remarks Note: if this node is a token node then this method will return itself.