fn addExtra(astgen: *AstGen, extra: anytype) Allocator.Error!u32 astgen: *AstGenextra76
77
78
79
80fn addExtra(astgen: *AstGen, extra: anytype) Allocator.Error!u32 {
const field_count = @typeInfo(@TypeOf(extra)).@"struct".field_names.len;
try astgen.extra.ensureUnusedCapacity(astgen.gpa, field_count);
return addExtraAssumeCapacity(astgen, extra);
}