MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / php_first_arg_value

Function php_first_arg_value

internal/cbm/extract_calls.c:1834–1845  ·  view source on GitHub ↗

The first argument's value node of a PHP call (unwrapping `argument`). */

Source from the content-addressed store, hash-verified

1832
1833/* The first argument's value node of a PHP call (unwrapping `argument`). */
1834static 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 () {...}),

Callers 2

php_group_array_prefixFunction · 0.85
php_laravel_route_uriFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected