Lines Matching refs:name_ast
1526 static uint32_t zend_get_class_fetch_type_ast(zend_ast *name_ast) /* {{{ */ in zend_get_class_fetch_type_ast() argument
1529 if (name_ast->attr == ZEND_NAME_FQ) { in zend_get_class_fetch_type_ast()
1533 return zend_get_class_fetch_type(zend_ast_get_str(name_ast)); in zend_get_class_fetch_type_ast()
2508 static inline zend_bool zend_is_const_default_class_ref(zend_ast *name_ast) /* {{{ */ in zend_is_const_default_class_ref() argument
2510 if (name_ast->kind != ZEND_AST_ZVAL) { in zend_is_const_default_class_ref()
2514 return ZEND_FETCH_CLASS_DEFAULT == zend_get_class_fetch_type_ast(name_ast); in zend_is_const_default_class_ref()
2562 static void zend_compile_class_ref(znode *result, zend_ast *name_ast, uint32_t fetch_flags) /* {{{ … in zend_compile_class_ref() argument
2566 if (name_ast->kind != ZEND_AST_ZVAL) { in zend_compile_class_ref()
2569 zend_compile_expr(&name_node, name_ast); in zend_compile_class_ref()
2599 if (name_ast->attr == ZEND_NAME_FQ) { in zend_compile_class_ref()
2601 ZVAL_STR(&result->u.constant, zend_resolve_class_name_ast(name_ast)); in zend_compile_class_ref()
2605 fetch_type = zend_get_class_fetch_type(zend_ast_get_str(name_ast)); in zend_compile_class_ref()
2608 ZVAL_STR(&result->u.constant, zend_resolve_class_name_ast(name_ast)); in zend_compile_class_ref()
2619 zend_ast *name_ast = ast->child[0]; in zend_try_compile_cv() local
2620 if (name_ast->kind == ZEND_AST_ZVAL) { in zend_try_compile_cv()
2621 zval *zv = zend_ast_get_zval(name_ast); in zend_try_compile_cv()
2650 zend_ast *name_ast = ast->child[0]; in zend_compile_simple_var_no_cv() local
2654 zend_compile_expr(&name_node, name_ast); in zend_compile_simple_var_no_cv()
3588 zend_bool zend_compile_function_name(znode *name_node, zend_ast *name_ast) /* {{{ */ in zend_compile_function_name() argument
3590 zend_string *orig_name = zend_ast_get_str(name_ast); in zend_compile_function_name()
3595 orig_name, name_ast->attr, &is_fully_qualified)); in zend_compile_function_name()
3808 static zend_result zend_try_compile_ct_bound_init_user_func(zend_ast *name_ast, uint32_t num_args) … in zend_try_compile_ct_bound_init_user_func() argument
3814 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()
3818 name = zend_ast_get_str(name_ast); in zend_try_compile_ct_bound_init_user_func()
3842 static void zend_compile_init_user_func(zend_ast *name_ast, uint32_t num_args, zend_string *orig_fu… in zend_compile_init_user_func() argument
3847 if (zend_try_compile_ct_bound_init_user_func(name_ast, num_args) == SUCCESS) { in zend_compile_init_user_func()
3851 zend_compile_expr(&name_node, name_ast); in zend_compile_init_user_func()
4001 zend_ast *name_ast = args->child[2]->child[0]; in zend_compile_func_in_array() local
4004 zend_ast_get_str(name_ast), name_ast->attr, &is_fully_qualified); in zend_compile_func_in_array()
4294 zend_ast *name_ast = ast->child[0]; in zend_compile_call() local
4299 if (name_ast->kind != ZEND_AST_ZVAL || Z_TYPE_P(zend_ast_get_zval(name_ast)) != IS_STRING) { in zend_compile_call()
4300 zend_compile_expr(&name_node, name_ast); in zend_compile_call()
4306 zend_bool runtime_resolution = zend_compile_function_name(&name_node, name_ast); in zend_compile_call()
4308 if (zend_string_equals_literal_ci(zend_ast_get_str(name_ast), "assert")) { in zend_compile_call()
4564 zend_ast *name_ast = var_ast->child[0]; in zend_compile_global_var() local
4568 zend_compile_expr(&name_node, name_ast); in zend_compile_global_var()
5863 zend_ast *name_ast = declare_ast->child[0]; in zend_handle_encoding_declaration() local
5865 zend_string *name = zend_ast_get_str(name_ast); in zend_handle_encoding_declaration()
5939 zend_ast *name_ast = declare_ast->child[0]; in zend_compile_declare() local
5941 zend_string *name = zend_ast_get_str(name_ast); in zend_compile_declare()
6633 zend_ast *name_ast = ast->child[0]; in find_implicit_binds_recursively() local
6634 if (name_ast->kind == ZEND_AST_ZVAL && Z_TYPE_P(zend_ast_get_zval(name_ast)) == IS_STRING) { in find_implicit_binds_recursively()
6635 zend_string *name = zend_ast_get_str(name_ast); in find_implicit_binds_recursively()
6649 find_implicit_binds_recursively(info, name_ast); in find_implicit_binds_recursively()
7041 zend_ast *name_ast = prop_ast->child[0]; in zend_compile_prop_decl() local
7044 zend_string *name = zval_make_interned_string(zend_ast_get_zval(name_ast)); in zend_compile_prop_decl()
7148 zend_ast *name_ast = const_ast->child[0]; in zend_compile_class_const_decl() local
7151 zend_string *name = zval_make_interned_string(zend_ast_get_zval(name_ast)); in zend_compile_class_const_decl()
7205 zend_ast *name_ast = insteadof_list->child[i]; in zend_compile_trait_precedence() local
7207 zend_resolve_const_class_name_reference(name_ast, "trait name"); in zend_compile_trait_precedence()
7653 zend_ast *name_ast = const_ast->child[0]; in zend_compile_const_decl() local
7655 zend_string *unqualified_name = zend_ast_get_str(name_ast); in zend_compile_const_decl()
7692 zend_ast *name_ast = ast->child[0]; in zend_compile_namespace() local
7727 if (name_ast) { in zend_compile_namespace()
7728 name = zend_ast_get_str(name_ast); in zend_compile_namespace()
8817 zend_ast *name_ast, *args_ast, *call_ast; in zend_compile_shell_exec() local
8820 name_ast = zend_ast_create_zval(&fn_name); in zend_compile_shell_exec()
8822 call_ast = zend_ast_create(ZEND_AST_CALL, name_ast, args_ast); in zend_compile_shell_exec()
8911 zend_ast *name_ast = ast->child[0]; in zend_compile_const() local
8916 zend_string *orig_name = zend_ast_get_str(name_ast); in zend_compile_const()
8917 …zend_string *resolved_name = zend_resolve_const_name(orig_name, name_ast->attr, &is_fully_qualifie… in zend_compile_const()
8919 …if (zend_string_equals_literal(resolved_name, "__COMPILER_HALT_OFFSET__") || (name_ast->attr != ZE… in zend_compile_const()
9277 zend_ast *name_ast = ast->child[0]; in zend_compile_const_expr_const() local
9278 zend_string *orig_name = zend_ast_get_str(name_ast); in zend_compile_const_expr_const()
9284 orig_name, name_ast->attr, &is_fully_qualified); in zend_compile_const_expr_const()
9934 zend_ast *name_ast = ast->child[0]; in zend_eval_const_expr() local
9937 zend_ast_get_str(name_ast), name_ast->attr, &is_fully_qualified); in zend_eval_const_expr()
9950 zend_ast *name_ast; in zend_eval_const_expr() local
9957 name_ast = ast->child[1]; in zend_eval_const_expr()
9959 if (class_ast->kind != ZEND_AST_ZVAL || name_ast->kind != ZEND_AST_ZVAL) { in zend_eval_const_expr()
9965 if (!zend_try_ct_eval_class_const(&result, resolved_name, zend_ast_get_str(name_ast))) { in zend_eval_const_expr()