mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-04-16 08:52:50 +08:00
26 lines
571 B
C#
26 lines
571 B
C#
namespace Spectre.Console.Cli;
|
|
|
|
internal sealed class TemplateToken
|
|
{
|
|
public Kind TokenKind { get; }
|
|
public int Position { get; }
|
|
public string Value { get; }
|
|
public string Representation { get; }
|
|
|
|
public TemplateToken(Kind kind, int position, string value, string representation)
|
|
{
|
|
TokenKind = kind;
|
|
Position = position;
|
|
Value = value;
|
|
Representation = representation;
|
|
}
|
|
|
|
public enum Kind
|
|
{
|
|
Unknown = 0,
|
|
LongName,
|
|
ShortName,
|
|
RequiredValue,
|
|
OptionalValue,
|
|
}
|
|
} |