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
13 lines
307 B
C#
13 lines
307 B
C#
namespace Spectre.Console.Json;
|
|
|
|
internal sealed class JsonToken
|
|
{
|
|
public JsonTokenType Type { get; }
|
|
public string Lexeme { get; }
|
|
|
|
public JsonToken(JsonTokenType type, string lexeme)
|
|
{
|
|
Type = type;
|
|
Lexeme = lexeme ?? throw new ArgumentNullException(nameof(lexeme));
|
|
}
|
|
} |