28 references to GetSyntaxTreeSynchronously
Microsoft.CodeAnalysis.EditorFeatures (2)
CommentSelection\AbstractCommentSelectionBase.cs (1)
152var oldSyntaxTree = document.GetSyntaxTreeSynchronously(cancellationToken);
TextStructureNavigation\AbstractTextStructureNavigatorProvider.TextStructureNavigator.cs (1)
328var syntaxTree = GetDocument(point).GetSyntaxTreeSynchronously(cancellationToken);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
EditAndContinue\EditAndContinueTestHelpers.cs (2)
115var oldTrees = oldDocuments.Select(d => d.GetSyntaxTreeSynchronously(default)!).ToArray(); 116var newTrees = newDocuments.Select(d => d.GetSyntaxTreeSynchronously(default)!).ToArray();
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
EditAndContinue\RemoteEditAndContinueServiceTests.cs (1)
218var syntaxTree = solution.GetRequiredDocument(documentId).GetSyntaxTreeSynchronously(CancellationToken.None)!;
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (7)
DocumentationComments\XmlTagCompletionCommandHandler.vb (1)
32Dim tree = document.GetSyntaxTreeSynchronously(cancellationToken)
EndConstructGeneration\VisualBasicEndConstructGenerationService.vb (1)
154Dim tree = document.GetSyntaxTreeSynchronously(cancellationToken)
LineCommit\CommitBufferManager.vb (3)
148Dim tree = _dirtyState.BaseDocument.GetSyntaxTreeSynchronously(cancellationToken) 181Dim tree = document.GetSyntaxTreeSynchronously(cancellationToken) 234Dim tree = document.GetSyntaxTreeSynchronously(cancellationToken)
LineCommit\CommitCommandHandler.vb (1)
202Dim tree = document.GetSyntaxTreeSynchronously(cancellationToken)
LineCommit\CommitFormatter.vb (1)
67Dim tree = document.GetSyntaxTreeSynchronously(cancellationToken)
Microsoft.CodeAnalysis.Workspaces (5)
AbstractGeneratedCodeRecognitionService.cs (1)
20var syntaxTree = document.GetSyntaxTreeSynchronously(cancellationToken);
DocumentExtensions.cs (1)
55var syntaxTree = document.GetSyntaxTreeSynchronously(cancellationToken);
Workspace\Solution\Document.cs (1)
250var tree = this.GetSyntaxTreeSynchronously(cancellationToken)!;
Workspace\Solution\TextDocument.cs (2)
82/// <remarks>This is internal for the same reason <see cref="Document.GetSyntaxTreeSynchronously(CancellationToken)"/> is internal: 96/// <remarks>This is internal for the same reason <see cref="Document.GetSyntaxTreeSynchronously(CancellationToken)"/> is internal:
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
SolutionTests\SolutionTests.cs (2)
3138var tree = document.GetSyntaxTreeSynchronously(default); 4136Assert.Null(document.GetSyntaxTreeSynchronously(CancellationToken.None));
Microsoft.VisualStudio.LanguageServices (5)
LanguageService\AbstractLanguageService`2.VsLanguageDebugInfo.cs (1)
319var tree = document.GetSyntaxTreeSynchronously(cancellationToken);
TaskList\ProjectExternalErrorReporter.cs (1)
330var tree = document.GetSyntaxTreeSynchronously(CancellationToken.None);
Venus\ContainedLanguageCodeSupport.cs (3)
65var tree = document.GetSyntaxTreeSynchronously(cancellationToken); 209var targetSyntaxTree = targetDocument.GetSyntaxTreeSynchronously(cancellationToken); 495var containingTree = document.GetSyntaxTreeSynchronously(cancellationToken);
Microsoft.VisualStudio.LanguageServices.CSharp (2)
LanguageService\CSharpDebuggerIntelliSenseContext.cs (1)
68var tree = document.GetSyntaxTreeSynchronously(CancellationToken.None);
Snippets\SnippetCommandHandler.cs (1)
164var syntaxTree = document.GetSyntaxTreeSynchronously(cancellationToken);
Microsoft.VisualStudio.LanguageServices.VisualBasic (2)
LanguageService\VisualBasicDebuggerIntelliSenseContext.vb (1)
62Dim tree = document.GetSyntaxTreeSynchronously(CancellationToken.None)
Snippets\SnippetCommandHandler.vb (1)
58Dim syntaxTree = document.GetSyntaxTreeSynchronously(CancellationToken.None)