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