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