Function tokenStart [src]

Prototype

pub fn tokenStart(tree: *const Ast, token_index: TokenIndex) ByteOffset

Parameters

tree: *const Asttoken_index: TokenIndex

Source

pub fn tokenStart(tree: *const Ast, token_index: TokenIndex) ByteOffset { return tree.tokens.items(.start)[token_index]; }