fn internalParseArray( comptime T: type, comptime Child: type, allocator: Allocator, source: anytype, options: ParseOptions, ) !T
T: type
Child: type
allocator: Allocator
source
options: ParseOptions
526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543
fn internalParseArray( comptime T: type, comptime Child: type, allocator: Allocator, source: anytype, options: ParseOptions, ) !T { assert(.array_begin == try source.next()); var r: T = undefined; for (&r) |*elem| { elem.* = try innerParse(Child, allocator, source, options); } if (.array_end != try source.next()) return error.UnexpectedToken; return r; }