es_builtin for type, type utils state fixes

This commit is contained in:
ProgramSnail 2024-01-03 21:55:24 +03:00
parent f03f77191f
commit ffa9c47107
3 changed files with 63 additions and 27 deletions

View file

@ -26,7 +26,7 @@ public:
const Type *get() const;
bool operator==(const TypeProxy& other) const;
bool operator==(const TypeProxy &other) const;
private:
TypeProxy(TypeStorage &type_storage, size_t id)
@ -191,6 +191,8 @@ public:
return builtin_type;
}
bool is_builtin(builtin::types::Type type) { return to_builtin() == type; }
private:
Identifier name_;
std::vector<TypeProxy> parameters_;