klyn.code.Token.startOffset
property
public readonly property startOffset as Long
Description

Zero-based inclusive start offset in the full source text.

Returns

Start offset.

Example
import klyn.code

tok = Token(TokenKind.KEYWORD, "return", 5, 8, 40, 46)
assert tok.startOffset == 40