pub fn addRootErrorMessageWithNotes(
wip: *Wip,
msg: ErrorMessage,
notes: []const ErrorMessage,
) !void wip: *Wipmsg: ErrorMessagenotes: []const ErrorMessage440
441
442
443
444
445
446
447
448
449
450 pub fn addRootErrorMessageWithNotes(
wip: *Wip,
msg: ErrorMessage,
notes: []const ErrorMessage,
) !void {
try wip.addRootErrorMessage(msg);
const notes_start = try wip.reserveNotes(@intCast(notes.len));
for (notes_start.., notes) |i, note| {
wip.extra.items[i] = @backingInt(wip.addErrorMessageAssumeCapacity(note));
}
}