Lines Matching refs:str

82 ZEND_API zend_ast * ZEND_FASTCALL zend_ast_create_zval_from_str(zend_string *str) {  in zend_ast_create_zval_from_str()  argument
84 ZVAL_STR(&zv, str); in zend_ast_create_zval_from_str()
858 static ZEND_COLD void zend_ast_export_ex(smart_str *str, zend_ast *ast, int priority, int indent);
860 static ZEND_COLD void zend_ast_export_str(smart_str *str, zend_string *s) in zend_ast_export_str() argument
867 smart_str_appendc(str, '\\'); in zend_ast_export_str()
868 smart_str_appendc(str, c); in zend_ast_export_str()
870 smart_str_appendc(str, c); in zend_ast_export_str()
875 static ZEND_COLD void zend_ast_export_qstr(smart_str *str, char quote, zend_string *s) in zend_ast_export_qstr() argument
884 smart_str_appends(str, "\\n"); in zend_ast_export_qstr()
887 smart_str_appends(str, "\\r"); in zend_ast_export_qstr()
890 smart_str_appends(str, "\\t"); in zend_ast_export_qstr()
893 smart_str_appends(str, "\\f"); in zend_ast_export_qstr()
896 smart_str_appends(str, "\\v"); in zend_ast_export_qstr()
903 smart_str_appends(str, "\\e"); in zend_ast_export_qstr()
906 smart_str_appends(str, "\\0"); in zend_ast_export_qstr()
907 smart_str_appendc(str, '0' + (c / 8)); in zend_ast_export_qstr()
908 smart_str_appendc(str, '0' + (c % 8)); in zend_ast_export_qstr()
913 smart_str_appendc(str, '\\'); in zend_ast_export_qstr()
915 smart_str_appendc(str, c); in zend_ast_export_qstr()
920 static ZEND_COLD void zend_ast_export_indent(smart_str *str, int indent) in zend_ast_export_indent() argument
923 smart_str_appends(str, " "); in zend_ast_export_indent()
928 static ZEND_COLD void zend_ast_export_name(smart_str *str, zend_ast *ast, int priority, int indent) in zend_ast_export_name() argument
934 smart_str_append(str, Z_STR_P(zv)); in zend_ast_export_name()
938 zend_ast_export_ex(str, ast, priority, indent); in zend_ast_export_name()
941 static ZEND_COLD void zend_ast_export_ns_name(smart_str *str, zend_ast *ast, int priority, int inde… in zend_ast_export_ns_name() argument
948 smart_str_appendc(str, '\\'); in zend_ast_export_ns_name()
950 smart_str_appends(str, "namespace\\"); in zend_ast_export_ns_name()
952 smart_str_append(str, Z_STR_P(zv)); in zend_ast_export_ns_name()
956 zend_ast_export_ex(str, ast, priority, indent); in zend_ast_export_ns_name()
1003 static ZEND_COLD void zend_ast_export_var(smart_str *str, zend_ast *ast, int priority, int indent) in zend_ast_export_var() argument
1009 smart_str_append(str, Z_STR_P(zv)); in zend_ast_export_var()
1013 zend_ast_export_ex(str, ast, 0, indent); in zend_ast_export_var()
1016 smart_str_appendc(str, '{'); in zend_ast_export_var()
1017 zend_ast_export_name(str, ast, 0, indent); in zend_ast_export_var()
1018 smart_str_appendc(str, '}'); in zend_ast_export_var()
1021 static ZEND_COLD void zend_ast_export_list(smart_str *str, zend_ast_list *list, int separator, int … in zend_ast_export_list() argument
1027 smart_str_appends(str, ", "); in zend_ast_export_list()
1029 zend_ast_export_ex(str, list->child[i], priority, indent); in zend_ast_export_list()
1034 static ZEND_COLD void zend_ast_export_encaps_list(smart_str *str, char quote, zend_ast_list *list, … in zend_ast_export_encaps_list() argument
1045 zend_ast_export_qstr(str, quote, Z_STR_P(zv)); in zend_ast_export_encaps_list()
1053 zend_ast_export_ex(str, ast, 0, indent); in zend_ast_export_encaps_list()
1055 smart_str_appendc(str, '{'); in zend_ast_export_encaps_list()
1056 zend_ast_export_ex(str, ast, 0, indent); in zend_ast_export_encaps_list()
1057 smart_str_appendc(str, '}'); in zend_ast_export_encaps_list()
1063 static ZEND_COLD void zend_ast_export_name_list_ex(smart_str *str, zend_ast_list *list, int indent,… in zend_ast_export_name_list_ex() argument
1069 smart_str_appends(str, separator); in zend_ast_export_name_list_ex()
1071 zend_ast_export_name(str, list->child[i], 0, indent); in zend_ast_export_name_list_ex()
1079 static ZEND_COLD void zend_ast_export_var_list(smart_str *str, zend_ast_list *list, int indent) in zend_ast_export_var_list() argument
1085 smart_str_appends(str, ", "); in zend_ast_export_var_list()
1088 smart_str_appendc(str, '&'); in zend_ast_export_var_list()
1090 smart_str_appendc(str, '$'); in zend_ast_export_var_list()
1091 zend_ast_export_name(str, list->child[i], 20, indent); in zend_ast_export_var_list()
1096 static ZEND_COLD void zend_ast_export_stmt(smart_str *str, zend_ast *ast, int indent) in zend_ast_export_stmt() argument
1109 zend_ast_export_stmt(str, ast, indent); in zend_ast_export_stmt()
1113 zend_ast_export_indent(str, indent); in zend_ast_export_stmt()
1114 zend_ast_export_ex(str, ast, 0, indent); in zend_ast_export_stmt()
1131 smart_str_appendc(str, ';'); in zend_ast_export_stmt()
1134 smart_str_appendc(str, '\n'); in zend_ast_export_stmt()
1138 static ZEND_COLD void zend_ast_export_if_stmt(smart_str *str, zend_ast_list *list, int indent) in zend_ast_export_if_stmt() argument
1150 smart_str_appends(str, "if ("); in zend_ast_export_if_stmt()
1152 zend_ast_export_indent(str, indent); in zend_ast_export_if_stmt()
1153 smart_str_appends(str, "} elseif ("); in zend_ast_export_if_stmt()
1155 zend_ast_export_ex(str, ast->child[0], 0, indent); in zend_ast_export_if_stmt()
1156 smart_str_appends(str, ") {\n"); in zend_ast_export_if_stmt()
1157 zend_ast_export_stmt(str, ast->child[1], indent + 1); in zend_ast_export_if_stmt()
1159 zend_ast_export_indent(str, indent); in zend_ast_export_if_stmt()
1160 smart_str_appends(str, "} else "); in zend_ast_export_if_stmt()
1165 smart_str_appends(str, "{\n"); in zend_ast_export_if_stmt()
1166 zend_ast_export_stmt(str, ast->child[1], indent + 1); in zend_ast_export_if_stmt()
1171 zend_ast_export_indent(str, indent); in zend_ast_export_if_stmt()
1172 smart_str_appendc(str, '}'); in zend_ast_export_if_stmt()
1175 static ZEND_COLD void zend_ast_export_zval(smart_str *str, zval *zv, int priority, int indent) in zend_ast_export_zval() argument
1185 smart_str_appends(str, "null"); in zend_ast_export_zval()
1188 smart_str_appends(str, "false"); in zend_ast_export_zval()
1191 smart_str_appends(str, "true"); in zend_ast_export_zval()
1194 smart_str_append_long(str, Z_LVAL_P(zv)); in zend_ast_export_zval()
1198 smart_str_appendl(str, ZSTR_VAL(key), ZSTR_LEN(key)); in zend_ast_export_zval()
1202 smart_str_appendc(str, '\''); in zend_ast_export_zval()
1203 zend_ast_export_str(str, Z_STR_P(zv)); in zend_ast_export_zval()
1204 smart_str_appendc(str, '\''); in zend_ast_export_zval()
1207 smart_str_appendc(str, '['); in zend_ast_export_zval()
1213 smart_str_appends(str, ", "); in zend_ast_export_zval()
1216 smart_str_appendc(str, '\''); in zend_ast_export_zval()
1217 zend_ast_export_str(str, key); in zend_ast_export_zval()
1218 smart_str_appends(str, "' => "); in zend_ast_export_zval()
1220 smart_str_append_long(str, idx); in zend_ast_export_zval()
1221 smart_str_appends(str, " => "); in zend_ast_export_zval()
1223 zend_ast_export_zval(str, val, 0, indent); in zend_ast_export_zval()
1225 smart_str_appendc(str, ']'); in zend_ast_export_zval()
1228 zend_ast_export_ex(str, Z_ASTVAL_P(zv), priority, indent); in zend_ast_export_zval()
1234 static ZEND_COLD void zend_ast_export_class_no_header(smart_str *str, zend_ast_decl *decl, int inde… in zend_ast_export_class_no_header() argument
1236 smart_str_appends(str, " extends "); in zend_ast_export_class_no_header()
1237 zend_ast_export_ns_name(str, decl->child[0], 0, indent); in zend_ast_export_class_no_header()
1240 smart_str_appends(str, " implements "); in zend_ast_export_class_no_header()
1241 zend_ast_export_ex(str, decl->child[1], 0, indent); in zend_ast_export_class_no_header()
1243 smart_str_appends(str, " {\n"); in zend_ast_export_class_no_header()
1244 zend_ast_export_stmt(str, decl->child[2], indent + 1); in zend_ast_export_class_no_header()
1245 zend_ast_export_indent(str, indent); in zend_ast_export_class_no_header()
1246 smart_str_appends(str, "}"); in zend_ast_export_class_no_header()
1291 static ZEND_COLD void zend_ast_export_ex(smart_str *str, zend_ast *ast, int priority, int indent) in zend_ast_export_ex() argument
1304 zend_ast_export_zval(str, zend_ast_get_zval(ast), priority, indent); in zend_ast_export_ex()
1308 smart_str_appendl(str, ZSTR_VAL(name), ZSTR_LEN(name)); in zend_ast_export_ex()
1312 smart_str_appendl(str, "__CLASS__", sizeof("__CLASS__")-1); in zend_ast_export_ex()
1325 smart_str_appends(str, "public "); in zend_ast_export_ex()
1327 smart_str_appends(str, "protected "); in zend_ast_export_ex()
1329 smart_str_appends(str, "private "); in zend_ast_export_ex()
1332 smart_str_appends(str, "static "); in zend_ast_export_ex()
1335 smart_str_appends(str, "abstract "); in zend_ast_export_ex()
1338 smart_str_appends(str, "final "); in zend_ast_export_ex()
1340 smart_str_appends(str, "function "); in zend_ast_export_ex()
1342 smart_str_appendc(str, '&'); in zend_ast_export_ex()
1345 smart_str_appendl(str, ZSTR_VAL(decl->name), ZSTR_LEN(decl->name)); in zend_ast_export_ex()
1347 smart_str_appendc(str, '('); in zend_ast_export_ex()
1348 zend_ast_export_ex(str, decl->child[0], 0, indent); in zend_ast_export_ex()
1349 smart_str_appendc(str, ')'); in zend_ast_export_ex()
1350 zend_ast_export_ex(str, decl->child[1], 0, indent); in zend_ast_export_ex()
1352 smart_str_appends(str, ": "); in zend_ast_export_ex()
1354 smart_str_appendc(str, '?'); in zend_ast_export_ex()
1356 zend_ast_export_ns_name(str, decl->child[3], 0, indent); in zend_ast_export_ex()
1359 smart_str_appends(str, " {\n"); in zend_ast_export_ex()
1360 zend_ast_export_stmt(str, decl->child[2], indent + 1); in zend_ast_export_ex()
1361 zend_ast_export_indent(str, indent); in zend_ast_export_ex()
1362 smart_str_appendc(str, '}'); in zend_ast_export_ex()
1364 smart_str_appendc(str, '\n'); in zend_ast_export_ex()
1367 smart_str_appends(str, ";\n"); in zend_ast_export_ex()
1373 smart_str_appends(str, "interface "); in zend_ast_export_ex()
1375 smart_str_appends(str, "trait "); in zend_ast_export_ex()
1378 smart_str_appends(str, "abstract "); in zend_ast_export_ex()
1381 smart_str_appends(str, "final "); in zend_ast_export_ex()
1383 smart_str_appends(str, "class "); in zend_ast_export_ex()
1385 smart_str_appendl(str, ZSTR_VAL(decl->name), ZSTR_LEN(decl->name)); in zend_ast_export_ex()
1386 zend_ast_export_class_no_header(str, decl, indent); in zend_ast_export_ex()
1387 smart_str_appendc(str, '\n'); in zend_ast_export_ex()
1395 zend_ast_export_list(str, (zend_ast_list*)ast, 1, 20, indent); in zend_ast_export_ex()
1398 smart_str_appendc(str, '['); in zend_ast_export_ex()
1399 zend_ast_export_list(str, (zend_ast_list*)ast, 1, 20, indent); in zend_ast_export_ex()
1400 smart_str_appendc(str, ']'); in zend_ast_export_ex()
1403 smart_str_appendc(str, '"'); in zend_ast_export_ex()
1404 zend_ast_export_encaps_list(str, '"', (zend_ast_list*)ast, indent); in zend_ast_export_ex()
1405 smart_str_appendc(str, '"'); in zend_ast_export_ex()
1409 zend_ast_export_stmt(str, ast, indent); in zend_ast_export_ex()
1412 zend_ast_export_if_stmt(str, (zend_ast_list*)ast, indent); in zend_ast_export_ex()
1416 zend_ast_export_list(str, (zend_ast_list*)ast, 0, 0, indent); in zend_ast_export_ex()
1419 smart_str_appends(str, " use("); in zend_ast_export_ex()
1420 zend_ast_export_var_list(str, (zend_ast_list*)ast, indent); in zend_ast_export_ex()
1421 smart_str_appendc(str, ')'); in zend_ast_export_ex()
1425 smart_str_appends(str, "public "); in zend_ast_export_ex()
1427 smart_str_appends(str, "protected "); in zend_ast_export_ex()
1429 smart_str_appends(str, "private "); in zend_ast_export_ex()
1432 smart_str_appends(str, "static "); in zend_ast_export_ex()
1437 smart_str_appends(str, "const "); in zend_ast_export_ex()
1440 zend_ast_export_name_list(str, (zend_ast_list*)ast, indent); in zend_ast_export_ex()
1443 smart_str_appends(str, "use "); in zend_ast_export_ex()
1445 smart_str_appends(str, "function "); in zend_ast_export_ex()
1447 smart_str_appends(str, "const "); in zend_ast_export_ex()
1475 smart_str_appendc(str, '$'); in zend_ast_export_ex()
1476 zend_ast_export_var(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1479 zend_ast_export_ns_name(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1482 smart_str_appends(str, "..."); in zend_ast_export_ex()
1506 smart_str_appendc(str, '`'); in zend_ast_export_ex()
1508 zend_ast_export_encaps_list(str, '`', (zend_ast_list*)ast->child[0], indent); in zend_ast_export_ex()
1514 zend_ast_export_qstr(str, '`', Z_STR_P(zv)); in zend_ast_export_ex()
1516 smart_str_appendc(str, '`'); in zend_ast_export_ex()
1562 zend_ast_export_name(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1563 smart_str_appendc(str, ':'); in zend_ast_export_ex()
1566 smart_str_appendc(str, '&'); in zend_ast_export_ex()
1576 smart_str_appends(str, "goto "); in zend_ast_export_ex()
1577 zend_ast_export_name(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1586 zend_ast_export_ex(str, ast->child[0], 260, indent); in zend_ast_export_ex()
1587 smart_str_appendc(str, '['); in zend_ast_export_ex()
1589 zend_ast_export_ex(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1591 smart_str_appendc(str, ']'); in zend_ast_export_ex()
1594 zend_ast_export_ex(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1595 smart_str_appends(str, "->"); in zend_ast_export_ex()
1596 zend_ast_export_var(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1599 zend_ast_export_ns_name(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1600 smart_str_appends(str, "::$"); in zend_ast_export_ex()
1601 zend_ast_export_var(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1604 zend_ast_export_ns_name(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1605 smart_str_appendc(str, '('); in zend_ast_export_ex()
1606 zend_ast_export_ex(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1607 smart_str_appendc(str, ')'); 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_name(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1664 zend_ast_export_ex(str, ast->child[1], 80, indent); in zend_ast_export_ex()
1665 smart_str_appends(str, " => "); in zend_ast_export_ex()
1668 smart_str_appendc(str, '&'); in zend_ast_export_ex()
1669 zend_ast_export_ex(str, ast->child[0], 80, indent); in zend_ast_export_ex()
1672 smart_str_appends(str, "new "); in zend_ast_export_ex()
1674 smart_str_appends(str, "class"); in zend_ast_export_ex()
1676 smart_str_appendc(str, '('); in zend_ast_export_ex()
1677 zend_ast_export_ex(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1678 smart_str_appendc(str, ')'); in zend_ast_export_ex()
1680 zend_ast_export_class_no_header(str, (zend_ast_decl *) ast->child[0], indent); in zend_ast_export_ex()
1682 zend_ast_export_ns_name(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1683 smart_str_appendc(str, '('); in zend_ast_export_ex()
1684 zend_ast_export_ex(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1685 smart_str_appendc(str, ')'); in zend_ast_export_ex()
1689 zend_ast_export_ex(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1690 smart_str_appends(str, " instanceof "); in zend_ast_export_ex()
1691 zend_ast_export_ns_name(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1694 if (priority > 70) smart_str_appendc(str, '('); in zend_ast_export_ex()
1695 smart_str_appends(str, "yield "); in zend_ast_export_ex()
1698 zend_ast_export_ex(str, ast->child[1], 70, indent); in zend_ast_export_ex()
1699 smart_str_appends(str, " => "); in zend_ast_export_ex()
1701 zend_ast_export_ex(str, ast->child[0], 70, indent); in zend_ast_export_ex()
1703 if (priority > 70) smart_str_appendc(str, ')'); in zend_ast_export_ex()
1709 smart_str_appends(str, "static $"); in zend_ast_export_ex()
1710 zend_ast_export_name(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1713 smart_str_appends(str, "while ("); in zend_ast_export_ex()
1714 zend_ast_export_ex(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1715 smart_str_appends(str, ") {\n"); in zend_ast_export_ex()
1716 zend_ast_export_stmt(str, ast->child[1], indent + 1); in zend_ast_export_ex()
1717 zend_ast_export_indent(str, indent); in zend_ast_export_ex()
1718 smart_str_appendc(str, '}'); in zend_ast_export_ex()
1721 smart_str_appends(str, "do {\n"); in zend_ast_export_ex()
1722 zend_ast_export_stmt(str, ast->child[0], indent + 1); in zend_ast_export_ex()
1723 zend_ast_export_indent(str, indent); in zend_ast_export_ex()
1724 smart_str_appends(str, "} while ("); in zend_ast_export_ex()
1725 zend_ast_export_ex(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1726 smart_str_appendc(str, ')'); in zend_ast_export_ex()
1731 smart_str_appends(str, "if ("); in zend_ast_export_ex()
1732 zend_ast_export_ex(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1733 smart_str_appends(str, ") {\n"); in zend_ast_export_ex()
1734 zend_ast_export_stmt(str, ast->child[1], indent + 1); in zend_ast_export_ex()
1736 smart_str_appends(str, "else {\n"); in zend_ast_export_ex()
1737 zend_ast_export_stmt(str, ast->child[1], indent + 1); in zend_ast_export_ex()
1739 zend_ast_export_indent(str, indent); in zend_ast_export_ex()
1740 smart_str_appendc(str, '}'); in zend_ast_export_ex()
1743 smart_str_appends(str, "switch ("); in zend_ast_export_ex()
1744 zend_ast_export_ex(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1745 smart_str_appends(str, ") {\n"); in zend_ast_export_ex()
1746 zend_ast_export_ex(str, ast->child[1], 0, indent + 1); in zend_ast_export_ex()
1747 zend_ast_export_indent(str, indent); in zend_ast_export_ex()
1748 smart_str_appendc(str, '}'); in zend_ast_export_ex()
1751 zend_ast_export_indent(str, indent); in zend_ast_export_ex()
1753 smart_str_appends(str, "case "); in zend_ast_export_ex()
1754 zend_ast_export_ex(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1755 smart_str_appends(str, ":\n"); in zend_ast_export_ex()
1757 smart_str_appends(str, "default:\n"); in zend_ast_export_ex()
1759 zend_ast_export_stmt(str, ast->child[1], indent + 1); in zend_ast_export_ex()
1762 smart_str_appends(str, "declare("); in zend_ast_export_ex()
1764 zend_ast_export_list(str, (zend_ast_list*)ast->child[0], 1, 0, indent); in zend_ast_export_ex()
1765 smart_str_appendc(str, ')'); in zend_ast_export_ex()
1767 smart_str_appends(str, " {\n"); in zend_ast_export_ex()
1768 zend_ast_export_stmt(str, ast->child[1], indent + 1); in zend_ast_export_ex()
1769 zend_ast_export_indent(str, indent); in zend_ast_export_ex()
1770 smart_str_appendc(str, '}'); in zend_ast_export_ex()
1772 smart_str_appendc(str, ';'); in zend_ast_export_ex()
1776 smart_str_appendc(str, '$'); in zend_ast_export_ex()
1779 zend_ast_export_name(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1782 smart_str_appends(str, "use "); in zend_ast_export_ex()
1783 zend_ast_export_ex(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1785 smart_str_appends(str, " {\n"); in zend_ast_export_ex()
1786 zend_ast_export_ex(str, ast->child[1], 0, indent + 1); in zend_ast_export_ex()
1787 zend_ast_export_indent(str, indent); in zend_ast_export_ex()
1788 smart_str_appends(str, "}"); in zend_ast_export_ex()
1790 smart_str_appends(str, ";"); in zend_ast_export_ex()
1794 zend_ast_export_ex(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1795 smart_str_appends(str, " insteadof "); in zend_ast_export_ex()
1796 zend_ast_export_ex(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1800 zend_ast_export_name(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1801 smart_str_appends(str, "::"); in zend_ast_export_ex()
1803 zend_ast_export_name(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1806 smart_str_appends(str, "namespace"); in zend_ast_export_ex()
1808 smart_str_appendc(str, ' '); in zend_ast_export_ex()
1809 zend_ast_export_name(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1812 smart_str_appends(str, " {\n"); in zend_ast_export_ex()
1813 zend_ast_export_stmt(str, ast->child[1], indent + 1); in zend_ast_export_ex()
1814 zend_ast_export_indent(str, indent); in zend_ast_export_ex()
1815 smart_str_appends(str, "}\n"); in zend_ast_export_ex()
1817 smart_str_appendc(str, ';'); in zend_ast_export_ex()
1822 zend_ast_export_name(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1824 smart_str_appends(str, " as public"); in zend_ast_export_ex()
1826 smart_str_appends(str, " as protected"); in zend_ast_export_ex()
1828 smart_str_appends(str, " as private"); in zend_ast_export_ex()
1830 smart_str_appends(str, " as"); in zend_ast_export_ex()
1833 smart_str_appendc(str, ' '); in zend_ast_export_ex()
1834 zend_ast_export_name(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1840 zend_ast_export_ex(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1841 smart_str_appends(str, "->"); in zend_ast_export_ex()
1842 zend_ast_export_var(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1843 smart_str_appendc(str, '('); in zend_ast_export_ex()
1844 zend_ast_export_ex(str, ast->child[2], 0, indent); in zend_ast_export_ex()
1845 smart_str_appendc(str, ')'); in zend_ast_export_ex()
1848 zend_ast_export_ns_name(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1849 smart_str_appends(str, "::"); in zend_ast_export_ex()
1850 zend_ast_export_var(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1851 smart_str_appendc(str, '('); in zend_ast_export_ex()
1852 zend_ast_export_ex(str, ast->child[2], 0, indent); in zend_ast_export_ex()
1853 smart_str_appendc(str, ')'); in zend_ast_export_ex()
1856 if (priority > 100) smart_str_appendc(str, '('); in zend_ast_export_ex()
1857 zend_ast_export_ex(str, ast->child[0], 100, indent); in zend_ast_export_ex()
1859 smart_str_appends(str, " ? "); in zend_ast_export_ex()
1860 zend_ast_export_ex(str, ast->child[1], 101, indent); in zend_ast_export_ex()
1861 smart_str_appends(str, " : "); in zend_ast_export_ex()
1863 smart_str_appends(str, " ?: "); in zend_ast_export_ex()
1865 zend_ast_export_ex(str, ast->child[2], 101, indent); in zend_ast_export_ex()
1866 if (priority > 100) smart_str_appendc(str, ')'); in zend_ast_export_ex()
1870 smart_str_appends(str, "try {\n"); in zend_ast_export_ex()
1871 zend_ast_export_stmt(str, ast->child[0], indent + 1); in zend_ast_export_ex()
1872 zend_ast_export_indent(str, indent); in zend_ast_export_ex()
1873 zend_ast_export_ex(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1875 smart_str_appends(str, "} finally {\n"); in zend_ast_export_ex()
1876 zend_ast_export_stmt(str, ast->child[2], indent + 1); in zend_ast_export_ex()
1877 zend_ast_export_indent(str, indent); in zend_ast_export_ex()
1879 smart_str_appendc(str, '}'); in zend_ast_export_ex()
1882 smart_str_appends(str, "} catch ("); in zend_ast_export_ex()
1883 zend_ast_export_catch_name_list(str, zend_ast_get_list(ast->child[0]), indent); in zend_ast_export_ex()
1884 smart_str_appends(str, " $"); in zend_ast_export_ex()
1885 zend_ast_export_var(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1886 smart_str_appends(str, ") {\n"); in zend_ast_export_ex()
1887 zend_ast_export_stmt(str, ast->child[2], indent + 1); in zend_ast_export_ex()
1888 zend_ast_export_indent(str, indent); in zend_ast_export_ex()
1893 smart_str_appendc(str, '?'); in zend_ast_export_ex()
1895 zend_ast_export_ns_name(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1896 smart_str_appendc(str, ' '); in zend_ast_export_ex()
1899 smart_str_appendc(str, '&'); in zend_ast_export_ex()
1902 smart_str_appends(str, "..."); in zend_ast_export_ex()
1904 smart_str_appendc(str, '$'); in zend_ast_export_ex()
1905 zend_ast_export_name(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1910 smart_str_appends(str, "for ("); in zend_ast_export_ex()
1911 zend_ast_export_ex(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1912 smart_str_appendc(str, ';'); in zend_ast_export_ex()
1914 smart_str_appendc(str, ' '); in zend_ast_export_ex()
1915 zend_ast_export_ex(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1917 smart_str_appendc(str, ';'); in zend_ast_export_ex()
1919 smart_str_appendc(str, ' '); in zend_ast_export_ex()
1920 zend_ast_export_ex(str, ast->child[2], 0, indent); in zend_ast_export_ex()
1922 smart_str_appends(str, ") {\n"); in zend_ast_export_ex()
1923 zend_ast_export_stmt(str, ast->child[3], indent + 1); in zend_ast_export_ex()
1924 zend_ast_export_indent(str, indent); in zend_ast_export_ex()
1925 smart_str_appendc(str, '}'); in zend_ast_export_ex()
1928 smart_str_appends(str, "foreach ("); in zend_ast_export_ex()
1929 zend_ast_export_ex(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1930 smart_str_appends(str, " as "); in zend_ast_export_ex()
1932 zend_ast_export_ex(str, ast->child[2], 0, indent); in zend_ast_export_ex()
1933 smart_str_appends(str, " => "); in zend_ast_export_ex()
1935 zend_ast_export_ex(str, ast->child[1], 0, indent); in zend_ast_export_ex()
1936 smart_str_appends(str, ") {\n"); in zend_ast_export_ex()
1937 zend_ast_export_stmt(str, ast->child[3], indent + 1); in zend_ast_export_ex()
1938 zend_ast_export_indent(str, indent); in zend_ast_export_ex()
1939 smart_str_appendc(str, '}'); in zend_ast_export_ex()
1946 if (priority > p) smart_str_appendc(str, '('); in zend_ast_export_ex()
1947 zend_ast_export_ex(str, ast->child[0], pl, indent); in zend_ast_export_ex()
1948 smart_str_appends(str, op); in zend_ast_export_ex()
1949 zend_ast_export_ex(str, ast->child[1], pr, indent); in zend_ast_export_ex()
1950 if (priority > p) smart_str_appendc(str, ')'); in zend_ast_export_ex()
1954 if (priority > p) smart_str_appendc(str, '('); in zend_ast_export_ex()
1955 smart_str_appends(str, op); in zend_ast_export_ex()
1956 zend_ast_export_ex(str, ast->child[0], pl, indent); in zend_ast_export_ex()
1957 if (priority > p) smart_str_appendc(str, ')'); in zend_ast_export_ex()
1961 if (priority > p) smart_str_appendc(str, '('); in zend_ast_export_ex()
1962 zend_ast_export_ex(str, ast->child[0], pl, indent); in zend_ast_export_ex()
1963 smart_str_appends(str, op); in zend_ast_export_ex()
1964 if (priority > p) smart_str_appendc(str, ')'); in zend_ast_export_ex()
1968 smart_str_appends(str, op); in zend_ast_export_ex()
1969 smart_str_appendc(str, '('); in zend_ast_export_ex()
1970 zend_ast_export_ex(str, ast->child[0], 0, indent); in zend_ast_export_ex()
1971 smart_str_appendc(str, ')'); in zend_ast_export_ex()
1975 smart_str_appends(str, op); in zend_ast_export_ex()
1977 smart_str_appendc(str, ' '); in zend_ast_export_ex()
1984 smart_str_appends(str, op); in zend_ast_export_ex()
1989 smart_str_appends(str, " = "); in zend_ast_export_ex()
1998 smart_str str = {0}; in zend_ast_export() local
2000 smart_str_appends(&str, prefix); in zend_ast_export()
2001 zend_ast_export_ex(&str, ast, 0, 0); in zend_ast_export()
2002 smart_str_appends(&str, suffix); in zend_ast_export()
2003 smart_str_0(&str); in zend_ast_export()
2004 return str.s; in zend_ast_export()