aboutsummaryrefslogtreecommitdiff
path: root/src/type.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2023-05-03 13:01:10 -0700
committerAndrew Kelley <andrew@ziglang.org>2023-06-10 20:40:03 -0700
commit264292f430668652818b30fe6cf5d8b434530c84 (patch)
tree170811d1df9e87806e3e0a32933590271555b0d3 /src/type.zig
parentcdf6acba961648cc800027b3e0adb0a3593a610a (diff)
downloadzig-264292f430668652818b30fe6cf5d8b434530c84.tar.gz
zig-264292f430668652818b30fe6cf5d8b434530c84.zip
InternPool: implement resolveTypeFields
Diffstat (limited to 'src/type.zig')
-rw-r--r--src/type.zig10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/type.zig b/src/type.zig
index 027f4432f4..cafb1beefe 100644
--- a/src/type.zig
+++ b/src/type.zig
@@ -43,6 +43,7 @@ pub const Type = struct {
.optional_type => return .Optional,
.error_union_type => return .ErrorUnion,
.struct_type => return .Struct,
+ .union_type => return .Union,
.simple_type => |s| switch (s) {
.f16,
.f32,
@@ -2018,6 +2019,7 @@ pub const Type = struct {
.error_union_type => @panic("TODO"),
.simple_type => |s| return writer.writeAll(@tagName(s)),
.struct_type => @panic("TODO"),
+ .union_type => @panic("TODO"),
.simple_value => unreachable,
.extern_func => unreachable,
.int => unreachable,
@@ -2490,6 +2492,7 @@ pub const Type = struct {
.var_args_param => unreachable,
},
.struct_type => @panic("TODO"),
+ .union_type => @panic("TODO"),
.simple_value => unreachable,
.extern_func => unreachable,
.int => unreachable,
@@ -2768,6 +2771,7 @@ pub const Type = struct {
=> false,
},
.struct_type => @panic("TODO"),
+ .union_type => @panic("TODO"),
.simple_value => unreachable,
.extern_func => unreachable,
.int => unreachable,
@@ -3083,6 +3087,7 @@ pub const Type = struct {
.error_union_type => @panic("TODO"),
.simple_type => @panic("TODO"),
.struct_type => @panic("TODO"),
+ .union_type => @panic("TODO"),
.simple_value => unreachable,
.extern_func => unreachable,
.int => unreachable,
@@ -3478,6 +3483,7 @@ pub const Type = struct {
.error_union_type => @panic("TODO"),
.simple_type => @panic("TODO"),
.struct_type => @panic("TODO"),
+ .union_type => @panic("TODO"),
.simple_value => unreachable,
.extern_func => unreachable,
.int => unreachable,
@@ -3816,6 +3822,7 @@ pub const Type = struct {
.error_union_type => @panic("TODO"),
.simple_type => @panic("TODO"),
.struct_type => @panic("TODO"),
+ .union_type => @panic("TODO"),
.simple_value => unreachable,
.extern_func => unreachable,
.int => unreachable,
@@ -4847,6 +4854,7 @@ pub const Type = struct {
.error_union_type => @panic("TODO"),
.simple_type => @panic("TODO"),
.struct_type => unreachable,
+ .union_type => unreachable,
.simple_value => unreachable,
.extern_func => unreachable,
.int => unreachable,
@@ -5171,6 +5179,7 @@ pub const Type = struct {
.var_args_param => unreachable,
},
.struct_type => @panic("TODO"),
+ .union_type => @panic("TODO"),
.simple_value => unreachable,
.extern_func => unreachable,
.int => unreachable,
@@ -5373,6 +5382,7 @@ pub const Type = struct {
.error_union_type => @panic("TODO"),
.simple_type => @panic("TODO"),
.struct_type => @panic("TODO"),
+ .union_type => @panic("TODO"),
.simple_value => unreachable,
.extern_func => unreachable,
.int => unreachable,