aboutsummaryrefslogtreecommitdiff
path: root/src/entity.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-06-17 10:58:59 +0100
committergingerBill <bill@gingerbill.org>2018-06-17 10:58:59 +0100
commitc2ca24a486319c0e8b9a5cd0c377a9d66eb036d3 (patch)
treef0f34d5c36ddd1535088fe57465da88a07435ee4 /src/entity.cpp
parente5aff6fd6d88c58b9ac4d303a97c5990f6f622b0 (diff)
Big renaming: `AstNode` to `Ast`
Diffstat (limited to 'src/entity.cpp')
-rw-r--r--src/entity.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/entity.cpp b/src/entity.cpp
index 2c0b99931..37bafc7d3 100644
--- a/src/entity.cpp
+++ b/src/entity.cpp
@@ -65,14 +65,14 @@ struct Entity {
Token token;
Scope * scope;
Type * type;
- AstNode * identifier; // Can be nullptr
+ Ast * identifier; // Can be nullptr
DeclInfo * decl_info;
DeclInfo * parent_proc_decl; // nullptr if in file/global scope
AstPackage *pkg;
// TODO(bill): Cleanup how `using` works for entities
Entity * using_parent;
- AstNode * using_expr;
+ Ast * using_expr;
isize order_in_src;
String deprecated_message;
@@ -87,7 +87,7 @@ struct Entity {
ExactValue default_value;
String thread_local_model;
Entity * foreign_library;
- AstNode * foreign_library_ident;
+ Ast * foreign_library_ident;
String link_name;
String link_prefix;
bool is_foreign;
@@ -106,7 +106,7 @@ struct Entity {
struct {
u64 tags;
Entity * foreign_library;
- AstNode * foreign_library_ident;
+ Ast * foreign_library_ident;
String link_name;
String link_prefix;
bool is_foreign;
@@ -130,7 +130,7 @@ struct Entity {
i32 Nil;
struct {
String name;
- AstNode *node;
+ Ast *node;
} Label;
};
};
@@ -295,7 +295,7 @@ Entity *alloc_entity_nil(String name, Type *type) {
return entity;
}
-Entity *alloc_entity_label(Scope *scope, Token token, Type *type, AstNode *node) {
+Entity *alloc_entity_label(Scope *scope, Token token, Type *type, Ast *node) {
Entity *entity = alloc_entity(Entity_Label, scope, token, type);
entity->Label.node = node;
entity->state = EntityState_Resolved;