11 references to TryGetSyntaxTree
Microsoft.CodeAnalysis.Workspaces (11)
Workspace\ProjectSystem\ProjectSystemProject.cs (1)
326
if (documentState.
TryGetSyntaxTree
(out _))
Workspace\Solution\Document.cs (1)
87
if (!DocumentState.
TryGetSyntaxTree
(out syntaxTree))
Workspace\Solution\DocumentState.cs (1)
502
if (
TryGetSyntaxTree
(out var priorTree))
Workspace\Solution\SolutionCompilationState.cs (1)
999
oldDocumentState.
TryGetSyntaxTree
(out var oldTree) && oldTree.TryGetRoot(out var oldRoot) && oldRoot == root
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (4)
779
if (documentState.
TryGetSyntaxTree
(out _))
797
if (documentState.
TryGetSyntaxTree
(out var alreadyParsedTree))
971
ThrowExceptionIfFalse(documentInProjectState.Value.
TryGetSyntaxTree
(out var tree), "We should have a tree since we have a compilation that should contain it.");
980
ThrowExceptionIfFalse(generatedDocument.Value.
TryGetSyntaxTree
(out var tree), "We should have a tree since we have a compilation that should contain it.");
Workspace\Solution\SolutionCompilationState.SymbolToProjectId.cs (2)
31
if (document.
TryGetSyntaxTree
(out var documentTree) && documentTree == syntaxTree)
43
if (generatedDocument.
TryGetSyntaxTree
(out var documentTree) && documentTree == syntaxTree)
Workspace\Solution\SourceGeneratedDocumentState.cs (1)
230
if (this.
TryGetSyntaxTree
(out var tree) &&