namespace AspClassic.Parser;
///
/// A parse tree for a Boolean literal expression.
///
public sealed class BooleanLiteralExpression : LiteralExpression
{
private readonly bool _Literal;
///
/// The literal value.
///
public bool Literal => _Literal;
public override object Value => _Literal;
///
/// Constructs a new parse tree for a Boolean literal expression.
///
/// The literal value.
/// The location of the parse tree.
public BooleanLiteralExpression(bool literal, Span span)
: base(TreeType.BooleanLiteralExpression, span)
{
_Literal = literal;
}
}