8 references to TryGetSyntaxTree
Microsoft.CodeAnalysis.Workspaces (8)
Workspace\ProjectSystem\ProjectSystemProject.cs (1)
306if (documentState.TryGetSyntaxTree(out _))
Workspace\Solution\Document.cs (1)
88if (!DocumentState.TryGetSyntaxTree(out syntaxTree))
Workspace\Solution\DocumentState.cs (1)
501if (TryGetSyntaxTree(out var priorTree))
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (4)
769if (documentState.TryGetSyntaxTree(out _)) 787if (documentState.TryGetSyntaxTree(out var alreadyParsedTree)) 961ThrowExceptionIfFalse(documentInProjectState.Value.TryGetSyntaxTree(out var tree), "We should have a tree since we have a compilation that should contain it."); 970ThrowExceptionIfFalse(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 (1)
31if (document.TryGetSyntaxTree(out var documentTree) && documentTree == syntaxTree)