klyn.code.TokenSpan.TokenSpan
constructor
public TokenSpan(start as Long, end as Long, kind as TokenKind)
Description

Constructs a token span covering [start, end) with the given TokenKind.

Parameters
ParameterDescription
startZero-based inclusive start index in the source line.
endZero-based exclusive end index in the source line.
kindLexical classification of the span.
Example
import klyn.code

span = TokenSpan(7, 12, TokenKind.KEYWORD)