Lines Matching refs:decl

508 			zend_ast_decl *decl = (zend_ast_decl *) ast;  in zend_ast_destroy_ex()  local
509 if (decl->name) { in zend_ast_destroy_ex()
510 zend_string_release(decl->name); in zend_ast_destroy_ex()
512 if (decl->doc_comment) { in zend_ast_destroy_ex()
513 zend_string_release(decl->doc_comment); in zend_ast_destroy_ex()
515 zend_ast_destroy_ex(decl->child[0], free); in zend_ast_destroy_ex()
516 zend_ast_destroy_ex(decl->child[1], free); in zend_ast_destroy_ex()
517 zend_ast_destroy_ex(decl->child[2], free); in zend_ast_destroy_ex()
518 zend_ast_destroy_ex(decl->child[3], free); in zend_ast_destroy_ex()
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
973 if (decl->child[0]) { 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()
977 if (decl->child[1]) { 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()
982 zend_ast_export_stmt(str, decl->child[2], indent + 1); in zend_ast_export_class_no_header()
1031 zend_ast_decl *decl; in zend_ast_export_ex() local
1053 decl = (zend_ast_decl *) ast; in zend_ast_export_ex()
1054 if (decl->flags & ZEND_ACC_PUBLIC) { in zend_ast_export_ex()
1056 } else if (decl->flags & ZEND_ACC_PROTECTED) { in zend_ast_export_ex()
1058 } else if (decl->flags & ZEND_ACC_PRIVATE) { in zend_ast_export_ex()
1061 if (decl->flags & ZEND_ACC_STATIC) { in zend_ast_export_ex()
1064 if (decl->flags & ZEND_ACC_ABSTRACT) { in zend_ast_export_ex()
1067 if (decl->flags & ZEND_ACC_FINAL) { in zend_ast_export_ex()
1071 if (decl->flags & ZEND_ACC_RETURN_REFERENCE) { in zend_ast_export_ex()
1075 smart_str_appendl(str, ZSTR_VAL(decl->name), ZSTR_LEN(decl->name)); in zend_ast_export_ex()
1078 zend_ast_export_ex(str, decl->child[0], 0, indent); in zend_ast_export_ex()
1080 zend_ast_export_ex(str, decl->child[1], 0, indent); in zend_ast_export_ex()
1081 if (decl->child[3]) { in zend_ast_export_ex()
1083 if (decl->child[3]->attr & ZEND_TYPE_NULLABLE) { in zend_ast_export_ex()
1086 zend_ast_export_ns_name(str, decl->child[3], 0, indent); in zend_ast_export_ex()
1088 if (decl->child[2]) { in zend_ast_export_ex()
1090 zend_ast_export_stmt(str, decl->child[2], indent + 1); in zend_ast_export_ex()
1101 decl = (zend_ast_decl *) ast; in zend_ast_export_ex()
1102 if (decl->flags & ZEND_ACC_INTERFACE) { in zend_ast_export_ex()
1104 } else if (decl->flags & ZEND_ACC_TRAIT) { in zend_ast_export_ex()
1107 if (decl->flags & ZEND_ACC_EXPLICIT_ABSTRACT_CLASS) { in zend_ast_export_ex()
1110 if (decl->flags & ZEND_ACC_FINAL) { 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()