Remove when check in check_entity_from_ident_or_selector

This commit is contained in:
gingerBill
2024-07-04 13:58:36 +01:00
parent 87bccc8f3f
commit bf711b282d

View File

@@ -4971,7 +4971,7 @@ gb_internal Entity *check_entity_from_ident_or_selector(CheckerContext *c, Ast *
if (node == nullptr) {
return nullptr;
}
if (node->kind == Ast_TernaryWhenExpr) {
/*if (node->kind == Ast_TernaryWhenExpr) {
ast_node(we, TernaryWhenExpr, node);
if (we->cond == nullptr) {
return nullptr;
@@ -4988,7 +4988,7 @@ gb_internal Entity *check_entity_from_ident_or_selector(CheckerContext *c, Ast *
Entity *e = check_entity_from_ident_or_selector(c, we->y, ident_only);
return e;
}
} else if (node->kind == Ast_Ident) {
} else */if (node->kind == Ast_Ident) {
String name = node->Ident.token.string;
return scope_lookup(c->scope, name);
} else if (!ident_only) if (node->kind == Ast_SelectorExpr) {