public TokenSpan(start as Long, end as Long, kind as TokenKind)
Constructs a token span covering [start, end) with the given TokenKind.
| Parameter | Description |
|---|---|
start | Zero-based inclusive start index in the source line. |
end | Zero-based exclusive end index in the source line. |
kind | Lexical classification of the span. |
import klyn.code span = TokenSpan(7, 12, TokenKind.KEYWORD)