aboutsummaryrefslogtreecommitdiff
path: root/src/entity.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/entity.cpp')
-rw-r--r--src/entity.cpp10
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;