From fd208d9d5913a0929e444deb97b91092c427bb14 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Thu, 25 Feb 2021 18:21:22 -0700 Subject: stage2: implement the error_value AST tag --- src/value.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/value.zig') diff --git a/src/value.zig b/src/value.zig index a602d08c06..0a6a48dbf7 100644 --- a/src/value.zig +++ b/src/value.zig @@ -2138,13 +2138,13 @@ pub const Value = extern union { data: f128, }; - // TODO move to type.zig + /// TODO move to type.zig pub const ErrorSet = struct { pub const base_tag = Tag.error_set; base: Payload = .{ .tag = base_tag }, data: struct { - // TODO revisit this when we have the concept of the error tag type + /// TODO revisit this when we have the concept of the error tag type fields: std.StringHashMapUnmanaged(u16), decl: *Module.Decl, }, @@ -2153,9 +2153,9 @@ pub const Value = extern union { pub const Error = struct { base: Payload = .{ .tag = .@"error" }, data: struct { - // TODO revisit this when we have the concept of the error tag type /// `name` is owned by `Module` and will be valid for the entire /// duration of the compilation. + /// TODO revisit this when we have the concept of the error tag type name: []const u8, value: u16, }, -- cgit v1.2.3