progress
This commit is contained in:
parent
16e76d6b31
commit
484dbfc9d9
529 changed files with 113694 additions and 0 deletions
27
AspClassic.Parser/DateLiteralToken.cs
Normal file
27
AspClassic.Parser/DateLiteralToken.cs
Normal file
|
@ -0,0 +1,27 @@
|
|||
using System;
|
||||
|
||||
namespace AspClassic.Parser;
|
||||
|
||||
/// <summary>
|
||||
/// A date/time literal.
|
||||
/// </summary>
|
||||
public sealed class DateLiteralToken : Token
|
||||
{
|
||||
private readonly DateTime _Literal;
|
||||
|
||||
/// <summary>
|
||||
/// The literal value.
|
||||
/// </summary>
|
||||
public DateTime Literal => _Literal;
|
||||
|
||||
/// <summary>
|
||||
/// Constructs a new date literal instance.
|
||||
/// </summary>
|
||||
/// <param name="literal">The literal value.</param>
|
||||
/// <param name="span">The location of the literal.</param>
|
||||
public DateLiteralToken(DateTime literal, Span span)
|
||||
: base(TokenType.DateLiteral, span)
|
||||
{
|
||||
_Literal = literal;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue