mirror of
https://codeberg.org/ProgramSnail/lang.git
synced 2025-12-07 07:28:45 +00:00
basic node builders
This commit is contained in:
parent
1b28f41810
commit
696a9c3a1a
11 changed files with 442 additions and 37 deletions
|
|
@ -15,14 +15,17 @@ class Type;
|
|||
class TypeStorage;
|
||||
|
||||
class TypeProxy {
|
||||
public:
|
||||
TypeProxy(TypeStorage &type_storage, size_t id)
|
||||
: type_storage_(type_storage), id_(id) {}
|
||||
friend TypeStorage;
|
||||
|
||||
public:
|
||||
Type *get();
|
||||
|
||||
const Type *get() const;
|
||||
|
||||
private:
|
||||
TypeProxy(TypeStorage &type_storage, size_t id)
|
||||
: type_storage_(type_storage), id_(id) {}
|
||||
|
||||
private:
|
||||
TypeStorage &type_storage_;
|
||||
size_t id_;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue