29 lines
700 B
C#
29 lines
700 B
C#
using System;
|
|
|
|
namespace AspClassic.Parser;
|
|
|
|
/// <summary>
|
|
/// A parse tree for a date literal expression.
|
|
/// </summary>
|
|
public sealed class DateLiteralExpression : LiteralExpression
|
|
{
|
|
private readonly DateTime _Literal;
|
|
|
|
/// <summary>
|
|
/// The literal value.
|
|
/// </summary>
|
|
public DateTime Literal => _Literal;
|
|
|
|
public override object Value => _Literal;
|
|
|
|
/// <summary>
|
|
/// Constructs a new parse tree for a date literal.
|
|
/// </summary>
|
|
/// <param name="literal">The literal value.</param>
|
|
/// <param name="span">The location of the parse tree.</param>
|
|
public DateLiteralExpression(DateTime literal, Span span)
|
|
: base(TreeType.DateLiteralExpression, span)
|
|
{
|
|
_Literal = literal;
|
|
}
|
|
}
|