pub fn isTokenPrecededByTags( tree: *const Ast, ti: TokenIndex, expected_token_tags: []const Token.Tag, ) bool
tree: *const Ast
ti: TokenIndex
expected_token_tags: []const Token.Tag
108 109 110 111 112 113 114 115 116 117 118
pub fn isTokenPrecededByTags( tree: *const Ast, ti: TokenIndex, expected_token_tags: []const Token.Tag, ) bool { return std.mem.endsWith( Token.Tag, tree.tokens.items(.tag)[0..ti], expected_token_tags, ); }