Cleanup iterators

This commit is contained in:
Krzosa Karol
2023-01-01 17:44:27 +01:00
parent d120d05eee
commit d6a5df8d95
9 changed files with 86 additions and 108 deletions

View File

@@ -474,6 +474,7 @@ struct Ast_Builtin: Ast_Expr{
// Problem: We are parsing out of order, in the middle of parsing a function
// we can jump down a different function, we cant therfore use global map.
// On top of that in the future we want a way to inject scopes, for convenience.
// Each scope needs to have it's checked locals list. To lookup syms we need to
// look into global scope and to the locals list.
//
@@ -551,10 +552,10 @@ struct Ast_Switch: Ast{
*/
struct Ast_Scope: Ast{
String debug_name; // Dont use
String debug_name; // Only for debug purposes, dont depend on it
List<Ast_Scope *> implicit_imports;
List<Ast_Decl *> decls;
Array<Ast *> stmts;
Array<Ast *> stmts;
uint32_t visit_id;
uint32_t scope_id;