Lines Matching refs:decl
1193 zend_ast_decl *decl = (zend_ast_decl *) ast; in zend_ast_destroy() local
1195 if (decl->name) { in zend_ast_destroy()
1196 zend_string_release_ex(decl->name, 0); in zend_ast_destroy()
1198 if (decl->doc_comment) { in zend_ast_destroy()
1199 zend_string_release_ex(decl->doc_comment, 0); in zend_ast_destroy()
1201 zend_ast_destroy(decl->child[0]); in zend_ast_destroy()
1202 zend_ast_destroy(decl->child[1]); in zend_ast_destroy()
1203 zend_ast_destroy(decl->child[2]); in zend_ast_destroy()
1204 zend_ast_destroy(decl->child[3]); in zend_ast_destroy()
1205 ast = decl->child[4]; in zend_ast_destroy()
1649 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
1650 if (decl->child[0]) { in zend_ast_export_class_no_header()
1652 zend_ast_export_ns_name(str, decl->child[0], 0, indent); in zend_ast_export_class_no_header()
1654 if (decl->child[1]) { in zend_ast_export_class_no_header()
1656 zend_ast_export_ex(str, decl->child[1], 0, indent); in zend_ast_export_class_no_header()
1659 zend_ast_export_stmt(str, decl->child[2], indent + 1); in zend_ast_export_class_no_header()
1791 zend_ast_decl *decl; in zend_ast_export_ex() local
1822 decl = (zend_ast_decl *) ast; in zend_ast_export_ex()
1823 if (decl->child[4]) { in zend_ast_export_ex()
1825 zend_ast_export_attributes(str, decl->child[4], indent, newlines); in zend_ast_export_ex()
1828 zend_ast_export_visibility(str, decl->flags, ZEND_MODIFIER_TARGET_METHOD); in zend_ast_export_ex()
1830 if (decl->flags & ZEND_ACC_STATIC) { in zend_ast_export_ex()
1833 if (decl->flags & ZEND_ACC_ABSTRACT) { in zend_ast_export_ex()
1836 if (decl->flags & ZEND_ACC_FINAL) { in zend_ast_export_ex()
1839 if (decl->kind == ZEND_AST_ARROW_FUNC) { in zend_ast_export_ex()
1844 if (decl->flags & ZEND_ACC_RETURN_REFERENCE) { in zend_ast_export_ex()
1848 smart_str_appendl(str, ZSTR_VAL(decl->name), ZSTR_LEN(decl->name)); in zend_ast_export_ex()
1851 zend_ast_export_ex(str, decl->child[0], 0, indent); in zend_ast_export_ex()
1853 zend_ast_export_ex(str, decl->child[1], 0, indent); in zend_ast_export_ex()
1854 if (decl->child[3]) { in zend_ast_export_ex()
1856 zend_ast_export_type(str, decl->child[3], indent); in zend_ast_export_ex()
1858 if (decl->child[2]) { in zend_ast_export_ex()
1859 if (decl->kind == ZEND_AST_ARROW_FUNC) { in zend_ast_export_ex()
1860 zend_ast *body = decl->child[2]; in zend_ast_export_ex()
1870 zend_ast_export_stmt(str, decl->child[2], indent + 1); in zend_ast_export_ex()
1881 decl = (zend_ast_decl *) ast; in zend_ast_export_ex()
1882 if (decl->child[3]) { in zend_ast_export_ex()
1883 zend_ast_export_attributes(str, decl->child[3], indent, 1); in zend_ast_export_ex()
1885 if (decl->flags & ZEND_ACC_INTERFACE) { in zend_ast_export_ex()
1887 } else if (decl->flags & ZEND_ACC_TRAIT) { in zend_ast_export_ex()
1889 } else if (decl->flags & ZEND_ACC_ENUM) { in zend_ast_export_ex()
1892 if (decl->flags & ZEND_ACC_EXPLICIT_ABSTRACT_CLASS) { in zend_ast_export_ex()
1895 if (decl->flags & ZEND_ACC_FINAL) { in zend_ast_export_ex()
1898 if (decl->flags & ZEND_ACC_READONLY_CLASS) { in zend_ast_export_ex()
1903 smart_str_appendl(str, ZSTR_VAL(decl->name), ZSTR_LEN(decl->name)); in zend_ast_export_ex()
1904 if (decl->flags & ZEND_ACC_ENUM && decl->child[4]) { in zend_ast_export_ex()
1906 zend_ast_export_type(str, decl->child[4], indent); in zend_ast_export_ex()
1908 zend_ast_export_class_no_header(str, decl, indent); in zend_ast_export_ex()
2256 zend_ast_decl *decl = (zend_ast_decl *) ast->child[0]; in zend_ast_export_ex() local
2257 if (decl->child[3]) { in zend_ast_export_ex()
2258 zend_ast_export_attributes(str, decl->child[3], indent, 0); in zend_ast_export_ex()
2267 zend_ast_export_class_no_header(str, decl, indent); in zend_ast_export_ex()