Lines Matching refs:kind

1371 	if (name_ast->kind != ZEND_AST_ZVAL) {  in zend_try_compile_const_expr_resolve_class_name()
1379 if (class_ast->kind != ZEND_AST_ZVAL) { in zend_try_compile_const_expr_resolve_class_name()
2100 return ast->kind == ZEND_AST_VAR || ast->kind == ZEND_AST_DIM in zend_is_variable()
2101 || ast->kind == ZEND_AST_PROP || ast->kind == ZEND_AST_STATIC_PROP in zend_is_variable()
2102 || ast->kind == ZEND_AST_CALL || ast->kind == ZEND_AST_METHOD_CALL in zend_is_variable()
2103 || ast->kind == ZEND_AST_STATIC_CALL; in zend_is_variable()
2109 return ast->kind == ZEND_AST_CALL in zend_is_call()
2110 || ast->kind == ZEND_AST_METHOD_CALL in zend_is_call()
2111 || ast->kind == ZEND_AST_STATIC_CALL; in zend_is_call()
2117 return ast->kind == ZEND_AST_STMT_LIST || ast->kind == ZEND_AST_LABEL in zend_is_unticked_stmt()
2118 || ast->kind == ZEND_AST_PROP_DECL || ast->kind == ZEND_AST_CLASS_CONST_DECL in zend_is_unticked_stmt()
2119 || ast->kind == ZEND_AST_USE_TRAIT || ast->kind == ZEND_AST_METHOD; in zend_is_unticked_stmt()
2125 while (ast->kind == ZEND_AST_DIM || ast->kind == ZEND_AST_PROP) { in zend_can_write_to_variable()
2135 if (name_ast->kind != ZEND_AST_ZVAL) { in zend_is_const_default_class_ref()
2189 uint32_t type = name_ast->kind == ZEND_AST_ZVAL ? name_ast->attr : ZEND_NAME_FQ; in zend_compile_class_ref()
2210 if (name_ast->kind == ZEND_AST_ZVAL) { in zend_try_compile_cv()
2258 if (ast->kind != ZEND_AST_ZVAL in zend_compile_simple_var_no_cv()
2300 if (var_ast->kind == ZEND_AST_LIST) { in zend_emit_assign_znode()
2355 if (ast->kind == ZEND_AST_VAR && ast->child[0]->kind == ZEND_AST_ZVAL) { in is_this_fetch()
2487 if (ast->kind == ZEND_AST_CALL) { in zend_ensure_writable_variable()
2490 if (ast->kind == ZEND_AST_METHOD_CALL || ast->kind == ZEND_AST_STATIC_CALL) { in zend_ensure_writable_variable()
2499 if (expr_ast->kind != ZEND_AST_VAR || expr_ast->child[0]->kind != ZEND_AST_ZVAL) { in zend_is_assign_to_self()
2503 while (zend_is_variable(var_ast) && var_ast->kind != ZEND_AST_VAR) { in zend_is_assign_to_self()
2507 if (var_ast->kind != ZEND_AST_VAR || var_ast->child[0]->kind != ZEND_AST_ZVAL) { in zend_is_assign_to_self()
2534 if (var_ast->kind == ZEND_AST_LIST && zend_list_has_assign_to(var_ast, name)) { in zend_list_has_assign_to()
2538 if (var_ast->kind == ZEND_AST_VAR && var_ast->child[0]->kind == ZEND_AST_ZVAL) { in zend_list_has_assign_to()
2556 if (expr_ast->kind == ZEND_AST_VAR && expr_ast->child[0]->kind == ZEND_AST_ZVAL) { in zend_list_has_assign_to_self()
2581 switch (var_ast->kind) { in zend_compile_assign()
2685 switch (var_ast->kind) { in zend_compile_compound_assign()
2738 if (arg->kind == ZEND_AST_UNPACK) { in zend_compile_args()
2954 if (args->child[i]->kind == ZEND_AST_UNPACK) { in zend_args_contain_unpack()
2967 || args->children != 1 || args->child[0]->kind == ZEND_AST_UNPACK in zend_compile_func_strlen()
2989 if (args->children != 1 || args->child[0]->kind == ZEND_AST_UNPACK) { in zend_compile_func_typecheck()
3005 if (args->children != 1 || args->child[0]->kind != ZEND_AST_ZVAL) { in zend_compile_func_defined()
3037 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()
3139 if (child->kind == ZEND_AST_YIELD) { in zend_compile_assert_side_effects()
3141 } else if (ast->kind >= ZEND_AST_IS_LIST_SHIFT) { in zend_compile_assert_side_effects()
3172 (args->child[0]->kind != ZEND_AST_ZVAL || in zend_compile_assert()
3254 if (name_ast->kind != ZEND_AST_ZVAL || Z_TYPE_P(zend_ast_get_zval(name_ast)) != IS_STRING) { in zend_compile_call()
3417 } else if (class_ast->kind == ZEND_AST_CLASS) { in zend_compile_new()
3549 switch (var_ast->kind) { in zend_compile_unset()
3701 ZEND_ASSERT(ast->kind == ZEND_AST_BREAK || ast->kind == ZEND_AST_CONTINUE); in zend_compile_break_continue()
3705 if (depth_ast->kind != ZEND_AST_ZVAL) { in zend_compile_break_continue()
3707 "is no longer supported", ast->kind == ZEND_AST_BREAK ? "break" : "continue"); in zend_compile_break_continue()
3713 ast->kind == ZEND_AST_BREAK ? "break" : "continue"); in zend_compile_break_continue()
3723 ast->kind == ZEND_AST_BREAK ? "break" : "continue"); in zend_compile_break_continue()
3727 ast->kind == ZEND_AST_BREAK ? "break" : "continue", in zend_compile_break_continue()
3731 opline = zend_emit_op(NULL, ast->kind == ZEND_AST_BREAK ? ZEND_BRK : ZEND_CONT, NULL, NULL); in zend_compile_break_continue()
3942 zend_bool by_ref = value_ast->kind == ZEND_AST_REF; in zend_compile_foreach()
3951 if (key_ast->kind == ZEND_AST_REF) { in zend_compile_foreach()
3954 if (key_ast->kind == ZEND_AST_LIST) { in zend_compile_foreach()
3979 if (value_ast->kind == ZEND_AST_VAR && in zend_compile_foreach()
4301 if (value_ast->kind != ZEND_AST_ZVAL) { in zend_handle_encoding_declaration()
4350 } else if (file_ast->child[i]->kind != ZEND_AST_DECLARE) { in zend_declare_is_first_statement()
4373 if (value_ast->kind != ZEND_AST_ZVAL) { in zend_compile_declare()
4461 if (ast->kind == ZEND_AST_TYPE) { in zend_compile_typename()
4602 if (type_ast->kind == ZEND_AST_TYPE) { in zend_compile_params()
4925 zend_bool is_method = decl->kind == ZEND_AST_METHOD; in zend_compile_func_decl()
4940 if (decl->kind == ZEND_AST_CLOSURE) { in zend_compile_func_decl()
5207 switch (adaptation_ast->kind) { in zend_compile_use_trait()
5893 static inline void zend_ct_eval_unary_pm(zval *result, zend_ast_kind kind, zval *op) /* {{{ */ in zend_ct_eval_unary_pm() argument
5896 ZVAL_LONG(&left, (kind == ZEND_AST_UNARY_PLUS) ? 1 : -1); in zend_ct_eval_unary_pm()
5901 static inline void zend_ct_eval_greater(zval *result, zend_ast_kind kind, zval *op1, zval *op2) /* … in zend_ct_eval_greater() argument
5903 binary_op_type fn = kind == ZEND_AST_GREATER in zend_ct_eval_greater()
5922 if (by_ref || elem_ast->child[0]->kind != ZEND_AST_ZVAL in zend_try_ct_eval_array()
5923 || (elem_ast->child[1] && elem_ast->child[1]->kind != ZEND_AST_ZVAL) in zend_try_ct_eval_array()
6048 ZEND_ASSERT(ast->kind == ZEND_AST_GREATER || ast->kind == ZEND_AST_GREATER_EQUAL); in zend_compile_greater()
6055 zend_ct_eval_greater(&result->u.constant, ast->kind, in zend_compile_greater()
6063 ast->kind == ZEND_AST_GREATER ? ZEND_IS_SMALLER : ZEND_IS_SMALLER_OR_EQUAL, in zend_compile_greater()
6094 ZEND_ASSERT(ast->kind == ZEND_AST_UNARY_PLUS || ast->kind == ZEND_AST_UNARY_MINUS); in zend_compile_unary_pm()
6100 zend_ct_eval_unary_pm(&result->u.constant, ast->kind, &expr_node.u.constant); in zend_compile_unary_pm()
6106 ZVAL_LONG(&lefthand_node.u.constant, (ast->kind == ZEND_AST_UNARY_PLUS) ? 1 : -1); in zend_compile_unary_pm()
6120 ZEND_ASSERT(ast->kind == ZEND_AST_AND || ast->kind == ZEND_AST_OR); in zend_compile_short_circuiting()
6125 if ((ast->kind == ZEND_AST_AND && !zend_is_true(&left_node.u.constant)) in zend_compile_short_circuiting()
6126 || (ast->kind == ZEND_AST_OR && zend_is_true(&left_node.u.constant))) { in zend_compile_short_circuiting()
6147 opline_jmpz = zend_emit_op(NULL, ast->kind == ZEND_AST_AND ? ZEND_JMPZ_EX : ZEND_JMPNZ_EX, in zend_compile_short_circuiting()
6170 ZEND_ASSERT(ast->kind == ZEND_AST_POST_INC || ast->kind == ZEND_AST_POST_DEC); in zend_compile_post_incdec()
6174 if (var_ast->kind == ZEND_AST_PROP) { in zend_compile_post_incdec()
6176 opline->opcode = ast->kind == ZEND_AST_POST_INC ? ZEND_POST_INC_OBJ : ZEND_POST_DEC_OBJ; in zend_compile_post_incdec()
6181 zend_emit_op_tmp(result, ast->kind == ZEND_AST_POST_INC ? ZEND_POST_INC : ZEND_POST_DEC, in zend_compile_post_incdec()
6190 ZEND_ASSERT(ast->kind == ZEND_AST_PRE_INC || ast->kind == ZEND_AST_PRE_DEC); in zend_compile_pre_incdec()
6194 if (var_ast->kind == ZEND_AST_PROP) { in zend_compile_pre_incdec()
6196 opline->opcode = ast->kind == ZEND_AST_PRE_INC ? ZEND_PRE_INC_OBJ : ZEND_PRE_DEC_OBJ; in zend_compile_pre_incdec()
6200 zend_emit_op(result, ast->kind == ZEND_AST_PRE_INC ? ZEND_PRE_INC : ZEND_PRE_DEC, in zend_compile_pre_incdec()
6445 ZEND_ASSERT(ast->kind == ZEND_AST_ISSET || ast->kind == ZEND_AST_EMPTY); in zend_compile_isset_or_empty()
6448 if (ast->kind == ZEND_AST_EMPTY) { in zend_compile_isset_or_empty()
6460 switch (var_ast->kind) { in zend_compile_isset_or_empty()
6486 opline->extended_value |= ast->kind == ZEND_AST_ISSET ? ZEND_ISSET : ZEND_ISEMPTY; in zend_compile_isset_or_empty()
6500 if (expr_ast->kind == ZEND_AST_VAR) { in zend_compile_silence()
6614 while (last->kind == ZEND_AST_STMT_LIST) { in zend_compile_const()
6618 if (last->kind == ZEND_AST_HALT_COMPILER) { in zend_compile_const()
6678 if (class_ast->kind == ZEND_AST_ZVAL) { in zend_compile_class_const()
6680 …if (const_ast->kind == ZEND_AST_ZVAL && zend_try_ct_eval_class_const(&result->u.constant, resolved… in zend_compile_class_const()
6686 …if (const_ast->kind == ZEND_AST_ZVAL && zend_string_equals_literal_ci(zend_ast_get_str(const_ast),… in zend_compile_class_const()
6695 if (class_ast->kind == ZEND_AST_ZVAL) { in zend_compile_class_const()
6896 zend_bool zend_is_allowed_in_const_expr(zend_ast_kind kind) /* {{{ */ in zend_is_allowed_in_const_expr() argument
6898 return kind == ZEND_AST_ZVAL || kind == ZEND_AST_BINARY_OP in zend_is_allowed_in_const_expr()
6899 || kind == ZEND_AST_GREATER || kind == ZEND_AST_GREATER_EQUAL in zend_is_allowed_in_const_expr()
6900 || kind == ZEND_AST_AND || kind == ZEND_AST_OR in zend_is_allowed_in_const_expr()
6901 || kind == ZEND_AST_UNARY_OP in zend_is_allowed_in_const_expr()
6902 || kind == ZEND_AST_UNARY_PLUS || kind == ZEND_AST_UNARY_MINUS in zend_is_allowed_in_const_expr()
6903 || kind == ZEND_AST_CONDITIONAL || kind == ZEND_AST_DIM in zend_is_allowed_in_const_expr()
6904 || kind == ZEND_AST_ARRAY || kind == ZEND_AST_ARRAY_ELEM in zend_is_allowed_in_const_expr()
6905 || kind == ZEND_AST_CONST || kind == ZEND_AST_CLASS_CONST in zend_is_allowed_in_const_expr()
6906 || kind == ZEND_AST_MAGIC_CONST || kind == ZEND_AST_COALESCE; in zend_is_allowed_in_const_expr()
6920 if (class_ast->kind != ZEND_AST_ZVAL) { in zend_compile_const_expr_class_const()
7008 if (ast == NULL || ast->kind == ZEND_AST_ZVAL) { in zend_compile_const_expr()
7012 if (!zend_is_allowed_in_const_expr(ast->kind)) { in zend_compile_const_expr()
7016 switch (ast->kind) { in zend_compile_const_expr()
7038 if (ast->kind == ZEND_AST_ZVAL) { in zend_const_expr_to_zval()
7049 orig_ast->kind = 0; in zend_const_expr_to_zval()
7060 if (ast->kind == ZEND_AST_STMT_LIST) { in zend_compile_top_stmt()
7071 if (ast->kind != ZEND_AST_NAMESPACE && ast->kind != ZEND_AST_HALT_COMPILER) { in zend_compile_top_stmt()
7074 if (ast->kind == ZEND_AST_FUNC_DECL || ast->kind == ZEND_AST_CLASS) { in zend_compile_top_stmt()
7093 switch (ast->kind) { in zend_compile_stmt()
7199 switch (ast->kind) { in zend_compile_expr()
7322 switch (ast->kind) { in zend_compile_var()
7364 switch (ast->kind) { in zend_delayed_compile_var()
7395 switch (ast->kind) { in zend_eval_const_expr()
7399 if (ast->child[0]->kind != ZEND_AST_ZVAL || ast->child[1]->kind != ZEND_AST_ZVAL) { in zend_eval_const_expr()
7413 if (ast->child[0]->kind != ZEND_AST_ZVAL || ast->child[1]->kind != ZEND_AST_ZVAL) { in zend_eval_const_expr()
7417 zend_ct_eval_greater(&result, ast->kind, in zend_eval_const_expr()
7426 if (ast->child[i]->kind == ZEND_AST_ZVAL) { in zend_eval_const_expr()
7427 if (zend_is_true(zend_ast_get_zval(ast->child[i])) == (ast->kind == ZEND_AST_OR)) { in zend_eval_const_expr()
7428 ZVAL_BOOL(&result, ast->kind == ZEND_AST_OR); in zend_eval_const_expr()
7434 if (ast->child[0]->kind != ZEND_AST_ZVAL || ast->child[1]->kind != ZEND_AST_ZVAL) { in zend_eval_const_expr()
7438 if (ast->kind == ZEND_AST_OR) { in zend_eval_const_expr()
7447 if (ast->child[0]->kind != ZEND_AST_ZVAL) { in zend_eval_const_expr()
7456 if (ast->child[0]->kind != ZEND_AST_ZVAL) { in zend_eval_const_expr()
7460 zend_ct_eval_unary_pm(&result, ast->kind, zend_ast_get_zval(ast->child[0])); in zend_eval_const_expr()
7464 if (ast->child[0]->kind == ZEND_AST_DIM) { in zend_eval_const_expr()
7469 if (ast->child[0]->kind != ZEND_AST_ZVAL) { in zend_eval_const_expr()
7490 if (ast->child[0]->kind != ZEND_AST_ZVAL) { in zend_eval_const_expr()
7520 if (ast->attr == ZEND_DIM_IS && ast->child[0]->kind == ZEND_AST_DIM) { in zend_eval_const_expr()
7526 if (ast->child[0]->kind != ZEND_AST_ZVAL || ast->child[1]->kind != ZEND_AST_ZVAL) { in zend_eval_const_expr()
7624 …if (name_ast->kind == ZEND_AST_ZVAL && zend_string_equals_literal_ci(zend_ast_get_str(name_ast), "… in zend_eval_const_expr()
7629 if (class_ast->kind != ZEND_AST_ZVAL || name_ast->kind != ZEND_AST_ZVAL) { in zend_eval_const_expr()