using System.Collections.Generic; namespace AspClassic.Parser; /// /// A parse tree for an entire file. /// public sealed class File : Tree { private readonly DeclarationCollection _Declarations; /// /// The declarations in the file. /// public DeclarationCollection Declarations => _Declarations; /// /// Constructs a new file parse tree. /// /// The declarations in the file. /// The location of the tree. public File(DeclarationCollection declarations, Span span) : base(TreeType.File, span) { SetParent(declarations); _Declarations = declarations; } protected override void GetChildTrees(IList childList) { Tree.AddChild(childList, Declarations); } }