Cleanup iterators
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user