diff options
| author | Martin Wickham <spexguy070@gmail.com> | 2021-10-01 17:45:13 -0500 |
|---|---|---|
| committer | Martin Wickham <spexguy070@gmail.com> | 2021-10-02 15:21:49 -0500 |
| commit | 272bad3f12a43e3613498080b6b656de5e28e2cf (patch) | |
| tree | 8257a0a5416d6f70656ad441a12e2cb4a151fd18 /src/type.zig | |
| parent | fd60012c21360202a74b17d87d230a18d56edc88 (diff) | |
| download | zig-272bad3f12a43e3613498080b6b656de5e28e2cf.tar.gz zig-272bad3f12a43e3613498080b6b656de5e28e2cf.zip | |
Delete Module.Scope, move Block into Sema
Diffstat (limited to 'src/type.zig')
| -rw-r--r-- | src/type.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/type.zig b/src/type.zig index dacde84167..8f200c0f35 100644 --- a/src/type.zig +++ b/src/type.zig @@ -3067,7 +3067,7 @@ pub const Type = extern union { } /// Returns null if the type has no namespace. - pub fn getNamespace(self: Type) ?*Module.Scope.Namespace { + pub fn getNamespace(self: Type) ?*Module.Namespace { return switch (self.tag()) { .@"struct" => &self.castTag(.@"struct").?.data.namespace, .enum_full => &self.castTag(.enum_full).?.data.namespace, @@ -3833,12 +3833,12 @@ pub const Type = extern union { /// Most commonly used for files. pub const ContainerScope = struct { base: Payload, - data: *Module.Scope.Namespace, + data: *Module.Namespace, }; pub const Opaque = struct { base: Payload = .{ .tag = .@"opaque" }, - data: Module.Scope.Namespace, + data: Module.Namespace, }; pub const Struct = struct { |
