Lines Matching refs:class_ast
1784 static bool zend_try_compile_const_expr_resolve_class_name(zval *zv, zend_ast *class_ast) /* {{{ */ in zend_try_compile_const_expr_resolve_class_name() argument
1789 if (class_ast->kind != ZEND_AST_ZVAL) { in zend_try_compile_const_expr_resolve_class_name()
1793 class_name = zend_ast_get_zval(class_ast); in zend_try_compile_const_expr_resolve_class_name()
1819 ZVAL_STR(zv, zend_resolve_class_name_ast(class_ast)); in zend_try_compile_const_expr_resolve_class_name()
3213 zend_ast *class_ast = ast->child[0]; in zend_compile_static_prop() local
3219 zend_short_circuiting_mark_inner(class_ast); in zend_compile_static_prop()
3220 zend_compile_class_ref(&class_node, class_ast, ZEND_FETCH_CLASS_EXCEPTION); in zend_compile_static_prop()
5070 zend_ast *class_ast = ast->child[0]; in zend_compile_parent_property_hook_call() local
5074 if (class_ast->kind != ZEND_AST_STATIC_PROP in zend_compile_parent_property_hook_call()
5075 || (class_ast->attr & ZEND_PARENTHESIZED_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()
5077 || Z_TYPE_P(zend_ast_get_zval(class_ast->child[0])) != IS_STRING in zend_compile_parent_property_hook_call()
5078 || zend_get_class_fetch_type(zend_ast_get_str(class_ast->child[0])) != ZEND_FETCH_CLASS_PARENT in zend_compile_parent_property_hook_call()
5079 || class_ast->child[1]->kind != ZEND_AST_ZVAL in zend_compile_parent_property_hook_call()
5097 zend_string *property_name = zend_ast_get_str(class_ast->child[1]); in zend_compile_parent_property_hook_call()
5304 zend_ast *class_ast = ast->child[0]; in zend_compile_static_call() local
5316 zend_short_circuiting_mark_inner(class_ast); in zend_compile_static_call()
5317 zend_compile_class_ref(&class_node, class_ast, ZEND_FETCH_CLASS_EXCEPTION); in zend_compile_static_call()
5382 zend_ast *class_ast = ast->child[0]; in zend_compile_new() local
5388 if (class_ast->kind == ZEND_AST_CLASS) { in zend_compile_new()
5390 zend_compile_class_decl(&class_node, class_ast, 0); in zend_compile_new()
5392 zend_compile_class_ref(&class_node, class_ast, ZEND_FETCH_CLASS_EXCEPTION); in zend_compile_new()
6668 zend_ast *class_ast = classes->child[j]; in zend_compile_try() local
6671 if (!zend_is_const_default_class_ref(class_ast)) { in zend_compile_try()
6684 zend_resolve_class_name_ast(class_ast)); in zend_compile_try()
8830 zend_ast *class_ast = ast->child[0]; in zend_compile_method_ref() local
8835 if (class_ast) { in zend_compile_method_ref()
8836 method_ref->class_name = zend_resolve_const_class_name_reference(class_ast, "trait name"); in zend_compile_method_ref()
8941 zend_ast *class_ast = list->child[i]; in zend_compile_implements() local
8943 zend_resolve_const_class_name_reference(class_ast, "interface name"); in zend_compile_implements()
10491 zend_ast *class_ast = ast->child[1]; in zend_compile_instanceof() local
10504 zend_compile_class_ref(&class_node, class_ast, in zend_compile_instanceof()
10784 zend_ast *class_ast; in zend_compile_class_const() local
10792 class_ast = ast->child[0]; in zend_compile_class_const()
10795 if (class_ast->kind == ZEND_AST_ZVAL && const_ast->kind == ZEND_AST_ZVAL) { in zend_compile_class_const()
10799 zend_string *resolved_name = zend_resolve_class_name_ast(class_ast); in zend_compile_class_const()
10809 zend_compile_class_ref(&class_node, class_ast, ZEND_FETCH_CLASS_EXCEPTION); in zend_compile_class_const()
10825 zend_ast *class_ast = ast->child[0]; in zend_compile_class_name() local
10827 if (zend_try_compile_const_expr_resolve_class_name(&result->u.constant, class_ast)) { in zend_compile_class_name()
10832 if (class_ast->kind == ZEND_AST_ZVAL) { in zend_compile_class_name()
10834 opline->op1.num = zend_get_class_fetch_type(zend_ast_get_str(class_ast)); in zend_compile_class_name()
10837 zend_compile_expr(&expr_node, class_ast); in zend_compile_class_name()
11059 zend_ast *class_ast = ast->child[0]; in zend_compile_const_expr_class_const() local
11063 if (class_ast->kind != ZEND_AST_ZVAL) { in zend_compile_const_expr_class_const()
11067 if (Z_TYPE_P(zend_ast_get_zval(class_ast)) != IS_STRING) { in zend_compile_const_expr_class_const()
11071 class_name = zend_ast_get_str(class_ast); in zend_compile_const_expr_class_const()
11080 zend_string *tmp = zend_resolve_class_name_ast(class_ast); in zend_compile_const_expr_class_const()
11084 zval *zv = zend_ast_get_zval(class_ast); in zend_compile_const_expr_class_const()
11086 class_ast->attr = ZEND_NAME_FQ; in zend_compile_const_expr_class_const()
11097 zend_ast *class_ast = ast->child[0]; in zend_compile_const_expr_class_name() local
11098 if (class_ast->kind != ZEND_AST_ZVAL) { in zend_compile_const_expr_class_name()
11103 zend_string *class_name = zend_ast_get_str(class_ast); in zend_compile_const_expr_class_name()
11163 zend_ast *class_ast = (*ast_ptr)->child[0]; in zend_compile_const_expr_new() local
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()
11173 zend_string *class_name = zend_resolve_class_name_ast(class_ast); in zend_compile_const_expr_new()
11180 zval *class_ast_zv = zend_ast_get_zval(class_ast); in zend_compile_const_expr_new()
11183 class_ast->attr = fetch_type << ZEND_CONST_EXPR_NEW_FETCH_TYPE_SHIFT; in zend_compile_const_expr_new()
11879 zend_ast *class_ast; in zend_eval_const_expr() local
11891 class_ast = ast->child[0]; in zend_eval_const_expr()
11894 if (class_ast->kind != ZEND_AST_ZVAL || name_ast->kind != ZEND_AST_ZVAL) { in zend_eval_const_expr()
11898 resolved_name = zend_resolve_class_name_ast(class_ast); in zend_eval_const_expr()
11909 zend_ast *class_ast = ast->child[0]; in zend_eval_const_expr() local
11910 if (!zend_try_compile_const_expr_resolve_class_name(&result, class_ast)) { in zend_eval_const_expr()