Home
last modified time | relevance | path

Searched refs:child (Results 1 – 6 of 6) sorted by relevance

/php-ast/
H A Dast_data.c242 switch (child) { in ast_kind_child_name()
247 switch (child) { in ast_kind_child_name()
256 switch (child) { in ast_kind_child_name()
265 switch (child) { in ast_kind_child_name()
291 switch (child) { in ast_kind_child_name()
303 switch (child) { in ast_kind_child_name()
308 switch (child) { in ast_kind_child_name()
313 switch (child) { in ast_kind_child_name()
319 switch (child) { in ast_kind_child_name()
324 switch (child) { in ast_kind_child_name()
[all …]
H A Dast.c634 return decl->child; in ast_get_children()
638 return list->child; in ast_get_children()
641 return ast->child; in ast_get_children()
706 && ast_is_type(child, ast, i) in ast_name_to_zval()
714 ast_create_virtual_node(child_zv, AST_NAME, child->attr, child, state); in ast_name_to_zval()
737 if (child != NULL && child->kind == ZEND_AST_STMT_LIST) { in ast_fill_children_ht()
741 if (child == NULL) { in ast_fill_children_ht()
810 } else if (child && child->kind == ZEND_AST_TYPE && (child->attr & ZEND_TYPE_NULLABLE)) { in ast_fill_children_ht()
814 ast_create_virtual_node(&child_zv, AST_CLOSURE_VAR, child->attr, child, state); in ast_fill_children_ht()
818 if (child) { in ast_fill_children_ht()
[all …]
H A Dutil.php71 foreach ($ast->children as $i => $child) {
75 $result .= "\n $i: " . str_replace("\n", "\n ", ast_dump($child, $options));
H A Dphp_ast.h103 zend_string *ast_kind_child_name(zend_ast_kind kind, uint32_t child);
H A DREADME.md94 The `children` property contains an array of child-nodes. These children can be either other
96 which have a fixed set of named child nodes, as well as list nodes, which have a variable number
97 of children. The [AST node kinds section](#ast-node-kinds) contains a list of the child names for
374 This section lists the AST node kinds that are supported and the names of their child nodes.
516 * Remove the `name` child node from the `AST_ARROW_FUNC` and `AST_CLOSURE` nodes (previously `"{clo…
522 * Add a `type` child node for all `AST_CLASS_CONST_GROUP` nodes.
534 * Add a `type` child node (for enum type) for all `AST_CLASS` nodes.
544 now contain an attributes child.
561 * `AST_FUNC_DECL` and `AST_METHOD` no longer generate a `uses` child. Previously this child was
563 * `AST_CONST_ELEM` now always has a `docComment` child. Previously it was absent on PHP 7.0.
[all …]
/php-ast/tests/
H A Dnamed_children.phpt2 Named child nodes

Completed in 18 milliseconds