Untested ast iterator

This commit is contained in:
Krzosa Karol
2023-03-31 08:56:25 +02:00
parent 77bcc74a64
commit 534db633ed
2 changed files with 146 additions and 45 deletions

View File

@@ -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;