/// Create a new builtin enum type.
Create a new builtin enum type.
Create a new builtin enum type .
pub fn new_enum(name: &str) -> BuiltinType {
        let id = TypeDeclRef::alloc();
        BuiltinType {
            id: id,
            name: get_name_table().intern(name, false),
            ty: EnumTy::new(id).into(),
            aux: Vec::new(),
        }
    }
pub fn new_enum ( name : & str ) -> BuiltinType { let id = TypeDeclRef :: alloc ( ) ; BuiltinType { id : id , name : get_name_table ( ) . intern ( name , false ) , ty : EnumTy :: new ( id ) . into ( ) , aux : Vec :: new ( ) , } }
Create a new builtin enum type.
Create a new builtin enum type .
name
&str