| 8177 | } |
| 8178 | |
| 8179 | static bool qn_ends_with(const CBMDefinition *d, const char *tail) { |
| 8180 | size_t n = d && d->qualified_name ? strlen(d->qualified_name) : 0; |
| 8181 | size_t t = strlen(tail); |
| 8182 | return n >= t && strcmp(d->qualified_name + n - t, tail) == 0; |
| 8183 | } |
| 8184 | |
| 8185 | /* A field and a same-named method of one class body would share one qualified |
| 8186 | * name (one node per QN): the field is fenced `<Owner>.<name>#field` and the |