14 references to ReplaceNodeAsync
Microsoft.CodeAnalysis.CSharp.Features (4)
CodeRefactorings\InlineTemporary\InlineTemporaryCodeRefactoringProvider.cs (3)
144
document = await document.
ReplaceNodeAsync
(declarator, declarator.WithAdditionalAnnotations(DefinitionAnnotation), cancellationToken).ConfigureAwait(false);
174
document = await document.
ReplaceNodeAsync
(scope, newScope, cancellationToken).ConfigureAwait(false);
184
document = await document.
ReplaceNodeAsync
(
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.ExpressionCodeGenerator.cs (1)
209
updatedDocument = await updatedDocument.
ReplaceNodeAsync
(enclosingStatement, newEnclosingStatement, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Features (1)
CodeRefactorings\AddAwait\AbstractAddAwaitCodeRefactoringProvider.cs (1)
114
return document.
ReplaceNodeAsync
(expression, awaitExpression, cancellationToken);
Microsoft.CodeAnalysis.VisualBasic.Features (9)
CodeFixes\GenerateEndConstruct\GenerateEndConstructCodeFixProvider.vb (3)
195
Dim updatedDocument = Await document.
ReplaceNodeAsync
(node, updatedProperty.WithAdditionalAnnotations(Formatter.Annotation), cancellationToken).ConfigureAwait(False)
222
Dim updatedDocument = Await document.
ReplaceNodeAsync
(endStatement.Parent, updatedParent.WithAdditionalAnnotations(Formatter.Annotation), cancellationToken).ConfigureAwait(False)
257
updatedDocument = Await updatedDocument.
ReplaceNodeAsync
(tree, tree.WithAdditionalAnnotations(Formatter.Annotation), cancellationToken).ConfigureAwait(False)
CodeRefactorings\InlineTemporary\VisualBasicInlineTemporaryCodeRefactoringProvider.vb (5)
123
Dim updatedDocument = Await document.
ReplaceNodeAsync
(modifiedIdentifier, modifiedIdentifier.WithAdditionalAnnotations(s_definitionAnnotation), cancellationToken).ConfigureAwait(False)
196
updatedDocument = Await updatedDocument.
ReplaceNodeAsync
(scope, newScope.WithAdditionalAnnotations(Formatter.Annotation), cancellationToken).ConfigureAwait(False)
215
updatedDocument = Await updatedDocument.
ReplaceNodeAsync
(newScope, RemoveDefinition(modifiedIdentifier, newScope), cancellationToken).ConfigureAwait(False)
377
Dim updatedDocument = Await document.
ReplaceNodeAsync
(initializer, newInitializer, cancellationToken).ConfigureAwait(False)
387
updatedDocument = Await updatedDocument.
ReplaceNodeAsync
(initializer, explicitInitializer, cancellationToken).ConfigureAwait(False)
ExtractMethod\VisualBasicMethodExtractor.VisualBasicCodeGenerator.ExpressionCodeGenerator.vb (1)
138
Dim updatedDocument = Await Me.SemanticDocument.Document.
ReplaceNodeAsync
(enclosingStatement, newEnclosingStatement, cancellationToken).ConfigureAwait(False)