184 references to GetSyntaxRootAsync
dotnet-format (1)
Formatters\WhitespaceFormatter.cs (1)
55var root = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
GenerateDocumentationAndConfigFiles (5)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (1)
79root = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxEditorExtensions.cs (2)
173var currentRoot = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 188currentRoot = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.cs (1)
84var root = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.State.cs (1)
104var syntaxRoot = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
ILLink.CodeFixProvider (3)
BaseAttributeCodeFixProvider.cs (1)
39if (await document.GetSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false) is not { } root)
DynamicallyAccessedMembersCodeFixProvider.cs (1)
99if (await document.GetSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false) is not { } root)
RequiresUnsafeCodeFixProvider.cs (1)
38if (await document.GetSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false) is not { } root)
Microsoft.Analyzers.Extra (3)
CallAnalysis\Fixers\LegacyLoggingFixer.cs (2)
39internal Func<Document, CancellationToken, Task<SyntaxNode?>> GetSyntaxRootAsync = (d, t) => d.GetSyntaxRootAsync(t); 324var root = await doc.GetSyntaxRootAsync().ConfigureAwait(false);
MakeExeTypesInternalFixer.cs (1)
28var root = await context.Document.GetSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
Microsoft.Analyzers.Extra.Tests (1)
CallAnalysis\LegacyLoggingTests.cs (1)
822var targetRoot = await targetDoc.GetSyntaxRootAsync(CancellationToken.None);
Microsoft.AspNetCore.App.Analyzers (2)
RouteEmbeddedLanguage\FrameworkParametersCompletionProvider.cs (1)
96var root = await context.Document.GetSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
RouteEmbeddedLanguage\RoutePatternCompletionProvider.cs (1)
95var root = await context.Document.GetSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
Microsoft.AspNetCore.App.CodeFixes (10)
Authorization\AddAuthorizationBuilderFixer.cs (1)
29var root = await context.Document.GetSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
Dependencies\AddPackageFixer.cs (1)
31var root = await context.Document.GetSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
Dependencies\ExtensionMethodsCompletionProvider.cs (1)
34var root = await context.Document.GetSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
DetectMismatchedParameterOptionalityFixer.cs (1)
39var root = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
Http\HeaderDictionaryAddFixer.cs (1)
30var root = await context.Document.GetSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
Http\HeaderDictionaryIndexerFixer.cs (1)
44var root = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
Kestrel\ListenOnIPv6AnyFixer.cs (1)
34var root = await context.Document.GetSyntaxRootAsync(cancellationToken);
PublicPartialProgramClassFixer.cs (1)
32var root = await context.Document.GetSyntaxRootAsync(cancellationToken);
RouteParameterUnusedParameterFixer.cs (1)
31var root = await context.Document.GetSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
WebApplicationBuilderFixer.cs (1)
31var root = await context.Document.GetSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
Microsoft.AspNetCore.Components.Analyzers (1)
ComponentParametersShouldBePublicCodeFixProvider.cs (1)
33var root = await context.Document.GetSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
Microsoft.AspNetCore.Components.SdkAnalyzers (1)
ComponentParametersShouldBePublicCodeFixProvider.cs (1)
33var root = await context.Document.GetSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
Microsoft.AspNetCore.Mvc.Api.Analyzers (3)
AddResponseTypeAttributeCodeFixAction.cs (2)
110var root = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 129var root = await _document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
ApiActionsDoNotRequireExplicitModelValidationCodeFixProvider.cs (1)
54var rootNode = await _document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Analyzers (5)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (1)
79root = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxEditorExtensions.cs (2)
173var currentRoot = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 188currentRoot = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.cs (1)
84var root = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.State.cs (1)
104var syntaxRoot = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CodeStyle.Fixes (6)
src\roslyn\src\Analyzers\Core\CodeFixes\MakeMethodSynchronous\AbstractMakeMethodSynchronousCodeFixProvider.cs (1)
83var newRoot = await newDocument.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (1)
79root = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxEditorExtensions.cs (2)
173var currentRoot = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 188currentRoot = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.cs (1)
84var root = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.State.cs (1)
104var syntaxRoot = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.Features (22)
CodeRefactorings\InlineTemporary\InlineTemporaryCodeRefactoringProvider.cs (4)
48var root = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 185var root = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 322var root = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 331var root = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
CodeRefactorings\SyncNamespace\CSharpChangeNamespaceService.cs (1)
346var syntaxRoot = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
CodeRefactorings\SyncNamespace\CSharpSyncNamespaceCodeRefactoringProvider.cs (1)
30if (await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false) is not CompilationUnitSyntax compilationUnit)
CodeRefactorings\UseExplicitOrImplicitType\AbstractUseTypeCodeRefactoringProvider.cs (1)
120var root = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
Debugging\CSharpProximityExpressionsService.cs (1)
56var root = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
DecompiledSource\CSharpDecompiledSourceService.cs (1)
100var syntaxRoot = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
EncapsulateField\CSharpEncapsulateFieldService.cs (4)
38var root = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 88root = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 112root = await withField.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 126var root = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
ExtractMethod\CSharpMethodExtractor.cs (2)
200var root = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 203var newRoot = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (1)
1125var oldRoot = await originalDocument.Document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.ExpressionCodeGenerator.cs (1)
158var updatedRoot = await updatedDocument.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
ExtractMethod\CSharpSelectionResult.cs (1)
37var root = await document.Document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
GenerateType\CSharpGenerateTypeService.cs (1)
724root = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
MetadataAsSource\CSharpMetadataAsSourceService.cs (2)
45var oldRoot = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 63var syntaxRoot = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
Organizing\CSharpOrganizingService.cs (1)
27var root = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.NetAnalyzers (2)
Microsoft.NetCore.Analyzers\InteropServices\CSharpDynamicInterfaceCastableImplementation.Fixer.cs (1)
172var root = (await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false))!;
Microsoft.NetCore.Analyzers\Usage\CSharpMissingShebangInFileBasedProgram.Fixer.cs (1)
20var root = await context.Document.GetSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Features (30)
AddImport\CodeActions\InstallPackageAndAddImportCodeAction.cs (1)
65var newRoot = await newDocument.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
AddImport\References\Reference.cs (1)
94var newRoot = await newDocument.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
BraceMatching\AbstractBraceMatcher.cs (1)
64var root = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
BracePairs\IBracePairsService.cs (1)
49var root = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
ChangeSignature\AbstractChangeSignatureService.cs (1)
381var root = await doc.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.GlobalSuppressMessageFixAllCodeAction.cs (1)
132var suppressionsRoot = await suppressionsDoc.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.LocalSuppressMessageCodeAction.cs (1)
32var root = await _document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.RemoveSuppressionCodeAction.BatchFixer.cs (1)
142var root = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
CodeLens\CodeLensReferencesService.cs (1)
120var token = (await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false)).FindToken(position, true);
CodeRefactorings\ExtractMethod\AbstractExtractMethodCodeRefactoringProvider.cs (1)
131var root = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
ConvertToInterpolatedString\ConvertRegularStringToInterpolatedStringRefactoringProvider.cs (1)
34var root = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingIncrementalAnalyzerProcessor.cs (1)
185var root = await GetOrDefaultAsync(document, (d, c) => d.GetSyntaxRootAsync(c), cancellationToken).ConfigureAwait(false);
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingSemanticChangeProcessor.cs (1)
106!changedMember.TryResolve(await document.GetSyntaxRootAsync(CancellationToken).ConfigureAwait(false), out SyntaxNode? declarationNode))
GenerateType\AbstractGenerateTypeService.Editor.cs (3)
324var newRoot = await codeGenResult.GetSyntaxRootAsync(_cancellationToken).ConfigureAwait(false); 409var root = await generateTypeOptionsResult.ExistingDocument.GetSyntaxRootAsync(_cancellationToken).ConfigureAwait(false); 445var newRoot = await codeGenResult.GetSyntaxRootAsync(_cancellationToken).ConfigureAwait(false);
PullMemberUp\MembersPuller.cs (1)
390await destinationDocument.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false),
RemoveUnusedVariable\AbstractRemoveUnusedVariableCodeFixProvider.cs (2)
44var root = await document.GetSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 62var root = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
SimplifyTypeNames\AbstractSimplifyTypeNamesCodeFixProvider.cs (2)
76var root = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 95var root = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
SolutionCrawler\AbstractDocumentDifferenceService.cs (2)
66oldRoot = await oldDocument.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 67newRoot = await newDocument.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
SpellCheck\AbstractSpellCheckCodeFixProvider.cs (2)
46var syntaxRoot = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 222var root = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
SplitOrMergeIfStatements\AbstractMergeIfStatementsCodeRefactoringProvider.cs (2)
38var root = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 68var root = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
SplitOrMergeIfStatements\AbstractSplitIfStatementCodeRefactoringProvider.cs (2)
35var root = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 64var root = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\MakeMethodSynchronous\AbstractMakeMethodSynchronousCodeFixProvider.cs (1)
83var newRoot = await newDocument.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (5)
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\RemoveUnnecessaryByVal\VisualBasicRemoveUnnecessaryByValCodeFixProvider.vb (1)
36Dim root = Await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(False)
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\RemoveUnnecessaryCast\VisualBasicRemoveUnnecessaryCastCodeFixProvider.vb (2)
96Dim root = Await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(False) 118Dim root = Await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(False)
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\SimplifyObjectCreation\VisualBasicSimplifyObjectCreationCodeFixProvider.vb (1)
35Dim root = Await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(False)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicRemoveUnnecessaryImportsService.vb (1)
40Dim root = Await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(False)
Microsoft.CodeAnalysis.VisualBasic.Features (42)
AddImport\VisualBasicAddImportFeatureService.vb (1)
301Dim root = Await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(False)
BraceMatching\InterpolatedStringBraceMatcher.vb (1)
29Dim root = Await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(False)
BraceMatching\StringLiteralBraceMatcher.vb (1)
25Dim root = Await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(False)
ChangeSignature\VisualBasicChangeSignatureService.vb (1)
688Dim root = Await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(False)
CodeFixes\CorrectNextControlVariable\CorrectNextControlVariableCodeFixProvider.CodeAction.vb (1)
30Dim root = Await _document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(False)
CodeFixes\CorrectNextControlVariable\CorrectNextControlVariableCodeFixProvider.vb (1)
37Dim root = Await context.Document.GetSyntaxRootAsync(context.CancellationToken).ConfigureAwait(False)
CodeFixes\GenerateEndConstruct\GenerateEndConstructCodeFixProvider.vb (2)
65Dim root = Await context.Document.GetSyntaxRootAsync(context.CancellationToken).ConfigureAwait(False) 255Dim tree = Await updatedDocument.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(False)
CodeFixes\GenerateEvent\GenerateEventCodeFixProvider.vb (1)
45Dim root = Await context.Document.GetSyntaxRootAsync(context.CancellationToken).ConfigureAwait(False)
CodeFixes\IncorrectExitContinue\IncorrectExitContinueCodeFixProvider.AddKeywordCodeAction.vb (1)
41Dim root = Await _document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(False)
CodeFixes\IncorrectExitContinue\IncorrectExitContinueCodeFixProvider.ReplaceKeywordCodeAction.vb (1)
40Dim root = Await _document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(False)
CodeFixes\IncorrectExitContinue\IncorrectExitContinueCodeFixProvider.ReplaceTokenKeywordCodeAction.vb (1)
33Dim root = Await _document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(False)
CodeFixes\IncorrectExitContinue\IncorrectExitContinueCodeFixProvider.vb (1)
62Dim root = Await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(False)
CodeFixes\IncorrectFunctionReturnType\IncorrectFunctionReturnTypeCodeFixProvider.vb (2)
46Dim root = Await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(False) 81Dim root = Await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(False)
CodeFixes\MoveToTopOfFile\MoveToTopOfFileCodeFixProvider.vb (1)
48Dim root = Await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(False)
CodeFixes\OverloadBase\OverloadBaseCodeFixProvider.AddKeywordAction.vb (1)
42Dim root = Await _document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(False)
CodeFixes\OverloadBase\OverloadBaseCodeFixProvider.vb (1)
35Dim root = Await context.Document.GetSyntaxRootAsync(context.CancellationToken).ConfigureAwait(False)
CodeRefactorings\InlineTemporary\VisualBasicInlineTemporaryCodeRefactoringProvider.vb (3)
225Dim root = Await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(False) 235Dim root = Await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(False) 431Dim syntaxRootAfterInline = Await inlinedDocument.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(False)
CodeRefactorings\RemoveStatementCodeAction.vb (1)
30Dim root = Await _document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(False)
Debugging\DataTipInfoGetter.vb (1)
24Dim root = Await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(False)
Debugging\ProximityExpressionsGetter.vb (1)
62Dim root = Await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(False)
EncapsulateField\VisualBasicEncapsulateFieldService.vb (2)
32Dim root = Await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(False) 72Dim root = Await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(False)
GenerateType\VisualBasicGenerateTypeService.vb (1)
626root = Await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(False)
MetadataAsSource\VisualBasicMetadataAsSourceService.vb (2)
40Dim oldRoot = Await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(False) 59Dim syntaxRoot = Await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(False)
Organizing\VisualBasicOrganizerService.vb (1)
23Dim root = DirectCast(Await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(False), SyntaxNode)
SignatureHelp\AbstractIntrinsicOperatorSignatureHelpProvider.vb (1)
33Dim root = Await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(False)
SignatureHelp\AttributeSignatureHelpProvider.vb (1)
52Dim root = Await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(False)
SignatureHelp\CollectionInitializerSignatureHelpProvider.vb (1)
46Dim root = Await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(False)
SignatureHelp\FunctionAggregationSignatureHelpProvider.vb (1)
55Dim root = Await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(False)
SignatureHelp\GenericNameSignatureHelpProvider.vb (1)
61Dim root = Await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(False)
SignatureHelp\InvocationExpressionSignatureHelpProvider.vb (1)
63Dim root = Await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(False)
SignatureHelp\ObjectCreationExpressionSignatureHelpProvider.vb (1)
62Dim root = Await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(False)
SignatureHelp\RaiseEventStatementSignatureHelpProvider.vb (1)
68Dim root = Await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(False)
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\RemoveUnnecessaryByVal\VisualBasicRemoveUnnecessaryByValCodeFixProvider.vb (1)
36Dim root = Await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(False)
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\RemoveUnnecessaryCast\VisualBasicRemoveUnnecessaryCastCodeFixProvider.vb (2)
96Dim root = Await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(False) 118Dim root = Await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(False)
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\SimplifyObjectCreation\VisualBasicSimplifyObjectCreationCodeFixProvider.vb (1)
35Dim root = Await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(False)
Microsoft.CodeAnalysis.VisualBasic.NetAnalyzers (2)
Microsoft.NetCore.Analyzers\Performance\BasicPreferDictionaryTryMethodsOverContainsKeyGuardFixer.vb (1)
25Dim root = Await document.GetSyntaxRootAsync(context.CancellationToken).ConfigureAwait(False)
Microsoft.NetCore.Analyzers\Runtime\BasicPreferDictionaryContainsMethods.Fixer.vb (1)
18Dim root = Await doc.GetSyntaxRootAsync().ConfigureAwait(False)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (5)
CodeCleanup\Providers\AbstractTokensCodeCleanupProvider.vb (1)
23Dim root = Await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(False)
CodeCleanup\Providers\NormalizeModifiersOrOperatorsCodeCleanupProvider.vb (1)
36Dim root = Await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(False)
CodeCleanup\Providers\RemoveUnnecessaryLineContinuationCodeCleanupProvider.vb (1)
39Dim root = Await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(False)
OrganizeImports\VisualBasicOrganizeImportsService.vb (1)
21Dim root = Await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(False)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicRemoveUnnecessaryImportsService.vb (1)
40Dim root = Await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(False)
Microsoft.CodeAnalysis.Workspaces (11)
CaseCorrection\AbstractCaseCorrectionService.cs (1)
29var root = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
CaseCorrection\CaseCorrector.cs (2)
28var root = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 43var root = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
Classification\AbstractClassificationService.cs (1)
203var root = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (1)
79root = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxEditorExtensions.cs (2)
173var currentRoot = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 188currentRoot = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.cs (1)
84var root = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.State.cs (1)
104var syntaxRoot = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
Workspace\Solution\Document.cs (2)
138/// <see cref="GetSyntaxTreeAsync"/> and <see cref="GetSyntaxRootAsync"/> methods. 209/// In almost all cases, you should call <see cref="GetSyntaxRootAsync"/> to fetch the root node, which will parse
Microsoft.Interop.ComInterfaceGenerator (2)
Analyzers\AddMarshalAsToElementFixer.cs (1)
26SyntaxNode? root = await doc.GetSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
src\runtime\src\libraries\System.Runtime.InteropServices\gen\Common\ConvertToSourceGeneratedInteropFixer.cs (1)
120SyntaxNode? root = await doc.GetSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
Microsoft.Interop.LibraryImportGenerator (4)
Analyzers\AddDisableRuntimeMarshallingAttributeFixer.cs (1)
60var syntaxRoot = await assemblyInfo.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
Analyzers\ConvertToLibraryImportFixer.cs (1)
289SyntaxNode root = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
Analyzers\CustomMarshallerAttributeFixer.cs (1)
112SyntaxNode? root = await doc.GetSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
src\runtime\src\libraries\System.Runtime.InteropServices\gen\Common\ConvertToSourceGeneratedInteropFixer.cs (1)
120SyntaxNode? root = await doc.GetSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
Microsoft.ML.InternalCodeAnalyzer (2)
ContractsCheckNameofFixProvider.cs (1)
39var root = await context.Document.GetSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
NameFixProvider.cs (1)
59var root = await context.Document.GetSyntaxRootAsync(context.CancellationToken);
Roslyn.Diagnostics.Analyzers (10)
ExportedPartsShouldHaveImportingConstructorCodeFixProvider.cs (3)
81var root = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 143var root = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 160var root = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
PartsExportedWithMEFv2MustBeMarkedAsShared.Fixer.cs (1)
35var root = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (1)
79root = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxEditorExtensions.cs (2)
173var currentRoot = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 188currentRoot = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.cs (1)
84var root = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.State.cs (1)
104var syntaxRoot = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
TestExportsShouldNotBeDiscoverableCodeFixProvider.cs (1)
52var root = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
Roslyn.Diagnostics.CSharp.Analyzers (2)
CSharpAvoidOptSuffixForNullableEnableCodeCodeFixProvider.cs (1)
37var root = await context.Document.GetSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
PreferNullLiteralCodeFixProvider.cs (1)
50var root = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
Roslyn.Diagnostics.VisualBasic.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicRemoveUnnecessaryImportsService.vb (1)
40Dim root = Await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(False)
System.Text.RegularExpressions.Generator (1)
UpgradeToGeneratedRegexCodeFixer.cs (1)
47if (await context.Document.GetSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false) is not SyntaxNode root ||
System.Windows.Forms.Analyzers.CodeFixes.CSharp (2)
System\Windows\Forms\CSharp\CodeFixes\AddDesignerSerializationVisibility\AddDesignerSerializationVisibilityCodeFixProvider.cs (2)
35.GetSyntaxRootAsync(context.CancellationToken) 78SyntaxNode root = (await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false))!;