| 4103 | } |
| 4104 | |
| 4105 | static TSNode objectscript_callee_leaf(TSNode expr) { |
| 4106 | if (ts_node_is_null(expr)) { |
| 4107 | return (TSNode){0}; |
| 4108 | } |
| 4109 | const char *kind = ts_node_type(expr); |
| 4110 | if (strcmp(kind, "method_name") == 0 && ts_node_named_child_count(expr) > 0) { |
| 4111 | return ts_node_named_child(expr, 0); |
| 4112 | } |
| 4113 | if (strcmp(kind, "line_ref") == 0) { |
| 4114 | static const char *const identifier_kinds[] = {"objectscript_identifier", |
| 4115 | "objectscript_identifier_special", NULL}; |
| 4116 | return first_named_descendant_of_kind(expr, identifier_kinds, 4); |
| 4117 | } |
| 4118 | return (TSNode){0}; |
| 4119 | } |
| 4120 | |
| 4121 | static TSNode language_specific_callee_expr(CBMLanguage language, TSNode node) { |
| 4122 | const char *kind = ts_node_type(node); |
no test coverage detected