aboutsummaryrefslogtreecommitdiff
path: root/src/entity.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2023-08-03 13:14:09 +0100
committergingerBill <bill@gingerbill.org>2023-08-03 13:14:09 +0100
commitb495a302b016d37a19a95cac56dc7f67fdc4ba73 (patch)
tree8fb72c3f264a61ce442c0a71e84483b31389ca6e /src/entity.cpp
parentc39a3603720917d6970026e5c0595d468ea9b372 (diff)
parent9453b2387b2cc7c473547997703c305e7982f5e4 (diff)
Merge branch 'master' into tilde
Diffstat (limited to 'src/entity.cpp')
-rw-r--r--src/entity.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/entity.cpp b/src/entity.cpp
index c943863fc..ce27da3f2 100644
--- a/src/entity.cpp
+++ b/src/entity.cpp
@@ -291,7 +291,6 @@ gb_internal bool is_entity_kind_exported(EntityKind kind, bool allow_builtin = f
}
gb_internal bool is_entity_exported(Entity *e, bool allow_builtin = false) {
- // TODO(bill): Determine the actual exportation rules for imports of entities
GB_ASSERT(e != nullptr);
if (!is_entity_kind_exported(e->kind, allow_builtin)) {
return false;
@@ -405,7 +404,7 @@ gb_internal Entity *alloc_entity_array_elem(Scope *scope, Token token, Type *typ
return entity;
}
-gb_internal Entity *alloc_entity_procedure(Scope *scope, Token token, Type *signature_type, u64 tags) {
+gb_internal Entity *alloc_entity_procedure(Scope *scope, Token token, Type *signature_type, u64 tags=0) {
Entity *entity = alloc_entity(Entity_Procedure, scope, token, signature_type);
entity->Procedure.tags = tags;
return entity;
@@ -422,7 +421,7 @@ gb_internal Entity *alloc_entity_import_name(Scope *scope, Token token, Type *ty
entity->ImportName.path = path;
entity->ImportName.name = name;
entity->ImportName.scope = import_scope;
- entity->state = EntityState_Resolved; // TODO(bill): Is this correct?
+ entity->state = EntityState_Resolved;
return entity;
}
@@ -431,7 +430,7 @@ gb_internal Entity *alloc_entity_library_name(Scope *scope, Token token, Type *t
Entity *entity = alloc_entity(Entity_LibraryName, scope, token, type);
entity->LibraryName.paths = paths;
entity->LibraryName.name = name;
- entity->state = EntityState_Resolved; // TODO(bill): Is this correct?
+ entity->state = EntityState_Resolved;
return entity;
}