diff options
| author | gingerBill <bill@gingerbill.org> | 2017-12-03 23:03:40 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2017-12-03 23:03:40 +0000 |
| commit | 596a2c835554a26cb0ad1f83892a3a11c04bad25 (patch) | |
| tree | 432c9cbf862d33c840c8664a4f31587e142cfc35 /src/entity.cpp | |
| parent | 9f52b2c2834a3a7248784492a3ede3a8a9063f6a (diff) | |
Procedure grouping `foo :: proc[foo16, foo32];`
Diffstat (limited to 'src/entity.cpp')
| -rw-r--r-- | src/entity.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/entity.cpp b/src/entity.cpp index 940288957..ef49c4d0e 100644 --- a/src/entity.cpp +++ b/src/entity.cpp @@ -10,6 +10,7 @@ struct DeclInfo; ENTITY_KIND(Variable) \ ENTITY_KIND(TypeName) \ ENTITY_KIND(Procedure) \ + ENTITY_KIND(ProcedureGrouping) \ ENTITY_KIND(Builtin) \ ENTITY_KIND(Alias) \ ENTITY_KIND(ImportName) \ @@ -108,6 +109,9 @@ struct Entity { AstNode * foreign_library_ident; } Procedure; struct { + Array<Entity *> entities; + } ProcedureGrouping; + struct { i32 id; } Builtin; struct { @@ -244,6 +248,12 @@ Entity *make_entity_procedure(gbAllocator a, Scope *scope, Token token, Type *si return entity; } +Entity *make_entity_procedure_grouping(gbAllocator a, Scope *scope, Token token, Type *type) { + Entity *entity = alloc_entity(a, Entity_ProcedureGrouping, scope, token, type); + return entity; +} + + Entity *make_entity_builtin(gbAllocator a, Scope *scope, Token token, Type *type, i32 id) { Entity *entity = alloc_entity(a, Entity_Builtin, scope, token, type); entity->Builtin.id = id; |