diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-02-25 18:21:22 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-02-25 18:21:22 -0700 |
| commit | fd208d9d5913a0929e444deb97b91092c427bb14 (patch) | |
| tree | 2d3fa39c5f3b8eec18ead580a8dc1c7a0c091c51 /src/value.zig | |
| parent | 4360f45d7fa242f95aae86a137d56c737798dccf (diff) | |
| download | zig-fd208d9d5913a0929e444deb97b91092c427bb14.tar.gz zig-fd208d9d5913a0929e444deb97b91092c427bb14.zip | |
stage2: implement the error_value AST tag
Diffstat (limited to 'src/value.zig')
| -rw-r--r-- | src/value.zig | 6 |
1 files changed, 3 insertions, 3 deletions
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, }, |
