progress
This commit is contained in:
parent
16e76d6b31
commit
484dbfc9d9
529 changed files with 113694 additions and 0 deletions
30
AspClassic.Parser/ScriptBlock.cs
Normal file
30
AspClassic.Parser/ScriptBlock.cs
Normal file
|
@ -0,0 +1,30 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace AspClassic.Parser;
|
||||
|
||||
public class ScriptBlock : Tree
|
||||
{
|
||||
private readonly StatementCollection _statements;
|
||||
|
||||
/// <summary>
|
||||
/// The declarations in the file.
|
||||
/// </summary>
|
||||
public StatementCollection Statements => _statements;
|
||||
|
||||
/// <summary>
|
||||
/// Constructs a new file parse tree.
|
||||
/// </summary>
|
||||
/// <param name="statements">The statements in the file.</param>
|
||||
/// <param name="span">The location of the tree.</param>
|
||||
public ScriptBlock(StatementCollection statements, Span span)
|
||||
: base(TreeType.ScriptBlock, span)
|
||||
{
|
||||
SetParent(statements);
|
||||
_statements = statements;
|
||||
}
|
||||
|
||||
protected override void GetChildTrees(IList<Tree> childList)
|
||||
{
|
||||
Tree.AddChild(childList, _statements);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue