Per-language callee-suffix dispatch table — returns a NULL-terminated list of method-name suffixes whose calls should be resolved by extracting class+method from the first two string arguments (e.g. IRIS Python interop). Kept here rather than in CBMLangSpec to avoid -Wmissing-field-initializers across 155 language rows.
| 69 | // rather than in CBMLangSpec to avoid -Wmissing-field-initializers across 155 |
| 70 | // language rows. |
| 71 | const char **cbm_string_dispatch_suffixes(CBMLanguage lang) { |
| 72 | if (lang == CBM_LANG_PYTHON) { |
| 73 | return s_py_dispatch_suffixes; |
| 74 | } |
| 75 | return NULL; |
| 76 | } |
| 77 | |
| 78 | // Forward declarations |
| 79 | static char *extract_callee_name(CBMArena *a, TSNode node, const char *source, CBMLanguage lang); |