progress
This commit is contained in:
parent
16e76d6b31
commit
484dbfc9d9
529 changed files with 113694 additions and 0 deletions
28
AspClassic.Parser/BlockStatement.cs
Normal file
28
AspClassic.Parser/BlockStatement.cs
Normal file
|
@ -0,0 +1,28 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace AspClassic.Parser;
|
||||
|
||||
/// <summary>
|
||||
/// A parse tree for a block statement.
|
||||
/// </summary>
|
||||
public abstract class BlockStatement : Statement
|
||||
{
|
||||
private readonly StatementCollection _Statements;
|
||||
|
||||
/// <summary>
|
||||
/// The statements in the block.
|
||||
/// </summary>
|
||||
public StatementCollection Statements => _Statements;
|
||||
|
||||
protected BlockStatement(TreeType type, StatementCollection statements, Span span, IList<Comment> comments)
|
||||
: base(type, span, comments)
|
||||
{
|
||||
_Statements = statements;
|
||||
SetParent(statements);
|
||||
}
|
||||
|
||||
protected override void GetChildTrees(IList<Tree> childList)
|
||||
{
|
||||
Tree.AddChild(childList, Statements);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue