using System.Collections.Generic;
namespace AspClassic.Parser;
///
/// A parse tree for a block statement.
///
public abstract class BlockStatement : Statement
{
private readonly StatementCollection _Statements;
///
/// The statements in the block.
///
public StatementCollection Statements => _Statements;
protected BlockStatement(TreeType type, StatementCollection statements, Span span, IList comments)
: base(type, span, comments)
{
_Statements = statements;
SetParent(statements);
}
protected override void GetChildTrees(IList childList)
{
Tree.AddChild(childList, Statements);
}
}