103 references to GetRequiredSyntaxRootAsync
Microsoft.CodeAnalysis.CodeStyle.Fixes (65)
src\Analyzers\Core\CodeFixes\AddAnonymousTypeMemberName\AbstractAddAnonymousTypeMemberNameCodeFixProvider.cs (1)
56
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\AddExplicitCast\AbstractAddExplicitCastCodeFixProvider.cs (2)
73
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)
43
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
79
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\AddParameter\AbstractAddParameterCodeFixProvider.cs (1)
68
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\AddParameter\AddParameterService.cs (2)
113
var syntaxRoot = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
183
var rewrittenSyntaxRoot = await rewrittenDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\AliasAmbiguousType\AbstractAliasAmbiguousTypeCodeFixProvider.cs (1)
34
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\ConflictMarkerResolution\AbstractConflictMarkerCodeFixProvider.cs (2)
74
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
406
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\ConvertToAsync\AbstractConvertToAsyncCodeFixProvider.cs (1)
23
var root = await context.Document.
GetRequiredSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\DocumentationComments\AbstractAddDocCommentNodesCodeFixProvider.cs (2)
31
var root = await context.Document.
GetRequiredSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(false);
60
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\DocumentationComments\AbstractRemoveDocCommentNodeCodeFixProvider.cs (2)
35
var root = await context.Document.
GetRequiredSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(false);
61
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\Formatting\FormattingCodeFixProvider.cs (1)
72
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)
41
var root = await document.
GetRequiredSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\ImplementAbstractClass\AbstractImplementAbstractClassCodeFixProvider.cs (1)
28
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\ImplementAbstractClass\ImplementAbstractClassData.cs (1)
114
var root = await _document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\ImplementInterface\AbstractImplementInterfaceCodeFixProvider.cs (1)
24
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator_DisposePattern.cs (2)
60
var rootWithCoreMembers = await docWithCoreMembers.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
91
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\Iterator\AbstractIteratorCodeFixProvider.cs (1)
21
var root = await context.Document.
GetRequiredSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\MakeFieldReadonly\AbstractMakeFieldReadonlyCodeFixProvider.cs (1)
44
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\MakeMethodAsynchronous\AbstractMakeMethodAsynchronousCodeFixProvider.cs (1)
177
var newRoot = await newDocument.
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)
36
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsCodeFixProvider.cs (1)
57
var newRoot = await newDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\RemoveUnnecessarySuppressions\RemoveUnnecessaryAttributeSuppressionsCodeFixProvider.cs (1)
28
var root = await context.Document.
GetRequiredSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\RemoveUnnecessarySuppressions\RemoveUnnecessaryPragmaSuppressionsCodeFixProvider.cs (1)
32
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);
843
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
885
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)
29
var root = await context.Document.
GetRequiredSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\UseAutoProperty\AbstractUseAutoPropertyCodeFixProvider.cs (4)
246
var declaratorTreeRoot = await fieldDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
260
var fieldTreeRoot = await fieldDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
261
var propertyTreeRoot = await propertyDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
440
return await cleanedDocument.
GetRequiredSyntaxRootAsync
(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)
72
var currentRoot = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\SyntaxEditorBasedCodeFixProvider.cs (1)
83
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixesAndRefactorings\AbstractFixAllSpanMappingService.cs (1)
78
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (3)
37
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
120
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
180
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (1)
132
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\FormatterShared.cs (1)
26
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)
34
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);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (38)
src\Analyzers\CSharp\CodeFixes\AddInheritdoc\AddInheritdocCodeFixProvider.cs (1)
40
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\AssignOutParameters\AbstractAssignOutParametersCodeFixProvider.cs (2)
32
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
97
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\ConditionalExpressionInStringInterpolation\CSharpAddParenthesesAroundConditionalExpressionInInterpolatedStringCodeFixProvider.cs (3)
35
var root = await context.Document.
GetRequiredSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(false);
66
var syntaxRoot = await documentWithOpenParenthesis.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
117
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\ConvertNamespace\ConvertNamespaceCodeFixProvider.cs (1)
63
await converted.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false));
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\CSharpConvertToRecordCodeFixProvider.cs (1)
36
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\GenerateMethod\GenerateDeconstructMethodCodeFixProvider.cs (1)
41
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\HideBase\HideBaseCodeFixProvider.AddNewKeywordAction.cs (1)
25
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\HideBase\HideBaseCodeFixProvider.cs (1)
45
var root = await context.Document.
GetRequiredSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeFixHelper.cs (2)
32
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
45
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\PassInCapturedVariablesAsArgumentsCodeFixProvider.cs (1)
68
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\MakeMemberRequired\CSharpMakeMemberRequiredCodeFixProvider.cs (1)
37
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\MakeRefStruct\MakeRefStructCodeFixProvider.cs (2)
41
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
68
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\MakeStatementAsynchronous\CSharpMakeStatementAsynchronousCodeFixProvider.cs (1)
35
var root = await context.Document.
GetRequiredSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\MisplacedUsingDirectives\MisplacedUsingDirectivesCodeFixProvider.cs (2)
62
var syntaxRoot = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
90
var compilationUnit = (CompilationUnitSyntax)await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\NewLines\ArrowExpressionClausePlacement\ArrowExpressionClausePlacementCodeFixProvider.cs (1)
47
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\NewLines\ConditionalExpressionPlacement\ConditionalExpressionPlacementCodeFixProvider.cs (1)
47
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\NewLines\ConsecutiveBracePlacement\ConsecutiveBracePlacementCodeFixProvider.cs (1)
50
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\NewLines\ConstructorInitializerPlacement\ConstructorInitializerPlacementCodeFixProvider.cs (1)
47
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\NewLines\EmbeddedStatementPlacement\EmbeddedStatementPlacementCodeFixProvider.cs (1)
48
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\RemoveConfusingSuppression\CSharpRemoveConfusingSuppressionCodeFixProvider.cs (1)
61
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\RemoveInKeyword\RemoveInKeywordCodeFixProvider.cs (2)
35
var root = await context.Document.
GetRequiredSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(false);
59
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\RemoveNewModifier\RemoveNewModifierCodeFixProvider.cs (2)
33
var root = await context.Document.
GetRequiredSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(false);
62
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\ReplaceDefaultLiteral\CSharpReplaceDefaultLiteralCodeFixProvider.cs (2)
40
var syntaxRoot = await context.Document.
GetRequiredSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(false);
67
var syntaxRoot = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForBuilderCodeFixProvider.cs (2)
58
var root = await newDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
113
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\UseExplicitTypeForConst\UseExplicitTypeForConstCodeFixProvider.cs (2)
39
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
64
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeFixesAndRefactorings\CSharpFixAllSpanMappingService.cs (1)
27
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpRemoveUnnecessaryImportsService.cs (1)
52
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);