namespace Spectre.Console.Json.Syntax;
///
/// Represents a string literal in the JSON abstract syntax tree.
///
public sealed class JsonString : JsonSyntax
{
///
/// Gets the lexeme.
///
public string Lexeme { get; }
///
/// Initializes a new instance of the class.
///
/// The lexeme.
public JsonString(string lexeme)
{
Lexeme = lexeme;
}
internal override void Accept(JsonSyntaxVisitor visitor, T context)
{
visitor.VisitString(this, context);
}
}