53 references to GetRequiredSyntaxRootAsync
Microsoft.CodeAnalysis.CodeStyle.Fixes (53)
src\Analyzers\Core\CodeFixes\AddAnonymousTypeMemberName\AbstractAddAnonymousTypeMemberNameCodeFixProvider.cs (1)
57
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\AddExplicitCast\AbstractAddExplicitCastCodeFixProvider.cs (2)
72
var root = await document.
GetRequiredSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(false);
218
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\AddObsoleteAttribute\AbstractAddObsoleteAttributeCodeFixProvider.cs (2)
44
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
80
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\AddParameter\AbstractAddParameterCodeFixProvider.cs (1)
67
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\AddParameter\AddParameterService.cs (1)
183
var rewrittenSyntaxRoot = await rewrittenDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\AliasAmbiguousType\AbstractAliasAmbiguousTypeCodeFixProvider.cs (1)
35
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\ConflictMarkerResolution\AbstractConflictMarkerCodeFixProvider.cs (2)
73
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
405
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\DocumentationComments\AbstractAddDocCommentNodesCodeFixProvider.cs (2)
32
var root = await context.Document.
GetRequiredSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(false);
61
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\DocumentationComments\AbstractRemoveDocCommentNodeCodeFixProvider.cs (2)
36
var root = await context.Document.
GetRequiredSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(false);
62
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\Formatting\FormattingCodeFixProvider.cs (1)
64
var root = await context.Document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\GenerateDefaultConstructors\AbstractGenerateDefaultConstructorCodeFixProvider.cs (1)
28
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\GenerateMember\AbstractGenerateMemberCodeFixProvider.cs (1)
43
var root = await document.
GetRequiredSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\ImplementAbstractClass\AbstractImplementAbstractClassCodeFixProvider.cs (1)
29
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\ImplementInterface\AbstractImplementInterfaceCodeFixProvider.cs (1)
36
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator_DisposePattern.cs (1)
97
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\MakeFieldReadonly\AbstractMakeFieldReadonlyCodeFixProvider.cs (1)
45
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\MakeMethodAsynchronous\AbstractMakeMethodAsynchronousCodeFixProvider.cs (2)
173
var newRoot = await newDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
194
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\MakeMethodSynchronous\AbstractMakeMethodSynchronousCodeFixProvider.cs (3)
106
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
122
var syntaxRoot = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
175
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\NamingStyle\NamingStyleCodeFixProvider.cs (1)
57
var root = await document.
GetRequiredSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\NewLines\ConsecutiveStatementPlacement\ConsecutiveStatementPlacementCodeFixProvider.cs (1)
46
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\NewLines\MultipleBlankLines\AbstractMultipleBlankLinesCodeFixProvider.cs (1)
48
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\RemoveRedundantEquality\RemoveRedundantEqualityCodeFixProvider.cs (1)
38
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\RemoveUnnecessarySuppressions\RemoveUnnecessaryAttributeSuppressionsCodeFixProvider.cs (1)
29
var root = await context.Document.
GetRequiredSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\RemoveUnnecessarySuppressions\RemoveUnnecessaryPragmaSuppressionsCodeFixProvider.cs (1)
34
var root = await context.Document.
GetRequiredSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\RemoveUnusedParametersAndValues\AbstractRemoveUnusedValuesCodeFixProvider.cs (6)
164
var root = await context.Document.
GetRequiredSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(false);
278
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
298
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
784
var newRoot = await newDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
844
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
886
root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\UnsealClass\AbstractUnsealClassCodeFixProvider.cs (2)
34
var syntaxRoot = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
64
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\UpdateLegacySuppressions\UpdateLegacySuppressionsCodeFixProvider.cs (1)
30
var root = await context.Document.
GetRequiredSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\UseConditionalExpression\AbstractUseConditionalExpressionCodeFixProvider.cs (1)
48
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\UseObjectInitializer\AbstractUseObjectInitializerCodeFixProvider.cs (1)
73
var currentRoot = 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)
37
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
120
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);