We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6ee78c commit 5b6f45eCopy full SHA for 5b6f45e
ast.c
@@ -478,22 +478,6 @@ static inline zend_ast_attr ast_assign_op_to_binary_op(zend_ast_attr attr) {
478
}
479
#endif
480
481
-static inline zend_bool ast_array_is_list(zend_ast *ast) {
482
- zend_ast_list *list = zend_ast_get_list(ast);
483
- uint32_t i;
484
- if (ast->attr != ZEND_ARRAY_SYNTAX_LIST) {
485
- return 0;
486
- }
487
-
488
- for (i = 0; i < list->children; i++) {
489
- if (list->child[i] && (list->child[i]->child[1] != NULL || list->child[i]->attr)) {
490
491
492
493
494
- return 1;
495
-}
496
497
static inline zend_ast **ast_get_children(zend_ast *ast, uint32_t *count) {
498
if (ast_kind_is_decl(ast->kind)) {
499
zend_ast_decl *decl = (zend_ast_decl *) ast;
0 commit comments