336 references to GetSyntaxRootAsync
AnalyzerRunner (2)
CodeRefactoringRunner.cs (2)
66
updatedSolution = updatedSolution.WithDocumentSyntaxRoot(document.Id, await newDocument.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false));
79
var root = await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
IdeCoreBenchmarks (4)
FormatterBenchmarks.cs (2)
54
var root = document.
GetSyntaxRootAsync
(CancellationToken.None).Result.WithAdditionalAnnotations(Formatter.Annotation);
70
var formattedRoot = formattedDoc.
GetSyntaxRootAsync
(CancellationToken.None).Result;
NavigateToBenchmarks.cs (2)
127
roots.Add(await document.
GetSyntaxRootAsync
());
205
var tree = await d.
GetSyntaxRootAsync
();
Microsoft.CodeAnalysis.CodeStyle.Fixes (9)
AbstractConvertToAsyncCodeFixProvider.cs (1)
32
var root = await context.Document.
GetSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(false);
AbstractIteratorCodeFixProvider.cs (1)
28
var root = await context.Document.
GetSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(false);
AbstractMakeMethodSynchronousCodeFixProvider.cs (1)
85
var newRoot = await newDocument.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
AbstractMoveDeclarationNearReferenceService.cs (1)
82
var root = await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
AbstractMoveDeclarationNearReferenceService.State.cs (1)
104
var syntaxRoot = await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
DocumentExtensions.cs (1)
65
root = await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
SemanticDocument.cs (1)
26
var root = await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
SyntaxEditorExtensions.cs (2)
173
var currentRoot = await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
188
currentRoot = await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CodeStyle.LegacyTestFramework.UnitTestUtilities (4)
AbstractCodeActionOrUserDiagnosticTest.cs (3)
605
var fixedRoot = await document.
GetSyntaxRootAsync
();
677
var root = await doc.
GetSyntaxRootAsync
();
691
var expectedRoot = await expectedDocument.
GetSyntaxRootAsync
();
AbstractUserDiagnosticTest.FixAllDiagnosticProvider.cs (1)
32
var root = await document.
GetSyntaxRootAsync
(cancellationToken);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
AddInheritdocCodeFixProvider.cs (1)
50
var root = await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
DecompiledSource\CSharpDecompiledSourceService.cs (1)
151
var syntaxRoot = await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (22)
CodeActions\Preview\PreviewExceptionTests.cs (1)
114
var span = document.
GetSyntaxRootAsync
().Result.Span;
CodeActions\Preview\PreviewTests.cs (1)
99
var span = document.
GetSyntaxRootAsync
().Result.Span;
CodeActions\SyncNamespace\CSharpSyncNamespaceTestsBase.cs (1)
169
var modifiedOringinalRoot = await modifiedOriginalDocument.
GetSyntaxRootAsync
();
CodeGeneration\SyntaxGeneratorTests.cs (2)
38
var root = await document.
GetSyntaxRootAsync
();
72
var root = await document.
GetSyntaxRootAsync
();
Diagnostics\FixAllProvider\BatchFixerTests.cs (1)
73
var root = await context.Document.
GetSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(false);
EditAndContinue\CSharpEditAndContinueAnalyzerTests.cs (2)
306
var oldSyntaxRoot = await oldDocument.
GetSyntaxRootAsync
();
311
var newSyntaxRoot = await newDocument.
GetSyntaxRootAsync
();
ExtractMethod\ExtractMethodBase.cs (2)
163
: await doc.
GetSyntaxRootAsync
();
194
var root = await document.
GetSyntaxRootAsync
();
Formatting\CodeCleanupTests.TestFixers.cs (3)
32
var root = await context.Document.
GetSyntaxRootAsync
(cancellationToken);
99
var root = await document.
GetSyntaxRootAsync
(cancellationToken);
155
var root = await document.
GetSyntaxRootAsync
(cancellationToken);
Formatting\FormattingEngineTests.cs (1)
419
var syntaxRoot = await document.
GetSyntaxRootAsync
();
Formatting\Indentation\SmartIndenterEnterOnTokenTests.cs (2)
1417
var root = (await document.
GetSyntaxRootAsync
()) as CompilationUnitSyntax;
1458
var root = (await document.
GetSyntaxRootAsync
()) as CompilationUnitSyntax;
Formatting\Indentation\SmartTokenFormatterFormatRangeTests.cs (1)
3420
var root = (CompilationUnitSyntax)await document.
GetSyntaxRootAsync
();
MoveToNamespace\MoveToNamespaceTests.cs (1)
1332
var changedRoot = await changedDocument.
GetSyntaxRootAsync
();
Organizing\AbstractOrganizerTests.cs (1)
31
var newRoot = await (await OrganizingService.OrganizeAsync(document)).
GetSyntaxRootAsync
();
Structure\CommentStructureTests.cs (1)
36
var root = await document.
GetSyntaxRootAsync
();
TypeInferrer\TypeInferrerTests.cs (1)
27
var root = await document.
GetSyntaxRootAsync
();
TypeInferrer\TypeInferrerTests.Delegate.cs (1)
28
var root = await document.
GetSyntaxRootAsync
();
Microsoft.CodeAnalysis.CSharp.Features (27)
AddInheritdocCodeFixProvider.cs (1)
50
var root = await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
CodeFixes\GenerateMethod\GenerateDeconstructMethodCodeFixProvider.cs (1)
51
var root = await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
CodeRefactorings\ConvertLocalFunctionToMethod\CSharpConvertLocalFunctionToMethodCodeRefactoringProvider.cs (2)
66
var root = await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
236
root = await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
CodeRefactorings\InlineTemporary\InlineTemporaryCodeRefactoringProvider.cs (4)
49
var root = await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
190
var root = await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
259
var root = await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
268
var root = await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
CodeRefactorings\SyncNamespace\CSharpChangeNamespaceService.cs (1)
337
var syntaxRoot = await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
CodeRefactorings\SyncNamespace\CSharpSyncNamespaceCodeRefactoringProvider.cs (1)
34
if (await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false) is not CompilationUnitSyntax compilationUnit)
CodeRefactorings\UseExplicitOrImplicitType\AbstractUseTypeCodeRefactoringProvider.cs (1)
126
var root = await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Debugging\CSharpProximityExpressionsService.cs (1)
56
var root = await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Debugging\DataTipInfoGetter.cs (1)
26
var root = await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
EncapsulateField\CSharpEncapsulateFieldService.cs (4)
39
var root = await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
92
root = await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
117
root = await withField.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
131
var root = await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ExtractMethod\CSharpMethodExtractor.cs (3)
42
var root = await document.Document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
228
var root = await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
231
var newRoot = await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (1)
830
var oldRoot = await originalDocument.Document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.ExpressionCodeGenerator.cs (1)
211
var updatedRoot = await updatedDocument.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ExtractMethod\CSharpSelectionResult.cs (1)
41
var root = await document.Document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
GenerateType\CSharpGenerateTypeService.cs (1)
778
root = await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
MetadataAsSource\CSharpMetadataAsSourceService.cs (2)
45
var oldRoot = await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
63
var syntaxRoot = await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Organizing\CSharpOrganizingService.cs (1)
32
var root = await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
OrganizeImports\CSharpOrganizeImportsService.cs (1)
30
var root = await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (5)
CodeGeneration\AddAttributesTests.cs (1)
49
var syntaxRoot = await doc.
GetSyntaxRootAsync
();
CodeGeneration\AddImportsTests.cs (2)
44
var root = await doc.
GetSyntaxRootAsync
();
797
var syntaxRoot = await document.
GetSyntaxRootAsync
(CancellationToken.None).ConfigureAwait(false);
CodeGeneration\SymbolEditorTests.cs (1)
59
return (await document.
GetSyntaxRootAsync
()).ToFullString();
Formatting\FormattingTreeEditTests.cs (1)
39
var root = await document.
GetSyntaxRootAsync
();
Microsoft.CodeAnalysis.EditorFeatures (4)
Classification\Syntactic\SyntacticClassificationTaggerProvider.TagComputer.cs (1)
289
var currentRoot = await currentDocument.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
CodeActions\CodeActionEditHandlerService.cs (1)
357
var openRoot = await openDocument.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
KeywordHighlighting\HighlighterViewTaggerProvider.cs (1)
116
var root = await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
RenameTracking\RenameTrackingTaggerProvider.RenameTrackingCommitter.cs (1)
157
var root = await renameTrackingSolutionSet.RenamedSolution.GetDocument(docId).
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.EditorFeatures.DiagnosticsTests.Utilities (6)
CodeActions\AbstractCodeActionOrUserDiagnosticTest.cs (3)
605
var fixedRoot = await document.
GetSyntaxRootAsync
();
677
var root = await doc.
GetSyntaxRootAsync
();
691
var expectedRoot = await expectedDocument.
GetSyntaxRootAsync
();
CodeActions\AbstractCodeActionTest.cs (1)
138
var fixedRoot = await workspace.CurrentSolution.GetDocument(document.Id).
GetSyntaxRootAsync
();
Diagnostics\AbstractSuppressionAllCodeTests.cs (1)
78
var root = document.
GetSyntaxRootAsync
().GetAwaiter().GetResult();
Diagnostics\AbstractUserDiagnosticTest.FixAllDiagnosticProvider.cs (1)
32
var root = await document.
GetSyntaxRootAsync
(cancellationToken);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (12)
CodeLens\AbstractCodeLensTest.cs (4)
28
var syntaxNode = await document.
GetSyntaxRootAsync
();
58
var syntaxNode = await document.
GetSyntaxRootAsync
();
86
var syntaxNode = await document.
GetSyntaxRootAsync
();
114
var syntaxNode = await document.
GetSyntaxRootAsync
();
Completion\AbstractCompletionProviderTests.cs (1)
98
var node = (await document.
GetSyntaxRootAsync
()).FindToken(position).Parent;
Diagnostics\TestDiagnosticAnalyzerDriver.cs (1)
95
var span = (await document.
GetSyntaxRootAsync
()).FullSpan;
KeywordHighlighting\AbstractKeywordHighlighterTests.cs (1)
55
var root = await document.
GetSyntaxRootAsync
();
QuickInfo\AbstractSemanticQuickInfoSourceTests.cs (1)
157
var node = (await document.
GetSyntaxRootAsync
()).FindToken(position).Parent;
SignatureHelp\AbstractSignatureHelpProviderTests.cs (1)
124
var node = (await document.
GetSyntaxRootAsync
()).FindToken(position).Parent;
Structure\AbstractSyntaxNodeStructureProviderTests.cs (1)
24
var root = await document.
GetSyntaxRootAsync
(CancellationToken.None);
Structure\AbstractSyntaxTriviaStructureProviderTests.cs (1)
21
var root = await document.
GetSyntaxRootAsync
();
TypeInferrer\TypeInferrerTestBase.cs (1)
30
var node = (await document.
GetSyntaxRootAsync
()).FindToken(position).Parent;
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (11)
CodeFixes\ErrorCases\CodeFixExceptionInRegisterMethodAsync.cs (1)
25
var root = await context.Document.
GetSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(false);
CodeGeneration\CodeGenerationTests.cs (4)
95
var root = await testContext.Document.
GetSyntaxRootAsync
();
325
testContext.Result = testContext.Document.WithSyntaxRoot((await testContext.Document.
GetSyntaxRootAsync
()).ReplaceNode(oldSyntax, newSyntax));
341
testContext.Result = testContext.Document.WithSyntaxRoot((await testContext.Document.
GetSyntaxRootAsync
()).ReplaceNode(oldMemberSyntax, newMemberSyntax));
974
var actual = Formatter.FormatAsync(simplified, Formatter.Annotation, formattingOptions, CancellationToken.None).Result.
GetSyntaxRootAsync
().Result.ToFullString();
Completion\CompletionServiceTests.cs (1)
134
var root = await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Diagnostics\DiagnosticAnalyzerServiceTests.cs (2)
940
var root = await document.
GetSyntaxRootAsync
();
1363
var root = await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Diagnostics\SuppressMessageAttributeWorkspaceTests.cs (1)
71
var span = (await document.
GetSyntaxRootAsync
()).FullSpan;
SolutionCrawler\WorkCoordinatorTests.cs (1)
1591
await document.
GetSyntaxRootAsync
();
SymbolFinder\DependentTypeFinderTests.cs (1)
645
var csRoot = await csDoc.
GetSyntaxRootAsync
();
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (50)
CodeFixes\CodeFixServiceTests.vb (9)
72
(Await document.
GetSyntaxRootAsync
()).FullSpan)
79
(Await document.
GetSyntaxRootAsync
()).FullSpan,
96
(Await document.
GetSyntaxRootAsync
()).FullSpan,
107
(Await document.
GetSyntaxRootAsync
()).FullSpan,
151
(Await document.
GetSyntaxRootAsync
()).FullSpan)
158
(Await document.
GetSyntaxRootAsync
()).FullSpan,
175
(Await document.
GetSyntaxRootAsync
()).FullSpan,
239
Dim root = Await context.Document.
GetSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(False)
264
Dim root = Await context.Document.
GetSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(False)
Diagnostics\AbstractCrossLanguageUserDiagnosticTest.vb (2)
190
Dim root = Await document.
GetSyntaxRootAsync
()
239
Return doc.
GetSyntaxRootAsync
().Result.FindToken(position).Parent
Diagnostics\DiagnosticServiceTests.vb (30)
94
Dim diagnostics = Await diagnosticService.GetDiagnosticsForSpanAsync(document, (Await document.
GetSyntaxRootAsync
()).FullSpan)
128
diagnostics = Await diagnosticService.GetDiagnosticsForSpanAsync(document, (Await document.
GetSyntaxRootAsync
()).FullSpan)
142
diagnostics = Await diagnosticService.GetDiagnosticsForSpanAsync(document, (Await document.
GetSyntaxRootAsync
()).FullSpan)
163
diagnostics = Await diagnosticService.GetDiagnosticsForSpanAsync(document, (Await document.
GetSyntaxRootAsync
()).FullSpan)
281
Dim span = (Await document.
GetSyntaxRootAsync
()).FullSpan
440
Dim diagnostics = (Await diagnosticService.GetDiagnosticsForSpanAsync(document, (Await document.
GetSyntaxRootAsync
()).FullSpan)).
499
Dim diagnostics = Await diagnosticService.GetDiagnosticsForSpanAsync(document, (Await document.
GetSyntaxRootAsync
()).FullSpan)
533
Dim root = Await document.
GetSyntaxRootAsync
().ConfigureAwait(False)
602
Dim span = (Await document.
GetSyntaxRootAsync
().ConfigureAwait(False)).FullSpan
674
Dim diagnostics = Await diagnosticService.GetDiagnosticsForSpanAsync(document, (Await document.
GetSyntaxRootAsync
()).FullSpan)
710
Dim diagnostics = Await diagnosticService.GetDiagnosticsForSpanAsync(document, (Await document.
GetSyntaxRootAsync
()).FullSpan)
787
Dim diagnostics = Await diagnosticService.GetDiagnosticsForSpanAsync(document, (Await document.
GetSyntaxRootAsync
()).FullSpan)
825
Dim fullSpan = (Await document.
GetSyntaxRootAsync
()).FullSpan
851
Dim expectedLocation = document.
GetSyntaxRootAsync
().Result.GetLocation
899
Dim fullSpan = (Await document.
GetSyntaxRootAsync
()).FullSpan
1017
Dim fullSpan = (Await document.
GetSyntaxRootAsync
()).FullSpan
1125
Dim fullSpan = (Await document.
GetSyntaxRootAsync
()).FullSpan
1169
Dim fullSpan = (Await document.
GetSyntaxRootAsync
()).FullSpan
1214
Dim fullSpan = (Await document.
GetSyntaxRootAsync
()).FullSpan
1266
Dim fullSpan = (Await document.
GetSyntaxRootAsync
()).FullSpan
1330
Dim fullSpan = (Await document.
GetSyntaxRootAsync
()).FullSpan
1378
Dim fullSpan = (Await document.
GetSyntaxRootAsync
()).FullSpan
1464
Dim fullSpan = (Await document.
GetSyntaxRootAsync
()).FullSpan
2003
Dim diagnostics = Await diagnosticService.GetDiagnosticsForSpanAsync(document, (Await document.
GetSyntaxRootAsync
()).FullSpan)
2064
Dim diagnostics = Await diagnosticService.GetDiagnosticsForSpanAsync(document, (Await document.
GetSyntaxRootAsync
()).FullSpan)
2133
Dim diagnostics = Await diagnosticService.GetDiagnosticsForSpanAsync(document, (Await document.
GetSyntaxRootAsync
()).FullSpan)
2219
Dim root = Await document.
GetSyntaxRootAsync
(CancellationToken.None)
2309
Dim root = Await document.
GetSyntaxRootAsync
(CancellationToken.None)
2371
Dim root = Await document.
GetSyntaxRootAsync
()
2442
Dim root = Await document.
GetSyntaxRootAsync
()
Expansion\AbstractExpansionTest.vb (2)
29
Dim root = Await document.
GetSyntaxRootAsync
()
44
root = Await document.
GetSyntaxRootAsync
()
LanguageServices\SyntaxFactsServiceTests.vb (1)
211
Dim root = Await document.
GetSyntaxRootAsync
()
NavigationBar\TestHelpers.vb (1)
104
Dim actual = (Await newDocument.
GetSyntaxRootAsync
()).ToFullString().TrimEnd()
Rename\RenameCommandHandlerTests.vb (1)
44
Dim expectedTriggerToken = workspace.CurrentSolution.Projects.Single().Documents.Single().
GetSyntaxRootAsync
().Result.FindToken(view.Caret.Position.BufferPosition)
Rename\RenameTestHelpers.vb (1)
41
Dim token = solution.GetDocument(hostdoc.Id).
GetSyntaxRootAsync
().Result.FindToken(caretPosition)
Simplification\AbstractSimplificationTests.vb (1)
72
Dim root = Await document.
GetSyntaxRootAsync
()
Simplification\ParameterSimplificationTests.vb (1)
27
(Await document.
GetSyntaxRootAsync
()).WithAdditionalAnnotations(Simplifier.Annotation))
Simplification\TypeNameSimplifierTest.vb (1)
4250
Dim root = Await document.
GetSyntaxRootAsync
()
Microsoft.CodeAnalysis.Features (45)
AbstractConvertToAsyncCodeFixProvider.cs (1)
32
var root = await context.Document.
GetSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(false);
AbstractIteratorCodeFixProvider.cs (1)
28
var root = await context.Document.
GetSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(false);
AbstractMakeMethodSynchronousCodeFixProvider.cs (1)
85
var newRoot = await newDocument.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
AddImport\CodeActions\InstallPackageAndAddImportCodeAction.cs (1)
69
var newRoot = await newDocument.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
AddImport\References\Reference.cs (1)
98
var newRoot = await newDocument.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
BraceMatching\AbstractBraceMatcher.cs (1)
64
var root = await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
BraceMatching\AbstractDirectiveTriviaBraceMatcher.cs (1)
32
var root = await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
BracePairs\IBracePairsService.cs (1)
48
var root = await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ChangeSignature\AbstractChangeSignatureService.cs (2)
383
var root = await doc.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
427
currentSolution = currentSolution.WithDocumentSyntaxRoot(docId, (await formattedDoc.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false))!);
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.GlobalSuppressMessageCodeAction.cs (1)
42
var suppressionsRoot = await suppressionsDoc.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.GlobalSuppressMessageFixAllCodeAction.cs (1)
140
var suppressionsRoot = await suppressionsDoc.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.LocalSuppressMessageCodeAction.cs (1)
44
var root = await _document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.RemoveSuppressionCodeAction.BatchFixer.cs (1)
143
var root = await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
CodeLens\CodeLensReferencesService.cs (1)
120
var token = (await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false)).FindToken(position, true);
CodeRefactorings\AbstractRefactoringHelpersService.cs (1)
519
var root = await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
CodeRefactorings\ExtractMethod\AbstractExtractMethodCodeRefactoringProvider.cs (1)
143
var root = await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Completion\Providers\AbstractMemberInsertingCompletionProvider.cs (1)
46
var newRoot = await newDocument.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ConvertToInterpolatedString\ConvertRegularStringToInterpolatedStringRefactoringProvider.cs (1)
35
var root = await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
EncapsulateField\AbstractEncapsulateFieldService.cs (2)
185
var linkedRoot = await linkedDocument.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
233
var newRoot = await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingIncrementalAnalyzerProcessor.cs (1)
323
var 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))
ExtractInterface\AbstractExtractInterfaceService.cs (1)
345
var currentRoot = await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
GenerateType\AbstractGenerateTypeService.Editor.cs (3)
330
var newRoot = await codeGenResult.
GetSyntaxRootAsync
(_cancellationToken).ConfigureAwait(false);
416
var root = await generateTypeOptionsResult.ExistingDocument.
GetSyntaxRootAsync
(_cancellationToken).ConfigureAwait(false);
453
var newRoot = await codeGenResult.
GetSyntaxRootAsync
(_cancellationToken).ConfigureAwait(false);
MoveToNamespace\AbstractMoveToNamespaceService.cs (3)
77
var root = await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
135
container = await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
270
var syntaxRoot = await mergedDocument.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
PullMemberUp\MembersPuller.cs (1)
401
await destinationDocument.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false),
RemoveUnusedVariable\AbstractRemoveUnusedVariableCodeFixProvider.cs (2)
44
var root = await document.
GetSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(false);
67
var root = await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
SimplifyTypeNames\AbstractSimplifyTypeNamesCodeFixProvider.cs (2)
81
var root = await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
105
var root = await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
SolutionCrawler\AbstractDocumentDifferenceService.cs (2)
65
oldRoot = await oldDocument.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
66
newRoot = await newDocument.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
SolutionCrawler\WorkCoordinator.IncrementalAnalyzerProcessor.cs (1)
267
var root = await GetOrDefaultAsync(document, (d, c) => d.
GetSyntaxRootAsync
(c), cancellationToken).ConfigureAwait(false);
SolutionCrawler\WorkCoordinator.SemanticChangeProcessor.cs (1)
105
!changedMember.TryResolve(await document.
GetSyntaxRootAsync
(CancellationToken).ConfigureAwait(false), out SyntaxNode? declarationNode))
SpellCheck\AbstractSpellCheckCodeFixProvider.cs (2)
48
var syntaxRoot = await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
228
var root = await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
SplitOrMergeIfStatements\AbstractMergeIfStatementsCodeRefactoringProvider.cs (2)
39
var root = await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
69
var root = await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
SplitOrMergeIfStatements\AbstractSplitIfStatementCodeRefactoringProvider.cs (2)
36
var root = await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
65
var root = await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Remote.ServiceHub (2)
Host\RemoteDocumentDifferenceService.cs (2)
60
var oldRoot = await oldDocument.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
61
var newRoot = await newDocument.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (5)
VisualBasicRemoveUnnecessaryByValCodeFixProvider.vb (1)
38
Dim root = Await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(False)
VisualBasicRemoveUnnecessaryCastCodeFixProvider.vb (2)
98
Dim root = Await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(False)
120
Dim root = Await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(False)
VisualBasicRemoveUnnecessaryImportsService.vb (1)
43
Dim root = Await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(False)
VisualBasicSimplifyObjectCreationCodeFixProvider.vb (1)
36
Dim root = Await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(False)
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (2)
NavigationBar\VisualBasicEditorNavigationBarItemService.vb (1)
54
Dim root = Await destinationDocument.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(False)
NavigationBar\VisualBasicEditorNavigationBarItemService_CodeGeneration.vb (1)
29
Dim generatedTree = Await newDocument.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(False)
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (15)
CaseCorrecting\CaseCorrectionServiceTests.vb (1)
35
Dim span = (Await document.
GetSyntaxRootAsync
()).FullSpan
CodeActions\Preview\PreviewTests.vb (1)
74
Dim span = document.
GetSyntaxRootAsync
().Result.Span
Debugging\ProximityExpressionsGetterTests.vb (1)
103
Dim statements = (Await document.
GetSyntaxRootAsync
()).DescendantTokens().Select(Function(t) t.GetAncestor(Of StatementSyntax)()).Distinct().WhereNotNull()
EditAndContinue\VisualBasicEditAndContinueAnalyzerTests.vb (2)
478
Dim oldSyntaxRoot = Await oldDocument.
GetSyntaxRootAsync
()
481
Dim newSyntaxRoot = Await newDocument.
GetSyntaxRootAsync
()
ExtractMethod\ExtractMethodTests.vb (2)
128
Return Await (Await result.GetFormattedDocumentAsync(cleanupOptions, CancellationToken.None)).document.
GetSyntaxRootAsync
()
171
Dim root = Await document.
GetSyntaxRootAsync
()
Formatting\CodeCleanUpTests.vb (3)
654
Dim root = Await document.
GetSyntaxRootAsync
(cancellationToken)
699
Dim root = Await document.
GetSyntaxRootAsync
(cancellationToken)
729
Dim root = Await context.Document.
GetSyntaxRootAsync
(cancellationToken)
Formatting\Indentation\SmartTokenFormatter_FormatTokenTests.vb (1)
190
Dim root = DirectCast(Await document.
GetSyntaxRootAsync
(), CompilationUnitSyntax)
LineSeparators\LineSeparatorTests.vb (1)
295
(Await document.
GetSyntaxRootAsync
()).FullSpan, Nothing)
Organizing\AbstractOrganizerTests.vb (1)
18
Dim newRoot = Await (Await OrganizingService.OrganizeAsync(document)).
GetSyntaxRootAsync
()
Structure\CommentStructureTests.vb (1)
22
Dim root = Await document.
GetSyntaxRootAsync
()
TypeInferrer\TypeInferrerTests.vb (1)
20
Dim root = Await document.
GetSyntaxRootAsync
()
Microsoft.CodeAnalysis.VisualBasic.Features (47)
AddImport\VisualBasicAddImportFeatureService.vb (1)
301
Dim root = Await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(False)
BraceMatching\InterpolatedStringBraceMatcher.vb (1)
29
Dim root = Await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(False)
BraceMatching\StringLiteralBraceMatcher.vb (1)
25
Dim root = Await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(False)
ChangeSignature\VisualBasicChangeSignatureService.vb (1)
689
Dim root = Await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(False)
CodeFixes\CorrectNextControlVariable\CorrectNextControlVariableCodeFixProvider.CodeAction.vb (1)
30
Dim root = Await _document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(False)
CodeFixes\CorrectNextControlVariable\CorrectNextControlVariableCodeFixProvider.vb (1)
37
Dim root = Await context.Document.
GetSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(False)
CodeFixes\GenerateEndConstruct\GenerateEndConstructCodeFixProvider.vb (2)
65
Dim root = Await context.Document.
GetSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(False)
255
Dim tree = Await updatedDocument.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(False)
CodeFixes\GenerateEvent\GenerateEventCodeFixProvider.vb (1)
45
Dim root = Await context.Document.
GetSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(False)
CodeFixes\IncorrectExitContinue\IncorrectExitContinueCodeFixProvider.AddKeywordCodeAction.vb (1)
41
Dim root = Await _document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(False)
CodeFixes\IncorrectExitContinue\IncorrectExitContinueCodeFixProvider.ReplaceKeywordCodeAction.vb (1)
40
Dim root = Await _document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(False)
CodeFixes\IncorrectExitContinue\IncorrectExitContinueCodeFixProvider.ReplaceTokenKeywordCodeAction.vb (1)
33
Dim root = Await _document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(False)
CodeFixes\IncorrectExitContinue\IncorrectExitContinueCodeFixProvider.vb (1)
62
Dim root = Await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(False)
CodeFixes\IncorrectFunctionReturnType\IncorrectFunctionReturnTypeCodeFixProvider.vb (2)
45
Dim root = Await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(False)
80
Dim root = Await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(False)
CodeFixes\MoveToTopOfFile\MoveToTopOfFileCodeFixProvider.vb (1)
47
Dim root = Await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(False)
CodeFixes\OverloadBase\OverloadBaseCodeFixProvider.AddKeywordAction.vb (1)
46
Dim root = Await _document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(False)
CodeFixes\OverloadBase\OverloadBaseCodeFixProvider.vb (1)
37
Dim root = Await context.Document.
GetSyntaxRootAsync
(context.CancellationToken).ConfigureAwait(False)
CodeRefactorings\InlineTemporary\VisualBasicInlineTemporaryCodeRefactoringProvider.vb (4)
133
Dim syntaxRoot = Await updatedDocument.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(False)
226
Dim root = Await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(False)
236
Dim root = Await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(False)
432
Dim syntaxRootAfterInline = Await inlinedDocument.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(False)
CodeRefactorings\RemoveStatementCodeAction.vb (1)
30
Dim root = Await _document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(False)
Debugging\DataTipInfoGetter.vb (1)
16
Dim root = Await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(False)
Debugging\ProximityExpressionsGetter.vb (1)
62
Dim root = Await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(False)
EncapsulateField\VisualBasicEncapsulateFieldService.vb (2)
33
Dim root = Await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(False)
73
Dim root = Await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(False)
ExtractInterface\VisualBasicExtractInterfaceService.vb (1)
123
Dim document = Await unformattedSolution.GetDocument(candidateDocId).
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(False)
ExtractMethod\VisualBasicMethodExtractor.vb (1)
34
Dim root = Await document.Document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(False)
ExtractMethod\VisualBasicMethodExtractor.VisualBasicCodeGenerator.ExpressionCodeGenerator.vb (1)
139
Dim updatedRoot = Await updatedDocument.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(False)
GenerateType\VisualBasicGenerateTypeService.vb (1)
639
root = Await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(False)
ImplementInterface\VisualBasicImplementInterfaceCodeFixProvider.vb (1)
42
Dim root = Await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(False)
MetadataAsSource\VisualBasicMetadataAsSourceService.vb (2)
40
Dim oldRoot = Await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(False)
59
Dim syntaxRoot = Await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(False)
Organizing\VisualBasicOrganizerService.vb (1)
23
Dim root = DirectCast(Await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(False), SyntaxNode)
SignatureHelp\AbstractIntrinsicOperatorSignatureHelpProvider.vb (1)
32
Dim root = Await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(False)
SignatureHelp\AttributeSignatureHelpProvider.vb (1)
55
Dim root = Await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(False)
SignatureHelp\CollectionInitializerSignatureHelpProvider.vb (1)
49
Dim root = Await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(False)
SignatureHelp\FunctionAggregationSignatureHelpProvider.vb (1)
57
Dim root = Await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(False)
SignatureHelp\GenericNameSignatureHelpProvider.vb (1)
64
Dim root = Await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(False)
SignatureHelp\InvocationExpressionSignatureHelpProvider.vb (1)
66
Dim root = Await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(False)
SignatureHelp\ObjectCreationExpressionSignatureHelpProvider.vb (1)
65
Dim root = Await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(False)
SignatureHelp\RaiseEventStatementSignatureHelpProvider.vb (1)
71
Dim root = Await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(False)
VisualBasicRemoveUnnecessaryByValCodeFixProvider.vb (1)
38
Dim root = Await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(False)
VisualBasicRemoveUnnecessaryCastCodeFixProvider.vb (2)
98
Dim root = Await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(False)
120
Dim root = Await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(False)
VisualBasicSimplifyObjectCreationCodeFixProvider.vb (1)
36
Dim root = Await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(False)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (5)
CodeCleanup\Providers\AbstractTokensCodeCleanupProvider.vb (1)
23
Dim root = Await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(False)
CodeCleanup\Providers\NormalizeModifiersOrOperatorsCodeCleanupProvider.vb (1)
36
Dim root = Await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(False)
CodeCleanup\Providers\RemoveUnnecessaryLineContinuationCodeCleanupProvider.vb (1)
39
Dim root = Await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(False)
OrganizeImports\VisualBasicOrganizeImportsService.vb (1)
21
Dim root = Await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(False)
VisualBasicRemoveUnnecessaryImportsService.vb (1)
43
Dim root = Await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(False)
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (7)
CodeGeneration\AddImportsTests.vb (1)
50
Dim root = Await doc.
GetSyntaxRootAsync
()
Formatting\FormattingTests.vb (4)
3017
Dim root = Await document.
GetSyntaxRootAsync
()
3025
Dim root2 = Await document2.
GetSyntaxRootAsync
()
4204
Dim propertyBlock = (Await document.
GetSyntaxRootAsync
()).DescendantNodes().OfType(Of PropertyBlockSyntax).Single()
4207
(Await document.
GetSyntaxRootAsync
()).ReplaceNode(propertyBlock, propertyBlock.WithAccessors(SyntaxFactory.SingletonList(setter))))
OrganizeImports\OrganizeImportsTests.vb (2)
39
Dim newRoot = Await newDocument.
GetSyntaxRootAsync
()
66
Dim newRoot = Await formattedDocument.
GetSyntaxRootAsync
()
Microsoft.CodeAnalysis.Workspaces (12)
AbstractMoveDeclarationNearReferenceService.cs (1)
82
var root = await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
AbstractMoveDeclarationNearReferenceService.State.cs (1)
104
var syntaxRoot = await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
CaseCorrection\AbstractCaseCorrectionService.cs (1)
31
var root = await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
CaseCorrection\CaseCorrector.cs (2)
29
var root = await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
44
var root = await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Classification\AbstractClassificationService.cs (1)
187
var root = await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
DocumentExtensions.cs (1)
65
root = await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
SemanticDocument.cs (1)
26
var root = await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
SyntaxEditorExtensions.cs (2)
173
var currentRoot = await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
188
currentRoot = await document.
GetSyntaxRootAsync
(cancellationToken).ConfigureAwait(false);
Workspace\Solution\Document.cs (2)
134
/// <see cref="GetSyntaxTreeAsync"/> and <see cref="
GetSyntaxRootAsync
"/> methods.
210
/// In almost all cases, you should call <see cref="
GetSyntaxRootAsync
"/> to fetch the root node, which will parse
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (2)
VisualStudioMSBuildWorkspaceTests.cs (2)
324
var root = await d1.
GetSyntaxRootAsync
();
2871
var root = await document.
GetSyntaxRootAsync
();
Microsoft.CodeAnalysis.Workspaces.UnitTests (33)
CodeCleanup\AddMissingTokensTests.cs (1)
2724
Assert.Equal(expectedResult, (await cleanDocument.
GetSyntaxRootAsync
()).ToFullString());
CodeCleanup\CodeCleanupTests.cs (13)
62
var root = await document.
GetSyntaxRootAsync
();
72
var root = await document.
GetSyntaxRootAsync
();
116
var root = await document.
GetSyntaxRootAsync
();
127
var root = await document.
GetSyntaxRootAsync
();
138
document = document.WithSyntaxRoot((await document.
GetSyntaxRootAsync
()).WithAdditionalAnnotations(annotation));
151
document = document.WithSyntaxRoot((await document.
GetSyntaxRootAsync
()).WithAdditionalAnnotations(annotation));
180
var root = await document.
GetSyntaxRootAsync
(cancellationToken);
200
var root = await document.
GetSyntaxRootAsync
(cancellationToken);
222
var root = await document.
GetSyntaxRootAsync
(cancellationToken);
244
var root = await document.
GetSyntaxRootAsync
(cancellationToken);
308
var root = await document.
GetSyntaxRootAsync
();
315
var newRoot = await newDocument.
GetSyntaxRootAsync
();
356
var root = await document.
GetSyntaxRootAsync
(cancellationToken);
CodeCleanup\Extensions.cs (1)
27
=> (T)document.
GetSyntaxRootAsync
().Result.GetMember(index);
CodeCleanup\FixIncorrectTokenTests.cs (1)
749
Assert.Equal(expectedResult, (await cleanDocument.
GetSyntaxRootAsync
()).ToFullString());
CodeCleanup\NormalizeModifiersOrOperatorsTests.cs (1)
1025
Assert.Equal(expectedResult, (await cleanDocument.
GetSyntaxRootAsync
()).ToFullString());
CodeCleanup\ReduceTokenTests.cs (1)
2013
AssertEx.EqualOrDiff(expectedResult, (await cleanDocument.
GetSyntaxRootAsync
()).ToFullString());
CodeCleanup\RemoveUnnecessaryLineContinuationTests.cs (1)
1382
var actualResult = (await cleanDocument.
GetSyntaxRootAsync
()).ToFullString();
CommandLineProject\CommandLineProjectWorkspaceTests.cs (1)
46
var tree = await gooDoc.
GetSyntaxRootAsync
();
SolutionTests\SolutionTests.cs (10)
2497
var root = await document.
GetSyntaxRootAsync
();
2516
var newRoot = await Formatter.FormatAsync(document, CSharpSyntaxFormattingOptions.Default, CancellationToken.None).Result.
GetSyntaxRootAsync
();
2582
var syntaxRoot = await document.
GetSyntaxRootAsync
(CancellationToken.None);
2803
var docTree = doc.
GetSyntaxRootAsync
().Result;
2824
var docRoot = await doc.
GetSyntaxRootAsync
();
2952
var observedTree = solution.GetDocument(documentId).
GetSyntaxRootAsync
().Result;
2978
var observedTree = solution.GetDocument(documentId).
GetSyntaxRootAsync
().Result;
3055
var newRoot = doc.
GetSyntaxRootAsync
().Result.WithAdditionalAnnotations(SyntaxAnnotation.ElasticAnnotation);
3357
var root = doc.
GetSyntaxRootAsync
().Result;
4307
var root = await doc.
GetSyntaxRootAsync
();
SyntaxNodeTests.cs (2)
94
var root = await doc.
GetSyntaxRootAsync
();
119
var root2 = await doc.
GetSyntaxRootAsync
();
WorkspaceTests\AdhocWorkspaceTests.cs (1)
368
var root = await doc.
GetSyntaxRootAsync
();
Microsoft.VisualStudio.LanguageServices.UnitTests (2)
GoToDefinition\GoToDefinitionApiTests.vb (1)
27
Dim root = Await document.
GetSyntaxRootAsync
()
Venus\DocumentService_IntegrationTests.vb (1)
145
Dim root = Await startDocument.
GetSyntaxRootAsync
()