/php-src/Zend/ |
H A D | zend_ast.c | 145 return ast; in zend_ast_create_0() 164 return ast; in zend_ast_create_1() 186 return ast; in zend_ast_create_2() 444 ast = zend_ast_list_add(ast, child); in zend_ast_create_list() 1175 ast = ast->child[0]; in zend_ast_destroy() 1987 ast = ast->child[0]; in zend_ast_export_ex() 2037 ast = ast->child[0]; in zend_ast_export_ex() 2121 ast = ast->child[0]; in zend_ast_export_ex() 2499 ast = ast->child[1]; in zend_ast_export_ex() 2656 ast = ast->child[0]; in zend_ast_export_ex() [all …]
|
H A D | zend_ast.h | 257 ast->attr = attr; in zend_ast_create_ex_0() 258 return ast; in zend_ast_create_ex_0() 262 ast->attr = attr; in zend_ast_create_ex_1() 263 return ast; in zend_ast_create_ex_1() 267 ast->attr = attr; in zend_ast_create_ex_2() 268 return ast; in zend_ast_create_ex_2() 272 ast->attr = attr; in zend_ast_create_ex_3() 273 return ast; in zend_ast_create_ex_3() 278 return ast; in zend_ast_create_ex_4() 283 return ast; in zend_ast_create_ex_5() [all …]
|
H A D | zend_compile.c | 2156 return ast; in zend_negate_num_string() 2543 || ast->kind == ZEND_AST_ISSET || ast->kind == ZEND_AST_EMPTY; in zend_short_circuiting_commit() 2762 return zend_is_variable(ast) || zend_is_call(ast); in zend_is_variable_or_call() 2780 ast = ast->child[0]; in zend_can_write_to_variable() 5989 if (!ast) { in zend_compile_expr_list() 7893 if (!ast) { in find_implicit_binds_recursively() 9408 inline_use->attr = ast->attr ? ast->attr : use->attr; in zend_compile_group_use() 11217 if (ast == NULL || ast->kind == ZEND_AST_ZVAL) { in zend_compile_const_expr() 11275 if (!ast) { in zend_compile_top_stmt() 11307 if (!ast) { in zend_compile_stmt() [all …]
|
H A D | zend_language_parser.y | 51 %destructor { zend_ast_destroy($$); } <ast> 89 %token <ast> T_LNUMBER "integer" 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" 263 %type <ast> internal_functions_in_yacc 276 %type <ast> lexical_var_list encaps_list [all …]
|
H A D | zend_enum.c | 542 ast->kind = ZEND_AST_CONST_ENUM_INIT; in create_enum_case_ast() 543 ast->attr = 0; in create_enum_case_ast() 544 ast->lineno = 0; in create_enum_case_ast() 547 ast->child[0]->kind = ZEND_AST_ZVAL; in create_enum_case_ast() 548 ast->child[0]->attr = 0; in create_enum_case_ast() 551 Z_LINENO_P(zend_ast_get_zval(ast->child[0])) = 0; in create_enum_case_ast() 554 ast->child[1]->kind = ZEND_AST_ZVAL; in create_enum_case_ast() 555 ast->child[1]->attr = 0; in create_enum_case_ast() 562 ast->child[2]->kind = ZEND_AST_ZVAL; in create_enum_case_ast() 563 ast->child[2]->attr = 0; in create_enum_case_ast() [all …]
|
H A D | zend_language_scanner.h | 60 zend_ast *ast; member
|
H A D | zend_language_scanner.l | 250 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 D | zend_compile.h | 101 static zend_always_inline znode *zend_ast_get_znode(zend_ast *ast) { in zend_ast_get_znode() argument 102 return &((zend_ast_znode *) ast)->node; in zend_ast_get_znode() 125 zend_ast *ast; member 132 void zend_compile_top_stmt(zend_ast *ast); 901 zend_ast *zend_negate_num_string(zend_ast *ast); 909 bool zend_handle_encoding_declaration(zend_ast *ast);
|
H A D | zend_globals.h | 138 zend_ast *ast; member
|
H A D | zend_execute_API.c | 728 zend_ast *ast = Z_ASTVAL_P(p); in zval_update_constant_with_ctx() local 730 if (ast->kind == ZEND_AST_CONSTANT) { in zval_update_constant_with_ctx() 731 zend_string *name = zend_ast_get_constant_name(ast); in zval_update_constant_with_ctx() 732 zval *zv = zend_get_constant_ex(name, scope, ast->attr); in zval_update_constant_with_ctx() 751 zend_result result = zend_ast_evaluate_ex(&tmp, ast, scope, &short_circuited, ctx) != SUCCESS; in zval_update_constant_with_ctx()
|
H A D | zend_types.h | 324 zend_ast_ref *ast; member 1025 #define Z_AST(zval) (zval).value.ast 1230 #define ZVAL_AST(z, ast) do { \ argument 1232 Z_AST_P(__z) = ast; \
|
H A D | zend_inheritance.c | 988 zend_ast *ast = Z_ASTVAL_P(zv); in zend_get_function_declaration() local 989 if (ast->kind == ZEND_AST_CONSTANT) { in zend_get_function_declaration() 990 smart_str_append(&str, zend_ast_get_constant_name(ast)); in zend_get_function_declaration() 991 } else if (ast->kind == ZEND_AST_CLASS_CONST) { in zend_get_function_declaration() 992 smart_str_append(&str, zend_ast_get_str(ast->child[0])); in zend_get_function_declaration() 994 smart_str_append(&str, zend_ast_get_str(ast->child[1])); in zend_get_function_declaration()
|
/php-src/Zend/tests/type_declarations/ |
H A D | typed_properties_022.phpt | 2 Test typed properties delay type check on ast
|
/php-src/ext/opcache/ |
H A D | zend_persist_calc.c | 74 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 D | zend_file_cache.c | 354 if (ast->kind == ZEND_AST_ZVAL || ast->kind == ZEND_AST_CONSTANT) { 356 } else if (zend_ast_is_list(ast)) { 369 if (ast->child[i] && !IS_SERIALIZED(ast->child[i])) { 370 SERIALIZE_PTR(ast->child[i]); 371 tmp = ast->child[i]; 402 zend_ast_ref *ast; local 405 ast = Z_AST_P(zv); 406 UNSERIALIZE_PTR(ast); 1231 if (ast->kind == ZEND_AST_ZVAL || ast->kind == ZEND_AST_CONSTANT) { 1244 if (ast->child[i] && !IS_UNSERIALIZED(ast->child[i])) { [all …]
|
H A D | zend_persist.c | 172 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-src/Zend/tests/asymmetric_visibility/ |
H A D | ast_printing.phpt | 2 private(set) protected(set) ast printing
|
/php-src/Zend/Optimizer/ |
H A D | pass1.c | 172 zend_ast *ast = Z_ASTVAL_P(c); in zend_optimizer_pass1() local 173 if (ast->kind != ZEND_AST_CONSTANT in zend_optimizer_pass1() 174 || !zend_optimizer_get_persistent_constant(zend_ast_get_constant_name(ast), &result, 1) in zend_optimizer_pass1()
|
/php-src/sapi/phpdbg/ |
H A D | phpdbg_utils.c | 722 zend_ast *ast = Z_ASTVAL_P(zv); in phpdbg_short_zval_print() local 724 if (ast->kind == ZEND_AST_CONSTANT in phpdbg_short_zval_print() 725 || ast->kind == ZEND_AST_CONSTANT_CLASS in phpdbg_short_zval_print() 726 || ast->kind == ZEND_AST_CLASS_CONST) { in phpdbg_short_zval_print()
|
/php-src/docs/source/core/data-structures/ |
H A D | zval.rst | 54 zend_ast_ref *ast; 105 uint32_t lineno; /* line number (for ast nodes) */ 179 on ASTs. When this flag is set, the ``zval.value.ast`` union member is set accordingly.
|
/php-src/ext/standard/tests/strings/ |
H A D | get_html_translation_table_basic6.phpt | 66 [*] => *
|
H A D | get_html_translation_table_basic5.phpt | 515 [*] => *
|
/php-src/ext/tokenizer/ |
H A D | tokenizer.c | 475 CG(ast) = NULL; in tokenize_parse() 487 zend_ast_destroy(CG(ast)); in tokenize_parse()
|
/php-src/ext/reflection/ |
H A D | php_reflection.c | 2909 zend_ast *ast = Z_ASTVAL(default_value); in ZEND_METHOD() local 2910 RETVAL_BOOL(ast->kind == ZEND_AST_CONSTANT in ZEND_METHOD() 2911 || ast->kind == ZEND_AST_CONSTANT_CLASS in ZEND_METHOD() 2912 || ast->kind == ZEND_AST_CLASS_CONST); in ZEND_METHOD() 2943 zend_ast *ast = Z_ASTVAL(default_value); in ZEND_METHOD() local 2944 if (ast->kind == ZEND_AST_CONSTANT) { in ZEND_METHOD() 2945 RETVAL_STR_COPY(zend_ast_get_constant_name(ast)); in ZEND_METHOD() 2946 } else if (ast->kind == ZEND_AST_CONSTANT_CLASS) { in ZEND_METHOD() 2948 } else if (ast->kind == ZEND_AST_CLASS_CONST) { in ZEND_METHOD() 2949 zend_string *class_name = zend_ast_get_str(ast->child[0]); in ZEND_METHOD() [all …]
|
/php-src/docs/source/introduction/ |
H A D | high-level-overview.rst | 31 |> parser -- ast
|