Lines Matching refs:child

90 	ast->child[0] = child0;  in zend_ast_create_decl()
91 ast->child[1] = child1; in zend_ast_create_decl()
92 ast->child[2] = child2; in zend_ast_create_decl()
93 ast->child[3] = child3; in zend_ast_create_decl()
108 ast->child[i] = va_arg(va, zend_ast *); in zend_ast_create_from_va_list()
109 if (ast->child[i] != NULL) { in zend_ast_create_from_va_list()
110 uint32_t lineno = zend_ast_get_lineno(ast->child[i]); in zend_ast_create_from_va_list()
162 zend_ast *child = va_arg(va, zend_ast *); in zend_ast_create_list() local
163 ast = zend_ast_list_add(ast, child); in zend_ast_create_list()
164 if (child != NULL) { in zend_ast_create_list()
165 uint32_t lineno = zend_ast_get_lineno(child); in zend_ast_create_list()
187 list->child[list->children++] = op; in zend_ast_list_add()
238 if (UNEXPECTED(zend_ast_evaluate(&op1, ast->child[0], scope) != SUCCESS)) { in zend_ast_evaluate()
240 } else if (UNEXPECTED(zend_ast_evaluate(&op2, ast->child[1], scope) != SUCCESS)) { in zend_ast_evaluate()
252 if (UNEXPECTED(zend_ast_evaluate(&op1, ast->child[0], scope) != SUCCESS)) { in zend_ast_evaluate()
254 } else if (UNEXPECTED(zend_ast_evaluate(&op2, ast->child[1], scope) != SUCCESS)) { in zend_ast_evaluate()
267 if (UNEXPECTED(zend_ast_evaluate(&op1, ast->child[0], scope) != SUCCESS)) { in zend_ast_evaluate()
299 if (UNEXPECTED(zend_ast_evaluate(&op1, ast->child[0], scope) != SUCCESS)) { in zend_ast_evaluate()
304 if (UNEXPECTED(zend_ast_evaluate(&op2, ast->child[1], scope) != SUCCESS)) { in zend_ast_evaluate()
317 if (UNEXPECTED(zend_ast_evaluate(&op1, ast->child[0], scope) != SUCCESS)) { in zend_ast_evaluate()
324 if (UNEXPECTED(zend_ast_evaluate(&op2, ast->child[1], scope) != SUCCESS)) { in zend_ast_evaluate()
335 if (UNEXPECTED(zend_ast_evaluate(&op1, ast->child[0], scope) != SUCCESS)) { in zend_ast_evaluate()
340 if (!ast->child[1]) { in zend_ast_evaluate()
343 if (UNEXPECTED(zend_ast_evaluate(result, ast->child[1], scope) != SUCCESS)) { in zend_ast_evaluate()
351 if (UNEXPECTED(zend_ast_evaluate(result, ast->child[2], scope) != SUCCESS)) { in zend_ast_evaluate()
360 if (UNEXPECTED(zend_ast_evaluate(&op1, ast->child[0], scope) != SUCCESS)) { in zend_ast_evaluate()
367 if (UNEXPECTED(zend_ast_evaluate(result, ast->child[1], scope) != SUCCESS)) { in zend_ast_evaluate()
376 if (UNEXPECTED(zend_ast_evaluate(&op2, ast->child[0], scope) != SUCCESS)) { in zend_ast_evaluate()
385 if (UNEXPECTED(zend_ast_evaluate(&op2, ast->child[0], scope) != SUCCESS)) { in zend_ast_evaluate()
399 zend_ast *elem = list->child[i]; in zend_ast_evaluate()
400 if (elem->child[1]) { in zend_ast_evaluate()
401 if (UNEXPECTED(zend_ast_evaluate(&op1, elem->child[1], scope) != SUCCESS)) { in zend_ast_evaluate()
408 if (UNEXPECTED(zend_ast_evaluate(&op2, elem->child[0], scope) != SUCCESS)) { in zend_ast_evaluate()
423 if (ast->child[1] == NULL) { in zend_ast_evaluate()
427 if (UNEXPECTED(zend_ast_evaluate(&op1, ast->child[0], scope) != SUCCESS)) { in zend_ast_evaluate()
429 } else if (UNEXPECTED(zend_ast_evaluate(&op2, ast->child[1], scope) != SUCCESS)) { in zend_ast_evaluate()
476 new->child[i] = zend_ast_copy(list->child[i]); in zend_ast_copy()
485 new->child[i] = zend_ast_copy(ast->child[i]); in zend_ast_copy()
515 zend_ast_destroy_ex(decl->child[0], free); in zend_ast_destroy_ex()
516 zend_ast_destroy_ex(decl->child[1], free); in zend_ast_destroy_ex()
517 zend_ast_destroy_ex(decl->child[2], free); in zend_ast_destroy_ex()
518 zend_ast_destroy_ex(decl->child[3], free); in zend_ast_destroy_ex()
526 zend_ast_destroy_ex(list->child[i], free); in zend_ast_destroy_ex()
531 zend_ast_destroy_ex(ast->child[i], free); in zend_ast_destroy_ex()
553 fn(&list->child[i]); in zend_ast_apply()
558 fn(&ast->child[i]); in zend_ast_apply()
764 zend_ast_export_ex(str, list->child[i], priority, indent); in zend_ast_export_list()
775 ast = list->child[i]; in zend_ast_export_encaps_list()
782 ast->child[0]->kind == ZEND_AST_ZVAL && in zend_ast_export_encaps_list()
784 list->child[i + 1]->kind != ZEND_AST_ZVAL || in zend_ast_export_encaps_list()
787 zend_ast_get_zval(list->child[i + 1]))))) { in zend_ast_export_encaps_list()
806 zend_ast_export_name(str, list->child[i], 0, indent); in zend_ast_export_name_list_ex()
822 if (list->child[i]->attr) { in zend_ast_export_var_list()
826 zend_ast_export_name(str, list->child[i], 20, indent); in zend_ast_export_var_list()
843 ast = list->child[i]; in zend_ast_export_stmt()
881 ast = list->child[i]; in zend_ast_export_if_stmt()
883 if (ast->child[0]) { in zend_ast_export_if_stmt()
890 zend_ast_export_ex(str, ast->child[0], 0, indent); in zend_ast_export_if_stmt()
892 zend_ast_export_stmt(str, ast->child[1], indent + 1); in zend_ast_export_if_stmt()
896 if (ast->child[1]->kind == ZEND_AST_IF) { in zend_ast_export_if_stmt()
897 list = (zend_ast_list*)ast->child[1]; in zend_ast_export_if_stmt()
901 zend_ast_export_stmt(str, ast->child[1], indent + 1); in zend_ast_export_if_stmt()
973 if (decl->child[0]) { in zend_ast_export_class_no_header()
975 zend_ast_export_ns_name(str, decl->child[0], 0, indent); in zend_ast_export_class_no_header()
977 if (decl->child[1]) { in zend_ast_export_class_no_header()
979 zend_ast_export_ex(str, decl->child[1], 0, indent); in zend_ast_export_class_no_header()
982 zend_ast_export_stmt(str, decl->child[2], indent + 1); in zend_ast_export_class_no_header()
1078 zend_ast_export_ex(str, decl->child[0], 0, indent); in zend_ast_export_ex()
1080 zend_ast_export_ex(str, decl->child[1], 0, indent); in zend_ast_export_ex()
1081 if (decl->child[3]) { in zend_ast_export_ex()
1083 if (decl->child[3]->attr & ZEND_TYPE_NULLABLE) { in zend_ast_export_ex()
1086 zend_ast_export_ns_name(str, decl->child[3], 0, indent); in zend_ast_export_ex()
1088 if (decl->child[2]) { in zend_ast_export_ex()
1090 zend_ast_export_stmt(str, decl->child[2], indent + 1); in zend_ast_export_ex()
1206 zend_ast_export_var(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1209 zend_ast_export_ns_name(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1213 ast = ast->child[0]; in zend_ast_export_ex()
1237 if (ast->child[0]->kind == ZEND_AST_ENCAPS_LIST) { in zend_ast_export_ex()
1238 zend_ast_export_encaps_list(str, '`', (zend_ast_list*)ast->child[0], indent); in zend_ast_export_ex()
1241 ZEND_ASSERT(ast->child[0]->kind == ZEND_AST_ZVAL); in zend_ast_export_ex()
1242 zv = zend_ast_get_zval(ast->child[0]); in zend_ast_export_ex()
1251 if (ast->child[0]) { in zend_ast_export_ex()
1292 zend_ast_export_name(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1297 ast = ast->child[0]; in zend_ast_export_ex()
1307 zend_ast_export_name(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1316 zend_ast_export_ex(str, ast->child[0], 260, indent); in zend_ast_export_ex()
1318 if (ast->child[1]) { in zend_ast_export_ex()
1319 zend_ast_export_ex(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1324 zend_ast_export_ex(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1326 zend_ast_export_var(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1329 zend_ast_export_ns_name(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1331 zend_ast_export_var(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1334 zend_ast_export_ns_name(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1336 zend_ast_export_ex(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1340 zend_ast_export_ns_name(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1342 zend_ast_export_name(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1393 if (ast->child[1]) { in zend_ast_export_ex()
1394 zend_ast_export_ex(str, ast->child[1], 80, indent); in zend_ast_export_ex()
1397 zend_ast_export_ex(str, ast->child[0], 80, indent); in zend_ast_export_ex()
1401 if (ast->child[0]->kind == ZEND_AST_CLASS) { in zend_ast_export_ex()
1403 if (zend_ast_get_list(ast->child[1])->children) { in zend_ast_export_ex()
1405 zend_ast_export_ex(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1408 zend_ast_export_class_no_header(str, (zend_ast_decl *) ast->child[0], indent); in zend_ast_export_ex()
1410 zend_ast_export_ns_name(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1412 zend_ast_export_ex(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1417 zend_ast_export_ex(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1419 zend_ast_export_ns_name(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1424 if (ast->child[0]) { in zend_ast_export_ex()
1425 if (ast->child[1]) { in zend_ast_export_ex()
1426 zend_ast_export_ex(str, ast->child[1], 70, indent); in zend_ast_export_ex()
1429 zend_ast_export_ex(str, ast->child[0], 70, indent); in zend_ast_export_ex()
1438 zend_ast_export_name(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1442 zend_ast_export_ex(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1444 zend_ast_export_stmt(str, ast->child[1], indent + 1); in zend_ast_export_ex()
1450 zend_ast_export_stmt(str, ast->child[0], indent + 1); in zend_ast_export_ex()
1453 zend_ast_export_ex(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1458 if (ast->child[0]) { in zend_ast_export_ex()
1460 zend_ast_export_ex(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1462 zend_ast_export_stmt(str, ast->child[1], indent + 1); in zend_ast_export_ex()
1465 zend_ast_export_stmt(str, ast->child[1], indent + 1); in zend_ast_export_ex()
1472 zend_ast_export_ex(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1474 zend_ast_export_ex(str, ast->child[1], 0, indent + 1); in zend_ast_export_ex()
1480 if (ast->child[0]) { in zend_ast_export_ex()
1482 zend_ast_export_ex(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1487 zend_ast_export_stmt(str, ast->child[1], indent + 1); in zend_ast_export_ex()
1491 ZEND_ASSERT(ast->child[0]->kind == ZEND_AST_CONST_DECL); in zend_ast_export_ex()
1492 zend_ast_export_list(str, (zend_ast_list*)ast->child[0], 1, 0, indent); in zend_ast_export_ex()
1494 if (ast->child[1]) { in zend_ast_export_ex()
1496 zend_ast_export_stmt(str, ast->child[1], indent + 1); in zend_ast_export_ex()
1507 zend_ast_export_name(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1511 zend_ast_export_ex(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1512 if (ast->child[1]) { in zend_ast_export_ex()
1514 zend_ast_export_ex(str, ast->child[1], 0, indent + 1); in zend_ast_export_ex()
1522 zend_ast_export_ex(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1524 zend_ast_export_ex(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1527 if (ast->child[0]) { in zend_ast_export_ex()
1528 zend_ast_export_name(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1531 zend_ast_export_name(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1535 if (ast->child[0]) { in zend_ast_export_ex()
1537 zend_ast_export_name(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1539 if (ast->child[1]) { in zend_ast_export_ex()
1541 zend_ast_export_stmt(str, ast->child[1], indent + 1); in zend_ast_export_ex()
1550 zend_ast_export_name(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1557 } else if (ast->child[1]) { in zend_ast_export_ex()
1560 if (ast->child[1]) { in zend_ast_export_ex()
1562 zend_ast_export_name(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1568 zend_ast_export_ex(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1570 zend_ast_export_var(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1572 zend_ast_export_ex(str, ast->child[2], 0, indent); in zend_ast_export_ex()
1576 zend_ast_export_ns_name(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1578 zend_ast_export_var(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1580 zend_ast_export_ex(str, ast->child[2], 0, indent); in zend_ast_export_ex()
1585 zend_ast_export_ex(str, ast->child[0], 100, indent); in zend_ast_export_ex()
1586 if (ast->child[1]) { in zend_ast_export_ex()
1588 zend_ast_export_ex(str, ast->child[1], 101, indent); in zend_ast_export_ex()
1593 zend_ast_export_ex(str, ast->child[2], 101, indent); in zend_ast_export_ex()
1599 zend_ast_export_stmt(str, ast->child[0], indent + 1); in zend_ast_export_ex()
1601 zend_ast_export_ex(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1602 if (ast->child[2]) { in zend_ast_export_ex()
1604 zend_ast_export_stmt(str, ast->child[2], indent + 1); in zend_ast_export_ex()
1611 zend_ast_export_catch_name_list(str, zend_ast_get_list(ast->child[0]), indent); in zend_ast_export_ex()
1613 zend_ast_export_var(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1615 zend_ast_export_stmt(str, ast->child[2], indent + 1); in zend_ast_export_ex()
1619 if (ast->child[0]) { in zend_ast_export_ex()
1620 if (ast->child[0]->attr & ZEND_TYPE_NULLABLE) { in zend_ast_export_ex()
1623 zend_ast_export_ns_name(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1633 zend_ast_export_name(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1639 zend_ast_export_ex(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1641 if (ast->child[1]) { in zend_ast_export_ex()
1643 zend_ast_export_ex(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1646 if (ast->child[2]) { in zend_ast_export_ex()
1648 zend_ast_export_ex(str, ast->child[2], 0, indent); in zend_ast_export_ex()
1651 zend_ast_export_stmt(str, ast->child[3], indent + 1); in zend_ast_export_ex()
1657 zend_ast_export_ex(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1659 if (ast->child[2]) { in zend_ast_export_ex()
1660 zend_ast_export_ex(str, ast->child[2], 0, indent); in zend_ast_export_ex()
1663 zend_ast_export_ex(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1665 zend_ast_export_stmt(str, ast->child[3], indent + 1); in zend_ast_export_ex()
1675 zend_ast_export_ex(str, ast->child[0], pl, indent); in zend_ast_export_ex()
1677 zend_ast_export_ex(str, ast->child[1], pr, indent); in zend_ast_export_ex()
1684 zend_ast_export_ex(str, ast->child[0], pl, indent); in zend_ast_export_ex()
1690 zend_ast_export_ex(str, ast->child[0], pl, indent); in zend_ast_export_ex()
1698 zend_ast_export_ex(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1704 if (ast->child[0]) { in zend_ast_export_ex()
1706 ast = ast->child[0]; in zend_ast_export_ex()
1716 if (ast->child[p]) { in zend_ast_export_ex()
1718 ast = ast->child[p]; in zend_ast_export_ex()