zld: parse []TbdV3 before TbdV3
This commit is contained in:
@@ -127,6 +127,16 @@ pub const LibStub = struct {
|
||||
break :blk out;
|
||||
}
|
||||
|
||||
err: {
|
||||
log.debug("trying to parse as []TbdV3", .{});
|
||||
const inner = lib_stub.yaml.parse([]TbdV3) catch break :err;
|
||||
var out = try lib_stub.yaml.arena.allocator.alloc(Tbd, inner.len);
|
||||
for (inner) |doc, i| {
|
||||
out[i] = .{ .v3 = doc };
|
||||
}
|
||||
break :blk out;
|
||||
}
|
||||
|
||||
err: {
|
||||
log.debug("trying to parse as TbdV3", .{});
|
||||
const inner = lib_stub.yaml.parse(TbdV3) catch break :err;
|
||||
|
||||
Reference in New Issue
Block a user