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