mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 23:58:50 +00:00
early return; fix indentation
This commit is contained in:
+8
-7
@@ -263,13 +263,14 @@ gb_internal void check_did_you_mean_scope(String const &name, Scope *scope, char
|
|||||||
|
|
||||||
gb_internal Entity *entity_from_expr(Ast *expr) {
|
gb_internal Entity *entity_from_expr(Ast *expr) {
|
||||||
expr = unparen_expr(expr);
|
expr = unparen_expr(expr);
|
||||||
if (expr != nullptr) {
|
if (expr == nullptr) {
|
||||||
switch (expr->kind) {
|
return nullptr;
|
||||||
case Ast_Ident:
|
}
|
||||||
return expr->Ident.entity;
|
switch (expr->kind) {
|
||||||
case Ast_SelectorExpr:
|
case Ast_Ident:
|
||||||
return entity_from_expr(expr->SelectorExpr.selector);
|
return expr->Ident.entity;
|
||||||
}
|
case Ast_SelectorExpr:
|
||||||
|
return entity_from_expr(expr->SelectorExpr.selector);
|
||||||
}
|
}
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user