Lines Matching refs:name_ast
1746 static uint32_t zend_get_class_fetch_type_ast(zend_ast *name_ast) /* {{{ */ in zend_get_class_fetch_type_ast() argument
1749 if (name_ast->attr == ZEND_NAME_FQ) { in zend_get_class_fetch_type_ast()
1753 return zend_get_class_fetch_type(zend_ast_get_str(name_ast)); in zend_get_class_fetch_type_ast()
2787 static inline bool zend_is_const_default_class_ref(zend_ast *name_ast) /* {{{ */ in zend_is_const_default_class_ref() argument
2789 if (name_ast->kind != ZEND_AST_ZVAL) { in zend_is_const_default_class_ref()
2793 return ZEND_FETCH_CLASS_DEFAULT == zend_get_class_fetch_type_ast(name_ast); in zend_is_const_default_class_ref()
2841 static void zend_compile_class_ref(znode *result, zend_ast *name_ast, uint32_t fetch_flags) /* {{{ … in zend_compile_class_ref() argument
2845 if (name_ast->kind != ZEND_AST_ZVAL) { in zend_compile_class_ref()
2848 zend_compile_expr(&name_node, name_ast); in zend_compile_class_ref()
2878 if (name_ast->attr == ZEND_NAME_FQ) { in zend_compile_class_ref()
2880 ZVAL_STR(&result->u.constant, zend_resolve_class_name_ast(name_ast)); in zend_compile_class_ref()
2884 fetch_type = zend_get_class_fetch_type(zend_ast_get_str(name_ast)); in zend_compile_class_ref()
2887 ZVAL_STR(&result->u.constant, zend_resolve_class_name_ast(name_ast)); in zend_compile_class_ref()
2898 zend_ast *name_ast = ast->child[0]; in zend_try_compile_cv() local
2899 if (name_ast->kind == ZEND_AST_ZVAL) { in zend_try_compile_cv()
2900 zval *zv = zend_ast_get_zval(name_ast); in zend_try_compile_cv()
2929 zend_ast *name_ast = ast->child[0]; in zend_compile_simple_var_no_cv() local
2933 zend_compile_expr(&name_node, name_ast); in zend_compile_simple_var_no_cv()
3997 static bool zend_compile_function_name(znode *name_node, zend_ast *name_ast) /* {{{ */ in zend_compile_function_name() argument
3999 zend_string *orig_name = zend_ast_get_str(name_ast); in zend_compile_function_name()
4004 orig_name, name_ast->attr, &is_fully_qualified)); in zend_compile_function_name()
4225 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
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()
4235 name = zend_ast_get_str(name_ast); in zend_try_compile_ct_bound_init_user_func()
4257 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
4262 if (zend_try_compile_ct_bound_init_user_func(name_ast, num_args) == SUCCESS) { in zend_compile_init_user_func()
4266 zend_compile_expr(&name_node, name_ast); in zend_compile_init_user_func()
4416 zend_ast *name_ast = args->child[2]->child[0]; in zend_compile_func_in_array() local
4419 zend_ast_get_str(name_ast), name_ast->attr, &is_fully_qualified); in zend_compile_func_in_array()
5133 zend_ast *name_ast = ast->child[0]; in zend_compile_call() local
5139 if (name_ast->kind != ZEND_AST_ZVAL || Z_TYPE_P(zend_ast_get_zval(name_ast)) != IS_STRING) { in zend_compile_call()
5140 zend_compile_expr(&name_node, name_ast); in zend_compile_call()
5146 bool runtime_resolution = zend_compile_function_name(&name_node, name_ast); in zend_compile_call()
5148 if (zend_string_equals_literal_ci(zend_ast_get_str(name_ast), "assert") in zend_compile_call()
5425 zend_ast *name_ast = var_ast->child[0]; in zend_compile_global_var() local
5429 zend_compile_expr(&name_node, name_ast); in zend_compile_global_var()
6782 zend_ast *name_ast = declare_ast->child[0]; in zend_handle_encoding_declaration() local
6784 zend_string *name = zend_ast_get_str(name_ast); in zend_handle_encoding_declaration()
6858 zend_ast *name_ast = declare_ast->child[0]; in zend_compile_declare() local
6860 zend_string *name = zend_ast_get_str(name_ast); in zend_compile_declare()
7898 zend_ast *name_ast = ast->child[0]; in find_implicit_binds_recursively() local
7899 if (name_ast->kind == ZEND_AST_ZVAL && Z_TYPE_P(zend_ast_get_zval(name_ast)) == IS_STRING) { in find_implicit_binds_recursively()
7900 zend_string *name = zend_ast_get_str(name_ast); in find_implicit_binds_recursively()
7914 find_implicit_binds_recursively(info, name_ast); in find_implicit_binds_recursively()
8632 zend_ast *name_ast = prop_ast->child[0]; in zend_compile_prop_decl() local
8636 zend_string *name = zval_make_interned_string(zend_ast_get_zval(name_ast)); in zend_compile_prop_decl()
8767 zend_ast *name_ast = const_ast->child[0]; in zend_compile_class_const_decl() local
8770 zend_string *name = zval_make_interned_string(zend_ast_get_zval(name_ast)); in zend_compile_class_const_decl()
8855 zend_ast *name_ast = insteadof_list->child[i]; in zend_compile_trait_precedence() local
8857 zend_resolve_const_class_name_reference(name_ast, "trait name"); in zend_compile_trait_precedence()
9420 zend_ast *name_ast = const_ast->child[0]; in zend_compile_const_decl() local
9422 zend_string *unqualified_name = zend_ast_get_str(name_ast); in zend_compile_const_decl()
9459 zend_ast *name_ast = ast->child[0]; in zend_compile_namespace() local
9494 if (name_ast) { in zend_compile_namespace()
9495 name = zend_ast_get_str(name_ast); in zend_compile_namespace()
10640 zend_ast *name_ast, *args_ast, *call_ast; in zend_compile_shell_exec() local
10643 name_ast = zend_ast_create_zval(&fn_name); in zend_compile_shell_exec()
10645 call_ast = zend_ast_create(ZEND_AST_CALL, name_ast, args_ast); in zend_compile_shell_exec()
10734 zend_ast *name_ast = ast->child[0]; in zend_compile_const() local
10739 zend_string *orig_name = zend_ast_get_str(name_ast); in zend_compile_const()
10740 …zend_string *resolved_name = zend_resolve_const_name(orig_name, name_ast->attr, &is_fully_qualifie… in zend_compile_const()
10742 …if (zend_string_equals_literal(resolved_name, "__COMPILER_HALT_OFFSET__") || (name_ast->attr != ZE… in zend_compile_const()
11125 zend_ast *name_ast = ast->child[0]; in zend_compile_const_expr_const() local
11126 zend_string *orig_name = zend_ast_get_str(name_ast); in zend_compile_const_expr_const()
11134 orig_name, name_ast->attr, &is_fully_qualified); in zend_compile_const_expr_const()
11864 zend_ast *name_ast = ast->child[0]; in zend_eval_const_expr() local
11867 zend_ast_get_str(name_ast), name_ast->attr, &is_fully_qualified); in zend_eval_const_expr()
11880 zend_ast *name_ast; in zend_eval_const_expr() local
11892 name_ast = ast->child[1]; in zend_eval_const_expr()
11894 if (class_ast->kind != ZEND_AST_ZVAL || name_ast->kind != ZEND_AST_ZVAL) { in zend_eval_const_expr()
11899 if (!zend_try_ct_eval_class_const(&result, resolved_name, zend_ast_get_str(name_ast))) { in zend_eval_const_expr()