| 5358 | } |
| 5359 | |
| 5360 | static const CBMResolvedCall *php_vendor_row(const CBMResolvedCallArray *out, const CBMCall *site, |
| 5361 | const char *callee) { |
| 5362 | const CBMResolvedCall *found = NULL; |
| 5363 | for (int i = 0; site && i < out->count; i++) { |
| 5364 | const CBMResolvedCall *row = &out->items[i]; |
| 5365 | if (row->kind == CBM_RESOLVED_INVOCATION && row->caller_qn && row->callee_qn && |
| 5366 | strcmp(row->caller_qn, site->enclosing_func_qn) == 0 && |
| 5367 | row->site_start_byte == site->site_start_byte && |
| 5368 | row->site_end_byte == site->site_end_byte && strcmp(row->callee_qn, callee) == 0) { |
| 5369 | found = row; |
| 5370 | } |
| 5371 | } |
| 5372 | return found; |
| 5373 | } |
| 5374 | |
| 5375 | static int php_vendor_project_request_rows(const CBMResolvedCallArray *out) { |
| 5376 | int count = 0; |