81 references to GetRootAsync
AnalyzerRunner (1)
Program.cs (1)
208var root = await tree.GetRootAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CodeStyle (2)
AbstractSelectedMembers.cs (1)
47var root = await tree.GetRootAsync(cancellationToken).ConfigureAwait(false);
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (1)
76var root = await syntaxTree.GetRootAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CodeStyle.Fixes (3)
AbstractCodeGenerationService.cs (1)
254var root = await destinationTree.GetRootAsync(cancellationToken).ConfigureAwait(false);
AbstractFileHeaderCodeFixProvider.cs (1)
61var root = await tree.GetRootAsync(cancellationToken).ConfigureAwait(false);
FormattingCodeFixHelper.cs (1)
27var root = await syntaxTree.GetRootAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
CSharpConvertToAsyncMethodCodeFixProvider.cs (1)
59var oldRoot = await methodDeclaration.SyntaxTree.GetRootAsync(cancellationToken).ConfigureAwait(false);
ITypeSymbolExtensions.cs (1)
122var root = await semanticModel.SyntaxTree.GetRootAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (4)
Formatting\CodeCleanupTests.TestFixers.cs (3)
36var node = (await sourceTree.GetRootAsync(cancellationToken)).FindNode(diagnostic.Location.SourceSpan); 105var node = (await sourceTree.GetRootAsync(cancellationToken)).FindNode(diagnostic.Location.SourceSpan); 161var node = (await sourceTree.GetRootAsync(cancellationToken)).FindNode(diagnostic.Location.SourceSpan);
SymbolKey\SymbolKeyTests.cs (1)
293var root = await tree.GetRootAsync();
Microsoft.CodeAnalysis.CSharp.Features (7)
Completion\CompletionProviders\ExternAliasCompletionProvider.cs (1)
73var root = await tree.GetRootAsync(cancellationToken).ConfigureAwait(false);
CSharpConvertToAsyncMethodCodeFixProvider.cs (1)
59var oldRoot = await methodDeclaration.SyntaxTree.GetRootAsync(cancellationToken).ConfigureAwait(false);
Debugging\LocationInfoGetter.cs (1)
25var root = await tree.GetRootAsync(cancellationToken).ConfigureAwait(false);
ExtractInterface\CSharpExtractInterfaceService.cs (1)
37var root = await tree.GetRootAsync(cancellationToken).ConfigureAwait(false);
FullyQualify\CSharpFullyQualifyService.cs (1)
52var root = await syntaxTree.GetRootAsync(cancellationToken).ConfigureAwait(false);
LineSeparators\CSharpLineSeparatorService.cs (1)
41var node = await tree.GetRootAsync(cancellationToken).ConfigureAwait(false);
MetadataAsSource\CSharpMetadataAsSourceService.cs (1)
109var root = await tree.GetRootAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.cs\ITypeSymbolExtensions.cs (1)
122var root = await semanticModel.SyntaxTree.GetRootAsync(cancellationToken).ConfigureAwait(false);
Rename\CSharpRenameRewriterLanguageService.cs (1)
888var compilationUnit = (CompilationUnitSyntax)await tree.GetRootAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
Formatting\FormattingMultipleSpanTests.cs (1)
168var root = await syntaxTree.GetRootAsync();
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (3)
Classification\SyntacticChangeRangeComputerTests.vb (2)
30Dim startingRoot = Await startingTree.GetRootAsync() 34Dim endingRoot = Await endingTree.GetRootAsync()
FindReferences\FindReferencesTests.vb (1)
581Dim root1 = Await semanticModel1.SyntaxTree.GetRootAsync()
Microsoft.CodeAnalysis.Features (15)
AbstractFileHeaderCodeFixProvider.cs (1)
61var root = await tree.GetRootAsync(cancellationToken).ConfigureAwait(false);
AddFileBanner\AbstractAddFileBannerCodeRefactoringProvider.cs (1)
54var root = await tree.GetRootAsync(cancellationToken).ConfigureAwait(false);
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.AbstractGlobalSuppressMessageCodeAction.cs (1)
83var r = await t.GetRootAsync(c).ConfigureAwait(false);
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.cs (1)
274var root = await syntaxTree.GetRootAsync(cancellationToken).ConfigureAwait(false);
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.PragmaHelpers.cs (1)
35var root = await nodeWithTokens.SyntaxTree.GetRootAsync(cancellationToken).ConfigureAwait(false);
Completion\Providers\AbstractAwaitCompletionProvider.cs (1)
175var root = await syntaxTree.GetRootAsync(cancellationToken).ConfigureAwait(false);
Completion\Providers\ImportCompletionProvider\AbstractImportCompletionProvider.cs (1)
125var root = await tree.GetRootAsync(cancellationToken).ConfigureAwait(false);
DocumentHighlighting\AbstractDocumentHighlightsService.cs (1)
318var root = await tree.GetRootAsync(cancellationToken).ConfigureAwait(false);
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (2)
533oldRoot = await oldTree.GetRootAsync(cancellationToken).ConfigureAwait(false); 550var newRoot = await newTree.GetRootAsync(cancellationToken).ConfigureAwait(false);
EditAndContinue\ActiveStatementsMap.cs (1)
169var oldRoot = await oldTree.GetRootAsync(cancellationToken).ConfigureAwait(false);
FormattingCodeFixHelper.cs (1)
27var root = await syntaxTree.GetRootAsync(cancellationToken).ConfigureAwait(false);
InitializeParameter\AbstractInitializeMemberFromParameterCodeRefactoringProviderMemberCreation.cs (1)
522var otherRoot = await propertySyntax.SyntaxTree.GetRootAsync(cancellationToken).ConfigureAwait(false);
Shared\Utilities\AnnotatedSymbolMapping.cs (2)
65var typeNodeRoot = await typeNode.SyntaxTree.GetRootAsync(cancellationToken).ConfigureAwait(false); 84root = await tree.GetRootAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
VisualBasicConvertToAsyncFunctionCodeFixProvider.vb (1)
68Dim root = Await methodReference.SyntaxTree.GetRootAsync(cancellationToken).ConfigureAwait(False)
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (3)
Formatting\CodeCleanUpTests.vb (3)
656Dim node = (Await diagnostic.Location.SourceTree.GetRootAsync(cancellationToken)).FindNode(diagnostic.Location.SourceSpan) 701Dim node = (Await diagnostic.Location.SourceTree.GetRootAsync(cancellationToken)).FindNode(diagnostic.Location.SourceSpan) 730Dim node = (Await diagnostic.Location.SourceTree.GetRootAsync(cancellationToken)).FindNode(diagnostic.Location.SourceSpan)
Microsoft.CodeAnalysis.VisualBasic.Features (8)
CodeRefactorings\InlineTemporary\VisualBasicInlineTemporaryCodeRefactoringProvider.vb (1)
422Dim syntaxRootBeforeInline = Await semanticModelBeforeInline.SyntaxTree.GetRootAsync(cancellationToken).ConfigureAwait(False)
Completion\CompletionProviders\ImportCompletionProvider\ImportCompletionProviderHelper.vb (1)
18Dim Location = If(syntaxContext.LeftToken.Parent, Await syntaxContext.SyntaxTree.GetRootAsync(token).ConfigureAwait(False))
Debugging\LocationInfoGetter.vb (1)
20Dim root = Await tree.GetRootAsync(cancellationToken).ConfigureAwait(False)
Debugging\VisualBasicBreakpointService.vb (1)
49Dim root = Await tree.GetRootAsync(cancellationToken).ConfigureAwait(False)
ExtractInterface\VisualBasicExtractInterfaceService.vb (1)
31Dim root = Await tree.GetRootAsync(cancellationToken).ConfigureAwait(False)
FullyQualify\VisualBasicFullyQualifyService.vb (1)
70Dim root = Await tree.GetRootAsync(cancellationToken).ConfigureAwait(False)
LineSeparators\VisualBasicLineSeparatorService.vb (1)
59Dim root = Await syntaxTree.GetRootAsync(cancellationToken).ConfigureAwait(False)
VisualBasicConvertToAsyncFunctionCodeFixProvider.vb (1)
68Dim root = Await methodReference.SyntaxTree.GetRootAsync(cancellationToken).ConfigureAwait(False)
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (4)
Formatting\VisualBasicFormattingTestBase.vb (4)
67Dim changes = Formatter.GetFormattedTextChanges(Await syntaxTree.GetRootAsync(), workspace.Services.SolutionServices, options, CancellationToken.None) 70changes = Formatter.GetFormattedTextChanges(Await syntaxTree.GetRootAsync(), (Await syntaxTree.GetRootAsync()).FullSpan, workspace.Services.SolutionServices, options, CancellationToken.None) 76changes = Formatter.GetFormattedTextChanges(Await syntaxTree.GetRootAsync(), spans, workspace.Services.SolutionServices, options, CancellationToken.None)
Microsoft.CodeAnalysis.Workspaces (19)
AbstractCodeGenerationService.cs (1)
254var root = await destinationTree.GetRootAsync(cancellationToken).ConfigureAwait(false);
AbstractSelectedMembers.cs (1)
47var root = await tree.GetRootAsync(cancellationToken).ConfigureAwait(false);
CodeCleanup\Providers\FormatCodeCleanupProvider.cs (1)
47? root.SyntaxTree.WithChangedText(oldText.WithChanges(result.GetTextChanges(cancellationToken))).GetRootAsync(cancellationToken)
FindSymbols\FindReferences\Finders\AbstractReferenceFinder_GlobalSuppressions.cs (1)
82var root = await semanticModel.SyntaxTree.GetRootAsync(cancellationToken).ConfigureAwait(false);
FindSymbols\FindReferences\FindReferenceCache.cs (1)
82var root = await _semanticModel.SyntaxTree.GetRootAsync(cancellationToken).ConfigureAwait(false);
FindSymbols\SymbolFinder.cs (1)
262var originalRoot = await location.SyntaxTree.GetRootAsync(cancellationToken).ConfigureAwait(false);
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (1)
76var root = await syntaxTree.GetRootAsync(cancellationToken).ConfigureAwait(false);
LanguageServices\FixAllSpanMappingService\AbstractFixAllSpanMappingService.cs (1)
55var root = await syntaxRef.SyntaxTree.GetRootAsync(cancellationToken).ConfigureAwait(false);
Rename\ConflictEngine\ConflictResolver.Session.cs (1)
787var originalSyntaxRoot = await semanticModel.SyntaxTree.GetRootAsync(_cancellationToken).ConfigureAwait(false);
SemanticModelReuse\AbstractSemanticModelReuseLanguageService.cs (2)
55var previousRoot = await previousSemanticModel.SyntaxTree.GetRootAsync(cancellationToken).ConfigureAwait(false); 56var currentRoot = await currentBodyNode.SyntaxTree.GetRootAsync(cancellationToken).ConfigureAwait(false);
Simplification\AbstractSimplificationService.cs (5)
73var root = await semanticModel.SyntaxTree.GetRootAsync(cancellationToken).ConfigureAwait(false); 109var root = await semanticModel.SyntaxTree.GetRootAsync(cancellationToken).ConfigureAwait(false); 121root = await semanticModel.SyntaxTree.GetRootAsync(cancellationToken).ConfigureAwait(false); 246newRoot = await semanticModelForReduce.SyntaxTree.GetRootAsync(cancellationToken).ConfigureAwait(false); 309var root = await model.SyntaxTree.GetRootAsync(cancellationToken).ConfigureAwait(false);
Workspace\Solution\Document.cs (2)
161/// to <see cref="SyntaxTree.GetRoot"/> or <see cref="SyntaxTree.GetRootAsync"/> may end up causing computation 235return await tree.GetRootAsync(cancellationToken).ConfigureAwait(false);
Workspace\Solution\DocumentState_LinkedFileReuse.cs (1)
188var siblingRoot = await siblingTree.GetRootAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (2)
Formatting\FormattingTestBase.cs (2)
62var root = await syntaxTree.GetRootAsync(); 99var resultRoot = await root.SyntaxTree.WithChangedText(resultText).GetRootAsync();
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
BatchFixAllProviderTests.cs (1)
125var root = await tree.GetRootAsync(cancellationToken);
Microsoft.VisualStudio.LanguageServices (2)
Library\ClassView\AbstractSyncClassViewCommandHandler.cs (1)
79.GetRootAsync(userCancellationToken)
Progression\SymbolContainment.cs (1)
34var root = await syntaxTree.GetRootAsync(cancellationToken).ConfigureAwait(false);
Microsoft.VisualStudio.LanguageServices.CSharp (1)
LanguageService\CSharpHelpContextService.cs (1)
67var root = await syntaxTree.GetRootAsync(cancellationToken).ConfigureAwait(false);