fn render(tree: Ast, gpa: Allocator) RenderError![]u8

gpa is used for allocating the resulting formatted source code, as well as for allocating extra stack memory if needed, because this function utilizes recursion. Note: that’s not actually true yet, see https://github.com/ziglang/zig/issues/1006. Caller owns the returned slice of bytes, allocated with gpa.

Parameters

tree: Ast,
gpa: Allocator,