Home
last modified time | relevance | path

Searched refs:ast (Results 1 – 25 of 27) sorted by relevance

12

/PHP-8.3/Zend/
H A Dzend_ast.c145 return ast; in zend_ast_create_0()
164 return ast; in zend_ast_create_1()
186 return ast; in zend_ast_create_2()
407 ast = zend_ast_list_add(ast, child); in zend_ast_create_list()
1138 ast = ast->child[0]; in zend_ast_destroy()
1932 ast = ast->child[0]; in zend_ast_export_ex()
1981 ast = ast->child[0]; in zend_ast_export_ex()
2065 ast = ast->child[0]; in zend_ast_export_ex()
2384 ast = ast->child[1]; in zend_ast_export_ex()
2541 ast = ast->child[0]; in zend_ast_export_ex()
[all …]
H A Dzend_ast.h247 ast->attr = attr; in zend_ast_create_ex_0()
248 return ast; in zend_ast_create_ex_0()
252 ast->attr = attr; in zend_ast_create_ex_1()
253 return ast; in zend_ast_create_ex_1()
257 ast->attr = attr; in zend_ast_create_ex_2()
258 return ast; in zend_ast_create_ex_2()
262 ast->attr = attr; in zend_ast_create_ex_3()
263 return ast; in zend_ast_create_ex_3()
268 return ast; in zend_ast_create_ex_4()
273 return ast; in zend_ast_create_ex_5()
[all …]
H A Dzend_compile.c2082 return ast; in zend_negate_num_string()
2468 || ast->kind == ZEND_AST_ISSET || ast->kind == ZEND_AST_EMPTY; in zend_short_circuiting_commit()
2682 return zend_is_variable(ast) || zend_is_call(ast); in zend_is_variable_or_call()
2700 ast = ast->child[0]; in zend_can_write_to_variable()
5476 if (!ast) { in zend_compile_expr_list()
7279 if (!ast) { in find_implicit_binds_recursively()
8462 inline_use->attr = ast->attr ? ast->attr : use->attr; in zend_compile_group_use()
10272 if (ast == NULL || ast->kind == ZEND_AST_ZVAL) { in zend_compile_const_expr()
10330 if (!ast) { in zend_compile_top_stmt()
10362 if (!ast) { in zend_compile_stmt()
[all …]
H A Dzend_language_parser.y51 %destructor { zend_ast_destroy($$); } <ast>
89 %token <ast> T_LNUMBER "integer"
90 %token <ast> T_DNUMBER "floating-point number"
91 %token <ast> T_STRING "identifier"
94 %token <ast> T_NAME_QUALIFIED "namespaced name"
95 %token <ast> T_VARIABLE "variable"
96 %token <ast> T_INLINE_HTML
99 %token <ast> T_STRING_VARNAME "variable name"
100 %token <ast> T_NUM_STRING "number"
259 %type <ast> internal_functions_in_yacc
[all …]
H A Dzend_enum.c535 ast->kind = ZEND_AST_CONST_ENUM_INIT; in create_enum_case_ast()
536 ast->attr = 0; in create_enum_case_ast()
537 ast->lineno = 0; in create_enum_case_ast()
540 ast->child[0]->kind = ZEND_AST_ZVAL; in create_enum_case_ast()
541 ast->child[0]->attr = 0; in create_enum_case_ast()
544 Z_LINENO_P(zend_ast_get_zval(ast->child[0])) = 0; in create_enum_case_ast()
547 ast->child[1]->kind = ZEND_AST_ZVAL; in create_enum_case_ast()
548 ast->child[1]->attr = 0; in create_enum_case_ast()
555 ast->child[2]->kind = ZEND_AST_ZVAL; in create_enum_case_ast()
556 ast->child[2]->attr = 0; in create_enum_case_ast()
[all …]
H A Dzend_language_scanner.h58 zend_ast *ast; member
H A Dzend_language_scanner.l250 lex_state->ast = CG(ast); in zend_save_lexical_state()
293 CG(ast) = lex_state->ast; in zend_restore_lexical_state()
596 CG(ast) = NULL; in zend_compile()
613 zend_ast_process(CG(ast)); in zend_compile()
630 zend_ast_destroy(CG(ast)); in zend_compile()
665 zend_ast *ast; in zend_compile_string_to_ast() local
674 CG(ast) = NULL; in zend_compile_string_to_ast()
679 zend_ast_destroy(CG(ast)); in zend_compile_string_to_ast()
681 CG(ast) = NULL; in zend_compile_string_to_ast()
685 ast = CG(ast); in zend_compile_string_to_ast()
[all …]
H A Dzend_compile.h98 static zend_always_inline znode *zend_ast_get_znode(zend_ast *ast) { in zend_ast_get_znode() argument
99 return &((zend_ast_znode *) ast)->node; in zend_ast_get_znode()
122 zend_ast *ast; member
129 void zend_compile_top_stmt(zend_ast *ast);
826 zend_ast *zend_negate_num_string(zend_ast *ast);
834 bool zend_handle_encoding_declaration(zend_ast *ast);
H A Dzend_globals.h136 zend_ast *ast; member
H A Dzend_execute_API.c686 zend_ast *ast = Z_ASTVAL_P(p); in zval_update_constant_with_ctx() local
688 if (ast->kind == ZEND_AST_CONSTANT) { in zval_update_constant_with_ctx()
689 zend_string *name = zend_ast_get_constant_name(ast); in zval_update_constant_with_ctx()
690 zval *zv = zend_get_constant_ex(name, scope, ast->attr); in zval_update_constant_with_ctx()
709 zend_result result = zend_ast_evaluate_ex(&tmp, ast, scope, &short_circuited, ctx) != SUCCESS; in zval_update_constant_with_ctx()
H A Dzend_types.h324 zend_ast_ref *ast; member
1021 #define Z_AST(zval) (zval).value.ast
1226 #define ZVAL_AST(z, ast) do { \ argument
1228 Z_AST_P(__z) = ast; \
H A Dzend_inheritance.c973 zend_ast *ast = Z_ASTVAL_P(zv); in zend_get_function_declaration() local
974 if (ast->kind == ZEND_AST_CONSTANT) { in zend_get_function_declaration()
975 smart_str_append(&str, zend_ast_get_constant_name(ast)); in zend_get_function_declaration()
976 } else if (ast->kind == ZEND_AST_CLASS_CONST) { in zend_get_function_declaration()
977 smart_str_append(&str, zend_ast_get_str(ast->child[0])); in zend_get_function_declaration()
979 smart_str_append(&str, zend_ast_get_str(ast->child[1])); in zend_get_function_declaration()
H A Dzend_API.c5089 zend_ast *ast; in get_default_via_ast() local
5095 ast = zend_compile_string_to_ast(code, &ast_arena, ZSTR_EMPTY_ALLOC()); in get_default_via_ast()
5098 if (!ast) { in get_default_via_ast()
5102 zend_ast_list *statement_list = zend_ast_get_list(ast); in get_default_via_ast()
5117 zend_ast_destroy(ast); in get_default_via_ast()
/PHP-8.3/ext/opcache/
H A Dzend_persist_calc.c74 static void zend_persist_ast_calc(zend_ast *ast) in zend_persist_ast_calc() argument
78 if (ast->kind == ZEND_AST_ZVAL || ast->kind == ZEND_AST_CONSTANT) { in zend_persist_ast_calc()
80 zend_persist_zval_calc(&((zend_ast_zval*)(ast))->val); in zend_persist_ast_calc()
81 } else if (zend_ast_is_list(ast)) { in zend_persist_ast_calc()
82 zend_ast_list *list = zend_ast_get_list(ast); in zend_persist_ast_calc()
90 uint32_t children = zend_ast_get_num_children(ast); in zend_persist_ast_calc()
93 if (ast->child[i]) { in zend_persist_ast_calc()
94 zend_persist_ast_calc(ast->child[i]); in zend_persist_ast_calc()
H A Dzend_file_cache.c351 if (ast->kind == ZEND_AST_ZVAL || ast->kind == ZEND_AST_CONSTANT) {
353 } else if (zend_ast_is_list(ast)) {
366 if (ast->child[i] && !IS_SERIALIZED(ast->child[i])) {
367 SERIALIZE_PTR(ast->child[i]);
368 tmp = ast->child[i];
399 zend_ast_ref *ast; local
402 ast = Z_AST_P(zv);
403 UNSERIALIZE_PTR(ast);
1206 if (ast->kind == ZEND_AST_ZVAL || ast->kind == ZEND_AST_CONSTANT) {
1219 if (ast->child[i] && !IS_UNSERIALIZED(ast->child[i])) {
[all …]
H A Dzend_persist.c172 static zend_ast *zend_persist_ast(zend_ast *ast) in zend_persist_ast() argument
177 if (ast->kind == ZEND_AST_ZVAL || ast->kind == ZEND_AST_CONSTANT) { in zend_persist_ast()
178 zend_ast_zval *copy = zend_shared_memdup(ast, sizeof(zend_ast_zval)); in zend_persist_ast()
181 } else if (zend_ast_is_list(ast)) { in zend_persist_ast()
182 zend_ast_list *list = zend_ast_get_list(ast); in zend_persist_ast()
183 zend_ast_list *copy = zend_shared_memdup(ast, in zend_persist_ast()
192 uint32_t children = zend_ast_get_num_children(ast); in zend_persist_ast()
193 node = zend_shared_memdup(ast, zend_ast_size(children)); in zend_persist_ast()
/PHP-8.3/Zend/tests/type_declarations/
H A Dtyped_properties_022.phpt2 Test typed properties delay type check on ast
/PHP-8.3/Zend/Optimizer/
H A Dpass1.c176 zend_ast *ast = Z_ASTVAL_P(c); in zend_optimizer_pass1() local
177 if (ast->kind != ZEND_AST_CONSTANT in zend_optimizer_pass1()
178 || !zend_optimizer_get_persistent_constant(zend_ast_get_constant_name(ast), &result, 1) in zend_optimizer_pass1()
/PHP-8.3/sapi/phpdbg/
H A Dphpdbg_utils.c721 zend_ast *ast = Z_ASTVAL_P(zv); in phpdbg_short_zval_print() local
723 if (ast->kind == ZEND_AST_CONSTANT in phpdbg_short_zval_print()
724 || ast->kind == ZEND_AST_CONSTANT_CLASS in phpdbg_short_zval_print()
725 || ast->kind == ZEND_AST_CLASS_CONST) { in phpdbg_short_zval_print()
/PHP-8.3/ext/standard/tests/strings/
H A Dget_html_translation_table_basic6.phpt66 [*] => &ast;
H A Dget_html_translation_table_basic5.phpt515 [*] => &ast;
H A Dhtml_entity_decode_html5.phpt657 "&ast;",
2791 &ast; => * 2a
/PHP-8.3/ext/tokenizer/
H A Dtokenizer.c476 CG(ast) = NULL; in tokenize_parse()
488 zend_ast_destroy(CG(ast)); in tokenize_parse()
/PHP-8.3/ext/reflection/
H A Dphp_reflection.c2936 zend_ast *ast = Z_ASTVAL(default_value); in ZEND_METHOD() local
2937 RETVAL_BOOL(ast->kind == ZEND_AST_CONSTANT in ZEND_METHOD()
2938 || ast->kind == ZEND_AST_CONSTANT_CLASS in ZEND_METHOD()
2939 || ast->kind == ZEND_AST_CLASS_CONST); in ZEND_METHOD()
2972 zend_ast *ast = Z_ASTVAL(default_value); in ZEND_METHOD() local
2973 if (ast->kind == ZEND_AST_CONSTANT) { in ZEND_METHOD()
2974 RETVAL_STR_COPY(zend_ast_get_constant_name(ast)); in ZEND_METHOD()
2975 } else if (ast->kind == ZEND_AST_CONSTANT_CLASS) { in ZEND_METHOD()
2977 } else if (ast->kind == ZEND_AST_CLASS_CONST) { in ZEND_METHOD()
2978 zend_string *class_name = zend_ast_get_str(ast->child[0]); in ZEND_METHOD()
[all …]
/PHP-8.3/ext/mbstring/tests/
H A Dmb_detect_encoding.phpt333astá krůpěj kámen proráží.',

Completed in 153 milliseconds

12