fn isMatchingIdent(ast: *const Ast, node: Ast.Node.Index, string: []const u8) bool
fn isMatchingIdent(ast: *const Ast, node: Ast.Node.Index, string: []const u8) bool { switch (ast.nodeTag(node)) { .identifier => { const token_index = ast.nodeMainToken(node); const name_bytes = ast.tokenSlice(token_index); return std.mem.eql(u8, name_bytes, string); }, else => return false, } }