You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
400 B
20 lines
400 B
2 years ago
|
using EC.Helper.RabbitFunc.Syntax;
|
||
|
|
||
|
namespace EC.Helper.RabbitFunc.Compiler;
|
||
|
|
||
|
[Serializable]
|
||
|
internal readonly struct TokenWithSpan
|
||
|
{
|
||
|
private readonly Token token;
|
||
|
private readonly IndexSpan span;
|
||
|
|
||
|
public TokenWithSpan(Token token, IndexSpan span)
|
||
|
{
|
||
|
this.token = token;
|
||
|
this.span = span;
|
||
|
}
|
||
|
|
||
|
public IndexSpan Span => span;
|
||
|
|
||
|
public Token Token => token;
|
||
|
}
|