15 references to GetTextAsync
Microsoft.CodeAnalysis (1)
Syntax\SyntaxTree.cs (1)
117/// Implementations that wish to schedule this work differently should override <see cref="GetTextAsync(CancellationToken)"/>.
Microsoft.CodeAnalysis.CodeStyle (1)
AbstractSelectedMembers.cs (1)
46var text = await tree.GetTextAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
FormattingCodeFixHelper.cs (1)
20var text = await syntaxTree.GetTextAsync(cancellationToken).ConfigureAwait(false);
FormattingCodeFixProvider.cs (1)
69return context.Document.WithText(await updatedTree.GetTextAsync(cancellationToken).ConfigureAwait(false));
Microsoft.CodeAnalysis.Features (5)
EditAndContinue\ActiveStatementsMap.cs (1)
170var oldText = await oldTree.GetTextAsync(cancellationToken).ConfigureAwait(false);
FormattingCodeFixHelper.cs (1)
20var text = await syntaxTree.GetTextAsync(cancellationToken).ConfigureAwait(false);
FormattingCodeFixProvider.cs (1)
69return context.Document.WithText(await updatedTree.GetTextAsync(cancellationToken).ConfigureAwait(false));
ValueTracking\SerializableValueTrackedItem.cs (1)
63var sourceText = await syntaxTree.GetTextAsync(cancellationToken).ConfigureAwait(false);
ValueTracking\ValueTrackedItem.cs (1)
55var sourceText = await syntaxTree.GetTextAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Workspaces (3)
AbstractSelectedMembers.cs (1)
46var text = await tree.GetTextAsync(cancellationToken).ConfigureAwait(false);
Classification\Classifier.cs (1)
97var sourceText = await semanticModel.SyntaxTree.GetTextAsync(cancellationToken).ConfigureAwait(false);
Workspace\Solution\DocumentState.cs (1)
549tree.GetTextAsync,
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
SolutionTests\SolutionTests.cs (1)
1159Assert.Equal(expectedAlgorithm, (await tree.GetTextAsync(default)).ChecksumAlgorithm);
Microsoft.VisualStudio.LanguageServices (1)
TableDataSource\Suppression\VisualStudioSuppressionFixService.cs (1)
192var text = await tree.GetTextAsync(cancellationToken).ConfigureAwait(false);
Microsoft.VisualStudio.LanguageServices.CSharp (1)
LanguageService\CSharpHelpContextService.cs (1)
78var text = await syntaxTree.GetTextAsync(cancellationToken).ConfigureAwait(false);