/// Inserts a type defintion into the types field and returns its new TypeId
Inserts a type defintion into the types field and returns its new TypeId
Inserts a type defintion into the types field and returns its new TypeId
fn insert_type(&mut self, name: Identifier, typ: ItemType) -> TypeId {
        self.types.push((name.clone(), typ));
        let type_id = self.types.len() - 1;
        self.insert_type_into_current(name, ScopeType::Type(type_id));
        type_id
    }
fn insert_type ( & mut self , name : Identifier , typ : ItemType ) -> TypeId { self . types . push ( ( name . clone ( ) , typ ) ) ; let type_id = self . types . len ( ) - 1 ; self . insert_type_into_current ( name , ScopeType :: Type ( type_id ) ) ; type_id }
Inserts a type defintion into the types field and returns its new TypeId
Inserts a type defintion into the types field and returns its new TypeId
&mut self
name
Identifier
typ
ItemType