SourceReader.CreateToken Method
Definition
Creates a Token<TKind> of the specified kind from the specified SourceMark up to the current position.
public Token<TKind> CreateToken<TKind>(TKind kind, SourceMark start)
where TKind : struct, Enum;
Type Parameters
| Name | Description |
|---|---|
TKind |
The type of the enum that identifies the different kinds of token. |
Parameters
| Name | Type | Description |
|---|---|---|
kind |
TKind |
The kind of the token. |
start |
SourceMark |
The start of the token. |
Returns
A new Token<TKind> instance.