Lines Matching refs:child
634 return decl->child; in ast_get_children()
638 return list->child; in ast_get_children()
641 return ast->child; in ast_get_children()
678 zval *zv, zend_ast_kind kind, zend_ast_attr attr, zend_ast *child, ast_state_info_t *state) { in ast_create_virtual_node() argument
680 ast_to_zval(&child_zv, child, state); in ast_create_virtual_node()
682 zv, kind, attr, zend_ast_get_lineno(child), state, 1, &child_zv); in ast_create_virtual_node()
685 static inline void ast_name_to_zval(zend_ast *child, zend_ast *ast, zval *child_zv, int i, ast_stat… in ast_name_to_zval() argument
688 if (child->attr & ZEND_TYPE_NULLABLE) { in ast_name_to_zval()
690 child->attr &= ~ZEND_TYPE_NULLABLE; in ast_name_to_zval()
693 if (child->attr == ZEND_NAME_FQ) { in ast_name_to_zval()
696 zval *name = zend_ast_get_zval(child); in ast_name_to_zval()
705 if (child->attr == ZEND_NAME_NOT_FQ in ast_name_to_zval()
706 && ast_is_type(child, ast, i) in ast_name_to_zval()
707 && (type = lookup_builtin_type(zend_ast_get_str(child))) in ast_name_to_zval()
712 child_zv, ZEND_AST_TYPE, type, zend_ast_get_lineno(child), state, 0); in ast_name_to_zval()
714 ast_create_virtual_node(child_zv, AST_NAME, child->attr, child, state); in ast_name_to_zval()
722 child_zv, AST_NULLABLE_TYPE, 0, zend_ast_get_lineno(child), state, 1, &tmp); in ast_name_to_zval()
732 zend_ast *child = children[i]; in ast_fill_children_ht() local
737 if (child != NULL && child->kind == ZEND_AST_STMT_LIST) { in ast_fill_children_ht()
738 ast_fill_children_ht(ht, child, state); in ast_fill_children_ht()
741 if (child == NULL) { in ast_fill_children_ht()
808 if (ast_is_name(child, ast, i)) { in ast_fill_children_ht()
809 ast_name_to_zval(child, ast, &child_zv, i, state); in ast_fill_children_ht()
810 } else if (child && child->kind == ZEND_AST_TYPE && (child->attr & ZEND_TYPE_NULLABLE)) { in ast_fill_children_ht()
811 child->attr &= ~ZEND_TYPE_NULLABLE; in ast_fill_children_ht()
812 ast_create_virtual_node(&child_zv, AST_NULLABLE_TYPE, 0, child, state); in ast_fill_children_ht()
814 ast_create_virtual_node(&child_zv, AST_CLOSURE_VAR, child->attr, child, state); in ast_fill_children_ht()
815 } else if (ast_is_var_name(child, ast, i)) { in ast_fill_children_ht()
816 ast_create_virtual_node(&child_zv, ZEND_AST_VAR, 0, child, state); in ast_fill_children_ht()
817 } else if (ast_should_normalize_list(child, ast, i)) { in ast_fill_children_ht()
818 if (child) { in ast_fill_children_ht()
820 ast_to_zval(&tmp, child, state); in ast_fill_children_ht()
822 &child_zv, ZEND_AST_STMT_LIST, 0, zend_ast_get_lineno(child), state, 1, &tmp); in ast_fill_children_ht()
836 } else if (ast_kind == ZEND_AST_LIST && child != NULL) { in ast_fill_children_ht()
838 ast_to_zval(&child_zv, child->child[0], state); in ast_fill_children_ht()
840 ast_to_zval(&child_zv, child, state); in ast_fill_children_ht()
851 &child_zv, ZEND_AST_RETURN, 0, zend_ast_get_lineno(child), state, 1, &tmp); in ast_fill_children_ht()
979 ast->child[0]->attr = ast->attr; in ast_to_zval()
980 ast_to_zval(zv, ast->child[0], state); in ast_to_zval()
990 ast_to_zval(zv, ast->child[1], state); in ast_to_zval()
1004 ast_to_zval(&name_zval, ast->child[0], state); in ast_to_zval()
1007 … &class_name_zval, AST_NAME, ast->child[0]->attr, zend_ast_get_lineno(ast), state, 1, &name_zval); in ast_to_zval()
1026 zend_ast *const_name_ast = ast->child[1]; in ast_to_zval()
1029 zend_ast *class_name_ast = ast->child[0]; in ast_to_zval()