41 references to GetRequiredSyntaxRootAsync
Microsoft.CodeAnalysis.Workspaces (41)
CodeActions\CodeAction_Cleanup.cs (1)
164var newRoot = await cleanedDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
CodeCleanup\AbstractCodeCleanerService.cs (2)
42var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 483var root = await currentDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
CodeCleanup\CodeCleaner.cs (1)
62var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
CodeCleanup\Providers\FormatCodeCleanupProvider.cs (1)
23var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
CodeFixesAndRefactorings\DocumentBasedFixAllProviderHelpers.cs (1)
90var newRoot = newDocument.SupportsSyntaxTree ? await newDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false) : null;
CodeRefactorings\SyntaxEditorBasedCodeRefactoringProvider.cs (1)
70var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
Editing\ImportAdder.cs (2)
21var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 27var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
FindSymbols\FindLiterals\FindLiteralsSearchEngine.cs (1)
141var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
FindSymbols\FindReferences\FindReferenceCache.cs (1)
41var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
FindSymbols\SymbolFinder.cs (1)
275var linkedSyntaxRoot = await linkedDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
Formatting\Formatter.cs (3)
94var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 115var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 132var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
LanguageServices\FixAllSpanMappingService\AbstractFixAllSpanMappingService.cs (1)
77var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
ObsoleteSymbol\AbstractObsoleteSymbolService.cs (1)
36var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
ReassignedVariable\AbstractReassignedVariableService.cs (1)
46var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
Rename\ConflictEngine\ConflictResolver.Session.cs (4)
327var syntaxRoot = await newDocument.GetRequiredSyntaxRootAsync(_cancellationToken).ConfigureAwait(false); 353var syntaxRoot = await newDocument.GetRequiredSyntaxRootAsync(_cancellationToken).ConfigureAwait(false); 356var baseRoot = await baseDocument.GetRequiredSyntaxRootAsync(_cancellationToken).ConfigureAwait(false); 445var syntaxRoot = await newDocument.GetRequiredSyntaxRootAsync(_cancellationToken).ConfigureAwait(false);
Rename\ConflictEngine\MutableConflictResolution.cs (1)
74var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
Rename\ConflictEngine\RenamedSpansTracker.cs (1)
174var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
Rename\Renamer.RenameSymbolDocumentAction.cs (1)
71var syntaxRoot = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (2)
366var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 384var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
Simplification\Simplifier.cs (5)
159var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 167var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 187var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 195var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 248var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\SyntaxEditorBasedCodeFixProvider.cs (1)
74var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (2)
39var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 116var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (1)
137var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (2)
108var root = (TCompilationUnitSyntax)await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 119root = (TCompilationUnitSyntax)await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\ParsedDocument.cs (1)
38var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\SemanticDocument.cs (1)
20var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\SyntacticDocument.cs (1)
31var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);