Lines Matching refs:decl

1105 		zend_ast_decl *decl = (zend_ast_decl *) ast;  in zend_ast_destroy()  local
1107 if (decl->name) { in zend_ast_destroy()
1108 zend_string_release_ex(decl->name, 0); in zend_ast_destroy()
1110 if (decl->doc_comment) { in zend_ast_destroy()
1111 zend_string_release_ex(decl->doc_comment, 0); in zend_ast_destroy()
1113 zend_ast_destroy(decl->child[0]); in zend_ast_destroy()
1114 zend_ast_destroy(decl->child[1]); in zend_ast_destroy()
1115 zend_ast_destroy(decl->child[2]); in zend_ast_destroy()
1116 zend_ast_destroy(decl->child[3]); in zend_ast_destroy()
1117 ast = decl->child[4]; in zend_ast_destroy()
1553 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
1554 if (decl->child[0]) { in zend_ast_export_class_no_header()
1556 zend_ast_export_ns_name(str, decl->child[0], 0, indent); in zend_ast_export_class_no_header()
1558 if (decl->child[1]) { in zend_ast_export_class_no_header()
1560 zend_ast_export_ex(str, decl->child[1], 0, indent); in zend_ast_export_class_no_header()
1563 zend_ast_export_stmt(str, decl->child[2], indent + 1); in zend_ast_export_class_no_header()
1685 zend_ast_decl *decl; in zend_ast_export_ex() local
1716 decl = (zend_ast_decl *) ast; in zend_ast_export_ex()
1717 if (decl->child[4]) { in zend_ast_export_ex()
1719 zend_ast_export_attributes(str, decl->child[4], indent, newlines); in zend_ast_export_ex()
1722 zend_ast_export_visibility(str, decl->flags); in zend_ast_export_ex()
1724 if (decl->flags & ZEND_ACC_STATIC) { in zend_ast_export_ex()
1727 if (decl->flags & ZEND_ACC_ABSTRACT) { in zend_ast_export_ex()
1730 if (decl->flags & ZEND_ACC_FINAL) { in zend_ast_export_ex()
1733 if (decl->kind == ZEND_AST_ARROW_FUNC) { in zend_ast_export_ex()
1738 if (decl->flags & ZEND_ACC_RETURN_REFERENCE) { in zend_ast_export_ex()
1742 smart_str_appendl(str, ZSTR_VAL(decl->name), ZSTR_LEN(decl->name)); in zend_ast_export_ex()
1745 zend_ast_export_ex(str, decl->child[0], 0, indent); in zend_ast_export_ex()
1747 zend_ast_export_ex(str, decl->child[1], 0, indent); in zend_ast_export_ex()
1748 if (decl->child[3]) { in zend_ast_export_ex()
1750 zend_ast_export_type(str, decl->child[3], indent); in zend_ast_export_ex()
1752 if (decl->child[2]) { in zend_ast_export_ex()
1753 if (decl->kind == ZEND_AST_ARROW_FUNC) { in zend_ast_export_ex()
1754 zend_ast *body = decl->child[2]; in zend_ast_export_ex()
1764 zend_ast_export_stmt(str, decl->child[2], indent + 1); in zend_ast_export_ex()
1775 decl = (zend_ast_decl *) ast; in zend_ast_export_ex()
1776 if (decl->child[3]) { in zend_ast_export_ex()
1777 zend_ast_export_attributes(str, decl->child[3], indent, 1); in zend_ast_export_ex()
1779 if (decl->flags & ZEND_ACC_INTERFACE) { in zend_ast_export_ex()
1781 } else if (decl->flags & ZEND_ACC_TRAIT) { in zend_ast_export_ex()
1783 } else if (decl->flags & ZEND_ACC_ENUM) { in zend_ast_export_ex()
1786 if (decl->flags & ZEND_ACC_EXPLICIT_ABSTRACT_CLASS) { in zend_ast_export_ex()
1789 if (decl->flags & ZEND_ACC_FINAL) { in zend_ast_export_ex()
1792 if (decl->flags & ZEND_ACC_READONLY_CLASS) { in zend_ast_export_ex()
1797 smart_str_appendl(str, ZSTR_VAL(decl->name), ZSTR_LEN(decl->name)); in zend_ast_export_ex()
1798 if (decl->flags & ZEND_ACC_ENUM && decl->child[4]) { in zend_ast_export_ex()
1800 zend_ast_export_type(str, decl->child[4], indent); in zend_ast_export_ex()
1802 zend_ast_export_class_no_header(str, decl, indent); in zend_ast_export_ex()
2139 zend_ast_decl *decl = (zend_ast_decl *) ast->child[0]; in zend_ast_export_ex() local
2140 if (decl->child[3]) { in zend_ast_export_ex()
2141 zend_ast_export_attributes(str, decl->child[3], indent, 0); in zend_ast_export_ex()
2150 zend_ast_export_class_no_header(str, decl, indent); in zend_ast_export_ex()