The first argument's value node of a PHP call (unwrapping `argument`). */
| 1832 | |
| 1833 | /* The first argument's value node of a PHP call (unwrapping `argument`). */ |
| 1834 | static TSNode php_first_arg_value(TSNode call_node) { |
| 1835 | TSNode none = {0}; |
| 1836 | TSNode args = ts_node_child_by_field_name(call_node, TS_FIELD("arguments")); |
| 1837 | if (ts_node_is_null(args) || ts_node_named_child_count(args) == 0) { |
| 1838 | return none; |
| 1839 | } |
| 1840 | TSNode arg = ts_node_named_child(args, 0); |
| 1841 | if (strcmp(ts_node_type(arg), "argument") == 0) { |
| 1842 | return ts_node_named_child_count(arg) == SKIP_ONE ? ts_node_named_child(arg, 0) : none; |
| 1843 | } |
| 1844 | return arg; |
| 1845 | } |
| 1846 | |
| 1847 | /* The literal 'prefix' of an attribute-array group (#1146): |
| 1848 | * Route::group(['prefix' => 'v1/autocomplete', 'as' => ...], function () {...}), |
no outgoing calls
no test coverage detected