Like fromSliceAlloc, but operates on Zoir instead of ZON source.
pub fn fromZoirAlloc(
T: type,
gpa: Allocator,
ast: Ast,
zoir: Zoir,
diag: ?*Diagnostics,
options: Options,
) error
pub fn fromZoirAlloc(
T: type,
gpa: Allocator,
ast: Ast,
zoir: Zoir,
diag: ?*Diagnostics,
options: Options,
) error{ OutOfMemory, ParseZon }!T {
return fromZoirNodeAlloc(T, gpa, ast, zoir, .root, diag, options);
}