comp_ctx: remove isSymUnTypeEnumSubset
This commit is contained in:
parent
7e41d03eb9
commit
a081de93ce
1 changed files with 0 additions and 18 deletions
|
@ -20,24 +20,6 @@ pub const SymbolUnderlyingTypeEnum = enum {
|
|||
Enum,
|
||||
};
|
||||
|
||||
pub fn isSymUnTypeEnumSubset(
|
||||
maybe_member: SymbolUnderlyingTypeEnum,
|
||||
superset: SymbolUnderlyingTypeEnum,
|
||||
) bool {
|
||||
// return false for supersets that aren't supersets
|
||||
switch (superset) {
|
||||
.Integer32, .Double, .Bool, .OpaqueType, .Struct, .Enum => return false,
|
||||
|
||||
// for now, only integer64 is a superset (containing integer32)
|
||||
.Integer64 => {
|
||||
return switch (maybe_member) {
|
||||
.Integer32 => true,
|
||||
else => false,
|
||||
};
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
pub const SymbolUnderlyingType = union(SymbolUnderlyingTypeEnum) {
|
||||
Integer32: void,
|
||||
Integer64: void,
|
||||
|
|
Loading…
Reference in a new issue