Share via


SyntaxNodeExtensions.TrackNodes Method

Definition

Overloads

TrackNodes<TRoot>(TRoot, SyntaxNode[])

Creates a new tree of nodes with the specified nodes being tracked.

Use GetCurrentNode on the subtree resulting from this operation, or any transformation of it, to get the current node corresponding to the original tracked node.

TrackNodes<TRoot>(TRoot, IEnumerable<SyntaxNode>)

Creates a new tree of nodes with the specified nodes being tracked.

Use GetCurrentNode on the subtree resulting from this operation, or any transformation of it, to get the current node corresponding to the original tracked node.

TrackNodes<TRoot>(TRoot, SyntaxNode[])

Source:
SyntaxNodeExtensions_Tracking.cs
Source:
SyntaxNodeExtensions_Tracking.cs
Source:
SyntaxNodeExtensions_Tracking.cs
Source:
SyntaxNodeExtensions_Tracking.cs
Source:
SyntaxNodeExtensions_Tracking.cs
Source:
SyntaxNodeExtensions_Tracking.cs
Source:
SyntaxNodeExtensions_Tracking.cs
Source:
SyntaxNodeExtensions_Tracking.cs
Source:
SyntaxNodeExtensions_Tracking.cs
Source:
SyntaxNodeExtensions_Tracking.cs
Source:
SyntaxNodeExtensions_Tracking.cs
Source:
SyntaxNodeExtensions_Tracking.cs
Source:
SyntaxNodeExtensions_Tracking.cs
Source:
SyntaxNodeExtensions_Tracking.cs
Source:
SyntaxNodeExtensions_Tracking.cs
Source:
SyntaxNodeExtensions_Tracking.cs
Source:
SyntaxNodeExtensions_Tracking.cs
Source:
SyntaxNodeExtensions_Tracking.cs
Source:
SyntaxNodeExtensions_Tracking.cs
Source:
SyntaxNodeExtensions_Tracking.cs
Source:
SyntaxNodeExtensions_Tracking.cs
Source:
SyntaxNodeExtensions_Tracking.cs
Source:
SyntaxNodeExtensions_Tracking.cs

Creates a new tree of nodes with the specified nodes being tracked.

Use GetCurrentNode on the subtree resulting from this operation, or any transformation of it, to get the current node corresponding to the original tracked node.

public:
generic <typename TRoot>
 where TRoot : Microsoft::CodeAnalysis::SyntaxNode[System::Runtime::CompilerServices::Extension]
 static TRoot TrackNodes(TRoot root, ... cli::array <Microsoft::CodeAnalysis::SyntaxNode ^> ^ nodes);
public static TRoot TrackNodes<TRoot> (this TRoot root, params Microsoft.CodeAnalysis.SyntaxNode[] nodes) where TRoot : Microsoft.CodeAnalysis.SyntaxNode;
static member TrackNodes : 'Root * Microsoft.CodeAnalysis.SyntaxNode[] -> 'Root (requires 'Root :> Microsoft.CodeAnalysis.SyntaxNode)
<Extension()>
Public Function TrackNodes(Of TRoot As SyntaxNode) (root As TRoot, ParamArray nodes As SyntaxNode()) As TRoot

Type Parameters

TRoot

Parameters

root
TRoot

The root of the subtree containing the nodes to be tracked.

nodes
SyntaxNode[]

One or more nodes that are descendants of the root node.

Returns

TRoot

Applies to

TrackNodes<TRoot>(TRoot, IEnumerable<SyntaxNode>)

Source:
SyntaxNodeExtensions_Tracking.cs
Source:
SyntaxNodeExtensions_Tracking.cs
Source:
SyntaxNodeExtensions_Tracking.cs
Source:
SyntaxNodeExtensions_Tracking.cs
Source:
SyntaxNodeExtensions_Tracking.cs
Source:
SyntaxNodeExtensions_Tracking.cs
Source:
SyntaxNodeExtensions_Tracking.cs
Source:
SyntaxNodeExtensions_Tracking.cs
Source:
SyntaxNodeExtensions_Tracking.cs
Source:
SyntaxNodeExtensions_Tracking.cs
Source:
SyntaxNodeExtensions_Tracking.cs
Source:
SyntaxNodeExtensions_Tracking.cs
Source:
SyntaxNodeExtensions_Tracking.cs
Source:
SyntaxNodeExtensions_Tracking.cs
Source:
SyntaxNodeExtensions_Tracking.cs
Source:
SyntaxNodeExtensions_Tracking.cs
Source:
SyntaxNodeExtensions_Tracking.cs
Source:
SyntaxNodeExtensions_Tracking.cs
Source:
SyntaxNodeExtensions_Tracking.cs
Source:
SyntaxNodeExtensions_Tracking.cs
Source:
SyntaxNodeExtensions_Tracking.cs
Source:
SyntaxNodeExtensions_Tracking.cs
Source:
SyntaxNodeExtensions_Tracking.cs

Creates a new tree of nodes with the specified nodes being tracked.

Use GetCurrentNode on the subtree resulting from this operation, or any transformation of it, to get the current node corresponding to the original tracked node.

public:
generic <typename TRoot>
 where TRoot : Microsoft::CodeAnalysis::SyntaxNode[System::Runtime::CompilerServices::Extension]
 static TRoot TrackNodes(TRoot root, System::Collections::Generic::IEnumerable<Microsoft::CodeAnalysis::SyntaxNode ^> ^ nodes);
public static TRoot TrackNodes<TRoot> (this TRoot root, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxNode> nodes) where TRoot : Microsoft.CodeAnalysis.SyntaxNode;
static member TrackNodes : 'Root * seq<Microsoft.CodeAnalysis.SyntaxNode> -> 'Root (requires 'Root :> Microsoft.CodeAnalysis.SyntaxNode)
<Extension()>
Public Function TrackNodes(Of TRoot As SyntaxNode) (root As TRoot, nodes As IEnumerable(Of SyntaxNode)) As TRoot

Type Parameters

TRoot

Parameters

root
TRoot

The root of the subtree containing the nodes to be tracked.

nodes
IEnumerable<SyntaxNode>

One or more nodes that are descendants of the root node.

Returns

TRoot

Applies to