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

Function php_unkeyed_element_value

internal/cbm/extract_calls.c:3071–3078  ·  view source on GitHub ↗

The value of a PHP array element written without a key; a null node for a * keyed element (`'uses' => ...`) or anything else. */

Source from the content-addressed store, hash-verified

3069/* The value of a PHP array element written without a key; a null node for a
3070 * keyed element (`'uses' => ...`) or anything else. */
3071static TSNode php_unkeyed_element_value(TSNode elem) {
3072 TSNode none = {0};
3073 if (strcmp(ts_node_type(elem), "array_element_initializer") != 0 ||
3074 ts_node_named_child_count(elem) != SKIP_ONE) {
3075 return none;
3076 }
3077 return ts_node_named_child(elem, 0);
3078}
3079
3080static bool php_is_identifier(const char *s) {
3081 if (!s || !((*s >= 'a' && *s <= 'z') || (*s >= 'A' && *s <= 'Z') || *s == '_')) {

Callers 1

php_class_route_handlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected