using System; namespace AspClassic.Parser; /// /// A string literal. /// public sealed class StringLiteralToken : Token { private readonly string _Literal; /// /// The value of the literal. /// public string Literal => _Literal; /// /// Constructs a new string literal token. /// /// The value of the literal. /// The location of the literal. public StringLiteralToken(string literal, Span span) : base(TokenType.StringLiteral, span) { if (literal == null) { throw new ArgumentNullException("literal"); } _Literal = literal; } }