using System.Collections.Generic;
namespace AspClassic.Parser;
///
/// A parse tree for a Next statement.
///
public sealed class NextStatement : Statement
{
private readonly ExpressionCollection _Variables;
///
/// The loop control variables.
///
public ExpressionCollection Variables => _Variables;
///
/// Constructs a parse tree for a Next statement.
///
/// The loop control variables.
/// The location of the parse tree.
/// The comments for the parse tree.
public NextStatement(ExpressionCollection variables, Span span, IList comments)
: base(TreeType.NextStatement, span, comments)
{
SetParent(variables);
_Variables = variables;
}
protected override void GetChildTrees(IList childList)
{
Tree.AddChild(childList, Variables);
}
}