using System;
namespace AspClassic.Parser;
///
/// A parse tree for a string literal expression.
///
public sealed class StringLiteralExpression : LiteralExpression
{
private readonly string _Literal;
///
/// The literal value.
///
public string Literal => _Literal;
public override object Value => _Literal;
///
/// Constructs a new string literal expression parse tree.
///
/// The literal value.
/// The location of the parse tree.
public StringLiteralExpression(string literal, Span span)
: base(TreeType.StringLiteralExpression, span)
{
if (literal == null)
{
throw new ArgumentNullException("literal");
}
_Literal = literal;
}
}