362 references to GetRequiredSyntaxRootAsync
IdeBenchmarks (1)
InheritanceMargin\BenchmarksHelpers.cs (1)
28
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.EditorFeatures (2)
DecompiledSource\CSharpDecompiledSourceService.cs (2)
69
var node = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
132
var oldRoot = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (3)
Diagnostics\DiagnosticAnalyzerDriver\DiagnosticAnalyzerDriverTests.cs (1)
799
var root = await document.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
LineSeparators\LineSeparatorTests.cs (1)
540
var root = await document.
GetRequiredSyntaxRootAsync
(default);
StringIndentation\StringIndentationTests.cs (1)
32
var root = await document.
GetRequiredSyntaxRootAsync
(default);
Microsoft.CodeAnalysis.CSharp.Features (90)
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);
BraceMatching\BlockCommentBraceMatcher.cs (1)
27
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
BraceMatching\StringLiteralBraceMatcher.cs (1)
30
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ChangeSignature\CSharpChangeSignatureService.cs (2)
109
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
845
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
CodeLens\CSharpCodeLensMemberFinder.cs (1)
29
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
CodeRefactorings\EnableNullable\EnableNullableCodeRefactoringProvider.cs (2)
45
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
90
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
CodeRefactorings\UseRecursivePatterns\UseRecursivePatternsCodeRefactoringProvider.cs (3)
56
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
550
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
561
var updatedRoot = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\ImportCompletion\ImportCompletionProviderHelper.cs (1)
69
var root = await globalUsingDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\OperatorsAndIndexer\UnnamedSymbolCompletionProvider.cs (2)
108
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
187
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\OperatorsAndIndexer\UnnamedSymbolCompletionProvider_Conversions.cs (1)
77
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\OperatorsAndIndexer\UnnamedSymbolCompletionProvider_Operators.cs (1)
137
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\SymbolCompletionProvider.cs (1)
153
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);
ConvertBetweenRegularAndVerbatimString\AbstractConvertBetweenRegularAndVerbatimStringCodeRefactoringProvider.cs (1)
89
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ConvertNamespace\ConvertNamespaceCodeRefactoringProvider.cs (3)
45
var root = (CompilationUnitSyntax)await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
98
var root = (CompilationUnitSyntax)await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
108
var newRoot = 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);
ConvertProgram\ConvertProgramTransform_ProgramMain.cs (2)
32
var root = (CompilationUnitSyntax)await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
84
var root = (CompilationUnitSyntax)await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ConvertProgram\ConvertProgramTransform_TopLevelStatements.cs (2)
36
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
62
var root = (CompilationUnitSyntax)await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ConvertProgram\ConvertToProgramMainCodeFixProvider.cs (1)
52
var fixedRoot = await fixedDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ConvertProgram\ConvertToProgramMainCodeRefactoringProvider.cs (1)
43
var root = (CompilationUnitSyntax)await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ConvertProgram\ConvertToTopLevelStatementsCodeFixProvider.cs (1)
55
var newRoot = await newDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ConvertToRawString\ConvertRegularStringToRawStringCodeRefactoringProvider.cs (2)
62
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
196
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);
CSharpReplaceDefaultLiteralCodeFixProvider.cs (2)
45
var syntaxRoot = await context.Document.
GetRequiredSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(false);
72
var syntaxRoot = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
DocumentHighlighting\CSharpDocumentHighlightsService.cs (1)
53
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
EmbeddedStatementPlacementCodeFixProvider.cs (1)
50
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Formatting\CSharpAccessibilityModifiersNewDocumentFormattingProvider.cs (1)
38
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Formatting\CSharpNamespaceDeclarationNewDocumentFormattingProvider.cs (1)
35
var root = (CompilationUnitSyntax)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);
ImplementInterface\AbstractChangeImplementationCodeRefactoringProvider.cs (1)
130
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ImplementInterface\CSharpImplementExplicitlyCodeRefactoringProvider.cs (1)
73
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ImplementInterface\CSharpImplementInterfaceCodeFixProvider.cs (1)
45
var root = await document.
GetRequiredSyntaxRootAsync
(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);
ReverseForStatement\CSharpReverseForStatementCodeRefactoringProvider.cs (1)
268
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
SignatureHelp\AttributeSignatureHelpProvider.cs (1)
75
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
SignatureHelp\ConstructorInitializerSignatureHelpProvider.cs (1)
48
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
SignatureHelp\ElementAccessExpressionSignatureHelpProvider.cs (1)
54
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
SignatureHelp\GenericNameSignatureHelpProvider.cs (1)
79
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
SignatureHelp\InitializerExpressionSignatureHelpProvider.cs (1)
58
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
SignatureHelp\InvocationExpressionSignatureHelpProvider.cs (1)
44
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
SignatureHelp\ObjectCreationExpressionSignatureHelpProvider.cs (2)
45
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
72
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
SignatureHelp\PrimaryConstructorBaseTypeSignatureHelpProvider.cs (1)
73
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
SignatureHelp\TupleConstructionSignatureHelpProvider.cs (1)
109
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Snippets\AbstractCSharpTypeSnippetProvider.cs (1)
92
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Snippets\CSharpConstructorSnippetProvider.cs (1)
80
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Snippets\CSharpElseSnippetProvider.cs (1)
102
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Snippets\CSharpForEachLoopSnippetProvider.cs (1)
89
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Snippets\CSharpIfSnippetProvider.cs (1)
66
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Snippets\CSharpWhileLoopSnippetProvider.cs (1)
66
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
StringIndentation\CSharpStringIndentationService.cs (1)
34
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);
UseExpressionBody\UseExpressionBodyCodeRefactoringProvider.cs (3)
69
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
202
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
255
currentRoot = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
UseExpressionBodyForLambda\UseExpressionBodyForLambdaCodeRefactoringProvider.cs (1)
174
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
CSharpRemoveUnnecessaryImportsService.cs (1)
69
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
LanguageServices\FixAllSpanMappingService\CSharpFixAllSpanMappingService.cs (1)
31
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
OrganizeImports\OrganizeUsingsTests.cs (1)
44
var newRoot = await newDocument.
GetRequiredSyntaxRootAsync
(default);
Microsoft.CodeAnalysis.EditorFeatures (4)
Classification\Semantic\ClassificationUtilities.cs (1)
124
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
CodeActions\CodeActionEditHandlerService.cs (2)
322
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
346
var latestRoot = await latestDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Preview\AbstractPreviewFactoryService.cs (1)
441
var newRoot = await newDocument.
GetRequiredSyntaxRootAsync
(cancellationToken);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
Classification\AbstractClassifierTests.cs (1)
285
var root = await document.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
Completion\AbstractArgumentProviderTests`1.cs (1)
66
var root = await document.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (5)
CodeGeneration\AbstractCodeGenerationTests.cs (2)
38
var root = document.
GetRequiredSyntaxRootAsync
(default).AsTask().Result;
45
var rootNode = simplifiedDocument.
GetRequiredSyntaxRootAsync
(default).AsTask().Result;
InheritanceMargin\InheritanceMarginTests.cs (1)
99
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
MetadataAsSource\AbstractMetadataAsSourceTests.TestContext.cs (1)
326
var syntaxRoot = await document.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
StackTraceExplorer\StackTraceExplorerTests.cs (1)
49
var root = await doc.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
Microsoft.CodeAnalysis.Features (166)
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);
AddDebuggerDisplay\AbstractAddDebuggerDisplayCodeRefactoringProvider.cs (1)
115
var syntaxRoot = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
AddFileBanner\AbstractAddFileBannerCodeRefactoringProvider.cs (1)
202
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
AddFileBanner\AbstractAddFileBannerNewDocumentFormattingProvider.cs (2)
25
var rootToFormat = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
46
var hintSyntaxRoot = await hintDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
AddImport\AbstractAddImportFeatureService.cs (1)
86
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
AddParameterService.cs (1)
106
var syntaxRoot = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
BraceMatching\AbstractEmbeddedLanguageBraceMatcher.cs (1)
34
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
CodeFixes\GenerateMember\AbstractGenerateMemberCodeFixProvider.cs (1)
43
var root = await document.
GetRequiredSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(false);
CodeRefactorings\AbstractRefactoringHelpersService.cs (1)
56
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
CodeRefactorings\AddAwait\AbstractAddAwaitCodeRefactoringProvider.cs (1)
37
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
CodeRefactorings\AddMissingImports\AbstractAddMissingImportsFeatureService.cs (1)
164
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
CodeRefactorings\MoveType\AbstractMoveTypeService.MoveTypeEditor.cs (3)
92
documentWithMovedTypeId, await documentWithMovedType.
GetRequiredSyntaxRootAsync
(CancellationToken).ConfigureAwait(false));
95
var rootWithMovedType = await documentWithMovedType.
GetRequiredSyntaxRootAsync
(CancellationToken).ConfigureAwait(false);
110
sourceDocumentId, await sourceDocument.
GetRequiredSyntaxRootAsync
(CancellationToken).ConfigureAwait(false));
CodeRefactorings\SyncNamespace\AbstractChangeNamespaceService.cs (9)
118
var syntaxRoot = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
147
syntaxRoot = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
163
var syntaxRoot = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
436
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
495
await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false));
604
containersToAddImports = ImmutableArray.Create(await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false));
625
var root = await documentWithAddedImports.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
753
root = await fixedDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
847
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Completion\Providers\AbstractInternalsVisibleToCompletionProvider.cs (2)
183
var syntaxRoot = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
252
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Completion\Providers\AbstractMemberInsertingCompletionProvider.cs (4)
110
var newRoot = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
203
var root = await memberContainingDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
214
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
223
return await dismemberedDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Completion\Providers\AbstractRecommendationServiceBasedCompletionProvider.cs (1)
258
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ConsecutiveStatementPlacementCodeFixProvider.cs (1)
50
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ConvertAnonymousType\AbstractConvertAnonymousTypeToClassCodeRefactoringProvider.cs (1)
89
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ConvertAnonymousType\AbstractConvertAnonymousTypeToTupleCodeRefactoringProvider.cs (2)
36
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
106
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ConvertAutoPropertyToFullProperty\AbstractConvertAutoPropertyToFullPropertyCodeRefactoringProvider.cs (1)
36
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ConvertCast\AbstractConvertCastCodeRefactoringProvider.cs (1)
75
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ConvertForToForEach\AbstractConvertForToForEachCodeRefactoringProvider.cs (1)
324
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.cs (2)
245
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
261
var updatedRoot = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.Rewriting.cs (1)
37
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ConvertLinq\AbstractConvertLinqQueryToForEachProvider.cs (1)
35
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ConvertNumericLiteral\AbstractConvertNumericLiteralCodeRefactoringProvider.cs (1)
51
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ConvertToInterpolatedString\AbstractConvertConcatenationToInterpolatedStringRefactoringProvider.cs (1)
106
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ConvertToInterpolatedString\AbstractConvertPlaceholderToInterpolatedStringRefactoringProvider.cs (1)
251
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (4)
247
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
264
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
357
var syntaxRoot = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
549
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
DesignerAttribute\DesignerAttributeDiscoveryService.cs (1)
237
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
EmbeddedLanguages\DateAndTime\LanguageServices\DateAndTimeEmbeddedLanguage.cs (1)
31
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
EmbeddedLanguages\RegularExpressions\LanguageServices\RegexEmbeddedLanguage.cs (1)
36
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ExtractClass\ExtractClassWithDialogCodeAction.cs (3)
176
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
226
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
252
var currentRoot = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ExtractMethod\ExtractMethodResult.cs (3)
91
var root = await DocumentWithoutFinalFormatting.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
96
var simplifiedRoot = await simplifiedDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
103
var formattedRoot = await formattedDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
FullyQualify\AbstractFullyQualifyService.cs (1)
68
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
GenerateComparisonOperators\GenerateComparisonOperatorsCodeRefactoringProvider.cs (1)
49
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
GenerateConstructorFromMembers\AbstractGenerateConstructorFromMembersCodeRefactoringProvider.cs (2)
186
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
278
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
GenerateDefaultConstructors\AbstractGenerateDefaultConstructorCodeFixProvider.cs (1)
29
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
GenerateEqualsAndGetHashCodeFromMembers\GenerateEqualsAndGetHashCodeAction.cs (1)
134
var oldRoot = await _document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
GenerateEqualsAndGetHashCodeFromMembers\GenerateEqualsAndGetHashCodeFromMembersCodeRefactoringProvider.cs (2)
80
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
187
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
GenerateOverrides\GenerateOverridesCodeRefactoringProvider.cs (1)
40
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ImplementAbstractClass\AbstractImplementAbstractClassCodeFixProvider.cs (1)
31
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ImplementAbstractClass\ImplementAbstractClassData.cs (1)
121
var root = await _document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ImplementInterface\AbstractImplementInterfaceService.DisposePatternCodeAction.cs (2)
151
var rootWithCoreMembers = await docWithCoreMembers.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
182
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
InheritanceMargin\AbstractInheritanceMarginService_Helpers.cs (2)
83
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
160
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
InitializeParameter\AbstractAddParameterCheckCodeRefactoringProvider.cs (3)
137
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
361
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
511
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
InitializeParameter\AbstractInitializeMemberFromParameterCodeRefactoringProviderMemberCreation.cs (3)
393
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
409
var currentRoot = await currentDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
454
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
InlineHints\AbstractInlineParameterNameHintsService.cs (1)
65
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
InlineHints\AbstractInlineTypeHintsService.cs (1)
57
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
InlineTemporary\AbstractInlineTemporaryCodeRefactoringProvider.cs (1)
42
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
IntroduceParameter\IntroduceParameterDocumentRewriter.cs (2)
240
var root = await currentDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
495
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
IntroduceUsingStatement\AbstractIntroduceUsingStatementCodeRefactoringProvider.cs (1)
116
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
IntroduceVariable\AbstractIntroduceLocalForExpressionCodeRefactoringProvider.cs (1)
104
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
InvertConditional\AbstractInvertConditionalCodeRefactoringProvider.cs (1)
47
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
InvertIf\AbstractInvertIfCodeRefactoringProvider.cs (1)
294
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
InvertLogical\AbstractInvertLogicalCodeRefactoringProvider.cs (2)
104
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
117
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
MetadataAsSource\AbstractMetadataAsSourceService.cs (1)
70
var node = await docWithAssemblyInfo.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
MoveStaticMembers\MoveStaticMembersWithDialogCodeAction.cs (6)
63
var root = await _document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
122
var destRoot = await newDoc.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
134
root = await sourceDoc.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
180
var newTypeRoot = await newTypeDoc.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
195
var root = await sourceDoc.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
203
newTypeRoot = await newTypeDoc.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
NameTupleElement\AbstractNameTupleElementCodeRefactoringProvider.cs (1)
79
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
NamingStyleCodeFixProvider.cs (1)
60
var root = await document.
GetRequiredSyntaxRootAsync
(context.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);
ReplaceConditionalWithStatements\AbstractReplaceConditionalWithStatementsCodeRefactoringProvider.cs (2)
219
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
244
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ReplaceDocCommentTextWithTag\AbstractReplaceDocCommentTextWithTagCodeRefactoringProvider.cs (1)
28
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ReplaceMethodWithProperty\ReplaceMethodWithPropertyCodeRefactoringProvider.cs (2)
222
var root = await originalDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
367
var root = await updatedDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ReplacePropertyWithMethods\ReplacePropertyWithMethodsCodeRefactoringProvider.cs (2)
226
var root = await originalDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
362
var root = await updatedDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Shared\Extensions\DocumentExtensions.cs (2)
30
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
54
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Shared\Utilities\ExtractTypeHelpers.cs (2)
31
var originalRoot = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
101
var syntaxRoot = await newTypeDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
SimplifyThisOrMe\AbstractSimplifyThisOrMeCodeFixProvider.cs (1)
47
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Snippets\SnippetFunctionService.cs (2)
144
var syntaxRoot = await documentWithFullyQualifiedTypeName.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
156
var simplifiedRoot = await simplifiedDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Snippets\SnippetProviders\AbstractConsoleSnippetProvider.cs (1)
105
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Snippets\SnippetProviders\AbstractConstructorSnippetProvider.cs (1)
35
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Snippets\SnippetProviders\AbstractSnippetProvider.cs (3)
109
var reformattedRoot = await documentWithIndentation.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
189
var root = await snippetDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
231
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
SpellCheck\AbstractSpellCheckSpanService.cs (1)
21
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
UpdateLegacySuppressionsCodeFixProvider.cs (1)
34
var root = await context.Document.
GetRequiredSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(false);
UseAutoProperty\AbstractUseAutoPropertyCodeFixProvider.cs (3)
207
var declaratorTreeRoot = await fieldDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
221
var fieldTreeRoot = await fieldDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
222
var propertyTreeRoot = await propertyDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
UseNamedArguments\AbstractUseNamedArgumentsCodeRefactoringProvider.cs (1)
208
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ValueTracking\ValueTracker.cs (1)
258
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ValueTracking\ValueTracker.FindReferencesProgress.cs (2)
145
var syntaxRoot = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
168
var syntaxRoot = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Wrapping\AbstractCodeActionComputer.cs (2)
136
var formattedRoot = await formattedDocument.
GetRequiredSyntaxRootAsync
(CancellationToken).ConfigureAwait(false);
225
var root = await OriginalDocument.
GetRequiredSyntaxRootAsync
(CancellationToken).ConfigureAwait(false);
Wrapping\AbstractWrappingCodeRefactoringProvider.cs (1)
45
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Wrapping\SeparatedSyntaxList\AbstractSeparatedSyntaxListWrapper.cs (1)
65
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.LanguageServer.Protocol (7)
Features\Diagnostics\DocumentAnalysisExecutor.cs (1)
291
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.IncrementalMemberEditAnalyzer.cs (1)
63
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.IncrementalMemberEditAnalyzer_MemberSpans.cs (1)
47
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Handler\Formatting\AbstractFormatDocumentHandlerBase.cs (1)
36
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Handler\Highlights\DocumentHighlightHandler.cs (1)
72
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Handler\InlineCompletions\InlineCompletionsHandler.cs (1)
146
var root = await originalDocument.WithText(documentWithSnippetText).
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Handler\SemanticTokens\SemanticTokensHelpers.cs (1)
81
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Remote.ServiceHub (3)
Services\CodeLensReferences\RemoteCodeLensReferencesService.cs (1)
36
var syntaxRoot = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Services\ConvertTupleToStructCodeRefactoringProvider\RemoteConvertTupleToStructCodeRefactoringService.cs (2)
78
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
101
var cleanedRoot = await cleaned.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.VisualBasic.Features (1)
CodeLens\VisualBasicCodeLensMemberFinder.vb (1)
25
Dim root = Await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(False)
Microsoft.CodeAnalysis.Workspaces (40)
CodeCleanup\AbstractCodeCleanerService.cs (2)
43
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
484
var root = await currentDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
CodeCleanup\CodeCleaner.cs (1)
64
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
CodeCleanup\Providers\FormatCodeCleanupProvider.cs (1)
31
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
CodeFixes\FixAllOccurrences\DocumentBasedFixAllProvider.cs (1)
131
var node = newDocument.SupportsSyntaxTree ? await newDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false) : null;
CodeRefactorings\FixAllOccurences\DocumentBasedFixAllProvider.cs (1)
113
var node = newDocument.SupportsSyntaxTree ? await newDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false) : null;
CodeRefactorings\SyntaxEditorBasedCodeRefactoringProvider.cs (1)
74
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
DocumentExtensions.cs (1)
118
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Editing\ImportAdder.cs (2)
22
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
28
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Editing\ImportAdderService.cs (3)
40
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
117
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
177
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
FindSymbols\FindLiterals\FindLiteralsSearchEngine.cs (1)
140
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
FindSymbols\FindReferences\FindReferencesSearchEngine.cs (1)
266
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
FindSymbols\FindReferences\FindReferencesSearchEngine_FindReferencesInDocuments.cs (1)
89
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
FindSymbols\Shared\AbstractSyntaxIndex.cs (1)
116
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
FindSymbols\SymbolFinder.cs (1)
280
var linkedSyntaxRoot = await linkedDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Formatting\Formatter.cs (3)
95
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
116
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
133
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
LanguageServices\FixAllSpanMappingService\AbstractFixAllSpanMappingService.cs (1)
76
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ParsedDocument.cs (1)
37
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ReassignedVariable\AbstractReassignedVariableService.cs (1)
45
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Rename\ConflictEngine\ConflictResolver.Session.cs (4)
324
var syntaxRoot = await newDocument.
GetRequiredSyntaxRootAsync
(_cancellationToken).ConfigureAwait(false);
350
var syntaxRoot = await newDocument.
GetRequiredSyntaxRootAsync
(_cancellationToken).ConfigureAwait(false);
353
var baseRoot = await baseDocument.
GetRequiredSyntaxRootAsync
(_cancellationToken).ConfigureAwait(false);
442
var syntaxRoot = await newDocument.
GetRequiredSyntaxRootAsync
(_cancellationToken).ConfigureAwait(false);
Rename\ConflictEngine\MutableConflictResolution.cs (1)
86
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Rename\ConflictEngine\RenamedSpansTracker.cs (1)
181
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Rename\Renamer.RenameSymbolDocumentAction.cs (1)
73
var syntaxRoot = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (2)
359
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
377
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);
247
var root = await document.
GetRequiredSyntaxRootAsync
(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);
Microsoft.CodeAnalysis.Workspaces.UnitTests (32)
SolutionTests\SolutionTests.cs (31)
417
var root1 = await document1.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
418
var root2 = await document2.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
440
root1 = await document1.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
441
root2 = await document2.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
461
root1 = await document1.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
462
root2 = await document2.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
505
var root1 = await document1.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
506
var root2 = await document2.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
528
root1 = await document1.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
529
root2 = await document2.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
549
root1 = await document1.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
550
root2 = await document2.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
584
var root1 = await document1.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
585
var root2 = await document2.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
611
root1 = await document1.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
612
root2 = await document2.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
635
root1 = await document1.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
636
root2 = await document2.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
670
var root1 = await document1.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
671
var root2 = await document2.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
694
root1 = await document1.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
695
root2 = await document2.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
715
root1 = await document1.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
716
root2 = await document2.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
747
var root1 = await document1.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
748
var root2 = await document2.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
770
root1 = await document1.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
771
root2 = await document2.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
791
root1 = await document1.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
792
root2 = await document2.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
2599
var root = await documentWithAttribute.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
SolutionTests\SolutionWithSourceGeneratorTests.cs (1)
750
Assert.Equal("// Something else", (await document.
GetRequiredSyntaxRootAsync
(CancellationToken.None)).ToFullString());
Microsoft.VisualStudio.LanguageServices (2)
CodeLens\CodeLensCallbackListener.cs (1)
155
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Implementation\AbstractEditorFactory.cs (1)
349
var rootToFormat = await addedDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(true);
Microsoft.VisualStudio.LanguageServices.UnitTests (1)
InheritanceMargin\InheritanceMarginViewModelTests.vb (1)
88
Dim root = Await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(True)