47 references to GetSyntaxTreeAsync
dotnet-format (2)
CodeFormatter.cs (1)
223var syntaxTree = await document.GetSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
Formatters\DocumentFormatter.cs (1)
81var syntaxTree = await document.GetSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
GenerateDocumentationAndConfigFiles (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (1)
62syntaxTree = await document.GetSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\GeneratedCodeRecognition\AbstractGeneratedCodeRecognitionService.cs (1)
26var syntaxTree = await document.GetSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Analyzers (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (1)
62syntaxTree = await document.GetSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\GeneratedCodeRecognition\AbstractGeneratedCodeRecognitionService.cs (1)
26var syntaxTree = await document.GetSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (1)
62syntaxTree = await document.GetSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\GeneratedCodeRecognition\AbstractGeneratedCodeRecognitionService.cs (1)
26var syntaxTree = await document.GetSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.Features (6)
CodeRefactorings\NodeSelectionHelpers.cs (1)
54var tree = await document.GetSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
Debugging\CSharpBreakpointResolutionService.cs (1)
35var tree = await document.GetSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
Debugging\CSharpProximityExpressionsService.cs (1)
94var tree = await document.GetSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
Debugging\LocationInfoGetter.cs (1)
24var tree = await document.GetSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeRefactoringProvider.cs (1)
29var syntaxTree = (await document.GetSyntaxTreeAsync(cancellationToken).ConfigureAwait(false))!;
MetadataAsSource\CSharpMetadataAsSourceService.cs (1)
103var tree = await document.GetSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Features (8)
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.AbstractGlobalSuppressMessageCodeAction.cs (1)
86var t = await document.GetSyntaxTreeAsync(c).ConfigureAwait(false);
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.PragmaBatchFixHelpers.cs (1)
69var currentTree = await currentDocument.GetSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
CodeRefactorings\ExtractMethod\AbstractExtractMethodCodeRefactoringProvider.cs (1)
97var syntaxTree = await document.GetSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
Completion\Providers\AbstractInternalsVisibleToCompletionProvider.cs (1)
60var syntaxTree = await context.Document.GetSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
Diagnostics\Service\DiagnosticAnalyzerService_ComputeDiagnosticAnalysisResults.cs (1)
132? await document.GetSyntaxTreeAsync(cancellationToken).ConfigureAwait(false)
Diagnostics\Service\DocumentAnalysisExecutor.cs (1)
92: await document.GetSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
GenerateOverrides\GenerateOverridesWithDialogCodeAction.cs (1)
60var syntaxTree = await _document.GetSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
Structure\BlockStructureServiceWithProviders.cs (1)
51var syntaxTree = await document.GetSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.VisualBasic.Features (11)
ChangeSignature\VisualBasicChangeSignatureService.vb (1)
100Dim tree = Await document.GetSyntaxTreeAsync(cancellationToken).ConfigureAwait(False)
CodeRefactorings\NodeSelectionHelpers.vb (1)
44Dim tree = Await document.GetSyntaxTreeAsync(cancellationToken).ConfigureAwait(False)
Completion\CompletionProviders\CrefCompletionProvider.vb (2)
62Dim tree = Await document.GetSyntaxTreeAsync(cancellationToken).ConfigureAwait(False) 101Dim tree = Await document.GetSyntaxTreeAsync(cancellationToken).ConfigureAwait(False)
Completion\CompletionProviders\NamedParameterCompletionProvider.vb (1)
50Dim syntaxTree = Await document.GetSyntaxTreeAsync(cancellationToken).ConfigureAwait(False)
Completion\CompletionProviders\XmlDocCommentCompletionProvider.vb (1)
71Dim tree = Await document.GetSyntaxTreeAsync(cancellationToken).ConfigureAwait(False)
Debugging\LocationInfoGetter.vb (1)
19Dim tree = Await document.GetSyntaxTreeAsync(cancellationToken).ConfigureAwait(False)
Debugging\ProximityExpressionsGetter.vb (1)
29Dim tree = Await document.GetSyntaxTreeAsync(cancellationToken).ConfigureAwait(False)
Debugging\VisualBasicBreakpointService.vb (1)
28Dim tree = Await document.GetSyntaxTreeAsync(cancellationToken).ConfigureAwait(False)
ExtractInterface\VisualBasicExtractInterfaceService.vb (1)
30Dim tree = Await document.GetSyntaxTreeAsync(cancellationToken).ConfigureAwait(False)
LineSeparators\VisualBasicLineSeparatorService.vb (1)
58Dim syntaxTree = Await document.GetSyntaxTreeAsync(cancellationToken).ConfigureAwait(False)
Microsoft.CodeAnalysis.Workspaces (8)
Diagnostics\Extensions.cs (1)
120treeToAnalyze = await document.GetSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (1)
62syntaxTree = await document.GetSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\GeneratedCodeRecognition\AbstractGeneratedCodeRecognitionService.cs (1)
26var syntaxTree = await document.GetSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
Workspace\Solution\Document.cs (5)
75/// In almost all cases, you should call <see cref="GetSyntaxTreeAsync"/> to fetch the tree, which will parse the tree 138/// <see cref="GetSyntaxTreeAsync"/> and <see cref="GetSyntaxRootAsync"/> methods. 233var tree = (await this.GetSyntaxTreeAsync(cancellationToken).ConfigureAwait(false))!; 496var tree = useAsync ? await GetSyntaxTreeAsync(cancellationToken).ConfigureAwait(false) : this.GetSyntaxTreeSynchronously(cancellationToken); 497var oldTree = useAsync ? await oldDocument.GetSyntaxTreeAsync(cancellationToken).ConfigureAwait(false) : oldDocument.GetSyntaxTreeSynchronously(cancellationToken);
Microsoft.ML.InternalCodeAnalyzer (2)
ContractsCheckNameofFixProvider.cs (2)
170var tree = await document.GetSyntaxTreeAsync(cancellationToken); 181var tree = await document.GetSyntaxTreeAsync(cancellationToken);
Roslyn.Diagnostics.Analyzers (4)
AbstractCreateTestAccessor`1.cs (1)
62var syntaxTree = await document.GetSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
AbstractExposeMemberForTesting`1.cs (1)
104var syntaxTree = await document.GetSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (1)
62syntaxTree = await document.GetSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\GeneratedCodeRecognition\AbstractGeneratedCodeRecognitionService.cs (1)
26var syntaxTree = await document.GetSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);