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