78 references to GetRequiredSyntaxRootAsync
Microsoft.CodeAnalysis.CodeStyle.Fixes (44)
AbstractAddAnonymousTypeMemberNameCodeFixProvider.cs (1)
57
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
AbstractAddDocCommentNodesCodeFixProvider.cs (2)
32
var root = await context.Document.
GetRequiredSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(false);
61
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
AbstractAddExplicitCastCodeFixProvider.cs (2)
62
var root = await document.
GetRequiredSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(false);
200
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
AbstractAddObsoleteAttributeCodeFixProvider.cs (2)
44
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
80
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
AbstractAddParameterCodeFixProvider.cs (1)
57
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
AbstractAliasAmbiguousTypeCodeFixProvider.cs (1)
35
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
AbstractConflictMarkerCodeFixProvider.cs (2)
72
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
392
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
AbstractMakeFieldReadonlyCodeFixProvider.cs (1)
45
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
AbstractMakeMethodAsynchronousCodeFixProvider.cs (2)
173
var newRoot = await newDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
194
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
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);
AbstractMultipleBlankLinesCodeFixProvider.cs (1)
52
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
AbstractRemoveDocCommentNodeCodeFixProvider.cs (2)
36
var root = await context.Document.
GetRequiredSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(false);
62
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
AbstractRemoveUnusedValuesCodeFixProvider.cs (6)
157
var root = await context.Document.
GetRequiredSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(false);
266
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
287
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
774
var newRoot = await newDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
834
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
876
root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
AbstractUnsealClassCodeFixProvider.cs (2)
34
var syntaxRoot = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
64
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
AbstractUseCollectionInitializerCodeFixProvider.cs (2)
80
var currentRoot = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
107
currentRoot = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
AbstractUseConditionalExpressionCodeFixProvider.cs (1)
56
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
AbstractUseObjectInitializerCodeFixProvider.cs (2)
79
var currentRoot = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
110
currentRoot = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
AddParameterService.cs (1)
106
var syntaxRoot = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ConsecutiveStatementPlacementCodeFixProvider.cs (1)
50
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
DocumentExtensions.cs (1)
118
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
NamingStyleCodeFixProvider.cs (1)
60
var root = await document.
GetRequiredSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(false);
ParsedDocument.cs (1)
37
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
RemoveRedundantEqualityCodeFixProvider.cs (1)
45
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
RemoveUnnecessaryAttributeSuppressionsCodeFixProvider.cs (1)
33
var root = await context.Document.
GetRequiredSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(false);
RemoveUnnecessaryPragmaSuppressionsCodeFixProvider.cs (1)
38
var root = await context.Document.
GetRequiredSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(false);
SyntacticDocument.cs (1)
31
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
SyntaxEditorBasedCodeFixProvider.cs (1)
81
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
UpdateLegacySuppressionsCodeFixProvider.cs (1)
34
var root = await context.Document.
GetRequiredSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (34)
AbstractAssignOutParametersCodeFixProvider.cs (2)
33
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
98
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ArrowExpressionClausePlacementCodeFixProvider.cs (1)
53
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ConditionalExpressionPlacementCodeFixProvider.cs (1)
53
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ConsecutiveBracePlacementCodeFixProvider.cs (1)
54
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ConstructorInitializerPlacementCodeFixProvider.cs (1)
51
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ConvertNamespaceCodeFixProvider.cs (1)
72
await converted.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false));
ConvertNamespaceTransform.cs (1)
162
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
CSharpAddParenthesesAroundConditionalExpressionInInterpolatedStringCodeFixProvider.cs (3)
39
var root = await context.Document.
GetRequiredSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(false);
70
var syntaxRoot = await documentWithOpenParenthesis.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
121
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
CSharpConvertToRecordCodeFixProvider.cs (1)
41
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
CSharpMakeMemberRequiredCodeFixProvider.cs (1)
44
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
CSharpMakeStatementAsynchronousCodeFixProvider.cs (1)
38
var root = await context.Document.
GetRequiredSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(false);
CSharpRemoveConfusingSuppressionCodeFixProvider.cs (1)
66
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
CSharpRemoveUnnecessaryImportsService.cs (1)
69
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
CSharpReplaceDefaultLiteralCodeFixProvider.cs (2)
45
var syntaxRoot = await context.Document.
GetRequiredSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(false);
72
var syntaxRoot = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
EmbeddedStatementPlacementCodeFixProvider.cs (1)
50
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
HideBaseCodeFixProvider.AddNewKeywordAction.cs (1)
38
var root = await _document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
HideBaseCodeFixProvider.cs (1)
35
var root = await context.Document.
GetRequiredSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(false);
MakeLocalFunctionStaticCodeFixHelper.cs (2)
35
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
49
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
MakeRefStructCodeFixProvider.cs (2)
47
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
74
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
MisplacedUsingDirectivesCodeFixProvider.cs (2)
62
var syntaxRoot = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
91
var compilationUnit = (CompilationUnitSyntax)await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
PassInCapturedVariablesAsArgumentsCodeFixProvider.cs (1)
72
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
RemoveInKeywordCodeFixProvider.cs (2)
40
var root = await context.Document.
GetRequiredSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(false);
64
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
RemoveNewModifierCodeFixProvider.cs (2)
38
var root = await context.Document.
GetRequiredSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(false);
67
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
UseExplicitTypeForConstCodeFixProvider.cs (2)
44
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
69
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);