The value of a PHP array element written without a key; a null node for a * keyed element (`'uses' => ...`) or anything else. */
| 3069 | /* The value of a PHP array element written without a key; a null node for a |
| 3070 | * keyed element (`'uses' => ...`) or anything else. */ |
| 3071 | static 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 | |
| 3080 | static bool php_is_identifier(const char *s) { |
| 3081 | if (!s || !((*s >= 'a' && *s <= 'z') || (*s >= 'A' && *s <= 'Z') || *s == '_')) { |
no outgoing calls
no test coverage detected