progress
This commit is contained in:
parent
16e76d6b31
commit
484dbfc9d9
529 changed files with 113694 additions and 0 deletions
34
AspClassic.Parser/NextStatement.cs
Normal file
34
AspClassic.Parser/NextStatement.cs
Normal file
|
@ -0,0 +1,34 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace AspClassic.Parser;
|
||||
|
||||
/// <summary>
|
||||
/// A parse tree for a Next statement.
|
||||
/// </summary>
|
||||
public sealed class NextStatement : Statement
|
||||
{
|
||||
private readonly ExpressionCollection _Variables;
|
||||
|
||||
/// <summary>
|
||||
/// The loop control variables.
|
||||
/// </summary>
|
||||
public ExpressionCollection Variables => _Variables;
|
||||
|
||||
/// <summary>
|
||||
/// Constructs a parse tree for a Next statement.
|
||||
/// </summary>
|
||||
/// <param name="variables">The loop control variables.</param>
|
||||
/// <param name="span">The location of the parse tree.</param>
|
||||
/// <param name="comments">The comments for the parse tree.</param>
|
||||
public NextStatement(ExpressionCollection variables, Span span, IList<Comment> comments)
|
||||
: base(TreeType.NextStatement, span, comments)
|
||||
{
|
||||
SetParent(variables);
|
||||
_Variables = variables;
|
||||
}
|
||||
|
||||
protected override void GetChildTrees(IList<Tree> childList)
|
||||
{
|
||||
Tree.AddChild(childList, Variables);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue