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_ex(smart_str *str, zend_ast_list *list, int indent, const cha… in zend_ast_export_name_list_ex() argument
804 smart_str_appends(str, separator); in zend_ast_export_name_list_ex()
806 zend_ast_export_name(str, list->child[i], 0, indent); in zend_ast_export_name_list_ex()
814 static void zend_ast_export_var_list(smart_str *str, zend_ast_list *list, int indent) in zend_ast_export_var_list() argument
820 smart_str_appends(str, ", "); in zend_ast_export_var_list()
823 smart_str_appendc(str, '&'); in zend_ast_export_var_list()
825 smart_str_appendc(str, '$'); in zend_ast_export_var_list()
826 zend_ast_export_name(str, list->child[i], 20, indent); in zend_ast_export_var_list()
831 static void zend_ast_export_stmt(smart_str *str, zend_ast *ast, int indent) in zend_ast_export_stmt() argument
844 zend_ast_export_stmt(str, ast, indent); in zend_ast_export_stmt()
848 zend_ast_export_indent(str, indent); in zend_ast_export_stmt()
849 zend_ast_export_ex(str, ast, 0, indent); in zend_ast_export_stmt()
866 smart_str_appendc(str, ';'); in zend_ast_export_stmt()
869 smart_str_appendc(str, '\n'); in zend_ast_export_stmt()
873 static void zend_ast_export_if_stmt(smart_str *str, zend_ast_list *list, int indent) in zend_ast_export_if_stmt() argument
885 smart_str_appends(str, "if ("); in zend_ast_export_if_stmt()
887 zend_ast_export_indent(str, indent); in zend_ast_export_if_stmt()
888 smart_str_appends(str, "} elseif ("); in zend_ast_export_if_stmt()
890 zend_ast_export_ex(str, ast->child[0], 0, indent); in zend_ast_export_if_stmt()
891 smart_str_appends(str, ") {\n"); in zend_ast_export_if_stmt()
892 zend_ast_export_stmt(str, ast->child[1], indent + 1); in zend_ast_export_if_stmt()
894 zend_ast_export_indent(str, indent); in zend_ast_export_if_stmt()
895 smart_str_appends(str, "} else "); in zend_ast_export_if_stmt()
900 smart_str_appends(str, "{\n"); in zend_ast_export_if_stmt()
901 zend_ast_export_stmt(str, ast->child[1], indent + 1); in zend_ast_export_if_stmt()
906 zend_ast_export_indent(str, indent); in zend_ast_export_if_stmt()
907 smart_str_appendc(str, '}'); in zend_ast_export_if_stmt()
910 static void zend_ast_export_zval(smart_str *str, zval *zv, int priority, int indent) in zend_ast_export_zval() argument
920 smart_str_appends(str, "null"); in zend_ast_export_zval()
923 smart_str_appends(str, "false"); in zend_ast_export_zval()
926 smart_str_appends(str, "true"); in zend_ast_export_zval()
929 smart_str_append_long(str, Z_LVAL_P(zv)); in zend_ast_export_zval()
933 smart_str_appendl(str, ZSTR_VAL(key), ZSTR_LEN(key)); in zend_ast_export_zval()
937 smart_str_appendc(str, '\''); in zend_ast_export_zval()
938 zend_ast_export_str(str, Z_STR_P(zv)); in zend_ast_export_zval()
939 smart_str_appendc(str, '\''); in zend_ast_export_zval()
942 smart_str_appendc(str, '['); in zend_ast_export_zval()
948 smart_str_appends(str, ", "); in zend_ast_export_zval()
951 smart_str_appendc(str, '\''); in zend_ast_export_zval()
952 zend_ast_export_str(str, key); in zend_ast_export_zval()
953 smart_str_appends(str, "' => "); in zend_ast_export_zval()
955 smart_str_append_long(str, idx); in zend_ast_export_zval()
956 smart_str_appends(str, " => "); in zend_ast_export_zval()
958 zend_ast_export_zval(str, val, 0, indent); in zend_ast_export_zval()
960 smart_str_appendc(str, ']'); in zend_ast_export_zval()
963 smart_str_appendl(str, Z_STRVAL_P(zv), Z_STRLEN_P(zv)); in zend_ast_export_zval()
966 zend_ast_export_ex(str, Z_ASTVAL_P(zv), priority, indent); in zend_ast_export_zval()
972 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
974 smart_str_appends(str, " extends "); 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()
978 smart_str_appends(str, " implements "); 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()
981 smart_str_appends(str, " {\n"); 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()
983 zend_ast_export_indent(str, indent); in zend_ast_export_class_no_header()
984 smart_str_appends(str, "}"); in zend_ast_export_class_no_header()
1029 static void zend_ast_export_ex(smart_str *str, zend_ast *ast, int priority, int indent) in zend_ast_export_ex() argument
1042 zend_ast_export_zval(str, zend_ast_get_zval(ast), priority, indent); in zend_ast_export_ex()
1055 smart_str_appends(str, "public "); in zend_ast_export_ex()
1057 smart_str_appends(str, "protected "); in zend_ast_export_ex()
1059 smart_str_appends(str, "private "); in zend_ast_export_ex()
1062 smart_str_appends(str, "static "); in zend_ast_export_ex()
1065 smart_str_appends(str, "abstract "); in zend_ast_export_ex()
1068 smart_str_appends(str, "final "); in zend_ast_export_ex()
1070 smart_str_appends(str, "function "); in zend_ast_export_ex()
1072 smart_str_appendc(str, '&'); in zend_ast_export_ex()
1075 smart_str_appendl(str, ZSTR_VAL(decl->name), ZSTR_LEN(decl->name)); in zend_ast_export_ex()
1077 smart_str_appendc(str, '('); in zend_ast_export_ex()
1078 zend_ast_export_ex(str, decl->child[0], 0, indent); in zend_ast_export_ex()
1079 smart_str_appendc(str, ')'); in zend_ast_export_ex()
1080 zend_ast_export_ex(str, decl->child[1], 0, indent); in zend_ast_export_ex()
1082 smart_str_appends(str, ": "); in zend_ast_export_ex()
1084 smart_str_appendc(str, '?'); in zend_ast_export_ex()
1086 zend_ast_export_ns_name(str, decl->child[3], 0, indent); in zend_ast_export_ex()
1089 smart_str_appends(str, " {\n"); in zend_ast_export_ex()
1090 zend_ast_export_stmt(str, decl->child[2], indent + 1); in zend_ast_export_ex()
1091 zend_ast_export_indent(str, indent); in zend_ast_export_ex()
1092 smart_str_appendc(str, '}'); in zend_ast_export_ex()
1094 smart_str_appendc(str, '\n'); in zend_ast_export_ex()
1097 smart_str_appends(str, ";\n"); in zend_ast_export_ex()
1103 smart_str_appends(str, "interface "); in zend_ast_export_ex()
1105 smart_str_appends(str, "trait "); in zend_ast_export_ex()
1108 smart_str_appends(str, "abstract "); in zend_ast_export_ex()
1111 smart_str_appends(str, "final "); in zend_ast_export_ex()
1113 smart_str_appends(str, "class "); in zend_ast_export_ex()
1115 smart_str_appendl(str, ZSTR_VAL(decl->name), ZSTR_LEN(decl->name)); in zend_ast_export_ex()
1116 zend_ast_export_class_no_header(str, decl, indent); in zend_ast_export_ex()
1117 smart_str_appendc(str, '\n'); in zend_ast_export_ex()
1125 zend_ast_export_list(str, (zend_ast_list*)ast, 1, 20, indent); in zend_ast_export_ex()
1128 smart_str_appendc(str, '['); in zend_ast_export_ex()
1129 zend_ast_export_list(str, (zend_ast_list*)ast, 1, 20, indent); in zend_ast_export_ex()
1130 smart_str_appendc(str, ']'); in zend_ast_export_ex()
1133 smart_str_appendc(str, '"'); in zend_ast_export_ex()
1134 zend_ast_export_encaps_list(str, '"', (zend_ast_list*)ast, indent); in zend_ast_export_ex()
1135 smart_str_appendc(str, '"'); in zend_ast_export_ex()
1139 zend_ast_export_stmt(str, ast, indent); in zend_ast_export_ex()
1142 zend_ast_export_if_stmt(str, (zend_ast_list*)ast, indent); in zend_ast_export_ex()
1146 zend_ast_export_list(str, (zend_ast_list*)ast, 0, 0, indent); in zend_ast_export_ex()
1149 smart_str_appends(str, " use("); in zend_ast_export_ex()
1150 zend_ast_export_var_list(str, (zend_ast_list*)ast, indent); in zend_ast_export_ex()
1151 smart_str_appendc(str, ')'); in zend_ast_export_ex()
1155 smart_str_appends(str, "public "); in zend_ast_export_ex()
1157 smart_str_appends(str, "protected "); in zend_ast_export_ex()
1159 smart_str_appends(str, "private "); in zend_ast_export_ex()
1162 smart_str_appends(str, "static "); in zend_ast_export_ex()
1167 smart_str_appends(str, "const "); in zend_ast_export_ex()
1170 zend_ast_export_name_list(str, (zend_ast_list*)ast, indent); in zend_ast_export_ex()
1173 smart_str_appends(str, "use "); in zend_ast_export_ex()
1175 smart_str_appends(str, "function "); in zend_ast_export_ex()
1177 smart_str_appends(str, "const "); in zend_ast_export_ex()
1205 smart_str_appendc(str, '$'); 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()
1212 smart_str_appends(str, "..."); in zend_ast_export_ex()
1236 smart_str_appendc(str, '`'); in zend_ast_export_ex()
1238 zend_ast_export_encaps_list(str, '`', (zend_ast_list*)ast->child[0], indent); in zend_ast_export_ex()
1244 zend_ast_export_qstr(str, '`', Z_STR_P(zv)); in zend_ast_export_ex()
1246 smart_str_appendc(str, '`'); in zend_ast_export_ex()
1292 zend_ast_export_name(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1293 smart_str_appendc(str, ':'); in zend_ast_export_ex()
1296 smart_str_appendc(str, '&'); in zend_ast_export_ex()
1306 smart_str_appends(str, "goto "); 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()
1317 smart_str_appendc(str, '['); in zend_ast_export_ex()
1319 zend_ast_export_ex(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1321 smart_str_appendc(str, ']'); in zend_ast_export_ex()
1324 zend_ast_export_ex(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1325 smart_str_appends(str, "->"); 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()
1330 smart_str_appends(str, "::$"); 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()
1335 smart_str_appendc(str, '('); in zend_ast_export_ex()
1336 zend_ast_export_ex(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1337 smart_str_appendc(str, ')'); in zend_ast_export_ex()
1340 zend_ast_export_ns_name(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1341 smart_str_appends(str, "::"); in zend_ast_export_ex()
1342 zend_ast_export_name(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1394 zend_ast_export_ex(str, ast->child[1], 80, indent); in zend_ast_export_ex()
1395 smart_str_appends(str, " => "); in zend_ast_export_ex()
1397 zend_ast_export_ex(str, ast->child[0], 80, indent); in zend_ast_export_ex()
1400 smart_str_appends(str, "new "); in zend_ast_export_ex()
1402 smart_str_appends(str, "class"); in zend_ast_export_ex()
1404 smart_str_appendc(str, '('); in zend_ast_export_ex()
1405 zend_ast_export_ex(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1406 smart_str_appendc(str, ')'); 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()
1411 smart_str_appendc(str, '('); in zend_ast_export_ex()
1412 zend_ast_export_ex(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1413 smart_str_appendc(str, ')'); in zend_ast_export_ex()
1417 zend_ast_export_ex(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1418 smart_str_appends(str, " instanceof "); in zend_ast_export_ex()
1419 zend_ast_export_ns_name(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1422 if (priority > 70) smart_str_appendc(str, '('); in zend_ast_export_ex()
1423 smart_str_appends(str, "yield "); in zend_ast_export_ex()
1426 zend_ast_export_ex(str, ast->child[1], 70, indent); in zend_ast_export_ex()
1427 smart_str_appends(str, " => "); in zend_ast_export_ex()
1429 zend_ast_export_ex(str, ast->child[0], 70, indent); in zend_ast_export_ex()
1431 if (priority > 70) smart_str_appendc(str, ')'); in zend_ast_export_ex()
1437 smart_str_appends(str, "static $"); in zend_ast_export_ex()
1438 zend_ast_export_name(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1441 smart_str_appends(str, "while ("); in zend_ast_export_ex()
1442 zend_ast_export_ex(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1443 smart_str_appends(str, ") {\n"); in zend_ast_export_ex()
1444 zend_ast_export_stmt(str, ast->child[1], indent + 1); in zend_ast_export_ex()
1445 zend_ast_export_indent(str, indent); in zend_ast_export_ex()
1446 smart_str_appendc(str, '}'); in zend_ast_export_ex()
1449 smart_str_appends(str, "do {\n"); in zend_ast_export_ex()
1450 zend_ast_export_stmt(str, ast->child[0], indent + 1); in zend_ast_export_ex()
1451 zend_ast_export_indent(str, indent); in zend_ast_export_ex()
1452 smart_str_appends(str, "} while ("); in zend_ast_export_ex()
1453 zend_ast_export_ex(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1454 smart_str_appendc(str, ')'); in zend_ast_export_ex()
1459 smart_str_appends(str, "if ("); in zend_ast_export_ex()
1460 zend_ast_export_ex(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1461 smart_str_appends(str, ") {\n"); in zend_ast_export_ex()
1462 zend_ast_export_stmt(str, ast->child[1], indent + 1); in zend_ast_export_ex()
1464 smart_str_appends(str, "else {\n"); in zend_ast_export_ex()
1465 zend_ast_export_stmt(str, ast->child[1], indent + 1); in zend_ast_export_ex()
1467 zend_ast_export_indent(str, indent); in zend_ast_export_ex()
1468 smart_str_appendc(str, '}'); in zend_ast_export_ex()
1471 smart_str_appends(str, "switch ("); in zend_ast_export_ex()
1472 zend_ast_export_ex(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1473 smart_str_appends(str, ") {\n"); in zend_ast_export_ex()
1474 zend_ast_export_ex(str, ast->child[1], 0, indent + 1); in zend_ast_export_ex()
1475 zend_ast_export_indent(str, indent); in zend_ast_export_ex()
1476 smart_str_appendc(str, '}'); in zend_ast_export_ex()
1479 zend_ast_export_indent(str, indent); in zend_ast_export_ex()
1481 smart_str_appends(str, "case "); in zend_ast_export_ex()
1482 zend_ast_export_ex(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1483 smart_str_appends(str, ":\n"); in zend_ast_export_ex()
1485 smart_str_appends(str, "default:\n"); in zend_ast_export_ex()
1487 zend_ast_export_stmt(str, ast->child[1], indent + 1); in zend_ast_export_ex()
1490 smart_str_appends(str, "declare("); 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()
1493 smart_str_appendc(str, ')'); in zend_ast_export_ex()
1495 smart_str_appends(str, " {\n"); in zend_ast_export_ex()
1496 zend_ast_export_stmt(str, ast->child[1], indent + 1); in zend_ast_export_ex()
1497 zend_ast_export_indent(str, indent); in zend_ast_export_ex()
1498 smart_str_appendc(str, '}'); in zend_ast_export_ex()
1500 smart_str_appendc(str, ';'); in zend_ast_export_ex()
1504 smart_str_appendc(str, '$'); in zend_ast_export_ex()
1507 zend_ast_export_name(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1510 smart_str_appends(str, "use "); in zend_ast_export_ex()
1511 zend_ast_export_ex(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1513 smart_str_appends(str, " {\n"); in zend_ast_export_ex()
1514 zend_ast_export_ex(str, ast->child[1], 0, indent + 1); in zend_ast_export_ex()
1515 zend_ast_export_indent(str, indent); in zend_ast_export_ex()
1516 smart_str_appends(str, "}"); in zend_ast_export_ex()
1518 smart_str_appends(str, ";"); in zend_ast_export_ex()
1522 zend_ast_export_ex(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1523 smart_str_appends(str, " insteadof "); in zend_ast_export_ex()
1524 zend_ast_export_ex(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1528 zend_ast_export_name(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1529 smart_str_appends(str, "::"); in zend_ast_export_ex()
1531 zend_ast_export_name(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1534 smart_str_appends(str, "namespace"); in zend_ast_export_ex()
1536 smart_str_appendc(str, ' '); in zend_ast_export_ex()
1537 zend_ast_export_name(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1540 smart_str_appends(str, " {\n"); in zend_ast_export_ex()
1541 zend_ast_export_stmt(str, ast->child[1], indent + 1); in zend_ast_export_ex()
1542 zend_ast_export_indent(str, indent); in zend_ast_export_ex()
1543 smart_str_appends(str, "}\n"); in zend_ast_export_ex()
1545 smart_str_appendc(str, ';'); in zend_ast_export_ex()
1550 zend_ast_export_name(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1552 smart_str_appends(str, " as public"); in zend_ast_export_ex()
1554 smart_str_appends(str, " as protected"); in zend_ast_export_ex()
1556 smart_str_appends(str, " as private"); in zend_ast_export_ex()
1558 smart_str_appends(str, " as"); in zend_ast_export_ex()
1561 smart_str_appendc(str, ' '); 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()
1569 smart_str_appends(str, "->"); in zend_ast_export_ex()
1570 zend_ast_export_var(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1571 smart_str_appendc(str, '('); in zend_ast_export_ex()
1572 zend_ast_export_ex(str, ast->child[2], 0, indent); in zend_ast_export_ex()
1573 smart_str_appendc(str, ')'); in zend_ast_export_ex()
1576 zend_ast_export_ns_name(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1577 smart_str_appends(str, "::"); in zend_ast_export_ex()
1578 zend_ast_export_var(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1579 smart_str_appendc(str, '('); in zend_ast_export_ex()
1580 zend_ast_export_ex(str, ast->child[2], 0, indent); in zend_ast_export_ex()
1581 smart_str_appendc(str, ')'); in zend_ast_export_ex()
1584 if (priority > 100) smart_str_appendc(str, '('); in zend_ast_export_ex()
1585 zend_ast_export_ex(str, ast->child[0], 100, indent); in zend_ast_export_ex()
1587 smart_str_appends(str, " ? "); in zend_ast_export_ex()
1588 zend_ast_export_ex(str, ast->child[1], 101, indent); in zend_ast_export_ex()
1589 smart_str_appends(str, " : "); in zend_ast_export_ex()
1591 smart_str_appends(str, " ?: "); in zend_ast_export_ex()
1593 zend_ast_export_ex(str, ast->child[2], 101, indent); in zend_ast_export_ex()
1594 if (priority > 100) smart_str_appendc(str, ')'); in zend_ast_export_ex()
1598 smart_str_appends(str, "try {\n"); in zend_ast_export_ex()
1599 zend_ast_export_stmt(str, ast->child[0], indent + 1); in zend_ast_export_ex()
1600 zend_ast_export_indent(str, indent); in zend_ast_export_ex()
1601 zend_ast_export_ex(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1603 smart_str_appends(str, "} finally {\n"); in zend_ast_export_ex()
1604 zend_ast_export_stmt(str, ast->child[2], indent + 1); in zend_ast_export_ex()
1605 zend_ast_export_indent(str, indent); in zend_ast_export_ex()
1607 smart_str_appendc(str, '}'); in zend_ast_export_ex()
1610 smart_str_appends(str, "} catch ("); 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()
1612 smart_str_appends(str, " $"); in zend_ast_export_ex()
1613 zend_ast_export_var(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1614 smart_str_appends(str, ") {\n"); in zend_ast_export_ex()
1615 zend_ast_export_stmt(str, ast->child[2], indent + 1); in zend_ast_export_ex()
1616 zend_ast_export_indent(str, indent); in zend_ast_export_ex()
1621 smart_str_appendc(str, '?'); in zend_ast_export_ex()
1623 zend_ast_export_ns_name(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1624 smart_str_appendc(str, ' '); in zend_ast_export_ex()
1627 smart_str_appendc(str, '&'); in zend_ast_export_ex()
1630 smart_str_appends(str, "..."); in zend_ast_export_ex()
1632 smart_str_appendc(str, '$'); in zend_ast_export_ex()
1633 zend_ast_export_name(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1638 smart_str_appends(str, "for ("); in zend_ast_export_ex()
1639 zend_ast_export_ex(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1640 smart_str_appendc(str, ';'); in zend_ast_export_ex()
1642 smart_str_appendc(str, ' '); in zend_ast_export_ex()
1643 zend_ast_export_ex(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1645 smart_str_appendc(str, ';'); in zend_ast_export_ex()
1647 smart_str_appendc(str, ' '); in zend_ast_export_ex()
1648 zend_ast_export_ex(str, ast->child[2], 0, indent); in zend_ast_export_ex()
1650 smart_str_appends(str, ") {\n"); in zend_ast_export_ex()
1651 zend_ast_export_stmt(str, ast->child[3], indent + 1); in zend_ast_export_ex()
1652 zend_ast_export_indent(str, indent); in zend_ast_export_ex()
1653 smart_str_appendc(str, '}'); in zend_ast_export_ex()
1656 smart_str_appends(str, "foreach ("); in zend_ast_export_ex()
1657 zend_ast_export_ex(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1658 smart_str_appends(str, " as "); in zend_ast_export_ex()
1660 zend_ast_export_ex(str, ast->child[2], 0, indent); in zend_ast_export_ex()
1661 smart_str_appends(str, " => "); in zend_ast_export_ex()
1663 zend_ast_export_ex(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1664 smart_str_appends(str, ") {\n"); in zend_ast_export_ex()
1665 zend_ast_export_stmt(str, ast->child[3], indent + 1); in zend_ast_export_ex()
1666 zend_ast_export_indent(str, indent); in zend_ast_export_ex()
1667 smart_str_appendc(str, '}'); in zend_ast_export_ex()
1674 if (priority > p) smart_str_appendc(str, '('); in zend_ast_export_ex()
1675 zend_ast_export_ex(str, ast->child[0], pl, indent); in zend_ast_export_ex()
1676 smart_str_appends(str, op); in zend_ast_export_ex()
1677 zend_ast_export_ex(str, ast->child[1], pr, indent); in zend_ast_export_ex()
1678 if (priority > p) smart_str_appendc(str, ')'); in zend_ast_export_ex()
1682 if (priority > p) smart_str_appendc(str, '('); in zend_ast_export_ex()
1683 smart_str_appends(str, op); in zend_ast_export_ex()
1684 zend_ast_export_ex(str, ast->child[0], pl, indent); in zend_ast_export_ex()
1685 if (priority > p) smart_str_appendc(str, ')'); in zend_ast_export_ex()
1689 if (priority > p) smart_str_appendc(str, '('); in zend_ast_export_ex()
1690 zend_ast_export_ex(str, ast->child[0], pl, indent); in zend_ast_export_ex()
1691 smart_str_appends(str, op); in zend_ast_export_ex()
1692 if (priority > p) smart_str_appendc(str, ')'); in zend_ast_export_ex()
1696 smart_str_appends(str, op); in zend_ast_export_ex()
1697 smart_str_appendc(str, '('); in zend_ast_export_ex()
1698 zend_ast_export_ex(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1699 smart_str_appendc(str, ')'); in zend_ast_export_ex()
1703 smart_str_appends(str, op); in zend_ast_export_ex()
1705 smart_str_appendc(str, ' '); in zend_ast_export_ex()
1712 smart_str_appends(str, op); in zend_ast_export_ex()
1717 smart_str_appends(str, " = "); in zend_ast_export_ex()
1726 smart_str str = {0}; in zend_ast_export() local
1728 smart_str_appends(&str, prefix); in zend_ast_export()
1729 zend_ast_export_ex(&str, ast, 0, 0); in zend_ast_export()
1730 smart_str_appends(&str, suffix); in zend_ast_export()
1731 smart_str_0(&str); in zend_ast_export()
1732 return str.s; in zend_ast_export()