public GenerationResult(Document document, SemanticModel semanticModel) { this.Document = document; this.SemanticModel = semanticModel; this.Declarations = semanticModel.GetDeclarationsInSpan(TextSpan.FromBounds(0, semanticModel.SyntaxTree.Length), true, CancellationToken.None); }