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

Zero-based line number where the token starts.

Returns

Line index.

Example
import klyn.code

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