fn hasTrailingComment(tree: Ast, t: Ast.TokenIndex) bool
fn hasTrailingComment(tree: Ast, t: Ast.TokenIndex) bool { const start = tree.tokenStart(t) + tree.tokenSlice(t).len; const between = tree.source[start..tree.tokenStart(t + 1)]; for (between) |byte| switch (byte) { '\n' => return false, '/' => return true, else => continue, }; return false; }