mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-02 19:22:33 +00:00
Include the ivar in the Objective-C class unconditionally of it being used or not.
Allow pseudo-fields for ivar access.
This commit is contained in:
@@ -3329,6 +3329,15 @@ gb_internal Selection lookup_field_with_selection(Type *type_, String field_name
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Type *objc_ivar_type = e->TypeName.objc_ivar;
|
||||
if (objc_ivar_type != nullptr) {
|
||||
sel = lookup_field_with_selection(objc_ivar_type, field_name, false, sel, allow_blank_ident);
|
||||
if (sel.entity != nullptr) {
|
||||
sel.pseudo_field = true;
|
||||
return sel;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (is_type_polymorphic(type)) {
|
||||
|
||||
Reference in New Issue
Block a user