Lines Matching refs:kind

436 static void zend_register_seen_symbol(zend_string *name, uint32_t kind) {  in zend_register_seen_symbol()  argument
439 Z_LVAL_P(zv) |= kind; in zend_register_seen_symbol()
442 ZVAL_LONG(&tmp, kind); in zend_register_seen_symbol()
447 static bool zend_have_seen_symbol(zend_string *name, uint32_t kind) { in zend_have_seen_symbol() argument
449 return zv && (Z_LVAL_P(zv) & kind) != 0; in zend_have_seen_symbol()
1789 if (class_ast->kind != ZEND_AST_ZVAL) { in zend_try_compile_const_expr_resolve_class_name()
2501 switch (ast->kind) { in zend_ast_is_short_circuited()
2530 if (zend_ast_kind_is_short_circuited(ast->kind)) { in zend_short_circuiting_mark_inner()
2542 bool is_short_circuited = zend_ast_kind_is_short_circuited(ast->kind) in zend_short_circuiting_commit()
2543 || ast->kind == ZEND_AST_ISSET || ast->kind == ZEND_AST_EMPTY; in zend_short_circuiting_commit()
2561 ast->kind == ZEND_AST_ISSET ? ZEND_SHORT_CIRCUITING_CHAIN_ISSET : in zend_short_circuiting_commit()
2562 ast->kind == ZEND_AST_EMPTY ? ZEND_SHORT_CIRCUITING_CHAIN_EMPTY : in zend_short_circuiting_commit()
2743 return ast->kind == ZEND_AST_VAR in zend_is_variable()
2744 || ast->kind == ZEND_AST_DIM in zend_is_variable()
2745 || ast->kind == ZEND_AST_PROP in zend_is_variable()
2746 || ast->kind == ZEND_AST_NULLSAFE_PROP in zend_is_variable()
2747 || ast->kind == ZEND_AST_STATIC_PROP; in zend_is_variable()
2753 return ast->kind == ZEND_AST_CALL in zend_is_call()
2754 || ast->kind == ZEND_AST_METHOD_CALL in zend_is_call()
2755 || ast->kind == ZEND_AST_NULLSAFE_METHOD_CALL in zend_is_call()
2756 || ast->kind == ZEND_AST_STATIC_CALL; in zend_is_call()
2768 return ast->kind == ZEND_AST_STMT_LIST || ast->kind == ZEND_AST_LABEL in zend_is_unticked_stmt()
2769 || ast->kind == ZEND_AST_PROP_DECL || ast->kind == ZEND_AST_CLASS_CONST_GROUP in zend_is_unticked_stmt()
2770 || ast->kind == ZEND_AST_USE_TRAIT || ast->kind == ZEND_AST_METHOD; in zend_is_unticked_stmt()
2777 ast->kind == ZEND_AST_DIM in zend_can_write_to_variable()
2778 || ast->kind == ZEND_AST_PROP in zend_can_write_to_variable()
2789 if (name_ast->kind != ZEND_AST_ZVAL) { in zend_is_const_default_class_ref()
2845 if (name_ast->kind != ZEND_AST_ZVAL) { in zend_compile_class_ref()
2899 if (name_ast->kind == ZEND_AST_ZVAL) { in zend_try_compile_cv()
2959 if (ast->kind == ZEND_AST_VAR && ast->child[0]->kind == ZEND_AST_ZVAL) { in is_this_fetch()
2970 if (ast->kind == ZEND_AST_VAR && ast->child[0]->kind == ZEND_AST_ZVAL) { in is_globals_fetch()
2980 return ast->kind == ZEND_AST_DIM && is_globals_fetch(ast->child[0]); in is_global_var_fetch()
3133 bool nullsafe = ast->kind == ZEND_AST_NULLSAFE_PROP; in zend_delayed_compile_prop()
3254 if (var_ast->kind == ZEND_AST_ARRAY) { in zend_verify_list_assign_target()
3280 if (var_ast->kind == ZEND_AST_ARRAY) { in zend_propagate_list_refs()
3296 return child->kind == ZEND_AST_ARRAY_ELEM && child->child[1] != NULL; in list_is_keyed()
3329 if (elem_ast->kind == ZEND_AST_UNPACK) { in zend_compile_list_assign()
3371 if (var_ast->kind == ZEND_AST_ARRAY) { in zend_compile_list_assign()
3394 if (ast->kind == ZEND_AST_CALL) { in zend_ensure_writable_variable()
3398 ast->kind == ZEND_AST_METHOD_CALL in zend_ensure_writable_variable()
3399 || ast->kind == ZEND_AST_NULLSAFE_METHOD_CALL in zend_ensure_writable_variable()
3400 || ast->kind == ZEND_AST_STATIC_CALL in zend_ensure_writable_variable()
3417 if (expr_ast->kind != ZEND_AST_VAR || expr_ast->child[0]->kind != ZEND_AST_ZVAL) { in zend_is_assign_to_self()
3421 while (zend_is_variable(var_ast) && var_ast->kind != ZEND_AST_VAR) { in zend_is_assign_to_self()
3425 if (var_ast->kind != ZEND_AST_VAR || var_ast->child[0]->kind != ZEND_AST_ZVAL) { in zend_is_assign_to_self()
3471 zend_ast_kind kind = is_global_var_fetch(var_ast) ? ZEND_AST_VAR : var_ast->kind; in zend_compile_assign() local
3472 switch (kind) { in zend_compile_assign()
3532 if (expr_ast->kind == ZEND_AST_VAR) { in zend_compile_assign()
3575 if ((target_ast->kind != ZEND_AST_VAR in zend_compile_assign_ref()
3576 || target_ast->child[0]->kind != ZEND_AST_ZVAL) in zend_compile_assign_ref()
3577 && source_ast->kind != ZEND_AST_ZNODE in zend_compile_assign_ref()
3638 zend_ast_kind kind = is_global_var_fetch(var_ast) ? ZEND_AST_VAR : var_ast->kind; in zend_compile_compound_assign() local
3639 switch (kind) { in zend_compile_compound_assign()
3746 if (arg->kind == ZEND_AST_UNPACK) { in zend_compile_args()
3768 if (arg->kind == ZEND_AST_NAMED_ARG) { in zend_compile_args()
3843 if (arg->kind == ZEND_AST_VAR) { in zend_compile_args()
3959 if (args_ast->kind == ZEND_AST_CALLABLE_CONVERT) { in zend_compile_call_common()
4049 if (arg->kind == ZEND_AST_UNPACK || arg->kind == ZEND_AST_NAMED_ARG) { in zend_args_contain_unpack_or_named()
4137 if (args->children != 1 || args->child[0]->kind != ZEND_AST_ZVAL) { in zend_compile_func_defined()
4168 args->child[0]->kind == ZEND_AST_ZVAL && in zend_compile_func_chr()
4185 args->child[0]->kind == ZEND_AST_ZVAL && in zend_compile_func_ord()
4231 if (name_ast->kind != ZEND_AST_ZVAL || Z_TYPE_P(zend_ast_get_zval(name_ast)) != IS_STRING) { in zend_try_compile_ct_bound_init_user_func()
4286 if (args->child[1]->kind == ZEND_AST_CALL in zend_compile_func_cufa()
4287 && args->child[1]->child[0]->kind == ZEND_AST_ZVAL in zend_compile_func_cufa()
4289 && args->child[1]->child[1]->kind == ZEND_AST_ARG_LIST) { in zend_compile_func_cufa()
4298 && list->child[1]->kind == ZEND_AST_ZVAL) { in zend_compile_func_cufa()
4380 if (args->child[0]->kind == ZEND_AST_NAMED_ARG) { in zend_compile_assert()
4412 if (args->child[2]->kind == ZEND_AST_ZVAL) { in zend_compile_func_in_array()
4414 } else if (args->child[2]->kind == ZEND_AST_CONST) { in zend_compile_func_in_array()
4436 if (args->child[1]->kind != ZEND_AST_ARRAY in zend_compile_func_in_array()
4592 && args->child[0]->kind == ZEND_AST_CALL in zend_compile_func_array_slice()
4593 && args->child[0]->child[0]->kind == ZEND_AST_ZVAL in zend_compile_func_array_slice()
4595 && args->child[0]->child[1]->kind == ZEND_AST_ARG_LIST in zend_compile_func_array_slice()
4596 && args->child[1]->kind == ZEND_AST_ZVAL) { in zend_compile_func_array_slice()
4726 if (args_ast->kind != ZEND_AST_CALLABLE_CONVERT in zend_compile_ns_call()
4791 if (args->child[0]->kind != ZEND_AST_ZVAL) { in zend_compile_func_sprintf()
5046 static const char *zend_get_cstring_from_property_hook_kind(zend_property_hook_kind kind) { in zend_get_cstring_from_property_hook_kind() argument
5047 switch (kind) { in zend_get_cstring_from_property_hook_kind()
5068 ZEND_ASSERT(ast->kind == ZEND_AST_STATIC_CALL); in zend_compile_parent_property_hook_call()
5074 if (class_ast->kind != ZEND_AST_STATIC_PROP in zend_compile_parent_property_hook_call()
5076 || class_ast->child[0]->kind != ZEND_AST_ZVAL in zend_compile_parent_property_hook_call()
5079 || class_ast->child[1]->kind != ZEND_AST_ZVAL in zend_compile_parent_property_hook_call()
5080 || method_ast->kind != ZEND_AST_ZVAL in zend_compile_parent_property_hook_call()
5093 if (args_ast->kind == ZEND_AST_CALLABLE_CONVERT) { in zend_compile_parent_property_hook_call()
5135 bool is_callable_convert = args_ast->kind == ZEND_AST_CALLABLE_CONVERT; in zend_compile_call()
5139 if (name_ast->kind != ZEND_AST_ZVAL || Z_TYPE_P(zend_ast_get_zval(name_ast)) != IS_STRING) { in zend_compile_call()
5219 bool nullsafe = ast->kind == ZEND_AST_NULLSAFE_METHOD_CALL; in zend_compile_method_call()
5388 if (class_ast->kind == ZEND_AST_CLASS) { in zend_compile_new()
5505 if (!value_ast || value_ast->kind == ZEND_AST_ZVAL) { in zend_compile_static_var()
5559 switch (var_ast->kind) { in zend_compile_unset()
5768 ZEND_ASSERT(ast->kind == ZEND_AST_BREAK || ast->kind == ZEND_AST_CONTINUE); in zend_compile_break_continue()
5772 if (depth_ast->kind != ZEND_AST_ZVAL) { in zend_compile_break_continue()
5774 "is no longer supported", ast->kind == ZEND_AST_BREAK ? "break" : "continue"); in zend_compile_break_continue()
5780 ast->kind == ZEND_AST_BREAK ? "break" : "continue"); in zend_compile_break_continue()
5790 ast->kind == ZEND_AST_BREAK ? "break" : "continue"); in zend_compile_break_continue()
5794 ast->kind == ZEND_AST_BREAK ? "break" : "continue", in zend_compile_break_continue()
5799 if (ast->kind == ZEND_AST_CONTINUE) { in zend_compile_break_continue()
5832 opline = zend_emit_op(NULL, ast->kind == ZEND_AST_BREAK ? ZEND_BRK : ZEND_CONT, NULL, NULL); in zend_compile_break_continue()
6043 bool by_ref = value_ast->kind == ZEND_AST_REF; in zend_compile_foreach()
6051 if (key_ast->kind == ZEND_AST_REF) { in zend_compile_foreach()
6054 if (key_ast->kind == ZEND_AST_ARRAY) { in zend_compile_foreach()
6063 if (value_ast->kind == ZEND_AST_ARRAY && zend_propagate_list_refs(value_ast)) { in zend_compile_foreach()
6087 } else if (value_ast->kind == ZEND_AST_VAR && in zend_compile_foreach()
6094 if (value_ast->kind == ZEND_AST_ARRAY) { in zend_compile_foreach()
6194 if ((*cond_ast)->kind != ZEND_AST_ZVAL) { in determine_switch_jumptable_type()
6401 if ((*cond_ast)->kind != ZEND_AST_ZVAL) { in can_match_use_jumptable()
6787 if (value_ast->kind != ZEND_AST_ZVAL) { in zend_handle_encoding_declaration()
6840 } else if (file_ast->child[i]->kind != ZEND_AST_DECLARE) { in zend_is_first_statement()
6862 if ((*value_ast_ptr)->kind != ZEND_AST_ZVAL) { in zend_compile_declare()
6951 if (ast->kind == ZEND_AST_TYPE) { in zend_compile_single_typename()
7111 if (ast->kind == ZEND_AST_TYPE_UNION) { in zend_compile_typename_ex()
7126 if (type_ast->kind == ZEND_AST_TYPE_INTERSECTION) { in zend_compile_typename_ex()
7224 } else if (ast->kind == ZEND_AST_TYPE_INTERSECTION) { in zend_compile_typename_ex()
7356 ZEND_ASSERT(ast->kind == ZEND_AST_ATTRIBUTE_LIST); in zend_compile_attributes()
7361 ZEND_ASSERT(group->kind == ZEND_AST_ATTRIBUTE_GROUP); in zend_compile_attributes()
7364 ZEND_ASSERT(group->child[i]->kind == ZEND_AST_ATTRIBUTE); in zend_compile_attributes()
7369 el->child[1]->kind == ZEND_AST_CALLABLE_CONVERT) { in zend_compile_attributes()
7397 ZEND_ASSERT(args->kind == ZEND_AST_ARG_LIST); in zend_compile_attributes()
7404 if (arg_ast->kind == ZEND_AST_UNPACK) { in zend_compile_attributes()
7409 if (arg_ast->kind == ZEND_AST_NAMED_ARG) { in zend_compile_attributes()
7479 } else if (ast->kind == ZEND_AST_PROP || ast->kind == ZEND_AST_NULLSAFE_PROP) { in zend_property_hook_find_property_usage()
7483 if (object_ast->kind == ZEND_AST_VAR in zend_property_hook_find_property_usage()
7484 && object_ast->child[0]->kind == ZEND_AST_ZVAL in zend_property_hook_find_property_usage()
7485 && property_ast->kind == ZEND_AST_ZVAL) { in zend_property_hook_find_property_usage()
7508 && hook_ast->kind == ZEND_AST_PROPERTY_HOOK_SHORT_BODY) { in zend_property_hook_uses_property()
7897 if (ast->kind == ZEND_AST_VAR) { in find_implicit_binds_recursively()
7899 if (name_ast->kind == ZEND_AST_ZVAL && Z_TYPE_P(zend_ast_get_zval(name_ast)) == IS_STRING) { in find_implicit_binds_recursively()
7922 } else if (ast->kind == ZEND_AST_CLOSURE) { in find_implicit_binds_recursively()
7933 } else if (ast->kind == ZEND_AST_ARROW_FUNC) { in find_implicit_binds_recursively()
8238 bool is_method = decl->kind == ZEND_AST_METHOD; in zend_compile_func_decl_ex()
8240 bool is_hook = decl->kind == ZEND_AST_PROPERTY_HOOK; in zend_compile_func_decl_ex()
8263 if (decl->kind == ZEND_AST_CLOSURE || decl->kind == ZEND_AST_ARROW_FUNC) { in zend_compile_func_decl_ex()
8276 if (decl->kind == ZEND_AST_ARROW_FUNC) { in zend_compile_func_decl_ex()
8319 if (decl->kind == ZEND_AST_FUNC_DECL) { in zend_compile_func_decl_ex()
8345 if (decl->kind == ZEND_AST_ARROW_FUNC) { in zend_compile_func_decl_ex()
8352 if (ast->kind == ZEND_AST_ARROW_FUNC && decl->child[2]->kind != ZEND_AST_RETURN) { in zend_compile_func_decl_ex()
8477 if (stmt_ast && stmt_ast->kind == ZEND_AST_PROPERTY_HOOK_SHORT_BODY) { in zend_compile_property_hooks()
8918 switch (adaptation_ast->kind) { in zend_compile_use_trait()
9766 static inline bool zend_try_ct_eval_unary_pm(zval *result, zend_ast_kind kind, zval *op) /* {{{ */ in zend_try_ct_eval_unary_pm() argument
9769 ZVAL_LONG(&right, (kind == ZEND_AST_UNARY_PLUS) ? 1 : -1); in zend_try_ct_eval_unary_pm()
9774 static inline void zend_ct_eval_greater(zval *result, zend_ast_kind kind, zval *op1, zval *op2) /* … in zend_ct_eval_greater() argument
9776 binary_op_type fn = kind == ZEND_AST_GREATER in zend_ct_eval_greater()
9805 if (elem_ast->kind != ZEND_AST_UNPACK) { in zend_try_ct_eval_array()
9809 if (elem_ast->attr /* by_ref */ || elem_ast->child[0]->kind != ZEND_AST_ZVAL in zend_try_ct_eval_array()
9810 || (elem_ast->child[1] && elem_ast->child[1]->kind != ZEND_AST_ZVAL) in zend_try_ct_eval_array()
9817 if (elem_ast->child[0]->kind != ZEND_AST_ZVAL) { in zend_try_ct_eval_array()
9841 if (elem_ast->kind == ZEND_AST_UNPACK) { in zend_try_ct_eval_array()
10009 ZEND_ASSERT(ast->kind == ZEND_AST_GREATER || ast->kind == ZEND_AST_GREATER_EQUAL); in zend_compile_greater()
10016 zend_ct_eval_greater(&result->u.constant, ast->kind, in zend_compile_greater()
10024 ast->kind == ZEND_AST_GREATER ? ZEND_IS_SMALLER : ZEND_IS_SMALLER_OR_EQUAL, in zend_compile_greater()
10053 ZEND_ASSERT(ast->kind == ZEND_AST_UNARY_PLUS || ast->kind == ZEND_AST_UNARY_MINUS); in zend_compile_unary_pm()
10058 && zend_try_ct_eval_unary_pm(&result->u.constant, ast->kind, &expr_node.u.constant)) { in zend_compile_unary_pm()
10065 ZVAL_LONG(&right_node.u.constant, (ast->kind == ZEND_AST_UNARY_PLUS) ? 1 : -1); in zend_compile_unary_pm()
10079 ZEND_ASSERT(ast->kind == ZEND_AST_AND || ast->kind == ZEND_AST_OR); in zend_compile_short_circuiting()
10084 if ((ast->kind == ZEND_AST_AND && !zend_is_true(&left_node.u.constant)) in zend_compile_short_circuiting()
10085 || (ast->kind == ZEND_AST_OR && zend_is_true(&left_node.u.constant))) { in zend_compile_short_circuiting()
10106 opline_jmpz = zend_emit_op(NULL, ast->kind == ZEND_AST_AND ? ZEND_JMPZ_EX : ZEND_JMPNZ_EX, in zend_compile_short_circuiting()
10128 ZEND_ASSERT(ast->kind == ZEND_AST_POST_INC || ast->kind == ZEND_AST_POST_DEC); in zend_compile_post_incdec()
10132 if (var_ast->kind == ZEND_AST_PROP || var_ast->kind == ZEND_AST_NULLSAFE_PROP) { in zend_compile_post_incdec()
10134 opline->opcode = ast->kind == ZEND_AST_POST_INC ? ZEND_POST_INC_OBJ : ZEND_POST_DEC_OBJ; in zend_compile_post_incdec()
10136 } else if (var_ast->kind == ZEND_AST_STATIC_PROP) { in zend_compile_post_incdec()
10138 …opline->opcode = ast->kind == ZEND_AST_POST_INC ? ZEND_POST_INC_STATIC_PROP : ZEND_POST_DEC_STATIC… in zend_compile_post_incdec()
10146 zend_emit_op_tmp(result, ast->kind == ZEND_AST_POST_INC ? ZEND_POST_INC : ZEND_POST_DEC, in zend_compile_post_incdec()
10155 ZEND_ASSERT(ast->kind == ZEND_AST_PRE_INC || ast->kind == ZEND_AST_PRE_DEC); in zend_compile_pre_incdec()
10159 if (var_ast->kind == ZEND_AST_PROP || var_ast->kind == ZEND_AST_NULLSAFE_PROP) { in zend_compile_pre_incdec()
10161 opline->opcode = ast->kind == ZEND_AST_PRE_INC ? ZEND_PRE_INC_OBJ : ZEND_PRE_DEC_OBJ; in zend_compile_pre_incdec()
10164 } else if (var_ast->kind == ZEND_AST_STATIC_PROP) { in zend_compile_pre_incdec()
10166 …opline->opcode = ast->kind == ZEND_AST_PRE_INC ? ZEND_PRE_INC_STATIC_PROP : ZEND_PRE_DEC_STATIC_PR… in zend_compile_pre_incdec()
10175 zend_emit_op_tmp(result, ast->kind == ZEND_AST_PRE_INC ? ZEND_PRE_INC : ZEND_PRE_DEC, in zend_compile_pre_incdec()
10235 if (cond_ast->kind == ZEND_AST_CONDITIONAL in zend_compile_conditional()
10347 if (var_ast->kind == ZEND_AST_DIM) { in zend_compile_assign_coalesce()
10359 zend_ast_kind kind = is_global_var_fetch(var_ast) ? ZEND_AST_VAR : var_ast->kind; in zend_compile_assign_coalesce() local
10360 switch (kind) { in zend_compile_assign_coalesce()
10543 ZEND_ASSERT(ast->kind == ZEND_AST_ISSET || ast->kind == ZEND_AST_EMPTY); in zend_compile_isset_or_empty()
10546 if (ast->kind == ZEND_AST_EMPTY) { in zend_compile_isset_or_empty()
10560 ZVAL_BOOL(&result->u.constant, ast->kind == ZEND_AST_ISSET); in zend_compile_isset_or_empty()
10576 ZEND_FETCH_GLOBAL | (ast->kind == ZEND_AST_EMPTY ? ZEND_ISEMPTY : 0); in zend_compile_isset_or_empty()
10581 switch (var_ast->kind) { in zend_compile_isset_or_empty()
10610 if (!(ast->kind == ZEND_AST_ISSET)) { in zend_compile_isset_or_empty()
10623 if (expr_ast->kind == ZEND_AST_VAR) { in zend_compile_silence()
10680 if (elem_ast->kind == ZEND_AST_UNPACK) { in zend_compile_array()
10745 while (last && last->kind == ZEND_AST_STMT_LIST) { in zend_compile_const()
10752 if (last && last->kind == ZEND_AST_HALT_COMPILER) { in zend_compile_const()
10795 if (class_ast->kind == ZEND_AST_ZVAL && const_ast->kind == ZEND_AST_ZVAL) { in zend_compile_class_const()
10832 if (class_ast->kind == ZEND_AST_ZVAL) { in zend_compile_class_name()
10956 …if ((encaps_var->kind == ZEND_AST_VAR || encaps_var->kind == ZEND_AST_DIM) && (encaps_var->attr & … in zend_compile_encaps_list()
10958 …} else if (encaps_var->kind == ZEND_AST_VAR && (encaps_var->attr & ZEND_ENCAPS_VAR_DOLLAR_CURLY_VA… in zend_compile_encaps_list()
11036 static bool zend_is_allowed_in_const_expr(zend_ast_kind kind) /* {{{ */ in zend_is_allowed_in_const_expr() argument
11038 return kind == ZEND_AST_ZVAL || kind == ZEND_AST_BINARY_OP in zend_is_allowed_in_const_expr()
11039 || kind == ZEND_AST_GREATER || kind == ZEND_AST_GREATER_EQUAL in zend_is_allowed_in_const_expr()
11040 || kind == ZEND_AST_AND || kind == ZEND_AST_OR in zend_is_allowed_in_const_expr()
11041 || kind == ZEND_AST_UNARY_OP in zend_is_allowed_in_const_expr()
11042 || kind == ZEND_AST_UNARY_PLUS || kind == ZEND_AST_UNARY_MINUS in zend_is_allowed_in_const_expr()
11043 || kind == ZEND_AST_CONDITIONAL || kind == ZEND_AST_DIM in zend_is_allowed_in_const_expr()
11044 || kind == ZEND_AST_ARRAY || kind == ZEND_AST_ARRAY_ELEM in zend_is_allowed_in_const_expr()
11045 || kind == ZEND_AST_UNPACK in zend_is_allowed_in_const_expr()
11046 || kind == ZEND_AST_CONST || kind == ZEND_AST_CLASS_CONST in zend_is_allowed_in_const_expr()
11047 || kind == ZEND_AST_CLASS_NAME in zend_is_allowed_in_const_expr()
11048 || kind == ZEND_AST_MAGIC_CONST || kind == ZEND_AST_COALESCE in zend_is_allowed_in_const_expr()
11049 || kind == ZEND_AST_CONST_ENUM_INIT in zend_is_allowed_in_const_expr()
11050 || kind == ZEND_AST_NEW || kind == ZEND_AST_ARG_LIST in zend_is_allowed_in_const_expr()
11051 || kind == ZEND_AST_NAMED_ARG in zend_is_allowed_in_const_expr()
11052 || kind == ZEND_AST_PROP || kind == ZEND_AST_NULLSAFE_PROP; in zend_is_allowed_in_const_expr()
11063 if (class_ast->kind != ZEND_AST_ZVAL) { in zend_compile_const_expr_class_const()
11098 if (class_ast->kind != ZEND_AST_ZVAL) { in zend_compile_const_expr_class_name()
11164 if (class_ast->kind == ZEND_AST_CLASS) { in zend_compile_const_expr_new()
11168 if (class_ast->kind != ZEND_AST_ZVAL) { in zend_compile_const_expr_new()
11192 if (arg->kind == ZEND_AST_UNPACK) { in zend_compile_const_expr_args()
11196 if (arg->kind == ZEND_AST_NAMED_ARG) { in zend_compile_const_expr_args()
11217 if (ast == NULL || ast->kind == ZEND_AST_ZVAL) { in zend_compile_const_expr()
11221 if (!zend_is_allowed_in_const_expr(ast->kind)) { in zend_compile_const_expr()
11225 switch (ast->kind) { in zend_compile_const_expr()
11261 if ((*ast_ptr)->kind != ZEND_AST_ZVAL) { in zend_const_expr_to_zval()
11279 if (ast->kind == ZEND_AST_STMT_LIST) { in zend_compile_top_stmt()
11288 if (ast->kind == ZEND_AST_FUNC_DECL) { in zend_compile_top_stmt()
11292 } else if (ast->kind == ZEND_AST_CLASS) { in zend_compile_top_stmt()
11299 if (ast->kind != ZEND_AST_NAMESPACE && ast->kind != ZEND_AST_HALT_COMPILER) { in zend_compile_top_stmt()
11317 switch (ast->kind) { in zend_compile_stmt()
11431 switch (ast->kind) { in zend_compile_expr_inner()
11577 switch (ast->kind) { in zend_compile_var_inner()
11588 switch (ast->kind) { in zend_compile_var_inner()
11635 switch (ast->kind) { in zend_delayed_compile_var()
11668 switch (ast->kind) { in zend_eval_const_expr()
11672 if (ast->child[0]->kind != ZEND_AST_ZVAL || ast->child[1]->kind != ZEND_AST_ZVAL) { in zend_eval_const_expr()
11686 if (ast->child[0]->kind != ZEND_AST_ZVAL || ast->child[1]->kind != ZEND_AST_ZVAL) { in zend_eval_const_expr()
11690 zend_ct_eval_greater(&result, ast->kind, in zend_eval_const_expr()
11699 if (ast->child[0]->kind != ZEND_AST_ZVAL) { in zend_eval_const_expr()
11704 if (child0_is_true == (ast->kind == ZEND_AST_OR)) { in zend_eval_const_expr()
11705 ZVAL_BOOL(&result, ast->kind == ZEND_AST_OR); in zend_eval_const_expr()
11709 if (ast->child[1]->kind != ZEND_AST_ZVAL) { in zend_eval_const_expr()
11714 if (ast->kind == ZEND_AST_OR) { in zend_eval_const_expr()
11723 if (ast->child[0]->kind != ZEND_AST_ZVAL) { in zend_eval_const_expr()
11734 if (ast->child[0]->kind != ZEND_AST_ZVAL) { in zend_eval_const_expr()
11738 if (!zend_try_ct_eval_unary_pm(&result, ast->kind, zend_ast_get_zval(ast->child[0]))) { in zend_eval_const_expr()
11744 if (ast->child[0]->kind == ZEND_AST_DIM) { in zend_eval_const_expr()
11749 if (ast->child[0]->kind != ZEND_AST_ZVAL) { in zend_eval_const_expr()
11770 if (ast->child[0]->kind != ZEND_AST_ZVAL) { in zend_eval_const_expr()
11800 if ((ast->attr & ZEND_DIM_IS) && ast->child[0]->kind == ZEND_AST_DIM) { in zend_eval_const_expr()
11806 if (ast->child[0]->kind != ZEND_AST_ZVAL || ast->child[1]->kind != ZEND_AST_ZVAL) { in zend_eval_const_expr()
11886 if (UNEXPECTED(ast->child[1]->kind != ZEND_AST_ZVAL in zend_eval_const_expr()
11894 if (class_ast->kind != ZEND_AST_ZVAL || name_ast->kind != ZEND_AST_ZVAL) { in zend_eval_const_expr()