mirror of
https://codeberg.org/ProgramSnail/lang.git
synced 2025-12-26 00:38:45 +00:00
es_builtin for type, type utils state fixes
This commit is contained in:
parent
f03f77191f
commit
ffa9c47107
3 changed files with 63 additions and 27 deletions
|
|
@ -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_;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue