mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-06-19 13:28:16 +08:00
17 lines
401 B
C#
17 lines
401 B
C#
using System;
|
|
|
|
namespace Spectre.Console;
|
|
|
|
internal sealed class MarkupToken
|
|
{
|
|
public MarkupTokenKind Kind { get; }
|
|
public string Value { get; }
|
|
public int Position { get; set; }
|
|
|
|
public MarkupToken(MarkupTokenKind kind, string value, int position)
|
|
{
|
|
Kind = kind;
|
|
Value = value ?? throw new ArgumentNullException(nameof(value));
|
|
Position = position;
|
|
}
|
|
} |