Find def trying Class / Interface / Struct / any-label fallback. */
| 129 | |
| 130 | /* Find def trying Class / Interface / Struct / any-label fallback. */ |
| 131 | static CBMDefinition *find_def_flex(CBMFileResult *r, const char *name) { |
| 132 | CBMDefinition *d; |
| 133 | if ((d = find_def(r, "Class", name))) |
| 134 | return d; |
| 135 | if ((d = find_def(r, "Interface", name))) |
| 136 | return d; |
| 137 | if ((d = find_def(r, "Struct", name))) |
| 138 | return d; |
| 139 | /* Fallback: any label — covers languages where the extractor uses custom labels */ |
| 140 | return find_def_any(r, name); |
| 141 | } |
| 142 | |
| 143 | /* |
| 144 | * Generic runner for one inherit_case_t row. |
no test coverage detected