43 references to GetCurrentNode
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\Analyzers\Core\CodeFixes\RemoveUnusedParametersAndValues\AbstractRemoveUnusedValuesCodeFixProvider.cs (1)
859var declStatement = memberDeclaration.GetCurrentNode(originalDeclStatement);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxEditorExtensions.cs (1)
178var currentNode = currentRoot.GetCurrentNode(node);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (5)
src\Analyzers\CSharp\CodeFixes\InlineDeclaration\CSharpInlineDeclarationCodeFixProvider.cs (2)
102declarator = currentRoot.GetCurrentNode(declarator); 103identifier = currentRoot.GetCurrentNode(identifier);
src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (3)
105var currentLocalDeclaration = currentRoot.GetCurrentNode(localDeclaration); 106var currentAnonymousFunction = currentRoot.GetCurrentNode(anonymousFunction); 117references.Select(node => currentRoot.GetCurrentNode(node)).ToImmutableArray());
Microsoft.CodeAnalysis.CSharp.Features (12)
IntroduceVariable\CSharpIntroduceVariableService_IntroduceLocal.cs (5)
331root = root.ReplaceNode(root.GetCurrentNode(statement), 332Block(root.GetCurrentNode(statement)).WithAdditionalAnnotations(Formatter.Annotation)); 334expression = root.GetCurrentNode(expression); 335allAffectedStatements = allAffectedStatements.Select(root.GetCurrentNode).ToSet(); 337statement = root.GetCurrentNode(statement);
src\Analyzers\CSharp\CodeFixes\InlineDeclaration\CSharpInlineDeclarationCodeFixProvider.cs (2)
102declarator = currentRoot.GetCurrentNode(declarator); 103identifier = currentRoot.GetCurrentNode(identifier);
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForBuilderCodeFixProvider.cs (2)
98root.GetCurrentNode(analysisResult.LocalDeclarationStatement)!, 99root.GetCurrentNode(analysisResult.CreationExpression)!,
src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (3)
105var currentLocalDeclaration = currentRoot.GetCurrentNode(localDeclaration); 106var currentAnonymousFunction = currentRoot.GetCurrentNode(anonymousFunction); 117references.Select(node => currentRoot.GetCurrentNode(node)).ToImmutableArray());
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (13)
Syntax\TrackNodeTests.cs (13)
26var currentA = trackedExpr.GetCurrentNode(a); 48var currentA = expr.GetCurrentNode(a); 68var currentA = trackedExpr.GetCurrentNode(originalA); 71var latestA = replacedExpr.GetCurrentNode(originalA); 83var currentA = trackedExpr.GetCurrentNode(originalA); 99var currentA = trackedExpr.GetCurrentNode(originalA); 101var latestA = replacedExpr.GetCurrentNode(originalA); 111var currentA = trackedExpr.GetCurrentNode(originalA); 124var currentA = trackedExpr.GetCurrentNode(originalA); 127Assert.Throws<InvalidOperationException>(() => replacedExpr.GetCurrentNode(originalA)); 136var currentA = trackedExpr.GetCurrentNode(originalA); 156var currentId = trackedExpr.GetCurrentNode(id); 175var currentId = trackedExpr.GetCurrentNode(id);
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
CodeGeneration\CSharpSyntaxGenerator.cs (3)
2889return this.Isolate(root.TrackNodes(declaration), r => this.InsertNodesBeforeInternal(r, r.GetCurrentNode(declaration)!, newDeclarations)); 2928return this.Isolate(root.TrackNodes(declaration), r => this.InsertNodesAfterInternal(r, r.GetCurrentNode(declaration)!, newDeclarations)); 2999return Isolate(root.TrackNodes(node), r => RemoveNodeInternal(r, r.GetCurrentNode(node)!, options));
Microsoft.CodeAnalysis.Features (1)
src\Analyzers\Core\CodeFixes\RemoveUnusedParametersAndValues\AbstractRemoveUnusedValuesCodeFixProvider.cs (1)
859var declStatement = memberDeclaration.GetCurrentNode(originalDeclStatement);
Microsoft.CodeAnalysis.Workspaces (6)
Editing\SymbolEditor.cs (2)
298var newDeclaration = model.SyntaxTree.GetRoot(cancellationToken).GetCurrentNode(declaration); 489var newDeclaration = model.SyntaxTree.GetRoot(cancellationToken).GetCurrentNode(decl);
Editing\SyntaxEditor.cs (1)
252var currentNode = root.GetCurrentNode(OriginalNode);
Editing\SyntaxGenerator.cs (2)
1421var newDeclaration = newRoot.GetCurrentNode(declaration); 1534var currentFirst = newRoot.GetCurrentNode(first);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxEditorExtensions.cs (1)
178var currentNode = currentRoot.GetCurrentNode(node);
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
Editing\SyntaxEditorTests.cs (1)
160var currentFieldX = newRoot.GetCurrentNode(fieldX);