Core: New unique_name scheme, more human friendly

This commit is contained in:
Krzosa Karol
2023-04-21 14:44:13 +02:00
parent 2578a2a31a
commit 32cda2b59e
12 changed files with 109 additions and 59 deletions

View File

@@ -339,6 +339,7 @@ enum Ast_Kind : uint32_t {
AST_SWITCH_CASE,
AST_VAR_UNPACK,
AST_BREAK,
AST_COMPILER_BREAKPOINT,
AST_CONTINUE,
AST_COMPOUND,
AST_TYPE,
@@ -569,6 +570,8 @@ struct Ast_Switch : Ast {
struct Ast_Scope : Ast {
String debug_name; // Only for debug purposes, dont depend on it
Intern_String first_namespace_name;
List<Ast_Scope *> implicit_imports;
List<Ast_Decl *> decls;
Array<Ast *> stmts;