22 references to TrackNodes
Microsoft.CodeAnalysis.CSharp.Features (1)
CodeRefactorings\UseRecursivePatterns\UseRecursivePatternsCodeRefactoringProvider.cs (1)
598document = document.WithSyntaxRoot(editor.OriginalRoot.TrackNodes(nodes));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (10)
Syntax\TrackNodeTests.cs (10)
25var trackedExpr = expr.TrackNodes(a); 36var trackedExpr = expr.TrackNodes(a); 67var trackedExpr = expr.TrackNodes(originalA); 82var trackedExpr = expr.TrackNodes(originalA); 98var trackedExpr = expr.TrackNodes(originalA); 110var trackedExpr = expr.TrackNodes(originalA); 123var trackedExpr = expr.TrackNodes(originalA); 135var trackedExpr = expr.TrackNodes(originalA); 169var trackedExpr = expr.TrackNodes(); 184Assert.Throws<ArgumentException>(() => expr.TrackNodes(SyntaxFactory.IdentifierName("c")));
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
CodeGeneration\CSharpSyntaxGenerator.cs (3)
2855return this.Isolate(root.TrackNodes(declaration), r => this.InsertNodesBeforeInternal(r, r.GetCurrentNode(declaration)!, newDeclarations)); 2894return this.Isolate(root.TrackNodes(declaration), r => this.InsertNodesAfterInternal(r, r.GetCurrentNode(declaration)!, newDeclarations)); 2965return Isolate(root.TrackNodes(node), r => RemoveNodeInternal(r, r.GetCurrentNode(node)!, options));
Microsoft.CodeAnalysis.Features (1)
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.cs (1)
198document = document.WithSyntaxRoot(editor.OriginalRoot.TrackNodes(ifStatements));
Microsoft.CodeAnalysis.UnitTests (2)
CommonSyntaxTests.cs (2)
212var trackedExpr = expr.TrackNodes(exprB); 233var trackedExpr = expr.TrackNodes(exprB);
Microsoft.CodeAnalysis.VisualBasic.Workspaces (3)
CodeGeneration\VisualBasicSyntaxGenerator.vb (3)
3463Return Isolate(root.TrackNodes(declaration), Function(r) InsertDeclarationsBeforeInternal(r, r.GetCurrentNode(declaration), newDeclarations)) 3489Return Isolate(root.TrackNodes(declaration), Function(r) InsertNodesAfterInternal(r, r.GetCurrentNode(declaration), newDeclarations)) 3603Return Isolate(root.TrackNodes(declaration), Function(r) RemoveNodeInternal(r, r.GetCurrentNode(declaration), options))
Microsoft.CodeAnalysis.Workspaces (1)
Editing\SyntaxGenerator.cs (1)
1531var trackedFirst = first.TrackNodes(first);
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
SyntaxNodeTests.cs (1)
99var trackedRoot = root.TrackNodes(classDecl, methodDecl);