Core: Remove comment
This commit is contained in:
@@ -539,7 +539,7 @@ resolve_name(Ast_Scope *scope, Token *pos, Intern_String name, Search_Flag searc
|
|||||||
Scoped_Arena scratch(pctx->scratch);
|
Scoped_Arena scratch(pctx->scratch);
|
||||||
Scope_Search search = make_scope_search(scratch.arena, scope, name);
|
Scope_Search search = make_scope_search(scratch.arena, scope, name);
|
||||||
search.search_only_current_scope = search_flags & SEARCH_ONLY_CURRENT_SCOPE;
|
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);
|
scope_search(&search);
|
||||||
|
|
||||||
if (search.results.len == 0) {
|
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");
|
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;
|
Ast_Decl *decl = *search.results.data;
|
||||||
resolve_decl(decl);
|
resolve_decl(decl);
|
||||||
return decl;
|
return decl;
|
||||||
|
|||||||
Reference in New Issue
Block a user