SyntaxNode SyntaxNode SyntaxNode SyntaxNode Class

Definition

Represents a non-terminal node in the syntax tree. This is the language agnostic equivalent of Microsoft.CodeAnalysis.CSharp.SyntaxNode and Microsoft.CodeAnalysis.VisualBasic.SyntaxNode.

public ref class SyntaxNode abstract
[System.Diagnostics.DebuggerDisplay("{GetDebuggerDisplay(), nq}")]
public abstract class SyntaxNode
type SyntaxNode = class
Public MustInherit Class SyntaxNode
Inheritance
SyntaxNodeSyntaxNodeSyntaxNodeSyntaxNode
Derived
Attributes

Properties

ContainsAnnotations ContainsAnnotations ContainsAnnotations ContainsAnnotations

Determines whether this node or any sub node, token or trivia has annotations.

ContainsDiagnostics ContainsDiagnostics ContainsDiagnostics ContainsDiagnostics

Determines whether this node or any of its descendant nodes, tokens or trivia have any diagnostics on them.

ContainsDirectives ContainsDirectives ContainsDirectives ContainsDirectives

Determines whether this node has any descendant preprocessor directives.

ContainsSkippedText ContainsSkippedText ContainsSkippedText ContainsSkippedText

Determines whether this node has any descendant skipped text.

FullSpan FullSpan FullSpan FullSpan

The absolute span of this node in characters, including its leading and trailing trivia.

HasLeadingTrivia HasLeadingTrivia HasLeadingTrivia HasLeadingTrivia

Determines whether this node has any leading trivia.

HasStructuredTrivia HasStructuredTrivia HasStructuredTrivia HasStructuredTrivia

Determines whether a descendant trivia of this node is structured.

HasTrailingTrivia HasTrailingTrivia HasTrailingTrivia HasTrailingTrivia

Determines whether this node has any trailing trivia.

IsMissing IsMissing IsMissing IsMissing

Determines whether the node represents a language construct that was actually parsed from the source code. Missing nodes are generated by the parser in error scenarios to represent constructs that should have been present in the source code in order to compile successfully but were actually missing.

IsStructuredTrivia IsStructuredTrivia IsStructuredTrivia IsStructuredTrivia

Determines whether this node represents a structured trivia.

KindText KindText KindText KindText
Language Language Language Language

The language name that this node is syntax of.

Parent Parent Parent Parent

The node that contains this node in its ChildNodes() collection.

ParentTrivia ParentTrivia ParentTrivia ParentTrivia
RawKind RawKind RawKind RawKind

An integer representing the language specific kind of this node.

Span Span Span Span

The absolute span of this node in characters, not including its leading and trailing trivia.

SpanStart SpanStart SpanStart SpanStart

Same as accessing Start on Span.

SyntaxTree SyntaxTree SyntaxTree SyntaxTree

Returns SyntaxTree that owns the node or null if node does not belong to a SyntaxTree

SyntaxTreeCore SyntaxTreeCore SyntaxTreeCore SyntaxTreeCore

Returns SyntaxTree that owns the node or null if node does not belong to a SyntaxTree

Methods

Ancestors(Boolean) Ancestors(Boolean) Ancestors(Boolean) Ancestors(Boolean)

Gets a list of ancestor nodes

AncestorsAndSelf(Boolean) AncestorsAndSelf(Boolean) AncestorsAndSelf(Boolean) AncestorsAndSelf(Boolean)

Gets a list of ancestor nodes (including this node)

ChildNodes() ChildNodes() ChildNodes() ChildNodes()

Gets a list of the child nodes in prefix document order.

ChildNodesAndTokens() ChildNodesAndTokens() ChildNodesAndTokens() ChildNodesAndTokens()

The list of child nodes and tokens of this node, where each element is a SyntaxNodeOrToken instance.

ChildThatContainsPosition(Int32) ChildThatContainsPosition(Int32) ChildThatContainsPosition(Int32) ChildThatContainsPosition(Int32)
ChildTokens() ChildTokens() ChildTokens() ChildTokens()

Gets a list of the direct child tokens of this node.

Contains(SyntaxNode) Contains(SyntaxNode) Contains(SyntaxNode) Contains(SyntaxNode)

Determines if the specified node is a descendant of this node. Returns true for current node.

CopyAnnotationsTo<T>(T) CopyAnnotationsTo<T>(T) CopyAnnotationsTo<T>(T) CopyAnnotationsTo<T>(T)

Copies all SyntaxAnnotations, if any, from this SyntaxNode instance and attaches them to a new instance based on node.

DescendantNodes(Func<SyntaxNode,Boolean>, Boolean) DescendantNodes(Func<SyntaxNode,Boolean>, Boolean) DescendantNodes(Func<SyntaxNode,Boolean>, Boolean) DescendantNodes(Func<SyntaxNode,Boolean>, Boolean)

Gets a list of descendant nodes in prefix document order.

DescendantNodes(TextSpan, Func<SyntaxNode,Boolean>, Boolean) DescendantNodes(TextSpan, Func<SyntaxNode,Boolean>, Boolean) DescendantNodes(TextSpan, Func<SyntaxNode,Boolean>, Boolean) DescendantNodes(TextSpan, Func<SyntaxNode,Boolean>, Boolean)

Gets a list of descendant nodes in prefix document order.

DescendantNodesAndSelf(Func<SyntaxNode,Boolean>, Boolean) DescendantNodesAndSelf(Func<SyntaxNode,Boolean>, Boolean) DescendantNodesAndSelf(Func<SyntaxNode,Boolean>, Boolean) DescendantNodesAndSelf(Func<SyntaxNode,Boolean>, Boolean)

Gets a list of descendant nodes (including this node) in prefix document order.

DescendantNodesAndSelf(TextSpan, Func<SyntaxNode,Boolean>, Boolean) DescendantNodesAndSelf(TextSpan, Func<SyntaxNode,Boolean>, Boolean) DescendantNodesAndSelf(TextSpan, Func<SyntaxNode,Boolean>, Boolean) DescendantNodesAndSelf(TextSpan, Func<SyntaxNode,Boolean>, Boolean)

Gets a list of descendant nodes (including this node) in prefix document order.

DescendantNodesAndTokens(Func<SyntaxNode,Boolean>, Boolean) DescendantNodesAndTokens(Func<SyntaxNode,Boolean>, Boolean) DescendantNodesAndTokens(Func<SyntaxNode,Boolean>, Boolean) DescendantNodesAndTokens(Func<SyntaxNode,Boolean>, Boolean)

Gets a list of descendant nodes and tokens in prefix document order.

DescendantNodesAndTokens(TextSpan, Func<SyntaxNode,Boolean>, Boolean) DescendantNodesAndTokens(TextSpan, Func<SyntaxNode,Boolean>, Boolean) DescendantNodesAndTokens(TextSpan, Func<SyntaxNode,Boolean>, Boolean) DescendantNodesAndTokens(TextSpan, Func<SyntaxNode,Boolean>, Boolean)

Gets a list of the descendant nodes and tokens in prefix document order.

DescendantNodesAndTokensAndSelf(Func<SyntaxNode,Boolean>, Boolean) DescendantNodesAndTokensAndSelf(Func<SyntaxNode,Boolean>, Boolean) DescendantNodesAndTokensAndSelf(Func<SyntaxNode,Boolean>, Boolean) DescendantNodesAndTokensAndSelf(Func<SyntaxNode,Boolean>, Boolean)

Gets a list of descendant nodes and tokens (including this node) in prefix document order.

DescendantNodesAndTokensAndSelf(TextSpan, Func<SyntaxNode,Boolean>, Boolean) DescendantNodesAndTokensAndSelf(TextSpan, Func<SyntaxNode,Boolean>, Boolean) DescendantNodesAndTokensAndSelf(TextSpan, Func<SyntaxNode,Boolean>, Boolean) DescendantNodesAndTokensAndSelf(TextSpan, Func<SyntaxNode,Boolean>, Boolean)

Gets a list of the descendant nodes and tokens (including this node) in prefix document order.

DescendantTokens(Func<SyntaxNode,Boolean>, Boolean) DescendantTokens(Func<SyntaxNode,Boolean>, Boolean) DescendantTokens(Func<SyntaxNode,Boolean>, Boolean) DescendantTokens(Func<SyntaxNode,Boolean>, Boolean)

Gets a list of all the tokens in the span of this node.

DescendantTokens(TextSpan, Func<SyntaxNode,Boolean>, Boolean) DescendantTokens(TextSpan, Func<SyntaxNode,Boolean>, Boolean) DescendantTokens(TextSpan, Func<SyntaxNode,Boolean>, Boolean) DescendantTokens(TextSpan, Func<SyntaxNode,Boolean>, Boolean)

Gets a list of all the tokens in the full span of this node.

DescendantTrivia(TextSpan, Func<SyntaxNode,Boolean>, Boolean) DescendantTrivia(TextSpan, Func<SyntaxNode,Boolean>, Boolean) DescendantTrivia(TextSpan, Func<SyntaxNode,Boolean>, Boolean) DescendantTrivia(TextSpan, Func<SyntaxNode,Boolean>, Boolean)

Get a list of all the trivia associated with the descendant nodes and tokens.

DescendantTrivia(Func<SyntaxNode,Boolean>, Boolean) DescendantTrivia(Func<SyntaxNode,Boolean>, Boolean) DescendantTrivia(Func<SyntaxNode,Boolean>, Boolean) DescendantTrivia(Func<SyntaxNode,Boolean>, Boolean)

Get a list of all the trivia associated with the descendant nodes and tokens.

EquivalentToCore(SyntaxNode) EquivalentToCore(SyntaxNode) EquivalentToCore(SyntaxNode) EquivalentToCore(SyntaxNode)

Determine if this node is structurally equivalent to another.

FindNode(TextSpan, Boolean, Boolean) FindNode(TextSpan, Boolean, Boolean) FindNode(TextSpan, Boolean, Boolean) FindNode(TextSpan, Boolean, Boolean)

Finds the node with the smallest FullSpan that contains span. getInnermostNodeForTie is used to determine the behavior in case of a tie (i.e. a node having the same span as its parent). If getInnermostNodeForTie is true, then it returns lowest descending node encompassing the given span. Otherwise, it returns the outermost node encompassing the given span.

FindToken(Int32, Boolean) FindToken(Int32, Boolean) FindToken(Int32, Boolean) FindToken(Int32, Boolean)

Finds a descendant token of this node whose span includes the supplied position.

FindTokenCore(Int32, Boolean) FindTokenCore(Int32, Boolean) FindTokenCore(Int32, Boolean) FindTokenCore(Int32, Boolean)

Finds a descendant token of this node whose span includes the supplied position.

FindTokenCore(Int32, Func<SyntaxTrivia,Boolean>) FindTokenCore(Int32, Func<SyntaxTrivia,Boolean>) FindTokenCore(Int32, Func<SyntaxTrivia,Boolean>) FindTokenCore(Int32, Func<SyntaxTrivia,Boolean>)

Finds a descendant token of this node whose span includes the supplied position.

FindTrivia(Int32, Boolean) FindTrivia(Int32, Boolean) FindTrivia(Int32, Boolean) FindTrivia(Int32, Boolean)

Finds a descendant trivia of this node whose span includes the supplied position.

FindTrivia(Int32, Func<SyntaxTrivia,Boolean>) FindTrivia(Int32, Func<SyntaxTrivia,Boolean>) FindTrivia(Int32, Func<SyntaxTrivia,Boolean>) FindTrivia(Int32, Func<SyntaxTrivia,Boolean>)

Finds a descendant trivia of this node at the specified position, where the position is within the span of the node.

FindTriviaCore(Int32, Boolean) FindTriviaCore(Int32, Boolean) FindTriviaCore(Int32, Boolean) FindTriviaCore(Int32, Boolean)

Finds a descendant trivia of this node whose span includes the supplied position.

FirstAncestorOrSelf<TNode>(Func<TNode,Boolean>, Boolean) FirstAncestorOrSelf<TNode>(Func<TNode,Boolean>, Boolean) FirstAncestorOrSelf<TNode>(Func<TNode,Boolean>, Boolean) FirstAncestorOrSelf<TNode>(Func<TNode,Boolean>, Boolean)

Gets the first node of type TNode that matches the predicate.

GetAnnotatedNodes(String) GetAnnotatedNodes(String) GetAnnotatedNodes(String) GetAnnotatedNodes(String)

Gets all nodes with the specified annotation kind.

GetAnnotatedNodes(SyntaxAnnotation) GetAnnotatedNodes(SyntaxAnnotation) GetAnnotatedNodes(SyntaxAnnotation) GetAnnotatedNodes(SyntaxAnnotation)

Gets all nodes with the specified annotation.

GetAnnotatedNodesAndTokens(SyntaxAnnotation) GetAnnotatedNodesAndTokens(SyntaxAnnotation) GetAnnotatedNodesAndTokens(SyntaxAnnotation) GetAnnotatedNodesAndTokens(SyntaxAnnotation)

Gets all nodes and tokens with the specified annotation.

GetAnnotatedNodesAndTokens(String) GetAnnotatedNodesAndTokens(String) GetAnnotatedNodesAndTokens(String) GetAnnotatedNodesAndTokens(String)

Gets all nodes and tokens with an annotation of the specified annotation kind.

GetAnnotatedNodesAndTokens(String[]) GetAnnotatedNodesAndTokens(String[]) GetAnnotatedNodesAndTokens(String[]) GetAnnotatedNodesAndTokens(String[])

Gets all nodes and tokens with an annotation of the specified annotation kinds.

GetAnnotatedTokens(SyntaxAnnotation) GetAnnotatedTokens(SyntaxAnnotation) GetAnnotatedTokens(SyntaxAnnotation) GetAnnotatedTokens(SyntaxAnnotation)

Gets all tokens with the specified annotation.

GetAnnotatedTokens(String) GetAnnotatedTokens(String) GetAnnotatedTokens(String) GetAnnotatedTokens(String)

Gets all tokens with the specified annotation kind.

GetAnnotatedTrivia(SyntaxAnnotation) GetAnnotatedTrivia(SyntaxAnnotation) GetAnnotatedTrivia(SyntaxAnnotation) GetAnnotatedTrivia(SyntaxAnnotation)

Gets all trivia with the specified annotation.

GetAnnotatedTrivia(String) GetAnnotatedTrivia(String) GetAnnotatedTrivia(String) GetAnnotatedTrivia(String)

Gets all trivia with an annotation of the specified annotation kind.

GetAnnotatedTrivia(String[]) GetAnnotatedTrivia(String[]) GetAnnotatedTrivia(String[]) GetAnnotatedTrivia(String[])

Gets all trivia with an annotation of the specified annotation kinds.

GetAnnotations(String) GetAnnotations(String) GetAnnotations(String) GetAnnotations(String)

Gets all the annotations with the specified annotation kind.

GetAnnotations(IEnumerable<String>) GetAnnotations(IEnumerable<String>) GetAnnotations(IEnumerable<String>) GetAnnotations(IEnumerable<String>)

Gets all the annotations with the specified annotation kinds.

GetDiagnostics() GetDiagnostics() GetDiagnostics() GetDiagnostics()

Gets a list of all the diagnostics in the sub tree that has this node as its root. This method does not filter diagnostics based on #pragmas and compiler options like nowarn, warnaserror etc.

GetFirstToken(Boolean, Boolean, Boolean, Boolean) GetFirstToken(Boolean, Boolean, Boolean, Boolean) GetFirstToken(Boolean, Boolean, Boolean, Boolean) GetFirstToken(Boolean, Boolean, Boolean, Boolean)

Gets the first token of the tree rooted by this node. Skips zero-width tokens.

GetLastToken(Boolean, Boolean, Boolean, Boolean) GetLastToken(Boolean, Boolean, Boolean, Boolean) GetLastToken(Boolean, Boolean, Boolean, Boolean) GetLastToken(Boolean, Boolean, Boolean, Boolean)

Gets the last token of the tree rooted by this node. Skips zero-width tokens.

GetLeadingTrivia() GetLeadingTrivia() GetLeadingTrivia() GetLeadingTrivia()

The list of trivia that appears before this node in the source code and are attached to a token that is a descendant of this node.

GetLocation() GetLocation() GetLocation() GetLocation()
GetRed<T>(T, Int32) GetRed<T>(T, Int32) GetRed<T>(T, Int32) GetRed<T>(T, Int32)
GetRedAtZero<T>(T) GetRedAtZero<T>(T) GetRedAtZero<T>(T) GetRedAtZero<T>(T)
GetReference() GetReference() GetReference() GetReference()

Gets a SyntaxReference for this syntax node. CommonSyntaxReferences can be used to regain access to a syntax node without keeping the entire tree and source text in memory.

GetText(Encoding, SourceHashAlgorithm) GetText(Encoding, SourceHashAlgorithm) GetText(Encoding, SourceHashAlgorithm) GetText(Encoding, SourceHashAlgorithm)

Gets the full text of this node as an new SourceText instance.

GetTrailingTrivia() GetTrailingTrivia() GetTrailingTrivia() GetTrailingTrivia()

The list of trivia that appears after this node in the source code and are attached to a token that is a descendant of this node.

HasAnnotation(SyntaxAnnotation) HasAnnotation(SyntaxAnnotation) HasAnnotation(SyntaxAnnotation) HasAnnotation(SyntaxAnnotation)

Determines whether this node has the specific annotation.

HasAnnotations(IEnumerable<String>) HasAnnotations(IEnumerable<String>) HasAnnotations(IEnumerable<String>) HasAnnotations(IEnumerable<String>)

Determines whether this node has any annotations with any of the specific annotation kinds.

HasAnnotations(String) HasAnnotations(String) HasAnnotations(String) HasAnnotations(String)

Determines whether this node has any annotations with the specific annotation kind.

InsertNodesInListCore(SyntaxNode, IEnumerable<SyntaxNode>, Boolean) InsertNodesInListCore(SyntaxNode, IEnumerable<SyntaxNode>, Boolean) InsertNodesInListCore(SyntaxNode, IEnumerable<SyntaxNode>, Boolean) InsertNodesInListCore(SyntaxNode, IEnumerable<SyntaxNode>, Boolean)
InsertTokensInListCore(SyntaxToken, IEnumerable<SyntaxToken>, Boolean) InsertTokensInListCore(SyntaxToken, IEnumerable<SyntaxToken>, Boolean) InsertTokensInListCore(SyntaxToken, IEnumerable<SyntaxToken>, Boolean) InsertTokensInListCore(SyntaxToken, IEnumerable<SyntaxToken>, Boolean)
InsertTriviaInListCore(SyntaxTrivia, IEnumerable<SyntaxTrivia>, Boolean) InsertTriviaInListCore(SyntaxTrivia, IEnumerable<SyntaxTrivia>, Boolean) InsertTriviaInListCore(SyntaxTrivia, IEnumerable<SyntaxTrivia>, Boolean) InsertTriviaInListCore(SyntaxTrivia, IEnumerable<SyntaxTrivia>, Boolean)
IsEquivalentTo(SyntaxNode) IsEquivalentTo(SyntaxNode) IsEquivalentTo(SyntaxNode) IsEquivalentTo(SyntaxNode)

Determine whether this node is structurally equivalent to another.

IsEquivalentTo(SyntaxNode, Boolean) IsEquivalentTo(SyntaxNode, Boolean) IsEquivalentTo(SyntaxNode, Boolean) IsEquivalentTo(SyntaxNode, Boolean)

Determines if two nodes are the same, disregarding trivia differences.

IsEquivalentToCore(SyntaxNode, Boolean) IsEquivalentToCore(SyntaxNode, Boolean) IsEquivalentToCore(SyntaxNode, Boolean) IsEquivalentToCore(SyntaxNode, Boolean)

Determines if two nodes are the same, disregarding trivia differences.

IsPartOfStructuredTrivia() IsPartOfStructuredTrivia() IsPartOfStructuredTrivia() IsPartOfStructuredTrivia()

Determines whether this node is a descendant of a structured trivia.

NormalizeWhitespaceCore(String, String, Boolean) NormalizeWhitespaceCore(String, String, Boolean) NormalizeWhitespaceCore(String, String, Boolean) NormalizeWhitespaceCore(String, String, Boolean)
RemoveNodesCore(IEnumerable<SyntaxNode>, SyntaxRemoveOptions) RemoveNodesCore(IEnumerable<SyntaxNode>, SyntaxRemoveOptions) RemoveNodesCore(IEnumerable<SyntaxNode>, SyntaxRemoveOptions) RemoveNodesCore(IEnumerable<SyntaxNode>, SyntaxRemoveOptions)

Creates a new tree of nodes with the specified node removed.

ReplaceCore<TNode>(IEnumerable<TNode>, Func<TNode,TNode,SyntaxNode>, IEnumerable<SyntaxToken>, Func<SyntaxToken,SyntaxToken,SyntaxToken>, IEnumerable<SyntaxTrivia>, Func<SyntaxTrivia,SyntaxTrivia,SyntaxTrivia>) ReplaceCore<TNode>(IEnumerable<TNode>, Func<TNode,TNode,SyntaxNode>, IEnumerable<SyntaxToken>, Func<SyntaxToken,SyntaxToken,SyntaxToken>, IEnumerable<SyntaxTrivia>, Func<SyntaxTrivia,SyntaxTrivia,SyntaxTrivia>) ReplaceCore<TNode>(IEnumerable<TNode>, Func<TNode,TNode,SyntaxNode>, IEnumerable<SyntaxToken>, Func<SyntaxToken,SyntaxToken,SyntaxToken>, IEnumerable<SyntaxTrivia>, Func<SyntaxTrivia,SyntaxTrivia,SyntaxTrivia>) ReplaceCore<TNode>(IEnumerable<TNode>, Func<TNode,TNode,SyntaxNode>, IEnumerable<SyntaxToken>, Func<SyntaxToken,SyntaxToken,SyntaxToken>, IEnumerable<SyntaxTrivia>, Func<SyntaxTrivia,SyntaxTrivia,SyntaxTrivia>)

Creates a new tree of nodes with the specified nodes, tokens or trivia replaced.

ReplaceNodeInListCore(SyntaxNode, IEnumerable<SyntaxNode>) ReplaceNodeInListCore(SyntaxNode, IEnumerable<SyntaxNode>) ReplaceNodeInListCore(SyntaxNode, IEnumerable<SyntaxNode>) ReplaceNodeInListCore(SyntaxNode, IEnumerable<SyntaxNode>)
ReplaceTokenInListCore(SyntaxToken, IEnumerable<SyntaxToken>) ReplaceTokenInListCore(SyntaxToken, IEnumerable<SyntaxToken>) ReplaceTokenInListCore(SyntaxToken, IEnumerable<SyntaxToken>) ReplaceTokenInListCore(SyntaxToken, IEnumerable<SyntaxToken>)
ReplaceTriviaInListCore(SyntaxTrivia, IEnumerable<SyntaxTrivia>) ReplaceTriviaInListCore(SyntaxTrivia, IEnumerable<SyntaxTrivia>) ReplaceTriviaInListCore(SyntaxTrivia, IEnumerable<SyntaxTrivia>) ReplaceTriviaInListCore(SyntaxTrivia, IEnumerable<SyntaxTrivia>)
SerializeTo(Stream, CancellationToken) SerializeTo(Stream, CancellationToken) SerializeTo(Stream, CancellationToken) SerializeTo(Stream, CancellationToken)
ToFullString() ToFullString() ToFullString() ToFullString()

Returns full string representation of this node including its leading and trailing trivia.

ToString() ToString() ToString() ToString()

Returns the string representation of this node, not including its leading and trailing trivia.

WriteTo(TextWriter) WriteTo(TextWriter) WriteTo(TextWriter) WriteTo(TextWriter)

Writes the full text of this node to the specified TextWriter.

Extension Methods

GetFirstDirective(SyntaxNode, Func<DirectiveTriviaSyntax,Boolean>) GetFirstDirective(SyntaxNode, Func<DirectiveTriviaSyntax,Boolean>) GetFirstDirective(SyntaxNode, Func<DirectiveTriviaSyntax,Boolean>) GetFirstDirective(SyntaxNode, Func<DirectiveTriviaSyntax,Boolean>)

Gets the first directive of the tree rooted by this node.

GetLastDirective(SyntaxNode, Func<DirectiveTriviaSyntax,Boolean>) GetLastDirective(SyntaxNode, Func<DirectiveTriviaSyntax,Boolean>) GetLastDirective(SyntaxNode, Func<DirectiveTriviaSyntax,Boolean>) GetLastDirective(SyntaxNode, Func<DirectiveTriviaSyntax,Boolean>)

Gets the last directive of the tree rooted by this node.

Kind(SyntaxNode) Kind(SyntaxNode) Kind(SyntaxNode) Kind(SyntaxNode)
TryGetInferredMemberName(SyntaxNode) TryGetInferredMemberName(SyntaxNode) TryGetInferredMemberName(SyntaxNode) TryGetInferredMemberName(SyntaxNode)

Given an initializer expression infer the name of anonymous property or tuple element. Returns null if unsuccessful

IsKind(SyntaxNode, SyntaxKind) IsKind(SyntaxNode, SyntaxKind) IsKind(SyntaxNode, SyntaxKind) IsKind(SyntaxNode, SyntaxKind)
GetCurrentNode<TNode>(SyntaxNode, TNode) GetCurrentNode<TNode>(SyntaxNode, TNode) GetCurrentNode<TNode>(SyntaxNode, TNode) GetCurrentNode<TNode>(SyntaxNode, TNode)

Gets the node within the subtree corresponding to the original tracked node. Use TrackNodes to start tracking nodes.

GetCurrentNodes<TNode>(SyntaxNode, TNode) GetCurrentNodes<TNode>(SyntaxNode, TNode) GetCurrentNodes<TNode>(SyntaxNode, TNode) GetCurrentNodes<TNode>(SyntaxNode, TNode)

Gets the nodes within the subtree corresponding to the original tracked node. Use TrackNodes to start tracking nodes.

GetCurrentNodes<TNode>(SyntaxNode, IEnumerable<TNode>) GetCurrentNodes<TNode>(SyntaxNode, IEnumerable<TNode>) GetCurrentNodes<TNode>(SyntaxNode, IEnumerable<TNode>) GetCurrentNodes<TNode>(SyntaxNode, IEnumerable<TNode>)

Gets the nodes within the subtree corresponding to the original tracked nodes. Use TrackNodes to start tracking nodes.

Applies to