Core: Change lookup rules, 2x speedup
This commit is contained in:
@@ -420,7 +420,10 @@ GetTypeInfo :: (type: Type): *Type_Info
|
||||
}
|
||||
|
||||
{
|
||||
Ast_Scope *scope = ast_decl_scope(&pctx->null_token, pctx->perm, get(&module->all_loaded_files, 0));
|
||||
Ast_File *file = get(&module->all_loaded_files, 0);
|
||||
Ast_Scope *scope = ast_decl_scope(&pctx->null_token, pctx->perm, file);
|
||||
scope->parent_scope = file;
|
||||
scope->module = module;
|
||||
Ast_Decl *decl = ast_namespace(&pctx->null_token, scope, pctx->intern("Const"_s));
|
||||
decl->state = DECL_RESOLVED;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user