aboutsummaryrefslogtreecommitdiff
path: root/src/entity.cpp
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-06-13 15:04:23 +0100
committerGinger Bill <bill@gingerbill.org>2017-06-13 15:04:23 +0100
commit6a88dc322acfd54c55ed7dceebdeaa5ce18ce416 (patch)
tree1bee3c6bd331cf7427451de9476564a9f7b030c9 /src/entity.cpp
parent6b464e35586ebc8a8dadece60f188817f875da85 (diff)
Declaration grouping uses braces rather than parentheses
Diffstat (limited to 'src/entity.cpp')
-rw-r--r--src/entity.cpp23
1 files changed, 3 insertions, 20 deletions
diff --git a/src/entity.cpp b/src/entity.cpp
index 32bd3210f..6fa89d652 100644
--- a/src/entity.cpp
+++ b/src/entity.cpp
@@ -14,8 +14,6 @@ struct DeclInfo;
ENTITY_KIND(Builtin) \
ENTITY_KIND(ImportName) \
ENTITY_KIND(LibraryName) \
- ENTITY_KIND(TypeAlias) \
- ENTITY_KIND(ProcedureAlias) \
ENTITY_KIND(Nil) \
ENTITY_KIND(Label)
@@ -92,13 +90,12 @@ struct Entity {
bool is_type_alias;
} TypeName;
struct {
+ OverloadKind overload_kind;
+ String link_name;
+ u64 tags;
bool is_foreign;
- String foreign_name;
Entity * foreign_library;
AstNode * foreign_library_ident;
- String link_name;
- u64 tags;
- OverloadKind overload_kind;
} Procedure;
struct {
i32 id;
@@ -114,10 +111,6 @@ struct Entity {
String name;
bool used;
} LibraryName;
- i32 TypeAlias;
- struct {
- Entity *original;
- } ProcedureAlias;
i32 Nil;
struct {
String name;
@@ -248,16 +241,6 @@ Entity *make_entity_library_name(gbAllocator a, Scope *scope, Token token, Type
return entity;
}
-Entity *make_entity_type_alias(gbAllocator a, Scope *scope, Token token, Type *type) {
- Entity *entity = alloc_entity(a, Entity_TypeAlias, scope, token, type);
- return entity;
-}
-Entity *make_entity_procedure_alias(gbAllocator a, Scope *scope, Token token, Entity *original) {
- GB_ASSERT(original != NULL);
- Entity *entity = alloc_entity(a, Entity_ProcedureAlias, scope, token, original->type);
- entity->ProcedureAlias.original = original;
- return entity;
-}