aboutsummaryrefslogtreecommitdiff
path: root/src/value.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-02-25 18:21:22 -0700
committerAndrew Kelley <andrew@ziglang.org>2021-02-25 18:21:22 -0700
commitfd208d9d5913a0929e444deb97b91092c427bb14 (patch)
tree2d3fa39c5f3b8eec18ead580a8dc1c7a0c091c51 /src/value.zig
parent4360f45d7fa242f95aae86a137d56c737798dccf (diff)
downloadzig-fd208d9d5913a0929e444deb97b91092c427bb14.tar.gz
zig-fd208d9d5913a0929e444deb97b91092c427bb14.zip
stage2: implement the error_value AST tag
Diffstat (limited to 'src/value.zig')
-rw-r--r--src/value.zig6
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,
},