progress
This commit is contained in:
parent
16e76d6b31
commit
484dbfc9d9
529 changed files with 113694 additions and 0 deletions
41
AspClassic.Parser/FinallyBlockStatement.cs
Normal file
41
AspClassic.Parser/FinallyBlockStatement.cs
Normal file
|
@ -0,0 +1,41 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace AspClassic.Parser;
|
||||
|
||||
/// <summary>
|
||||
/// A parse tree for a Finally block statement.
|
||||
/// </summary>
|
||||
public sealed class FinallyBlockStatement : BlockStatement
|
||||
{
|
||||
private readonly FinallyStatement _FinallyStatement;
|
||||
|
||||
/// <summary>
|
||||
/// The Finally statement.
|
||||
/// </summary>
|
||||
public FinallyStatement FinallyStatement => _FinallyStatement;
|
||||
|
||||
/// <summary>
|
||||
/// Constructs a new parse tree for a Finally block statement.
|
||||
/// </summary>
|
||||
/// <param name="finallyStatement">The Finally statement.</param>
|
||||
/// <param name="statements">The statements in the block.</param>
|
||||
/// <param name="span">The location of the parse tree.</param>
|
||||
/// <param name="comments">The comments for the parse tree.</param>
|
||||
public FinallyBlockStatement(FinallyStatement finallyStatement, StatementCollection statements, Span span, IList<Comment> comments)
|
||||
: base(TreeType.FinallyBlockStatement, statements, span, comments)
|
||||
{
|
||||
if (finallyStatement == null)
|
||||
{
|
||||
throw new ArgumentNullException("finallyStatement");
|
||||
}
|
||||
SetParent(finallyStatement);
|
||||
_FinallyStatement = finallyStatement;
|
||||
}
|
||||
|
||||
protected override void GetChildTrees(IList<Tree> childList)
|
||||
{
|
||||
Tree.AddChild(childList, FinallyStatement);
|
||||
base.GetChildTrees(childList);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue