| ... | @@ -1933,12 +1933,12 @@ pub fn isPtrLikeOptional(ty: Type, zcu: *const Zcu) bool { | ... | @@ -1933,12 +1933,12 @@ pub fn isPtrLikeOptional(ty: Type, zcu: *const Zcu) bool { |
| 1933 | }; | 1933 | }; |
| 1934 | } | 1934 | } |
| 1935 | | 1935 | |
| 1936 | /// For *[N]T, returns [N]T. | 1936 | /// For `*[N]T`, returns `[N]T`. |
| 1937 | /// For *T, returns T. | 1937 | /// For `*T`, returns `T`. |
| 1938 | /// For [*]T, returns T. | 1938 | /// For `[*]T`, returns `T`. |
| 1939 | /// For @Vector(N, T), returns T. | 1939 | /// For `@Vector(N, T)`, returns `T`. |
| 1940 | /// For [N]T, returns T. | 1940 | /// For `[N]T`, returns `T`. |
| 1941 | /// For ?T, returns T. | 1941 | /// For `?T`, returns `T`. |
| 1942 | pub fn childType(ty: Type, zcu: *const Zcu) Type { | 1942 | pub fn childType(ty: Type, zcu: *const Zcu) Type { |
| 1943 | return childTypeIp(ty, &zcu.intern_pool); | 1943 | return childTypeIp(ty, &zcu.intern_pool); |
| 1944 | } | 1944 | } |
| ... | @@ -1947,15 +1947,15 @@ pub fn childTypeIp(ty: Type, ip: *const InternPool) Type { | ... | @@ -1947,15 +1947,15 @@ pub fn childTypeIp(ty: Type, ip: *const InternPool) Type { |
| 1947 | return Type.fromInterned(ip.childType(ty.toIntern())); | 1947 | return Type.fromInterned(ip.childType(ty.toIntern())); |
| 1948 | } | 1948 | } |
| 1949 | | 1949 | |
| 1950 | /// For *[N]T, returns T. | 1950 | /// For `*[N]T`, returns `T`. |
| 1951 | /// For ?*T, returns T. | 1951 | /// For `?*T`, returns `T`. |
| 1952 | /// For ?*[N]T, returns T. | 1952 | /// For `?*[N]T`, returns `T`. |
| 1953 | /// For ?[*]T, returns T. | 1953 | /// For `?[*]T`, returns `T`. |
| 1954 | /// For *T, returns T. | 1954 | /// For `*T`, returns `T`. |
| 1955 | /// For [*]T, returns T. | 1955 | /// For `[*]T`, returns `T`. |
| 1956 | /// For [N]T, returns T. | 1956 | /// For `[N]T`, returns `T`. |
| 1957 | /// For []T, returns T. | 1957 | /// For `[]T`, returns `T`. |
| 1958 | /// For anyframe->T, returns T. | 1958 | /// For `anyframe->T`, returns `T`. |
| 1959 | pub fn elemType2(ty: Type, zcu: *const Zcu) Type { | 1959 | pub fn elemType2(ty: Type, zcu: *const Zcu) Type { |
| 1960 | return switch (zcu.intern_pool.indexToKey(ty.toIntern())) { | 1960 | return switch (zcu.intern_pool.indexToKey(ty.toIntern())) { |
| 1961 | .ptr_type => |ptr_type| switch (ptr_type.flags.size) { | 1961 | .ptr_type => |ptr_type| switch (ptr_type.flags.size) { |