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,20 @@
#define DEBUG
using System.Diagnostics;
namespace AspClassic.Parser;
/// <summary>
/// A parse tree for a literal expression.
/// </summary>
public abstract class LiteralExpression : Expression
{
public sealed override bool IsConstant => true;
public abstract object Value { get; }
protected LiteralExpression(TreeType type, Span span)
: base(type, span)
{
Debug.Assert(type >= TreeType.StringLiteralExpression && type <= TreeType.BooleanLiteralExpression);
}
}