This commit is contained in:
Jelle Luteijn 2022-05-15 11:19:49 +02:00
parent 16e76d6b31
commit 484dbfc9d9
529 changed files with 113694 additions and 0 deletions

View file

@ -0,0 +1,27 @@
namespace AspClassic.Parser;
/// <summary>
/// A parse tree for a character literal expression.
/// </summary>
public sealed class CharacterLiteralExpression : LiteralExpression
{
private readonly char _Literal;
/// <summary>
/// The literal value.
/// </summary>
public char Literal => _Literal;
public override object Value => _Literal;
/// <summary>
/// Constructs a new parse tree for a character literal expression.
/// </summary>
/// <param name="literal">The literal value.</param>
/// <param name="span">The location of the parse tree.</param>
public CharacterLiteralExpression(char literal, Span span)
: base(TreeType.CharacterLiteralExpression, span)
{
_Literal = literal;
}
}