mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
Remove when check in check_entity_from_ident_or_selector
This commit is contained in:
+2
-2
@@ -4971,7 +4971,7 @@ gb_internal Entity *check_entity_from_ident_or_selector(CheckerContext *c, Ast *
|
|||||||
if (node == nullptr) {
|
if (node == nullptr) {
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
if (node->kind == Ast_TernaryWhenExpr) {
|
/*if (node->kind == Ast_TernaryWhenExpr) {
|
||||||
ast_node(we, TernaryWhenExpr, node);
|
ast_node(we, TernaryWhenExpr, node);
|
||||||
if (we->cond == nullptr) {
|
if (we->cond == nullptr) {
|
||||||
return 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);
|
Entity *e = check_entity_from_ident_or_selector(c, we->y, ident_only);
|
||||||
return e;
|
return e;
|
||||||
}
|
}
|
||||||
} else if (node->kind == Ast_Ident) {
|
} else */if (node->kind == Ast_Ident) {
|
||||||
String name = node->Ident.token.string;
|
String name = node->Ident.token.string;
|
||||||
return scope_lookup(c->scope, name);
|
return scope_lookup(c->scope, name);
|
||||||
} else if (!ident_only) if (node->kind == Ast_SelectorExpr) {
|
} else if (!ident_only) if (node->kind == Ast_SelectorExpr) {
|
||||||
|
|||||||
Reference in New Issue
Block a user