Untested ast iterator
This commit is contained in:
@@ -366,7 +366,10 @@ enum {
|
||||
struct Ast {
|
||||
uint64_t di; // Debug id, shouldn't ever be used in the program
|
||||
Token *pos;
|
||||
|
||||
Ast_Kind kind;
|
||||
uint32_t visit_id;
|
||||
|
||||
Ast_Scope *parent_scope;
|
||||
Ast_Flag flags;
|
||||
};
|
||||
@@ -554,7 +557,6 @@ struct Ast_Scope : Ast {
|
||||
List<Ast_Decl *> decls;
|
||||
Array<Ast *> stmts;
|
||||
|
||||
uint32_t visit_id;
|
||||
uint32_t scope_id;
|
||||
Ast_Scope *file; // Self referential for file and module
|
||||
Ast_Module *module;
|
||||
|
||||
Reference in New Issue
Block a user