Lines Matching refs:kind
432 static void zend_register_seen_symbol(zend_string *name, uint32_t kind) { in zend_register_seen_symbol() argument
435 Z_LVAL_P(zv) |= kind; in zend_register_seen_symbol()
438 ZVAL_LONG(&tmp, kind); in zend_register_seen_symbol()
443 static bool zend_have_seen_symbol(zend_string *name, uint32_t kind) { in zend_have_seen_symbol() argument
445 return zv && (Z_LVAL_P(zv) & kind) != 0; in zend_have_seen_symbol()
1794 if (class_ast->kind != ZEND_AST_ZVAL) { in zend_try_compile_const_expr_resolve_class_name()
2506 switch (ast->kind) { in zend_ast_is_short_circuited()
2535 if (zend_ast_kind_is_short_circuited(ast->kind)) { in zend_short_circuiting_mark_inner()
2547 bool is_short_circuited = zend_ast_kind_is_short_circuited(ast->kind) in zend_short_circuiting_commit()
2548 || ast->kind == ZEND_AST_ISSET || ast->kind == ZEND_AST_EMPTY; in zend_short_circuiting_commit()
2566 ast->kind == ZEND_AST_ISSET ? ZEND_SHORT_CIRCUITING_CHAIN_ISSET : in zend_short_circuiting_commit()
2567 ast->kind == ZEND_AST_EMPTY ? ZEND_SHORT_CIRCUITING_CHAIN_EMPTY : in zend_short_circuiting_commit()
2748 return ast->kind == ZEND_AST_VAR in zend_is_variable()
2749 || ast->kind == ZEND_AST_DIM in zend_is_variable()
2750 || ast->kind == ZEND_AST_PROP in zend_is_variable()
2751 || ast->kind == ZEND_AST_NULLSAFE_PROP in zend_is_variable()
2752 || ast->kind == ZEND_AST_STATIC_PROP; in zend_is_variable()
2758 return ast->kind == ZEND_AST_CALL in zend_is_call()
2759 || ast->kind == ZEND_AST_METHOD_CALL in zend_is_call()
2760 || ast->kind == ZEND_AST_NULLSAFE_METHOD_CALL in zend_is_call()
2761 || ast->kind == ZEND_AST_STATIC_CALL; in zend_is_call()
2773 return ast->kind == ZEND_AST_STMT_LIST || ast->kind == ZEND_AST_LABEL in zend_is_unticked_stmt()
2774 || ast->kind == ZEND_AST_PROP_DECL || ast->kind == ZEND_AST_CLASS_CONST_GROUP in zend_is_unticked_stmt()
2775 || ast->kind == ZEND_AST_USE_TRAIT || ast->kind == ZEND_AST_METHOD; in zend_is_unticked_stmt()
2782 ast->kind == ZEND_AST_DIM in zend_can_write_to_variable()
2783 || ast->kind == ZEND_AST_PROP in zend_can_write_to_variable()
2794 if (name_ast->kind != ZEND_AST_ZVAL) { in zend_is_const_default_class_ref()
2850 if (name_ast->kind != ZEND_AST_ZVAL) { in zend_compile_class_ref()
2904 if (name_ast->kind == ZEND_AST_ZVAL) { in zend_try_compile_cv()
2964 if (ast->kind == ZEND_AST_VAR && ast->child[0]->kind == ZEND_AST_ZVAL) { in is_this_fetch()
2975 if (ast->kind == ZEND_AST_VAR && ast->child[0]->kind == ZEND_AST_ZVAL) { in is_globals_fetch()
2985 return ast->kind == ZEND_AST_DIM && is_globals_fetch(ast->child[0]); in is_global_var_fetch()
3138 bool nullsafe = ast->kind == ZEND_AST_NULLSAFE_PROP; in zend_delayed_compile_prop()
3259 if (var_ast->kind == ZEND_AST_ARRAY) { in zend_verify_list_assign_target()
3285 if (var_ast->kind == ZEND_AST_ARRAY) { in zend_propagate_list_refs()
3301 return child->kind == ZEND_AST_ARRAY_ELEM && child->child[1] != NULL; in list_is_keyed()
3334 if (elem_ast->kind == ZEND_AST_UNPACK) { in zend_compile_list_assign()
3376 if (var_ast->kind == ZEND_AST_ARRAY) { in zend_compile_list_assign()
3399 if (ast->kind == ZEND_AST_CALL) { in zend_ensure_writable_variable()
3403 ast->kind == ZEND_AST_METHOD_CALL in zend_ensure_writable_variable()
3404 || ast->kind == ZEND_AST_NULLSAFE_METHOD_CALL in zend_ensure_writable_variable()
3405 || ast->kind == ZEND_AST_STATIC_CALL in zend_ensure_writable_variable()
3422 if (expr_ast->kind != ZEND_AST_VAR || expr_ast->child[0]->kind != ZEND_AST_ZVAL) { in zend_is_assign_to_self()
3426 while (zend_is_variable(var_ast) && var_ast->kind != ZEND_AST_VAR) { in zend_is_assign_to_self()
3430 if (var_ast->kind != ZEND_AST_VAR || var_ast->child[0]->kind != ZEND_AST_ZVAL) { in zend_is_assign_to_self()
3476 zend_ast_kind kind = is_global_var_fetch(var_ast) ? ZEND_AST_VAR : var_ast->kind; in zend_compile_assign() local
3477 switch (kind) { in zend_compile_assign()
3537 if (expr_ast->kind == ZEND_AST_VAR) { in zend_compile_assign()
3580 if ((target_ast->kind != ZEND_AST_VAR in zend_compile_assign_ref()
3581 || target_ast->child[0]->kind != ZEND_AST_ZVAL) in zend_compile_assign_ref()
3582 && source_ast->kind != ZEND_AST_ZNODE in zend_compile_assign_ref()
3643 zend_ast_kind kind = is_global_var_fetch(var_ast) ? ZEND_AST_VAR : var_ast->kind; in zend_compile_compound_assign() local
3644 switch (kind) { in zend_compile_compound_assign()
3750 if (arg->kind == ZEND_AST_UNPACK) { in zend_compile_args()
3772 if (arg->kind == ZEND_AST_NAMED_ARG) { in zend_compile_args()
3847 if (arg->kind == ZEND_AST_VAR) { in zend_compile_args()
3963 if (args_ast->kind == ZEND_AST_CALLABLE_CONVERT) { in zend_compile_call_common()
4053 if (arg->kind == ZEND_AST_UNPACK || arg->kind == ZEND_AST_NAMED_ARG) { in zend_args_contain_unpack_or_named()
4141 if (args->children != 1 || args->child[0]->kind != ZEND_AST_ZVAL) { in zend_compile_func_defined()
4172 args->child[0]->kind == ZEND_AST_ZVAL && in zend_compile_func_chr()
4189 args->child[0]->kind == ZEND_AST_ZVAL && in zend_compile_func_ord()
4235 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()
4290 if (args->child[1]->kind == ZEND_AST_CALL in zend_compile_func_cufa()
4291 && args->child[1]->child[0]->kind == ZEND_AST_ZVAL in zend_compile_func_cufa()
4293 && args->child[1]->child[1]->kind == ZEND_AST_ARG_LIST) { in zend_compile_func_cufa()
4302 && list->child[1]->kind == ZEND_AST_ZVAL) { in zend_compile_func_cufa()
4384 if (args->child[0]->kind == ZEND_AST_NAMED_ARG) { in zend_compile_assert()
4416 if (args->child[2]->kind == ZEND_AST_ZVAL) { in zend_compile_func_in_array()
4418 } else if (args->child[2]->kind == ZEND_AST_CONST) { in zend_compile_func_in_array()
4440 if (args->child[1]->kind != ZEND_AST_ARRAY in zend_compile_func_in_array()
4596 && args->child[0]->kind == ZEND_AST_CALL in zend_compile_func_array_slice()
4597 && args->child[0]->child[0]->kind == ZEND_AST_ZVAL in zend_compile_func_array_slice()
4599 && args->child[0]->child[1]->kind == ZEND_AST_ARG_LIST in zend_compile_func_array_slice()
4600 && args->child[1]->kind == ZEND_AST_ZVAL) { in zend_compile_func_array_slice()
4730 if (args_ast->kind != ZEND_AST_CALLABLE_CONVERT in zend_compile_ns_call()
4795 if (args->child[0]->kind != ZEND_AST_ZVAL) { in zend_compile_func_sprintf()
5050 static const char *zend_get_cstring_from_property_hook_kind(zend_property_hook_kind kind) { in zend_get_cstring_from_property_hook_kind() argument
5051 switch (kind) { in zend_get_cstring_from_property_hook_kind()
5072 ZEND_ASSERT(ast->kind == ZEND_AST_STATIC_CALL); in zend_compile_parent_property_hook_call()
5078 if (class_ast->kind != ZEND_AST_STATIC_PROP in zend_compile_parent_property_hook_call()
5080 || class_ast->child[0]->kind != ZEND_AST_ZVAL in zend_compile_parent_property_hook_call()
5083 || class_ast->child[1]->kind != ZEND_AST_ZVAL in zend_compile_parent_property_hook_call()
5084 || method_ast->kind != ZEND_AST_ZVAL in zend_compile_parent_property_hook_call()
5097 if (args_ast->kind == ZEND_AST_CALLABLE_CONVERT) { in zend_compile_parent_property_hook_call()
5139 bool is_callable_convert = args_ast->kind == ZEND_AST_CALLABLE_CONVERT; in zend_compile_call()
5143 if (name_ast->kind != ZEND_AST_ZVAL || Z_TYPE_P(zend_ast_get_zval(name_ast)) != IS_STRING) { in zend_compile_call()
5223 bool nullsafe = ast->kind == ZEND_AST_NULLSAFE_METHOD_CALL; in zend_compile_method_call()
5392 if (class_ast->kind == ZEND_AST_CLASS) { in zend_compile_new()
5509 if (!value_ast || value_ast->kind == ZEND_AST_ZVAL) { in zend_compile_static_var()
5563 switch (var_ast->kind) { in zend_compile_unset()
5772 ZEND_ASSERT(ast->kind == ZEND_AST_BREAK || ast->kind == ZEND_AST_CONTINUE); in zend_compile_break_continue()
5776 if (depth_ast->kind != ZEND_AST_ZVAL) { in zend_compile_break_continue()
5778 "is no longer supported", ast->kind == ZEND_AST_BREAK ? "break" : "continue"); in zend_compile_break_continue()
5784 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()
5798 ast->kind == ZEND_AST_BREAK ? "break" : "continue", in zend_compile_break_continue()
5803 if (ast->kind == ZEND_AST_CONTINUE) { in zend_compile_break_continue()
5836 opline = zend_emit_op(NULL, ast->kind == ZEND_AST_BREAK ? ZEND_BRK : ZEND_CONT, NULL, NULL); in zend_compile_break_continue()
6047 bool by_ref = value_ast->kind == ZEND_AST_REF; in zend_compile_foreach()
6055 if (key_ast->kind == ZEND_AST_REF) { in zend_compile_foreach()
6058 if (key_ast->kind == ZEND_AST_ARRAY) { in zend_compile_foreach()
6067 if (value_ast->kind == ZEND_AST_ARRAY && zend_propagate_list_refs(value_ast)) { in zend_compile_foreach()
6091 } else if (value_ast->kind == ZEND_AST_VAR && in zend_compile_foreach()
6098 if (value_ast->kind == ZEND_AST_ARRAY) { in zend_compile_foreach()
6198 if ((*cond_ast)->kind != ZEND_AST_ZVAL) { in determine_switch_jumptable_type()
6405 if ((*cond_ast)->kind != ZEND_AST_ZVAL) { in can_match_use_jumptable()
6791 if (value_ast->kind != ZEND_AST_ZVAL) { in zend_handle_encoding_declaration()
6844 } else if (file_ast->child[i]->kind != ZEND_AST_DECLARE) { in zend_is_first_statement()
6866 if ((*value_ast_ptr)->kind != ZEND_AST_ZVAL) { in zend_compile_declare()
6955 if (ast->kind == ZEND_AST_TYPE) { in zend_compile_single_typename()
7115 if (ast->kind == ZEND_AST_TYPE_UNION) { in zend_compile_typename_ex()
7130 if (type_ast->kind == ZEND_AST_TYPE_INTERSECTION) { in zend_compile_typename_ex()
7228 } else if (ast->kind == ZEND_AST_TYPE_INTERSECTION) { in zend_compile_typename_ex()
7360 ZEND_ASSERT(ast->kind == ZEND_AST_ATTRIBUTE_LIST); in zend_compile_attributes()
7365 ZEND_ASSERT(group->kind == ZEND_AST_ATTRIBUTE_GROUP); in zend_compile_attributes()
7368 ZEND_ASSERT(group->child[i]->kind == ZEND_AST_ATTRIBUTE); in zend_compile_attributes()
7373 el->child[1]->kind == ZEND_AST_CALLABLE_CONVERT) { in zend_compile_attributes()
7401 ZEND_ASSERT(args->kind == ZEND_AST_ARG_LIST); in zend_compile_attributes()
7408 if (arg_ast->kind == ZEND_AST_UNPACK) { in zend_compile_attributes()
7413 if (arg_ast->kind == ZEND_AST_NAMED_ARG) { in zend_compile_attributes()
7483 } else if (ast->kind == ZEND_AST_PROP || ast->kind == ZEND_AST_NULLSAFE_PROP) { in zend_property_hook_find_property_usage()
7487 if (object_ast->kind == ZEND_AST_VAR in zend_property_hook_find_property_usage()
7488 && object_ast->child[0]->kind == ZEND_AST_ZVAL in zend_property_hook_find_property_usage()
7489 && property_ast->kind == ZEND_AST_ZVAL) { in zend_property_hook_find_property_usage()
7512 && hook_ast->kind == ZEND_AST_PROPERTY_HOOK_SHORT_BODY) { in zend_property_hook_uses_property()
7901 if (ast->kind == ZEND_AST_VAR) { in find_implicit_binds_recursively()
7903 if (name_ast->kind == ZEND_AST_ZVAL && Z_TYPE_P(zend_ast_get_zval(name_ast)) == IS_STRING) { in find_implicit_binds_recursively()
7926 } else if (ast->kind == ZEND_AST_CLOSURE) { in find_implicit_binds_recursively()
7937 } else if (ast->kind == ZEND_AST_ARROW_FUNC) { in find_implicit_binds_recursively()
8230 bool is_method = decl->kind == ZEND_AST_METHOD; in zend_compile_func_decl_ex()
8232 bool is_hook = decl->kind == ZEND_AST_PROPERTY_HOOK; in zend_compile_func_decl_ex()
8255 if (decl->kind == ZEND_AST_CLOSURE || decl->kind == ZEND_AST_ARROW_FUNC) { in zend_compile_func_decl_ex()
8268 if (decl->kind == ZEND_AST_ARROW_FUNC) { in zend_compile_func_decl_ex()
8311 if (decl->kind == ZEND_AST_FUNC_DECL) { in zend_compile_func_decl_ex()
8337 if (decl->kind == ZEND_AST_ARROW_FUNC) { in zend_compile_func_decl_ex()
8344 if (ast->kind == ZEND_AST_ARROW_FUNC && decl->child[2]->kind != ZEND_AST_RETURN) { in zend_compile_func_decl_ex()
8469 if (stmt_ast && stmt_ast->kind == ZEND_AST_PROPERTY_HOOK_SHORT_BODY) { in zend_compile_property_hooks()
8922 switch (adaptation_ast->kind) { in zend_compile_use_trait()
9774 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
9777 ZVAL_LONG(&right, (kind == ZEND_AST_UNARY_PLUS) ? 1 : -1); in zend_try_ct_eval_unary_pm()
9782 static inline void zend_ct_eval_greater(zval *result, zend_ast_kind kind, zval *op1, zval *op2) /* … in zend_ct_eval_greater() argument
9784 binary_op_type fn = kind == ZEND_AST_GREATER in zend_ct_eval_greater()
9813 if (elem_ast->kind != ZEND_AST_UNPACK) { in zend_try_ct_eval_array()
9817 if (elem_ast->attr /* by_ref */ || elem_ast->child[0]->kind != ZEND_AST_ZVAL in zend_try_ct_eval_array()
9818 || (elem_ast->child[1] && elem_ast->child[1]->kind != ZEND_AST_ZVAL) in zend_try_ct_eval_array()
9825 if (elem_ast->child[0]->kind != ZEND_AST_ZVAL) { in zend_try_ct_eval_array()
9849 if (elem_ast->kind == ZEND_AST_UNPACK) { in zend_try_ct_eval_array()
10017 ZEND_ASSERT(ast->kind == ZEND_AST_GREATER || ast->kind == ZEND_AST_GREATER_EQUAL); in zend_compile_greater()
10024 zend_ct_eval_greater(&result->u.constant, ast->kind, in zend_compile_greater()
10032 ast->kind == ZEND_AST_GREATER ? ZEND_IS_SMALLER : ZEND_IS_SMALLER_OR_EQUAL, in zend_compile_greater()
10061 ZEND_ASSERT(ast->kind == ZEND_AST_UNARY_PLUS || ast->kind == ZEND_AST_UNARY_MINUS); in zend_compile_unary_pm()
10066 && zend_try_ct_eval_unary_pm(&result->u.constant, ast->kind, &expr_node.u.constant)) { in zend_compile_unary_pm()
10073 ZVAL_LONG(&right_node.u.constant, (ast->kind == ZEND_AST_UNARY_PLUS) ? 1 : -1); in zend_compile_unary_pm()
10087 ZEND_ASSERT(ast->kind == ZEND_AST_AND || ast->kind == ZEND_AST_OR); in zend_compile_short_circuiting()
10092 if ((ast->kind == ZEND_AST_AND && !zend_is_true(&left_node.u.constant)) in zend_compile_short_circuiting()
10093 || (ast->kind == ZEND_AST_OR && zend_is_true(&left_node.u.constant))) { in zend_compile_short_circuiting()
10114 opline_jmpz = zend_emit_op(NULL, ast->kind == ZEND_AST_AND ? ZEND_JMPZ_EX : ZEND_JMPNZ_EX, in zend_compile_short_circuiting()
10136 ZEND_ASSERT(ast->kind == ZEND_AST_POST_INC || ast->kind == ZEND_AST_POST_DEC); in zend_compile_post_incdec()
10140 if (var_ast->kind == ZEND_AST_PROP || var_ast->kind == ZEND_AST_NULLSAFE_PROP) { in zend_compile_post_incdec()
10142 opline->opcode = ast->kind == ZEND_AST_POST_INC ? ZEND_POST_INC_OBJ : ZEND_POST_DEC_OBJ; in zend_compile_post_incdec()
10144 } else if (var_ast->kind == ZEND_AST_STATIC_PROP) { in zend_compile_post_incdec()
10146 …opline->opcode = ast->kind == ZEND_AST_POST_INC ? ZEND_POST_INC_STATIC_PROP : ZEND_POST_DEC_STATIC… in zend_compile_post_incdec()
10154 zend_emit_op_tmp(result, ast->kind == ZEND_AST_POST_INC ? ZEND_POST_INC : ZEND_POST_DEC, in zend_compile_post_incdec()
10163 ZEND_ASSERT(ast->kind == ZEND_AST_PRE_INC || ast->kind == ZEND_AST_PRE_DEC); in zend_compile_pre_incdec()
10167 if (var_ast->kind == ZEND_AST_PROP || var_ast->kind == ZEND_AST_NULLSAFE_PROP) { in zend_compile_pre_incdec()
10169 opline->opcode = ast->kind == ZEND_AST_PRE_INC ? ZEND_PRE_INC_OBJ : ZEND_PRE_DEC_OBJ; in zend_compile_pre_incdec()
10172 } else if (var_ast->kind == ZEND_AST_STATIC_PROP) { in zend_compile_pre_incdec()
10174 …opline->opcode = ast->kind == ZEND_AST_PRE_INC ? ZEND_PRE_INC_STATIC_PROP : ZEND_PRE_DEC_STATIC_PR… in zend_compile_pre_incdec()
10183 zend_emit_op_tmp(result, ast->kind == ZEND_AST_PRE_INC ? ZEND_PRE_INC : ZEND_PRE_DEC, in zend_compile_pre_incdec()
10243 if (cond_ast->kind == ZEND_AST_CONDITIONAL in zend_compile_conditional()
10355 if (var_ast->kind == ZEND_AST_DIM) { in zend_compile_assign_coalesce()
10367 zend_ast_kind kind = is_global_var_fetch(var_ast) ? ZEND_AST_VAR : var_ast->kind; in zend_compile_assign_coalesce() local
10368 switch (kind) { in zend_compile_assign_coalesce()
10551 ZEND_ASSERT(ast->kind == ZEND_AST_ISSET || ast->kind == ZEND_AST_EMPTY); in zend_compile_isset_or_empty()
10554 if (ast->kind == ZEND_AST_EMPTY) { in zend_compile_isset_or_empty()
10568 ZVAL_BOOL(&result->u.constant, ast->kind == ZEND_AST_ISSET); in zend_compile_isset_or_empty()
10584 ZEND_FETCH_GLOBAL | (ast->kind == ZEND_AST_EMPTY ? ZEND_ISEMPTY : 0); in zend_compile_isset_or_empty()
10589 switch (var_ast->kind) { in zend_compile_isset_or_empty()
10618 if (!(ast->kind == ZEND_AST_ISSET)) { in zend_compile_isset_or_empty()
10631 if (expr_ast->kind == ZEND_AST_VAR) { in zend_compile_silence()
10688 if (elem_ast->kind == ZEND_AST_UNPACK) { in zend_compile_array()
10753 while (last && last->kind == ZEND_AST_STMT_LIST) { in zend_compile_const()
10760 if (last && last->kind == ZEND_AST_HALT_COMPILER) { in zend_compile_const()
10803 if (class_ast->kind == ZEND_AST_ZVAL && const_ast->kind == ZEND_AST_ZVAL) { in zend_compile_class_const()
10840 if (class_ast->kind == ZEND_AST_ZVAL) { in zend_compile_class_name()
10964 …if ((encaps_var->kind == ZEND_AST_VAR || encaps_var->kind == ZEND_AST_DIM) && (encaps_var->attr & … in zend_compile_encaps_list()
10966 …} else if (encaps_var->kind == ZEND_AST_VAR && (encaps_var->attr & ZEND_ENCAPS_VAR_DOLLAR_CURLY_VA… in zend_compile_encaps_list()
11044 static bool zend_is_allowed_in_const_expr(zend_ast_kind kind) /* {{{ */ in zend_is_allowed_in_const_expr() argument
11046 return kind == ZEND_AST_ZVAL || kind == ZEND_AST_BINARY_OP in zend_is_allowed_in_const_expr()
11047 || kind == ZEND_AST_GREATER || kind == ZEND_AST_GREATER_EQUAL in zend_is_allowed_in_const_expr()
11048 || kind == ZEND_AST_AND || kind == ZEND_AST_OR in zend_is_allowed_in_const_expr()
11049 || kind == ZEND_AST_UNARY_OP in zend_is_allowed_in_const_expr()
11050 || kind == ZEND_AST_UNARY_PLUS || kind == ZEND_AST_UNARY_MINUS in zend_is_allowed_in_const_expr()
11051 || kind == ZEND_AST_CONDITIONAL || kind == ZEND_AST_DIM in zend_is_allowed_in_const_expr()
11052 || kind == ZEND_AST_ARRAY || kind == ZEND_AST_ARRAY_ELEM in zend_is_allowed_in_const_expr()
11053 || kind == ZEND_AST_UNPACK in zend_is_allowed_in_const_expr()
11054 || kind == ZEND_AST_CONST || kind == ZEND_AST_CLASS_CONST in zend_is_allowed_in_const_expr()
11055 || kind == ZEND_AST_CLASS_NAME in zend_is_allowed_in_const_expr()
11056 || kind == ZEND_AST_MAGIC_CONST || kind == ZEND_AST_COALESCE in zend_is_allowed_in_const_expr()
11057 || kind == ZEND_AST_CONST_ENUM_INIT in zend_is_allowed_in_const_expr()
11058 || kind == ZEND_AST_NEW || kind == ZEND_AST_ARG_LIST in zend_is_allowed_in_const_expr()
11059 || kind == ZEND_AST_NAMED_ARG in zend_is_allowed_in_const_expr()
11060 || kind == ZEND_AST_PROP || kind == ZEND_AST_NULLSAFE_PROP; in zend_is_allowed_in_const_expr()
11071 if (class_ast->kind != ZEND_AST_ZVAL) { in zend_compile_const_expr_class_const()
11106 if (class_ast->kind != ZEND_AST_ZVAL) { in zend_compile_const_expr_class_name()
11172 if (class_ast->kind == ZEND_AST_CLASS) { in zend_compile_const_expr_new()
11176 if (class_ast->kind != ZEND_AST_ZVAL) { in zend_compile_const_expr_new()
11200 if (arg->kind == ZEND_AST_UNPACK) { in zend_compile_const_expr_args()
11204 if (arg->kind == ZEND_AST_NAMED_ARG) { in zend_compile_const_expr_args()
11225 if (ast == NULL || ast->kind == ZEND_AST_ZVAL) { in zend_compile_const_expr()
11229 if (!zend_is_allowed_in_const_expr(ast->kind)) { in zend_compile_const_expr()
11233 switch (ast->kind) { in zend_compile_const_expr()
11269 if ((*ast_ptr)->kind != ZEND_AST_ZVAL) { in zend_const_expr_to_zval()
11287 if (ast->kind == ZEND_AST_STMT_LIST) { in zend_compile_top_stmt()
11296 if (ast->kind == ZEND_AST_FUNC_DECL) { in zend_compile_top_stmt()
11300 } else if (ast->kind == ZEND_AST_CLASS) { in zend_compile_top_stmt()
11307 if (ast->kind != ZEND_AST_NAMESPACE && ast->kind != ZEND_AST_HALT_COMPILER) { in zend_compile_top_stmt()
11325 switch (ast->kind) { in zend_compile_stmt()
11439 switch (ast->kind) { in zend_compile_expr_inner()
11585 switch (ast->kind) { in zend_compile_var_inner()
11596 switch (ast->kind) { in zend_compile_var_inner()
11643 switch (ast->kind) { in zend_delayed_compile_var()
11676 switch (ast->kind) { in zend_eval_const_expr()
11680 if (ast->child[0]->kind != ZEND_AST_ZVAL || ast->child[1]->kind != ZEND_AST_ZVAL) { in zend_eval_const_expr()
11694 if (ast->child[0]->kind != ZEND_AST_ZVAL || ast->child[1]->kind != ZEND_AST_ZVAL) { in zend_eval_const_expr()
11698 zend_ct_eval_greater(&result, ast->kind, in zend_eval_const_expr()
11707 if (ast->child[0]->kind != ZEND_AST_ZVAL) { in zend_eval_const_expr()
11712 if (child0_is_true == (ast->kind == ZEND_AST_OR)) { in zend_eval_const_expr()
11713 ZVAL_BOOL(&result, ast->kind == ZEND_AST_OR); in zend_eval_const_expr()
11717 if (ast->child[1]->kind != ZEND_AST_ZVAL) { in zend_eval_const_expr()
11722 if (ast->kind == ZEND_AST_OR) { in zend_eval_const_expr()
11731 if (ast->child[0]->kind != ZEND_AST_ZVAL) { in zend_eval_const_expr()
11742 if (ast->child[0]->kind != ZEND_AST_ZVAL) { in zend_eval_const_expr()
11746 if (!zend_try_ct_eval_unary_pm(&result, ast->kind, zend_ast_get_zval(ast->child[0]))) { in zend_eval_const_expr()
11752 if (ast->child[0]->kind == ZEND_AST_DIM) { in zend_eval_const_expr()
11757 if (ast->child[0]->kind != ZEND_AST_ZVAL) { in zend_eval_const_expr()
11778 if (ast->child[0]->kind != ZEND_AST_ZVAL) { in zend_eval_const_expr()
11808 if ((ast->attr & ZEND_DIM_IS) && ast->child[0]->kind == ZEND_AST_DIM) { in zend_eval_const_expr()
11814 if (ast->child[0]->kind != ZEND_AST_ZVAL || ast->child[1]->kind != ZEND_AST_ZVAL) { in zend_eval_const_expr()
11894 if (UNEXPECTED(ast->child[1]->kind != ZEND_AST_ZVAL in zend_eval_const_expr()
11902 if (class_ast->kind != ZEND_AST_ZVAL || name_ast->kind != ZEND_AST_ZVAL) { in zend_eval_const_expr()