fn warn(t: *Translator, scope: *Scope, tok_idx: TokenIndex, comptime format: []const u8, args: anytype) !void
fn warn(t: *Translator, scope: *Scope, tok_idx: TokenIndex, comptime format: []const u8, args: anytype) !void { const loc = t.tree.tokens.items(.loc)[tok_idx]; const str = try t.locStr(loc); const value = try std.fmt.allocPrint(t.arena, "// {s}: warning: " ++ format, .{str} ++ args); try scope.appendNode(try ZigTag.warning.create(t.arena, value)); }