From d5c4caf72505db7e8394ba692ebdd81c74a76e0d Mon Sep 17 00:00:00 2001 From: Krzosa Karol Date: Fri, 21 Apr 2023 08:04:22 +0200 Subject: [PATCH] Core: Remove comment --- core_typechecking.cpp | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/core_typechecking.cpp b/core_typechecking.cpp index ff33de6..b055807 100644 --- a/core_typechecking.cpp +++ b/core_typechecking.cpp @@ -539,7 +539,7 @@ resolve_name(Ast_Scope *scope, Token *pos, Intern_String name, Search_Flag searc Scoped_Arena scratch(pctx->scratch); Scope_Search search = make_scope_search(scratch.arena, scope, name); search.search_only_current_scope = search_flags & SEARCH_ONLY_CURRENT_SCOPE; - search.exit_on_find = true; // @test(asd): not sure if this change will be ok, 2x typecheck speedup though + search.exit_on_find = true; scope_search(&search); if (search.results.len == 0) { @@ -550,20 +550,6 @@ resolve_name(Ast_Scope *scope, Token *pos, Intern_String name, Search_Flag searc compiler_error(pos, "Internal compiler error: resolve_name got an overload"); } - // @test(asd): not sure if this change will be ok - // if (search.results.len > 1) { - // if (is_flag_set(search.results[0]->flags, AST_OPERATOR_OVERLOAD)) { - // if (is_flag_set(search_flags, RESOLVE_NAME_MAKE_SURE_OPERATOR_OVERLOAD_IS_NOT_EVER_CALLED)) { - // compiler_error(pos, "Internal compiler error: somehow we found %Q which is an operator to be also an identifier and we started resolving it using resolve_name", name); - // } - // For(search.results) { - // resolve_decl(it); - // } - // return 0; - // } - // compiler_error(pos, "Found multiple definitions of name [%s]", name.str); - // } - Ast_Decl *decl = *search.results.data; resolve_decl(decl); return decl;