mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-08-06 00:02:26 +08:00
Preparations for the 1.0 release
* Less cluttered solution layout. * Move examples to a repository of its own. * Move Roslyn analyzer to a repository of its own. * Enable central package management. * Clean up csproj files. * Add README file to NuGet packages.
This commit is contained in:

committed by
Patrik Svensson

parent
bb72b44d60
commit
42fd801876
26
src/Extensions/Spectre.Console.Json/Syntax/JsonBoolean.cs
Normal file
26
src/Extensions/Spectre.Console.Json/Syntax/JsonBoolean.cs
Normal file
@ -0,0 +1,26 @@
|
||||
namespace Spectre.Console.Json.Syntax;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a boolean literal in the JSON abstract syntax tree.
|
||||
/// </summary>
|
||||
public sealed class JsonBoolean : JsonSyntax
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the lexeme.
|
||||
/// </summary>
|
||||
public string Lexeme { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="JsonBoolean"/> class.
|
||||
/// </summary>
|
||||
/// <param name="lexeme">The lexeme.</param>
|
||||
public JsonBoolean(string lexeme)
|
||||
{
|
||||
Lexeme = lexeme;
|
||||
}
|
||||
|
||||
internal override void Accept<T>(JsonSyntaxVisitor<T> visitor, T context)
|
||||
{
|
||||
visitor.VisitBoolean(this, context);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user