| ... | @@ -26,6 +26,8 @@ pub fn compile(comptime Ctx: type, alloc: std.mem.Allocator, writer: anytype, co | ... | @@ -26,6 +26,8 @@ pub fn compile(comptime Ctx: type, alloc: std.mem.Allocator, writer: anytype, co |
| 26 | try writer.writeAll("\n"); | 26 | try writer.writeAll("\n"); |
| 27 | } | 27 | } |
| 28 | | 28 | |
| | 29 | pub const Writer = std.ArrayList(u8).Writer; |
| | 30 | |
| 29 | inline fn do(comptime Ctx: type, alloc: std.mem.Allocator, writer: anytype, comptime value: astgen.Value, data: anytype, ctx: anytype, indent: usize, flag1: bool) anyerror!void { | 31 | inline fn do(comptime Ctx: type, alloc: std.mem.Allocator, writer: anytype, comptime value: astgen.Value, data: anytype, ctx: anytype, indent: usize, flag1: bool) anyerror!void { |
| 30 | switch (comptime value) { | 32 | switch (comptime value) { |
| 31 | .element => |v| { | 33 | .element => |v| { |