From c2ca24a486319c0e8b9a5cd0c377a9d66eb036d3 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sun, 17 Jun 2018 10:58:59 +0100 Subject: Big renaming: `AstNode` to `Ast` --- src/entity.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/entity.cpp') 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; -- cgit v1.2.3