Lines Matching refs:str
598 static void zend_ast_export_ex(smart_str *str, zend_ast *ast, int priority, int indent);
600 static void zend_ast_export_str(smart_str *str, zend_string *s) in zend_ast_export_str() argument
607 smart_str_appendc(str, '\\'); in zend_ast_export_str()
608 smart_str_appendc(str, c); in zend_ast_export_str()
610 smart_str_appendc(str, c); in zend_ast_export_str()
615 static void zend_ast_export_qstr(smart_str *str, char quote, zend_string *s) in zend_ast_export_qstr() argument
624 smart_str_appends(str, "\\n"); in zend_ast_export_qstr()
627 smart_str_appends(str, "\\r"); in zend_ast_export_qstr()
630 smart_str_appends(str, "\\t"); in zend_ast_export_qstr()
633 smart_str_appends(str, "\\f"); in zend_ast_export_qstr()
636 smart_str_appends(str, "\\v"); in zend_ast_export_qstr()
643 smart_str_appends(str, "\\e"); in zend_ast_export_qstr()
646 smart_str_appends(str, "\\0"); in zend_ast_export_qstr()
647 smart_str_appendc(str, '0' + (c / 8)); in zend_ast_export_qstr()
648 smart_str_appendc(str, '0' + (c % 8)); in zend_ast_export_qstr()
653 smart_str_appendc(str, '\\'); in zend_ast_export_qstr()
655 smart_str_appendc(str, c); in zend_ast_export_qstr()
660 static void zend_ast_export_indent(smart_str *str, int indent) in zend_ast_export_indent() argument
663 smart_str_appends(str, " "); in zend_ast_export_indent()
668 static void zend_ast_export_name(smart_str *str, zend_ast *ast, int priority, int indent) in zend_ast_export_name() argument
674 smart_str_append(str, Z_STR_P(zv)); in zend_ast_export_name()
678 zend_ast_export_ex(str, ast, priority, indent); in zend_ast_export_name()
681 static void zend_ast_export_ns_name(smart_str *str, zend_ast *ast, int priority, int indent) in zend_ast_export_ns_name() argument
688 smart_str_appendc(str, '\\'); in zend_ast_export_ns_name()
690 smart_str_appends(str, "namespace\\"); in zend_ast_export_ns_name()
692 smart_str_append(str, Z_STR_P(zv)); in zend_ast_export_ns_name()
696 zend_ast_export_ex(str, ast, priority, indent); in zend_ast_export_ns_name()
738 static void zend_ast_export_var(smart_str *str, zend_ast *ast, int priority, int indent) in zend_ast_export_var() argument
744 smart_str_append(str, Z_STR_P(zv)); in zend_ast_export_var()
748 zend_ast_export_ex(str, ast, 0, indent); in zend_ast_export_var()
751 smart_str_appendc(str, '{'); in zend_ast_export_var()
752 zend_ast_export_name(str, ast, 0, indent); in zend_ast_export_var()
753 smart_str_appendc(str, '}'); in zend_ast_export_var()
756 static void zend_ast_export_list(smart_str *str, zend_ast_list *list, int separator, int priority, … in zend_ast_export_list() argument
762 smart_str_appends(str, ", "); in zend_ast_export_list()
764 zend_ast_export_ex(str, list->child[i], priority, indent); in zend_ast_export_list()
769 static void zend_ast_export_encaps_list(smart_str *str, char quote, zend_ast_list *list, int indent) in zend_ast_export_encaps_list() argument
780 zend_ast_export_qstr(str, quote, Z_STR_P(zv)); in zend_ast_export_encaps_list()
788 zend_ast_export_ex(str, ast, 0, indent); in zend_ast_export_encaps_list()
790 smart_str_appendc(str, '{'); in zend_ast_export_encaps_list()
791 zend_ast_export_ex(str, ast, 0, indent); in zend_ast_export_encaps_list()
792 smart_str_appendc(str, '}'); in zend_ast_export_encaps_list()
798 static void zend_ast_export_name_list(smart_str *str, zend_ast_list *list, int indent) in zend_ast_export_name_list() argument
804 smart_str_appends(str, ", "); in zend_ast_export_name_list()
806 zend_ast_export_name(str, list->child[i], 0, indent); in zend_ast_export_name_list()
811 static void zend_ast_export_var_list(smart_str *str, zend_ast_list *list, int indent) in zend_ast_export_var_list() argument
817 smart_str_appends(str, ", "); in zend_ast_export_var_list()
820 smart_str_appendc(str, '&'); in zend_ast_export_var_list()
822 smart_str_appendc(str, '$'); in zend_ast_export_var_list()
823 zend_ast_export_name(str, list->child[i], 20, indent); in zend_ast_export_var_list()
828 static void zend_ast_export_stmt(smart_str *str, zend_ast *ast, int indent) in zend_ast_export_stmt() argument
841 zend_ast_export_stmt(str, ast, indent); in zend_ast_export_stmt()
845 zend_ast_export_indent(str, indent); in zend_ast_export_stmt()
846 zend_ast_export_ex(str, ast, 0, indent); in zend_ast_export_stmt()
863 smart_str_appendc(str, ';'); in zend_ast_export_stmt()
866 smart_str_appendc(str, '\n'); in zend_ast_export_stmt()
870 static void zend_ast_export_if_stmt(smart_str *str, zend_ast_list *list, int indent) in zend_ast_export_if_stmt() argument
882 smart_str_appends(str, "if ("); in zend_ast_export_if_stmt()
884 zend_ast_export_indent(str, indent); in zend_ast_export_if_stmt()
885 smart_str_appends(str, "} elseif ("); in zend_ast_export_if_stmt()
887 zend_ast_export_ex(str, ast->child[0], 0, indent); in zend_ast_export_if_stmt()
888 smart_str_appends(str, ") {\n"); in zend_ast_export_if_stmt()
889 zend_ast_export_stmt(str, ast->child[1], indent + 1); in zend_ast_export_if_stmt()
891 zend_ast_export_indent(str, indent); in zend_ast_export_if_stmt()
892 smart_str_appends(str, "} else "); in zend_ast_export_if_stmt()
897 smart_str_appends(str, "{\n"); in zend_ast_export_if_stmt()
898 zend_ast_export_stmt(str, ast->child[1], indent + 1); in zend_ast_export_if_stmt()
903 zend_ast_export_indent(str, indent); in zend_ast_export_if_stmt()
904 smart_str_appendc(str, '}'); in zend_ast_export_if_stmt()
907 static void zend_ast_export_zval(smart_str *str, zval *zv, int priority, int indent) in zend_ast_export_zval() argument
917 smart_str_appends(str, "null"); in zend_ast_export_zval()
920 smart_str_appends(str, "false"); in zend_ast_export_zval()
923 smart_str_appends(str, "true"); in zend_ast_export_zval()
926 smart_str_append_long(str, Z_LVAL_P(zv)); in zend_ast_export_zval()
930 smart_str_appendl(str, ZSTR_VAL(key), ZSTR_LEN(key)); in zend_ast_export_zval()
934 smart_str_appendc(str, '\''); in zend_ast_export_zval()
935 zend_ast_export_str(str, Z_STR_P(zv)); in zend_ast_export_zval()
936 smart_str_appendc(str, '\''); in zend_ast_export_zval()
939 smart_str_appendc(str, '['); in zend_ast_export_zval()
945 smart_str_appends(str, ", "); in zend_ast_export_zval()
948 smart_str_appendc(str, '\''); in zend_ast_export_zval()
949 zend_ast_export_str(str, key); in zend_ast_export_zval()
950 smart_str_appends(str, "' => "); in zend_ast_export_zval()
952 smart_str_append_long(str, idx); in zend_ast_export_zval()
953 smart_str_appends(str, " => "); in zend_ast_export_zval()
955 zend_ast_export_zval(str, val, 0, indent); in zend_ast_export_zval()
957 smart_str_appendc(str, ']'); in zend_ast_export_zval()
960 smart_str_appendl(str, Z_STRVAL_P(zv), Z_STRLEN_P(zv)); in zend_ast_export_zval()
963 zend_ast_export_ex(str, Z_ASTVAL_P(zv), priority, indent); in zend_ast_export_zval()
969 static void zend_ast_export_class_no_header(smart_str *str, zend_ast_decl *decl, int indent) { in zend_ast_export_class_no_header() argument
971 smart_str_appends(str, " extends "); in zend_ast_export_class_no_header()
972 zend_ast_export_ns_name(str, decl->child[0], 0, indent); in zend_ast_export_class_no_header()
975 smart_str_appends(str, " implements "); in zend_ast_export_class_no_header()
976 zend_ast_export_ex(str, decl->child[1], 0, indent); in zend_ast_export_class_no_header()
978 smart_str_appends(str, " {\n"); in zend_ast_export_class_no_header()
979 zend_ast_export_stmt(str, decl->child[2], indent + 1); in zend_ast_export_class_no_header()
980 zend_ast_export_indent(str, indent); in zend_ast_export_class_no_header()
981 smart_str_appends(str, "}"); in zend_ast_export_class_no_header()
1026 static void zend_ast_export_ex(smart_str *str, zend_ast *ast, int priority, int indent) in zend_ast_export_ex() argument
1039 zend_ast_export_zval(str, zend_ast_get_zval(ast), priority, indent); in zend_ast_export_ex()
1052 smart_str_appends(str, "public "); in zend_ast_export_ex()
1054 smart_str_appends(str, "protected "); in zend_ast_export_ex()
1056 smart_str_appends(str, "private "); in zend_ast_export_ex()
1059 smart_str_appends(str, "static "); in zend_ast_export_ex()
1062 smart_str_appends(str, "abstract "); in zend_ast_export_ex()
1065 smart_str_appends(str, "final "); in zend_ast_export_ex()
1067 smart_str_appends(str, "function "); in zend_ast_export_ex()
1069 smart_str_appendc(str, '&'); in zend_ast_export_ex()
1072 smart_str_appendl(str, ZSTR_VAL(decl->name), ZSTR_LEN(decl->name)); in zend_ast_export_ex()
1074 smart_str_appendc(str, '('); in zend_ast_export_ex()
1075 zend_ast_export_ex(str, decl->child[0], 0, indent); in zend_ast_export_ex()
1076 smart_str_appendc(str, ')'); in zend_ast_export_ex()
1077 zend_ast_export_ex(str, decl->child[1], 0, indent); in zend_ast_export_ex()
1079 smart_str_appends(str, ": "); in zend_ast_export_ex()
1080 zend_ast_export_ns_name(str, decl->child[3], 0, indent); in zend_ast_export_ex()
1083 smart_str_appends(str, " {\n"); in zend_ast_export_ex()
1084 zend_ast_export_stmt(str, decl->child[2], indent + 1); in zend_ast_export_ex()
1085 zend_ast_export_indent(str, indent); in zend_ast_export_ex()
1086 smart_str_appendc(str, '}'); in zend_ast_export_ex()
1088 smart_str_appendc(str, '\n'); in zend_ast_export_ex()
1091 smart_str_appends(str, ";\n"); in zend_ast_export_ex()
1097 smart_str_appends(str, "interface "); in zend_ast_export_ex()
1099 smart_str_appends(str, "trait "); in zend_ast_export_ex()
1102 smart_str_appends(str, "abstract "); in zend_ast_export_ex()
1105 smart_str_appends(str, "final "); in zend_ast_export_ex()
1107 smart_str_appends(str, "class "); in zend_ast_export_ex()
1109 smart_str_appendl(str, ZSTR_VAL(decl->name), ZSTR_LEN(decl->name)); in zend_ast_export_ex()
1110 zend_ast_export_class_no_header(str, decl, indent); in zend_ast_export_ex()
1111 smart_str_appendc(str, '\n'); in zend_ast_export_ex()
1119 zend_ast_export_list(str, (zend_ast_list*)ast, 1, 20, indent); in zend_ast_export_ex()
1122 smart_str_appends(str, "list("); in zend_ast_export_ex()
1123 zend_ast_export_list(str, (zend_ast_list*)ast, 1, 20, indent); in zend_ast_export_ex()
1124 smart_str_appendc(str, ')'); in zend_ast_export_ex()
1127 smart_str_appendc(str, '['); in zend_ast_export_ex()
1128 zend_ast_export_list(str, (zend_ast_list*)ast, 1, 20, indent); in zend_ast_export_ex()
1129 smart_str_appendc(str, ']'); in zend_ast_export_ex()
1132 smart_str_appendc(str, '"'); in zend_ast_export_ex()
1133 zend_ast_export_encaps_list(str, '"', (zend_ast_list*)ast, indent); in zend_ast_export_ex()
1134 smart_str_appendc(str, '"'); in zend_ast_export_ex()
1138 zend_ast_export_stmt(str, ast, indent); in zend_ast_export_ex()
1141 zend_ast_export_if_stmt(str, (zend_ast_list*)ast, indent); in zend_ast_export_ex()
1145 zend_ast_export_list(str, (zend_ast_list*)ast, 0, 0, indent); in zend_ast_export_ex()
1148 smart_str_appends(str, " use("); in zend_ast_export_ex()
1149 zend_ast_export_var_list(str, (zend_ast_list*)ast, indent); in zend_ast_export_ex()
1150 smart_str_appendc(str, ')'); in zend_ast_export_ex()
1154 smart_str_appends(str, "public "); in zend_ast_export_ex()
1156 smart_str_appends(str, "protected "); in zend_ast_export_ex()
1158 smart_str_appends(str, "private "); in zend_ast_export_ex()
1161 smart_str_appends(str, "static "); in zend_ast_export_ex()
1166 smart_str_appends(str, "const "); in zend_ast_export_ex()
1169 zend_ast_export_name_list(str, (zend_ast_list*)ast, indent); in zend_ast_export_ex()
1172 smart_str_appends(str, "use "); in zend_ast_export_ex()
1174 smart_str_appends(str, "function "); in zend_ast_export_ex()
1176 smart_str_appends(str, "const "); in zend_ast_export_ex()
1204 smart_str_appendc(str, '$'); in zend_ast_export_ex()
1205 zend_ast_export_var(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1208 zend_ast_export_ns_name(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1211 smart_str_appends(str, "..."); in zend_ast_export_ex()
1235 smart_str_appendc(str, '`'); in zend_ast_export_ex()
1237 zend_ast_export_encaps_list(str, '`', (zend_ast_list*)ast->child[0], indent); in zend_ast_export_ex()
1243 zend_ast_export_qstr(str, '`', Z_STR_P(zv)); in zend_ast_export_ex()
1245 smart_str_appendc(str, '`'); in zend_ast_export_ex()
1291 zend_ast_export_name(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1292 smart_str_appendc(str, ':'); in zend_ast_export_ex()
1295 smart_str_appendc(str, '&'); in zend_ast_export_ex()
1305 smart_str_appends(str, "goto "); in zend_ast_export_ex()
1306 zend_ast_export_name(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1315 zend_ast_export_ex(str, ast->child[0], 260, indent); in zend_ast_export_ex()
1316 smart_str_appendc(str, '['); in zend_ast_export_ex()
1318 zend_ast_export_ex(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1320 smart_str_appendc(str, ']'); in zend_ast_export_ex()
1323 zend_ast_export_ex(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1324 smart_str_appends(str, "->"); in zend_ast_export_ex()
1325 zend_ast_export_var(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1328 zend_ast_export_ns_name(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1329 smart_str_appends(str, "::$"); in zend_ast_export_ex()
1330 zend_ast_export_var(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1333 zend_ast_export_ns_name(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1334 smart_str_appendc(str, '('); in zend_ast_export_ex()
1335 zend_ast_export_ex(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1336 smart_str_appendc(str, ')'); in zend_ast_export_ex()
1339 zend_ast_export_ns_name(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1340 smart_str_appends(str, "::"); in zend_ast_export_ex()
1341 zend_ast_export_name(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1393 zend_ast_export_ex(str, ast->child[1], 80, indent); in zend_ast_export_ex()
1394 smart_str_appends(str, " => "); in zend_ast_export_ex()
1396 zend_ast_export_ex(str, ast->child[0], 80, indent); in zend_ast_export_ex()
1399 smart_str_appends(str, "new "); in zend_ast_export_ex()
1401 smart_str_appends(str, "class"); in zend_ast_export_ex()
1403 smart_str_appendc(str, '('); in zend_ast_export_ex()
1404 zend_ast_export_ex(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1405 smart_str_appendc(str, ')'); in zend_ast_export_ex()
1407 zend_ast_export_class_no_header(str, (zend_ast_decl *) ast->child[0], indent); in zend_ast_export_ex()
1409 zend_ast_export_ns_name(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1410 smart_str_appendc(str, '('); in zend_ast_export_ex()
1411 zend_ast_export_ex(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1412 smart_str_appendc(str, ')'); in zend_ast_export_ex()
1416 zend_ast_export_ex(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1417 smart_str_appends(str, " instanceof "); in zend_ast_export_ex()
1418 zend_ast_export_ns_name(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1421 if (priority > 70) smart_str_appendc(str, '('); in zend_ast_export_ex()
1422 smart_str_appends(str, "yield "); in zend_ast_export_ex()
1425 zend_ast_export_ex(str, ast->child[1], 70, indent); in zend_ast_export_ex()
1426 smart_str_appends(str, " => "); in zend_ast_export_ex()
1428 zend_ast_export_ex(str, ast->child[0], 70, indent); in zend_ast_export_ex()
1430 if (priority > 70) smart_str_appendc(str, ')'); in zend_ast_export_ex()
1436 smart_str_appends(str, "static $"); in zend_ast_export_ex()
1437 zend_ast_export_name(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1440 smart_str_appends(str, "while ("); in zend_ast_export_ex()
1441 zend_ast_export_ex(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1442 smart_str_appends(str, ") {\n"); in zend_ast_export_ex()
1443 zend_ast_export_stmt(str, ast->child[1], indent + 1); in zend_ast_export_ex()
1444 zend_ast_export_indent(str, indent); in zend_ast_export_ex()
1445 smart_str_appendc(str, '}'); in zend_ast_export_ex()
1448 smart_str_appends(str, "do {\n"); in zend_ast_export_ex()
1449 zend_ast_export_stmt(str, ast->child[0], indent + 1); in zend_ast_export_ex()
1450 zend_ast_export_indent(str, indent); in zend_ast_export_ex()
1451 smart_str_appends(str, "} while ("); in zend_ast_export_ex()
1452 zend_ast_export_ex(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1453 smart_str_appendc(str, ')'); in zend_ast_export_ex()
1458 smart_str_appends(str, "if ("); in zend_ast_export_ex()
1459 zend_ast_export_ex(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1460 smart_str_appends(str, ") {\n"); in zend_ast_export_ex()
1461 zend_ast_export_stmt(str, ast->child[1], indent + 1); in zend_ast_export_ex()
1463 smart_str_appends(str, "else {\n"); in zend_ast_export_ex()
1464 zend_ast_export_stmt(str, ast->child[1], indent + 1); in zend_ast_export_ex()
1466 zend_ast_export_indent(str, indent); in zend_ast_export_ex()
1467 smart_str_appendc(str, '}'); in zend_ast_export_ex()
1470 smart_str_appends(str, "switch ("); in zend_ast_export_ex()
1471 zend_ast_export_ex(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1472 smart_str_appends(str, ") {\n"); in zend_ast_export_ex()
1473 zend_ast_export_ex(str, ast->child[1], 0, indent + 1); in zend_ast_export_ex()
1474 zend_ast_export_indent(str, indent); in zend_ast_export_ex()
1475 smart_str_appendc(str, '}'); in zend_ast_export_ex()
1478 zend_ast_export_indent(str, indent); in zend_ast_export_ex()
1480 smart_str_appends(str, "case "); in zend_ast_export_ex()
1481 zend_ast_export_ex(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1482 smart_str_appends(str, ":\n"); in zend_ast_export_ex()
1484 smart_str_appends(str, "default:\n"); in zend_ast_export_ex()
1486 zend_ast_export_stmt(str, ast->child[1], indent + 1); in zend_ast_export_ex()
1489 smart_str_appends(str, "declare("); in zend_ast_export_ex()
1491 zend_ast_export_list(str, (zend_ast_list*)ast->child[0], 1, 0, indent); in zend_ast_export_ex()
1492 smart_str_appendc(str, ')'); in zend_ast_export_ex()
1494 smart_str_appends(str, " {\n"); in zend_ast_export_ex()
1495 zend_ast_export_stmt(str, ast->child[1], indent + 1); in zend_ast_export_ex()
1496 zend_ast_export_indent(str, indent); in zend_ast_export_ex()
1497 smart_str_appendc(str, '}'); in zend_ast_export_ex()
1499 smart_str_appendc(str, ';'); in zend_ast_export_ex()
1503 smart_str_appendc(str, '$'); in zend_ast_export_ex()
1506 zend_ast_export_name(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1509 smart_str_appends(str, "use "); in zend_ast_export_ex()
1510 zend_ast_export_ex(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1512 smart_str_appends(str, " {\n"); in zend_ast_export_ex()
1513 zend_ast_export_ex(str, ast->child[1], 0, indent + 1); in zend_ast_export_ex()
1514 zend_ast_export_indent(str, indent); in zend_ast_export_ex()
1515 smart_str_appends(str, "}"); in zend_ast_export_ex()
1517 smart_str_appends(str, ";"); in zend_ast_export_ex()
1521 zend_ast_export_ex(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1522 smart_str_appends(str, " insteadof "); in zend_ast_export_ex()
1523 zend_ast_export_ex(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1527 zend_ast_export_name(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1528 smart_str_appends(str, "::"); in zend_ast_export_ex()
1530 zend_ast_export_name(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1533 smart_str_appends(str, "namespace"); in zend_ast_export_ex()
1535 smart_str_appendc(str, ' '); in zend_ast_export_ex()
1536 zend_ast_export_name(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1539 smart_str_appends(str, " {\n"); in zend_ast_export_ex()
1540 zend_ast_export_stmt(str, ast->child[1], indent + 1); in zend_ast_export_ex()
1541 zend_ast_export_indent(str, indent); in zend_ast_export_ex()
1542 smart_str_appends(str, "}\n"); in zend_ast_export_ex()
1544 smart_str_appendc(str, ';'); in zend_ast_export_ex()
1549 zend_ast_export_name(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1551 smart_str_appends(str, " as public"); in zend_ast_export_ex()
1553 smart_str_appends(str, " as protected"); in zend_ast_export_ex()
1555 smart_str_appends(str, " as private"); in zend_ast_export_ex()
1557 smart_str_appends(str, " as"); in zend_ast_export_ex()
1560 smart_str_appendc(str, ' '); in zend_ast_export_ex()
1561 zend_ast_export_name(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1567 zend_ast_export_ex(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1568 smart_str_appends(str, "->"); in zend_ast_export_ex()
1569 zend_ast_export_var(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1570 smart_str_appendc(str, '('); in zend_ast_export_ex()
1571 zend_ast_export_ex(str, ast->child[2], 0, indent); in zend_ast_export_ex()
1572 smart_str_appendc(str, ')'); in zend_ast_export_ex()
1575 zend_ast_export_ns_name(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1576 smart_str_appends(str, "::"); in zend_ast_export_ex()
1577 zend_ast_export_var(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1578 smart_str_appendc(str, '('); in zend_ast_export_ex()
1579 zend_ast_export_ex(str, ast->child[2], 0, indent); in zend_ast_export_ex()
1580 smart_str_appendc(str, ')'); in zend_ast_export_ex()
1583 if (priority > 100) smart_str_appendc(str, '('); in zend_ast_export_ex()
1584 zend_ast_export_ex(str, ast->child[0], 100, indent); in zend_ast_export_ex()
1586 smart_str_appends(str, " ? "); in zend_ast_export_ex()
1587 zend_ast_export_ex(str, ast->child[1], 101, indent); in zend_ast_export_ex()
1588 smart_str_appends(str, " : "); in zend_ast_export_ex()
1590 smart_str_appends(str, " ?: "); in zend_ast_export_ex()
1592 zend_ast_export_ex(str, ast->child[2], 101, indent); in zend_ast_export_ex()
1593 if (priority > 100) smart_str_appendc(str, ')'); in zend_ast_export_ex()
1597 smart_str_appends(str, "try {\n"); in zend_ast_export_ex()
1598 zend_ast_export_stmt(str, ast->child[0], indent + 1); in zend_ast_export_ex()
1599 zend_ast_export_indent(str, indent); in zend_ast_export_ex()
1600 zend_ast_export_ex(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1602 smart_str_appends(str, "} finally {\n"); in zend_ast_export_ex()
1603 zend_ast_export_stmt(str, ast->child[2], indent + 1); in zend_ast_export_ex()
1604 zend_ast_export_indent(str, indent); in zend_ast_export_ex()
1606 smart_str_appendc(str, '}'); in zend_ast_export_ex()
1609 smart_str_appends(str, "} catch ("); in zend_ast_export_ex()
1610 zend_ast_export_ns_name(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1611 smart_str_appends(str, " $"); in zend_ast_export_ex()
1612 zend_ast_export_var(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1613 smart_str_appends(str, ") {\n"); in zend_ast_export_ex()
1614 zend_ast_export_stmt(str, ast->child[2], indent + 1); in zend_ast_export_ex()
1615 zend_ast_export_indent(str, indent); in zend_ast_export_ex()
1619 zend_ast_export_ns_name(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1620 smart_str_appendc(str, ' '); in zend_ast_export_ex()
1623 smart_str_appendc(str, '&'); in zend_ast_export_ex()
1626 smart_str_appends(str, "..."); in zend_ast_export_ex()
1628 smart_str_appendc(str, '$'); in zend_ast_export_ex()
1629 zend_ast_export_name(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1634 smart_str_appends(str, "for ("); in zend_ast_export_ex()
1635 zend_ast_export_ex(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1636 smart_str_appendc(str, ';'); in zend_ast_export_ex()
1638 smart_str_appendc(str, ' '); in zend_ast_export_ex()
1639 zend_ast_export_ex(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1641 smart_str_appendc(str, ';'); in zend_ast_export_ex()
1643 smart_str_appendc(str, ' '); in zend_ast_export_ex()
1644 zend_ast_export_ex(str, ast->child[2], 0, indent); in zend_ast_export_ex()
1646 smart_str_appends(str, ") {\n"); in zend_ast_export_ex()
1647 zend_ast_export_stmt(str, ast->child[3], indent + 1); in zend_ast_export_ex()
1648 zend_ast_export_indent(str, indent); in zend_ast_export_ex()
1649 smart_str_appendc(str, '}'); in zend_ast_export_ex()
1652 smart_str_appends(str, "foreach ("); in zend_ast_export_ex()
1653 zend_ast_export_ex(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1654 smart_str_appends(str, " as "); in zend_ast_export_ex()
1656 zend_ast_export_ex(str, ast->child[2], 0, indent); in zend_ast_export_ex()
1657 smart_str_appends(str, " => "); in zend_ast_export_ex()
1659 zend_ast_export_ex(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1660 smart_str_appends(str, ") {\n"); in zend_ast_export_ex()
1661 zend_ast_export_stmt(str, ast->child[3], indent + 1); in zend_ast_export_ex()
1662 zend_ast_export_indent(str, indent); in zend_ast_export_ex()
1663 smart_str_appendc(str, '}'); in zend_ast_export_ex()
1670 if (priority > p) smart_str_appendc(str, '('); in zend_ast_export_ex()
1671 zend_ast_export_ex(str, ast->child[0], pl, indent); in zend_ast_export_ex()
1672 smart_str_appends(str, op); in zend_ast_export_ex()
1673 zend_ast_export_ex(str, ast->child[1], pr, indent); in zend_ast_export_ex()
1674 if (priority > p) smart_str_appendc(str, ')'); in zend_ast_export_ex()
1678 if (priority > p) smart_str_appendc(str, '('); in zend_ast_export_ex()
1679 smart_str_appends(str, op); in zend_ast_export_ex()
1680 zend_ast_export_ex(str, ast->child[0], pl, indent); in zend_ast_export_ex()
1681 if (priority > p) smart_str_appendc(str, ')'); in zend_ast_export_ex()
1685 if (priority > p) smart_str_appendc(str, '('); in zend_ast_export_ex()
1686 zend_ast_export_ex(str, ast->child[0], pl, indent); in zend_ast_export_ex()
1687 smart_str_appends(str, op); in zend_ast_export_ex()
1688 if (priority > p) smart_str_appendc(str, ')'); in zend_ast_export_ex()
1692 smart_str_appends(str, op); in zend_ast_export_ex()
1693 smart_str_appendc(str, '('); in zend_ast_export_ex()
1694 zend_ast_export_ex(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1695 smart_str_appendc(str, ')'); in zend_ast_export_ex()
1699 smart_str_appends(str, op); in zend_ast_export_ex()
1701 smart_str_appendc(str, ' '); in zend_ast_export_ex()
1708 smart_str_appends(str, op); in zend_ast_export_ex()
1713 smart_str_appends(str, " = "); in zend_ast_export_ex()
1722 smart_str str = {0}; in zend_ast_export() local
1724 smart_str_appends(&str, prefix); in zend_ast_export()
1725 zend_ast_export_ex(&str, ast, 0, 0); in zend_ast_export()
1726 smart_str_appends(&str, suffix); in zend_ast_export()
1727 smart_str_0(&str); in zend_ast_export()
1728 return str.s; in zend_ast_export()