From 9a0006c9365b60df65274b14e26d416798c1341f Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Thu, 4 May 2023 14:02:26 -0700 Subject: [PATCH] add pub Writer decl --- src/lib.zig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib.zig b/src/lib.zig index 2f35c2f49afde1ac3360759397cbaf0429d9b5b5..8a707b25d76f2cb53aea1d28babe14541009aabf 100644 --- a/src/lib.zig +++ b/src/lib.zig @@ -26,6 +26,8 @@ pub fn compile(comptime Ctx: type, alloc: std.mem.Allocator, writer: anytype, co try writer.writeAll("\n"); } +pub const Writer = std.ArrayList(u8).Writer; + 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 { switch (comptime value) { .element => |v| { -- 2.54.0