mirror of
https://github.com/actions/runner.git
synced 2025-12-19 08:50:41 +00:00
29 lines
690 B
C#
29 lines
690 B
C#
using System;
|
|
|
|
namespace GitHub.DistributedTask.Expressions
|
|
{
|
|
internal sealed class Token
|
|
{
|
|
public Token(TokenKind kind, Char rawValue, Int32 index, Object parsedValue = null)
|
|
: this(kind, rawValue.ToString(), index, parsedValue)
|
|
{
|
|
}
|
|
|
|
public Token(TokenKind kind, String rawValue, Int32 index, Object parsedValue = null)
|
|
{
|
|
Kind = kind;
|
|
RawValue = rawValue;
|
|
Index = index;
|
|
ParsedValue = parsedValue;
|
|
}
|
|
|
|
public TokenKind Kind { get; }
|
|
|
|
public String RawValue { get; }
|
|
|
|
public Int32 Index { get; }
|
|
|
|
public Object ParsedValue { get; }
|
|
}
|
|
}
|