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.
| 98 | // rather than in CBMLangSpec to avoid -Wmissing-field-initializers across 155 |
| 99 | // language rows. |
| 100 | const char **cbm_string_dispatch_suffixes(CBMLanguage lang) { |
| 101 | if (lang == CBM_LANG_PYTHON) { |
| 102 | return s_py_dispatch_suffixes; |
| 103 | } |
| 104 | return NULL; |
| 105 | } |
| 106 | |
| 107 | // Forward declarations |
| 108 | static char *extract_callee_name(CBMArena *a, TSNode node, const char *source, CBMLanguage lang); |