Sema: implement error sets

This commit is contained in:
Andrew Kelley
2021-05-04 13:58:08 -07:00
parent 230ce72f16
commit edfbf85ecd
3 changed files with 24 additions and 23 deletions

View File

@@ -478,6 +478,7 @@ pub const ErrorSet = struct {
names_len: u32,
/// The string bytes are stored in the owner Decl arena.
/// They are in the same order they appear in the AST.
/// The length is given by `names_len`.
names_ptr: [*]const []const u8,
pub fn srcLoc(self: ErrorSet) SrcLoc {