5 references to ThrowExceptionIfFalse
Microsoft.CodeAnalysis.Workspaces (5)
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (5)
962
ThrowExceptionIfFalse
(documentInProjectState.Value.TryGetSyntaxTree(out var tree), "We should have a tree since we have a compilation that should contain it.");
964
ThrowExceptionIfFalse
(compilation.ContainsSyntaxTree(tree), "The tree in the ProjectState should have been in the compilation.");
971
ThrowExceptionIfFalse
(generatedDocument.Value.TryGetSyntaxTree(out var tree), "We should have a tree since we have a compilation that should contain it.");
973
ThrowExceptionIfFalse
(compilation.ContainsSyntaxTree(tree), "The tree for the generated document should have been in the compilation.");
979
ThrowExceptionIfFalse
(syntaxTreesInWorkspaceStates.Contains(tree), "The tree in the Compilation should have been from the workspace.");