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