22 references to GetRequiredSyntaxRootSynchronously
Microsoft.CodeAnalysis.CSharp.EditorFeatures (7)
CommentSelection\CSharpToggleBlockCommentCommandHandler.cs (1)
50var root = document.GetRequiredSyntaxRootSynchronously(cancellationToken);
CompleteStatement\CompleteStatementCommandHandler.cs (1)
109var root = document.GetRequiredSyntaxRootSynchronously(cancellationToken);
FixInterpolatedVerbatimString\FixInterpolatedVerbatimStringCommandHandler.cs (1)
78var root = document.GetRequiredSyntaxRootSynchronously(cancellationToken);
RawStringLiteral\RawStringLiteralCommandHandler_TypeChar.cs (3)
113var root = document.GetRequiredSyntaxRootSynchronously(cancellationToken); 165var root = document.GetRequiredSyntaxRootSynchronously(cancellationToken); 214var root = document.GetRequiredSyntaxRootSynchronously(cancellationToken);
StringCopyPaste\StringCopyPasteCommandHandler.cs (1)
285var rootAfterPaste = documentAfterPaste.GetRequiredSyntaxRootSynchronously(cancellationToken);
Microsoft.CodeAnalysis.EditorFeatures (2)
GoToDefinition\AbstractGoToDefinitionService.cs (1)
141var syntaxRoot = document.GetRequiredSyntaxRootSynchronously(cancellationToken);
InlineRename\InlineRenameSession.cs (1)
934var root = newDocument.GetRequiredSyntaxRootSynchronously(cancellationToken);
Microsoft.CodeAnalysis.EditorFeatures.Cocoa (4)
Snippets\CSharpSnippets\SnippetFunctions\SnippetFunctionGenerateSwitchCases.cs (2)
88var syntaxRoot = documentWithCaseAdded.GetRequiredSyntaxRootSynchronously(cancellationToken); 101simplifiedTypeName = simplifiedDocument.GetRequiredSyntaxRootSynchronously(cancellationToken).GetAnnotatedNodesAndTokens(typeAnnotation).Single().ToString();
Snippets\CSharpSnippets\SnippetFunctions\SnippetFunctionSimpleTypeName.cs (2)
29var syntaxRoot = documentWithFullyQualifiedTypeName.GetRequiredSyntaxRootSynchronously(cancellationToken); 42simplifiedTypeName = simplifiedDocument.GetRequiredSyntaxRootSynchronously(cancellationToken).GetAnnotatedNodesAndTokens(typeAnnotation).Single().ToString();
Microsoft.CodeAnalysis.Features (2)
Shared\Extensions\DocumentExtensions.cs (2)
37var root = document.GetRequiredSyntaxRootSynchronously(cancellationToken); 44Debug.Assert(document.GetRequiredSyntaxRootSynchronously(CancellationToken.None) == root);
Microsoft.CodeAnalysis.Workspaces (1)
ParsedDocument.cs (1)
45var root = document.GetRequiredSyntaxRootSynchronously(cancellationToken);
Microsoft.VisualStudio.LanguageServices.CSharp (1)
Snippets\SnippetExpansionClient.cs (1)
105var root = document.GetRequiredSyntaxRootSynchronously(cancellationToken);
Microsoft.VisualStudio.LanguageServices.Implementation (5)
CodeModel\AbstractCodeModelService.cs (4)
1033var root = document.GetRequiredSyntaxRootSynchronously(cancellationToken); 1067var root = document.GetRequiredSyntaxRootSynchronously(cancellationToken); 1104.GetRequiredSyntaxRootSynchronously(cancellationToken) 1128var oldRoot = document.GetRequiredSyntaxRootSynchronously(cancellationToken);
CodeModel\FileCodeModel.cs (1)
437return GetDocument().GetRequiredSyntaxRootSynchronously(CancellationToken.None);