using System.Collections.Generic;
namespace AspClassic.Parser;
public class ScriptBlock : Tree
{
private readonly StatementCollection _statements;
///
/// The declarations in the file.
///
public StatementCollection Statements => _statements;
///
/// Constructs a new file parse tree.
///
/// The statements in the file.
/// The location of the tree.
public ScriptBlock(StatementCollection statements, Span span)
: base(TreeType.ScriptBlock, span)
{
SetParent(statements);
_statements = statements;
}
protected override void GetChildTrees(IList childList)
{
Tree.AddChild(childList, _statements);
}
}