mirror of
https://github.com/spectreconsole/spectre.console.git
synced 2025-12-26 07:47:56 +01:00
* Move Spectre.Console.Cli to its own repository * Update build script to use Cake.Sdk and .NET Make * Remove StyleCop (unmaintained) * Add linting using dotnet format * Fix generator which was broken * Update dependencies
26 lines
648 B
C#
26 lines
648 B
C#
namespace Spectre.Console.Json.Syntax;
|
|
|
|
/// <summary>
|
|
/// Represents a string literal in the JSON abstract syntax tree.
|
|
/// </summary>
|
|
public sealed class JsonString : JsonSyntax
|
|
{
|
|
/// <summary>
|
|
/// Gets the lexeme.
|
|
/// </summary>
|
|
public string Lexeme { get; }
|
|
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="JsonString"/> class.
|
|
/// </summary>
|
|
/// <param name="lexeme">The lexeme.</param>
|
|
public JsonString(string lexeme)
|
|
{
|
|
Lexeme = lexeme;
|
|
}
|
|
|
|
internal override void Accept<T>(JsonSyntaxVisitor<T> visitor, T context)
|
|
{
|
|
visitor.VisitString(this, context);
|
|
}
|
|
} |