442 references to GetRequiredSyntaxRootAsync
IdeBenchmarks (1)
InheritanceMargin\BenchmarksHelpers.cs (1)
27
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.EditorFeatures (4)
EventHookup\EventHookupCommandHandler_TabKeyCommand.cs (4)
217
var newRoot = await formattedDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
226
var finalRoot = await finalDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
246
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
268
root = await documentWithNameAdded.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (6)
Diagnostics\DiagnosticAnalyzerDriver\DiagnosticAnalyzerDriverTests.cs (1)
784
var root = await document.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
Formatting\FormattingEngineTests.cs (1)
365
var syntaxRoot = await document.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
LineSeparators\LineSeparatorTests.cs (1)
501
var root = await document.
GetRequiredSyntaxRootAsync
(default);
MoveToNamespace\MoveToNamespaceTests.cs (1)
1438
var changedRoot = await changedDocument.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
StringIndentation\StringIndentationTests.cs (1)
31
var root = await document.
GetRequiredSyntaxRootAsync
(default);
Structure\CommentStructureTests.cs (1)
35
var root = await document.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
Microsoft.CodeAnalysis.CSharp.Features (100)
BraceMatching\BlockCommentBraceMatcher.cs (1)
23
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
BraceMatching\StringLiteralBraceMatcher.cs (1)
28
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ChangeSignature\CSharpChangeSignatureService.cs (2)
119
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
873
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
CodeLens\CSharpCodeLensMemberFinder.cs (1)
29
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
CodeRefactorings\ConvertLocalFunctionToMethod\CSharpConvertLocalFunctionToMethodCodeRefactoringProvider.cs (2)
74
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
228
root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
CodeRefactorings\EnableNullable\EnableNullableCodeRefactoringProvider.cs (2)
46
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
98
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
CodeRefactorings\UseRecursivePatterns\UseRecursivePatternsCodeRefactoringProvider.cs (3)
55
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
609
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
620
var updatedRoot = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\ExplicitInterfaceMemberCompletionProvider.cs (1)
49
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\OperatorsAndIndexer\UnnamedSymbolCompletionProvider.cs (2)
106
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
185
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\OperatorsAndIndexer\UnnamedSymbolCompletionProvider_Conversions.cs (1)
81
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\OperatorsAndIndexer\UnnamedSymbolCompletionProvider_Operators.cs (1)
138
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\SymbolCompletionProvider.cs (1)
183
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ConvertAutoPropertyToFullProperty\CSharpConvertAutoPropertyToFullPropertyCodeRefactoringProvider.cs (1)
164
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)
42
var root = (CompilationUnitSyntax)await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
94
var root = (CompilationUnitSyntax)await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
104
var newRoot = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ConvertProgram\ConvertProgramTransform_ProgramMain.cs (2)
31
var root = (CompilationUnitSyntax)await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
81
var root = (CompilationUnitSyntax)await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ConvertProgram\ConvertProgramTransform_TopLevelStatements.cs (2)
37
var root = (CompilationUnitSyntax)await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
63
var root = (CompilationUnitSyntax)await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ConvertProgram\ConvertToProgramMainCodeFixProvider.cs (1)
50
var fixedRoot = await fixedDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ConvertProgram\ConvertToProgramMainCodeRefactoringProvider.cs (1)
41
var root = (CompilationUnitSyntax)await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ConvertProgram\ConvertToTopLevelStatementsCodeFixProvider.cs (1)
54
var newRoot = await newDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ConvertToExtension\ConvertToExtensionCodeRefactoringProvider.cs (1)
202
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ConvertToExtension\ConvertToExtensionFixAllProvider.cs (1)
38
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ConvertToRawString\ConvertStringToRawStringCodeRefactoringProvider.cs (2)
74
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
135
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Copilot\CSharpCopilotCodeFixProvider.cs (1)
76
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Debugging\DataTipInfoGetter.cs (1)
27
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
DecompiledSource\CSharpDecompiledSourceService.cs (2)
57
var node = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
81
var oldRoot = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
DocumentHighlighting\CSharpDocumentHighlightsService.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)
33
var root = (CompilationUnitSyntax)await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ImplementInterface\AbstractChangeImplementationCodeRefactoringProvider.cs (1)
133
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ImplementInterface\CSharpImplementExplicitlyCodeRefactoringProvider.cs (1)
67
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
InitializeParameter\CSharpInitializeMemberFromPrimaryConstructorParameterCodeRefactoringProvider_Update.cs (2)
37
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
46
var currentRoot = await currentDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ReverseForStatement\CSharpReverseForStatementCodeRefactoringProvider.cs (1)
269
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
SignatureHelp\AttributeSignatureHelpProvider.cs (1)
74
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
SignatureHelp\ConstructorInitializerSignatureHelpProvider.cs (1)
43
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
SignatureHelp\ElementAccessExpressionSignatureHelpProvider.cs (1)
52
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
SignatureHelp\GenericNameSignatureHelpProvider.cs (1)
78
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
SignatureHelp\InitializerExpressionSignatureHelpProvider.cs (1)
57
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
SignatureHelp\InvocationExpressionSignatureHelpProvider.cs (1)
39
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
SignatureHelp\ObjectCreationExpressionSignatureHelpProvider.cs (2)
36
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
63
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
SignatureHelp\PrimaryConstructorBaseTypeSignatureHelpProvider.cs (1)
71
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
SignatureHelp\TupleConstructionSignatureHelpProvider.cs (1)
108
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Snippets\AbstractCSharpTypeSnippetProvider.cs (1)
98
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Snippets\CSharpIntMainSnippetProvider.cs (1)
52
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Snippets\CSharpSnippetHelpers.cs (1)
49
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\AddInheritdoc\AddInheritdocCodeFixProvider.cs (1)
40
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\AssignOutParameters\AbstractAssignOutParametersCodeFixProvider.cs (2)
32
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
97
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\ConditionalExpressionInStringInterpolation\CSharpAddParenthesesAroundConditionalExpressionInInterpolatedStringCodeFixProvider.cs (3)
35
var root = await context.Document.
GetRequiredSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(false);
66
var syntaxRoot = await documentWithOpenParenthesis.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
117
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\ConvertNamespace\ConvertNamespaceCodeFixProvider.cs (1)
63
await converted.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false));
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\CSharpConvertToRecordCodeFixProvider.cs (1)
36
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\GenerateMethod\GenerateDeconstructMethodCodeFixProvider.cs (1)
41
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\HideBase\HideBaseCodeFixProvider.AddNewKeywordAction.cs (1)
25
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\HideBase\HideBaseCodeFixProvider.cs (1)
45
var root = await context.Document.
GetRequiredSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeFixHelper.cs (2)
32
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
45
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\PassInCapturedVariablesAsArgumentsCodeFixProvider.cs (1)
68
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\MakeMemberRequired\CSharpMakeMemberRequiredCodeFixProvider.cs (1)
37
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\MakeRefStruct\MakeRefStructCodeFixProvider.cs (2)
41
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
68
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\MakeStatementAsynchronous\CSharpMakeStatementAsynchronousCodeFixProvider.cs (1)
35
var root = await context.Document.
GetRequiredSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\MisplacedUsingDirectives\MisplacedUsingDirectivesCodeFixProvider.cs (2)
62
var syntaxRoot = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
91
var compilationUnit = (CompilationUnitSyntax)await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\NewLines\ArrowExpressionClausePlacement\ArrowExpressionClausePlacementCodeFixProvider.cs (1)
47
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\NewLines\ConditionalExpressionPlacement\ConditionalExpressionPlacementCodeFixProvider.cs (1)
47
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\NewLines\ConsecutiveBracePlacement\ConsecutiveBracePlacementCodeFixProvider.cs (1)
50
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\NewLines\ConstructorInitializerPlacement\ConstructorInitializerPlacementCodeFixProvider.cs (1)
47
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\NewLines\EmbeddedStatementPlacement\EmbeddedStatementPlacementCodeFixProvider.cs (1)
48
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\RemoveConfusingSuppression\CSharpRemoveConfusingSuppressionCodeFixProvider.cs (1)
61
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\RemoveInKeyword\RemoveInKeywordCodeFixProvider.cs (2)
35
var root = await context.Document.
GetRequiredSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(false);
59
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\RemoveNewModifier\RemoveNewModifierCodeFixProvider.cs (2)
33
var root = await context.Document.
GetRequiredSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(false);
62
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\ReplaceDefaultLiteral\CSharpReplaceDefaultLiteralCodeFixProvider.cs (2)
40
var syntaxRoot = await context.Document.
GetRequiredSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(false);
67
var syntaxRoot = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForBuilderCodeFixProvider.cs (2)
58
var root = await newDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
113
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\UseExplicitTypeForConst\UseExplicitTypeForConstCodeFixProvider.cs (2)
39
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
64
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
StringIndentation\CSharpStringIndentationService.cs (1)
32
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
UseExpressionBody\UseExpressionBodyCodeRefactoringProvider.cs (3)
63
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
195
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
249
currentRoot = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
UseExpressionBodyForLambda\UseExpressionBodyForLambdaCodeRefactoringProvider.cs (1)
169
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
LanguageServices\FixAllSpanMappingService\CSharpFixAllSpanMappingService.cs (1)
31
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
OrganizeImports\CSharpOrganizeImportsService.cs (1)
22
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (2)
431
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
470
var generatedRoot = await generatedDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpRemoveUnnecessaryImportsService.cs (1)
52
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (2)
OrganizeImports\OrganizeUsingsTests.cs (2)
41
var newRoot = await newDocument.
GetRequiredSyntaxRootAsync
(default);
91
var newRoot = await newDocument.
GetRequiredSyntaxRootAsync
(default);
Microsoft.CodeAnalysis.EditorFeatures (7)
Classification\Semantic\AbstractSemanticOrEmbeddedClassificationViewTaggerProvider.cs (1)
175
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
CodeActions\CodeActionEditHandlerService.cs (2)
325
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
349
var latestRoot = await latestDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
InlineRename\InlineRenameSession.cs (1)
879
? (documentId, newDocument.Name, await newDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false), newText: null)
KeywordHighlighting\HighlighterViewTaggerProvider.cs (1)
102
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Navigation\AbstractDefinitionLocationService.cs (1)
192
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Preview\AbstractPreviewFactoryService.cs (1)
442
var newRoot = await newDocument.
GetRequiredSyntaxRootAsync
(cancellationToken);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
Classification\AbstractClassifierTests.cs (1)
274
var root = await document.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
Completion\AbstractArgumentProviderTests`1.cs (1)
64
var root = await document.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (8)
CodeFixes\CodeFixServiceTests.cs (2)
1020
var root = await sourceDocument.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
1055
root = await sourceDocument.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
CodeGeneration\AbstractCodeGenerationTests.cs (2)
38
var root = document.
GetRequiredSyntaxRootAsync
(default).AsTask().Result;
45
var rootNode = simplifiedDocument.
GetRequiredSyntaxRootAsync
(default).AsTask().Result;
Diagnostics\DiagnosticAnalyzerServiceTests.cs (1)
684
var root = await document.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
InheritanceMargin\InheritanceMarginTests.cs (1)
105
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
MetadataAsSource\AbstractMetadataAsSourceTests.TestContext.cs (1)
317
var syntaxRoot = await document.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
StackTraceExplorer\StackTraceExplorerTests.cs (1)
47
var root = await doc.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
Microsoft.CodeAnalysis.ExternalAccess.AspNetCore (1)
AddPackage\AspNetCoreAddPackageCodeAction.cs (1)
78
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.ExternalAccess.Copilot (2)
Analyzer\CopilotUtilities.cs (1)
35
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Internal\Analyzer\CSharp\CSharpCopilotCodeAnalysisService.cs (1)
125
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Features (196)
AddDebuggerDisplay\AbstractAddDebuggerDisplayCodeRefactoringProvider.cs (1)
115
var syntaxRoot = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
AddFileBanner\AbstractAddFileBannerCodeRefactoringProvider.cs (1)
158
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
AddFileBanner\AbstractAddFileBannerNewDocumentFormattingProvider.cs (2)
24
var rootToFormat = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
45
var hintSyntaxRoot = await hintDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
AddFileBanner\AddFileBannerHelpers.cs (2)
27
var fromRoot = await sourceDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
33
var destinationRoot = await destinationDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
AddImport\AbstractAddImportFeatureService.cs (1)
93
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
BraceMatching\AbstractDirectiveTriviaBraceMatcher.cs (1)
31
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
BraceMatching\AbstractEmbeddedLanguageBraceMatcher.cs (1)
34
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ChangeSignature\AbstractChangeSignatureService.cs (1)
430
callback((formattedDoc.Id, await formattedDoc.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false)));
CodeRefactorings\AddAwait\AbstractAddAwaitCodeRefactoringProvider.cs (1)
37
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
CodeRefactorings\AddMissingImports\AbstractAddMissingImportsFeatureService.cs (1)
152
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
CodeRefactorings\MoveType\AbstractMoveTypeService.MoveTypeEditor.cs (3)
90
documentWithMovedTypeId, await documentWithMovedType.
GetRequiredSyntaxRootAsync
(CancellationToken).ConfigureAwait(false));
93
var rootWithMovedType = await documentWithMovedType.
GetRequiredSyntaxRootAsync
(CancellationToken).ConfigureAwait(false);
106
sourceDocumentId, await sourceDocument.
GetRequiredSyntaxRootAsync
(CancellationToken).ConfigureAwait(false));
CodeRefactorings\SyncNamespace\AbstractChangeNamespaceService.cs (10)
132
var syntaxRoot = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
157
syntaxRoot = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
173
var syntaxRoot = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
436
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
498
callback((result.Id, await result.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false)));
594
containersToAddImports = [await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false)];
615
var root = await documentWithAddedImports.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
794
root = await fixedDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
828
callback((result.Id, await result.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false)));
883
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 (2)
176
var root = await memberContainingDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
227
root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Completion\Providers\AbstractRecommendationServiceBasedCompletionProvider.cs (1)
276
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ConvertAnonymousType\AbstractConvertAnonymousTypeToClassCodeRefactoringProvider.cs (1)
87
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ConvertAnonymousType\AbstractConvertAnonymousTypeToTupleCodeRefactoringProvider.cs (2)
33
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
109
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ConvertAutoPropertyToFullProperty\AbstractConvertAutoPropertyToFullPropertyCodeRefactoringProvider.cs (2)
37
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
93
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)
36
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ConvertLinq\AbstractConvertLinqQueryToForEachProvider.cs (1)
34
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ConvertNumericLiteral\AbstractConvertNumericLiteralCodeRefactoringProvider.cs (1)
59
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ConvertToInterpolatedString\AbstractConvertConcatenationToInterpolatedStringRefactoringProvider.cs (1)
120
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ConvertToInterpolatedString\AbstractConvertPlaceholderToInterpolatedStringRefactoringProvider.cs (2)
263
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
301
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (5)
188
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
255
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
272
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
365
var syntaxRoot = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
557
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
DesignerAttribute\DesignerAttributeDiscoveryService.cs (1)
295
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Diagnostics\Service\DocumentAnalysisExecutor.cs (1)
271
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Diagnostics\Service\EngineV2\DiagnosticIncrementalAnalyzer.IncrementalMemberEditAnalyzer.cs (1)
63
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Diagnostics\Service\EngineV2\DiagnosticIncrementalAnalyzer.IncrementalMemberEditAnalyzer_MemberSpans.cs (1)
49
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);
EncapsulateField\AbstractEncapsulateFieldService.cs (1)
206
var newRoot = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ExtractClass\ExtractClassWithDialogCodeAction.cs (3)
165
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
215
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
241
var currentRoot = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ExtractInterface\AbstractExtractInterfaceService.cs (1)
329
var currentRoot = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ExtractMethod\MethodExtractor.cs (3)
145
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
152
var simplifiedRoot = await simplifiedDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
160
var formattedRoot = await formattedDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
FindUsages\FindUsagesHelpers.cs (1)
46
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
FullyQualify\AbstractFullyQualifyService.cs (1)
67
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
GenerateComparisonOperators\GenerateComparisonOperatorsCodeRefactoringProvider.cs (1)
48
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
GenerateConstructors\AbstractGenerateConstructorsCodeRefactoringProvider.cs (2)
198
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
295
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
GenerateEqualsAndGetHashCodeFromMembers\GenerateEqualsAndGetHashCodeAction.cs (1)
117
var oldRoot = await _document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
GenerateEqualsAndGetHashCodeFromMembers\GenerateEqualsAndGetHashCodeFromMembersCodeRefactoringProvider.cs (2)
76
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
186
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
GenerateOverrides\GenerateOverridesCodeRefactoringProvider.cs (1)
36
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
InheritanceMargin\AbstractInheritanceMarginService_Helpers.cs (2)
81
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
166
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
InitializeParameter\AbstractAddParameterCheckCodeRefactoringProvider.cs (4)
185
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
606
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
638
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
920
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
InitializeParameter\AbstractInitializeMemberFromParameterCodeRefactoringProviderMemberCreation.cs (3)
371
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
387
var currentRoot = await currentDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
481
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
InlineHints\AbstractInlineParameterNameHintsService.cs (1)
58
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
InlineHints\AbstractInlineTypeHintsService.cs (1)
51
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
InlineTemporary\AbstractInlineTemporaryCodeRefactoringProvider.cs (1)
44
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
IntroduceParameter\IntroduceParameterDocumentRewriter.cs (2)
223
var root = await currentDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
484
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
IntroduceUsingStatement\AbstractIntroduceUsingStatementCodeRefactoringProvider.cs (3)
152
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
223
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
248
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
IntroduceVariable\AbstractIntroduceLocalForExpressionCodeRefactoringProvider.cs (1)
102
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)
293
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
InvertLogical\AbstractInvertLogicalCodeRefactoringProvider.cs (2)
103
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
116
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
MetadataAsSource\AbstractMetadataAsSourceService.cs (1)
54
var node = await docWithAssemblyInfo.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
MoveStaticMembers\MoveStaticMembersWithDialogCodeAction.cs (7)
51
var root = await _document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
113
var destRoot = await newDoc.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
125
root = await sourceDoc.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
171
var newTypeRoot = await newTypeDoc.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
176
var oldSourceRoot = await oldSolution.GetRequiredDocument(sourceDocId).
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
200
var root = await sourceDoc.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
208
newTypeRoot = await newTypeDoc.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
MoveToNamespace\AbstractMoveToNamespaceService.cs (3)
68
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
129
container = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
262
var syntaxRoot = await mergedDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
NameTupleElement\AbstractNameTupleElementCodeRefactoringProvider.cs (1)
78
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
NavigateTo\AbstractNavigateToSearchService.NormalSearch.cs (1)
108
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
OrganizeImports\OrganizeImportsCodeRefactoringProvider.cs (3)
45
var oldRoot = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
49
var newRoot = await newDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
70
var oldRoot = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
RelatedDocuments\AbstractRelatedDocumentsService.cs (1)
75
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ReplaceConditionalWithStatements\AbstractReplaceConditionalWithStatementsCodeRefactoringProvider.cs (2)
201
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
226
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ReplaceDocCommentTextWithTag\AbstractReplaceDocCommentTextWithTagCodeRefactoringProvider.cs (1)
27
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ReplaceMethodWithProperty\ReplaceMethodWithPropertyCodeRefactoringProvider.cs (2)
218
var root = await originalDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
362
var root = await updatedDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ReplacePropertyWithMethods\ReplacePropertyWithMethodsCodeRefactoringProvider.cs (2)
218
var root = await originalDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
357
var root = await updatedDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Shared\Extensions\DocumentExtensions.cs (2)
23
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
47
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Shared\Utilities\ExtractTypeHelpers.cs (2)
31
var originalRoot = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
99
var syntaxRoot = await newTypeDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
SimplifyThisOrMe\AbstractSimplifyThisOrMeCodeFixProvider.cs (1)
46
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Snippets\SnippetFunctionService.cs (2)
145
var syntaxRoot = await documentWithFullyQualifiedTypeName.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
157
var simplifiedRoot = await simplifiedDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Snippets\SnippetProviders\AbstractConsoleSnippetProvider.cs (1)
76
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Snippets\SnippetProviders\AbstractSnippetProvider.cs (4)
93
var reformattedRoot = await documentWithIndentation.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
169
var root = await snippetDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
211
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
229
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
SpellCheck\AbstractSpellCheckSpanService.cs (1)
25
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\AddAnonymousTypeMemberName\AbstractAddAnonymousTypeMemberNameCodeFixProvider.cs (1)
56
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\AddExplicitCast\AbstractAddExplicitCastCodeFixProvider.cs (2)
73
var root = await document.
GetRequiredSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(false);
219
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\AddObsoleteAttribute\AbstractAddObsoleteAttributeCodeFixProvider.cs (2)
43
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
79
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\AddParameter\AbstractAddParameterCodeFixProvider.cs (1)
68
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\AddParameter\AddParameterService.cs (2)
113
var syntaxRoot = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
183
var rewrittenSyntaxRoot = await rewrittenDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\AliasAmbiguousType\AbstractAliasAmbiguousTypeCodeFixProvider.cs (1)
34
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\ConflictMarkerResolution\AbstractConflictMarkerCodeFixProvider.cs (2)
74
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
406
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\ConvertToAsync\AbstractConvertToAsyncCodeFixProvider.cs (1)
23
var root = await context.Document.
GetRequiredSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\DocumentationComments\AbstractAddDocCommentNodesCodeFixProvider.cs (2)
31
var root = await context.Document.
GetRequiredSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(false);
60
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\DocumentationComments\AbstractRemoveDocCommentNodeCodeFixProvider.cs (2)
35
var root = await context.Document.
GetRequiredSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(false);
61
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\Formatting\FormattingCodeFixProvider.cs (1)
72
var root = await context.Document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\GenerateDefaultConstructors\AbstractGenerateDefaultConstructorCodeFixProvider.cs (1)
28
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\GenerateMember\AbstractGenerateMemberCodeFixProvider.cs (1)
41
var root = await document.
GetRequiredSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\ImplementAbstractClass\AbstractImplementAbstractClassCodeFixProvider.cs (1)
28
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\ImplementAbstractClass\ImplementAbstractClassData.cs (1)
114
var root = await _document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\ImplementInterface\AbstractImplementInterfaceCodeFixProvider.cs (1)
36
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator_DisposePattern.cs (2)
60
var rootWithCoreMembers = await docWithCoreMembers.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
91
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\Iterator\AbstractIteratorCodeFixProvider.cs (1)
21
var root = await context.Document.
GetRequiredSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\MakeFieldReadonly\AbstractMakeFieldReadonlyCodeFixProvider.cs (1)
44
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\MakeMethodAsynchronous\AbstractMakeMethodAsynchronousCodeFixProvider.cs (2)
172
var newRoot = await newDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
193
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\MakeMethodSynchronous\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);
src\Analyzers\Core\CodeFixes\NamingStyle\NamingStyleCodeFixProvider.cs (1)
57
var root = await document.
GetRequiredSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\NewLines\ConsecutiveStatementPlacement\ConsecutiveStatementPlacementCodeFixProvider.cs (1)
46
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\NewLines\MultipleBlankLines\AbstractMultipleBlankLinesCodeFixProvider.cs (1)
48
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\RemoveRedundantEquality\RemoveRedundantEqualityCodeFixProvider.cs (1)
36
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsCodeFixProvider.cs (1)
57
var newRoot = await newDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\RemoveUnnecessarySuppressions\RemoveUnnecessaryAttributeSuppressionsCodeFixProvider.cs (1)
28
var root = await context.Document.
GetRequiredSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\RemoveUnnecessarySuppressions\RemoveUnnecessaryPragmaSuppressionsCodeFixProvider.cs (1)
32
var root = await context.Document.
GetRequiredSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\RemoveUnusedParametersAndValues\AbstractRemoveUnusedValuesCodeFixProvider.cs (6)
164
var root = await context.Document.
GetRequiredSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(false);
278
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
298
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
784
var newRoot = await newDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
844
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
886
root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\UnsealClass\AbstractUnsealClassCodeFixProvider.cs (2)
34
var syntaxRoot = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
64
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\UpdateLegacySuppressions\UpdateLegacySuppressionsCodeFixProvider.cs (1)
29
var root = await context.Document.
GetRequiredSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\UseConditionalExpression\AbstractUseConditionalExpressionCodeFixProvider.cs (1)
48
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\UseObjectInitializer\AbstractUseObjectInitializerCodeFixProvider.cs (1)
72
var currentRoot = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Testing\AbstractTestMethodFinder.cs (2)
35
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
88
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
UseAutoProperty\AbstractUseAutoPropertyCodeFixProvider.cs (4)
257
var declaratorTreeRoot = await fieldDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
271
var fieldTreeRoot = await fieldDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
272
var propertyTreeRoot = await propertyDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
389
return await cleanedDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
UseAutoProperty\UseAutoPropertyFixAllProvider.cs (1)
73
var changedRoot = await changedDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
UseNamedArguments\AbstractUseNamedArgumentsCodeRefactoringProvider.cs (1)
205
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ValueTracking\ValueTracker.cs (1)
257
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ValueTracking\ValueTracker.FindReferencesProgress.cs (2)
149
var syntaxRoot = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
172
var syntaxRoot = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Wrapping\AbstractCodeActionComputer.cs (2)
134
var formattedRoot = await formattedDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
226
var root = await OriginalDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Wrapping\AbstractWrappingCodeRefactoringProvider.cs (1)
42
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Wrapping\SeparatedSyntaxList\AbstractSeparatedSyntaxListWrapper.cs (1)
65
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
SolutionExplorer\AbstractSolutionExplorerSymbolTreeItemProviderTests.cs (1)
27
var root = await document.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
Microsoft.CodeAnalysis.LanguageServer.Protocol (4)
Handler\Formatting\AbstractFormatDocumentHandlerBase.cs (1)
35
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Handler\Highlights\DocumentHighlightHandler.cs (1)
78
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Handler\InlineCompletions\InlineCompletionsHandler.cs (1)
190
var root = await originalDocument.WithText(documentWithSnippetText).
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Handler\SemanticTokens\SemanticTokensHelpers.cs (1)
91
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (2)
Workspaces\LspWorkspaceManagerTests.cs (2)
657
var originalRoot = await originalDocument.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
668
var newRoot = await newDocument.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
Microsoft.CodeAnalysis.Remote.ServiceHub (3)
Services\CodeLensReferences\RemoteCodeLensReferencesService.cs (1)
36
var syntaxRoot = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Services\ConvertTupleToStructCodeRefactoringProvider\RemoteConvertTupleToStructCodeRefactoringService.cs (2)
62
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
87
var cleanedRoot = await cleaned.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Workspaces (43)
CodeActions\CodeAction_Cleanup.cs (1)
218
var newRoot = await cleanedDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
CodeCleanup\AbstractCodeCleanerService.cs (2)
42
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
483
var root = await currentDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
CodeCleanup\CodeCleaner.cs (1)
62
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
CodeCleanup\Providers\FormatCodeCleanupProvider.cs (1)
23
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
CodeFixesAndRefactorings\DocumentBasedFixAllProviderHelpers.cs (1)
87
var newRoot = newDocument.SupportsSyntaxTree ? await newDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false) : null;
CodeRefactorings\SyntaxEditorBasedCodeRefactoringProvider.cs (1)
70
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Editing\ImportAdder.cs (2)
20
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
26
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
FindSymbols\FindLiterals\FindLiteralsSearchEngine.cs (1)
141
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
FindSymbols\FindReferences\FindReferenceCache.cs (1)
41
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
FindSymbols\SymbolFinder.cs (1)
212
var linkedSyntaxRoot = await linkedDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Formatting\Formatter.cs (3)
94
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
115
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
132
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
LanguageServices\FixAllSpanMappingService\AbstractFixAllSpanMappingService.cs (1)
78
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ObsoleteSymbol\AbstractObsoleteSymbolService.cs (1)
36
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ReassignedVariable\AbstractReassignedVariableService.cs (1)
46
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Rename\ConflictEngine\ConflictResolver.Session.cs (4)
331
var syntaxRoot = await newDocument.
GetRequiredSyntaxRootAsync
(_cancellationToken).ConfigureAwait(false);
358
var syntaxRoot = await newDocument.
GetRequiredSyntaxRootAsync
(_cancellationToken).ConfigureAwait(false);
362
var baseRoot = await baseDocument.
GetRequiredSyntaxRootAsync
(_cancellationToken).ConfigureAwait(false);
451
var syntaxRoot = await newDocument.
GetRequiredSyntaxRootAsync
(_cancellationToken).ConfigureAwait(false);
Rename\ConflictEngine\MutableConflictResolution.cs (1)
77
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Rename\ConflictEngine\RenamedSpansTracker.cs (1)
183
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Rename\Renamer.RenameSymbolDocumentAction.cs (1)
71
var syntaxRoot = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (2)
371
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
389
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);
248
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\SyntaxEditorBasedCodeFixProvider.cs (1)
83
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (3)
37
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
120
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
180
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (1)
132
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\InitializeParameter\AbstractInitializerParameterService.cs (1)
123
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (2)
96
var root = (TCompilationUnitSyntax)await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
107
root = (TCompilationUnitSyntax)await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\ParsedDocument.cs (1)
34
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\SemanticDocument.cs (1)
21
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\SyntacticDocument.cs (1)
31
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Workspaces.UnitTests (52)
CodeCleanup\RemoveUnnecessaryLineContinuationTests.cs (1)
1329
var actualResult = (await cleanDocument.
GetRequiredSyntaxRootAsync
(CancellationToken.None)).ToFullString();
SolutionTests\SolutionTests.cs (43)
439
var root1 = await document1.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
440
var root2 = await document2.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
462
root1 = await document1.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
463
root2 = await document2.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
483
root1 = await document1.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
484
root2 = await document2.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
527
var root1 = await document1.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
528
var root2 = await document2.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
550
root1 = await document1.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
551
root2 = await document2.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
571
root1 = await document1.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
572
root2 = await document2.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
606
var root1 = await document1.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
607
var root2 = await document2.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
633
root1 = await document1.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
634
root2 = await document2.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
657
root1 = await document1.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
658
root2 = await document2.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
692
var root1 = await document1.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
693
var root2 = await document2.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
716
root1 = await document1.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
717
root2 = await document2.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
737
root1 = await document1.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
738
root2 = await document2.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
769
var root1 = await document1.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
770
var root2 = await document2.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
792
root1 = await document1.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
793
root2 = await document2.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
813
root1 = await document1.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
814
root2 = await document2.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
857
var root1 = await document1.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
858
var root2 = await document2.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
879
root1 = await document1.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
880
root2 = await document2.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
902
root1 = await document1.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
903
root2 = await document2.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
3276
var root = await documentWithAttribute.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
4476
var doc1Root = await document1.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
4477
var doc2Root = await document2.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
4487
var frozenDoc1Root = await frozenDoc1.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
4488
var frozenDoc2Root = await frozenDoc2.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
4502
var frozenDoc1Root = await frozenDoc1.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
4503
var frozenDoc2Root = await frozenDoc2.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
SolutionTests\SolutionWithSourceGeneratorTests.cs (8)
771
Assert.Equal("// Something else", (await document.
GetRequiredSyntaxRootAsync
(CancellationToken.None)).ToFullString());
800
Assert.Equal("// Something else", (await document.
GetRequiredSyntaxRootAsync
(CancellationToken.None)).ToFullString());
1029
var root = await sourceGeneratedDocument.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
1060
var root = await sourceGeneratedDocument.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
1099
var root = await sourceGeneratedDocument.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
1129
var root = await sourceGeneratedDocument.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
1133
var newRoot = await sourceGeneratedDocument.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
1303
var root = await newDocument.
GetRequiredSyntaxRootAsync
(CancellationToken.None);
Microsoft.VisualStudio.LanguageServices (3)
CodeCleanup\AbstractCodeCleanUpFixer.cs (1)
228
callback((document.Id, await fixedDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false)));
CodeLens\CodeLensCallbackListener.cs (1)
182
var root = await document.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Implementation\AbstractEditorFactory.cs (1)
344
var rootToFormat = await addedDocument.
GetRequiredSyntaxRootAsync
(cancellationToken).ConfigureAwait(true);