Home
last modified time | relevance | path

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

12

/php-src/Zend/
H A Dzend_ast.c146 return ast; in zend_ast_create_0()
165 return ast; in zend_ast_create_1()
187 return ast; in zend_ast_create_2()
445 ast = zend_ast_list_add(ast, child); in zend_ast_create_list()
1190 ast = ast->child[0]; in zend_ast_destroy()
2042 ast = ast->child[0]; in zend_ast_export_ex()
2092 ast = ast->child[0]; in zend_ast_export_ex()
2176 ast = ast->child[0]; in zend_ast_export_ex()
2512 ast = ast->child[1]; in zend_ast_export_ex()
2677 ast = ast->child[0]; in zend_ast_export_ex()
[all …]
H A Dzend_ast.h258 ast->attr = attr; in zend_ast_create_ex_0()
259 return ast; in zend_ast_create_ex_0()
263 ast->attr = attr; in zend_ast_create_ex_1()
264 return ast; in zend_ast_create_ex_1()
268 ast->attr = attr; in zend_ast_create_ex_2()
269 return ast; in zend_ast_create_ex_2()
273 ast->attr = attr; in zend_ast_create_ex_3()
274 return ast; in zend_ast_create_ex_3()
279 return ast; in zend_ast_create_ex_4()
284 return ast; in zend_ast_create_ex_5()
[all …]
H A Dzend_compile.c2156 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()
9430 inline_use->attr = ast->attr ? ast->attr : use->attr; in zend_compile_group_use()
11263 if (ast == NULL || ast->kind == ZEND_AST_ZVAL) { in zend_compile_const_expr()
11324 if (!ast) { in zend_compile_top_stmt()
11356 if (!ast) { in zend_compile_stmt()
[all …]
H A Dzend_language_parser.y51 %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 Dzend_enum.c542 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 Dzend_language_scanner.h60 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.h101 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 Dzend_globals.h138 zend_ast *ast; member
H A Dzend_execute_API.c728 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 Dzend_types.h324 zend_ast_ref *ast; member
1028 #define Z_AST(zval) (zval).value.ast
1233 #define ZVAL_AST(z, ast) do { \ argument
1235 Z_AST_P(__z) = ast; \
H A Dzend_inheritance.c988 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/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()
89 } else if (ast->kind == ZEND_AST_OP_ARRAY) { in zend_persist_ast_calc()
91 zend_persist_op_array_calc(&((zend_ast_zval*)(ast))->val); in zend_persist_ast_calc()
93 uint32_t children = zend_ast_get_num_children(ast); in zend_persist_ast_calc()
96 if (ast->child[i]) { in zend_persist_ast_calc()
97 zend_persist_ast_calc(ast->child[i]); in zend_persist_ast_calc()
H A Dzend_file_cache.c354 if (ast->kind == ZEND_AST_ZVAL || ast->kind == ZEND_AST_CONSTANT) {
356 } else if (zend_ast_is_list(ast)) {
372 if (ast->child[i] && !IS_SERIALIZED(ast->child[i])) {
373 SERIALIZE_PTR(ast->child[i]);
374 tmp = ast->child[i];
405 zend_ast_ref *ast; local
408 ast = Z_AST_P(zv);
409 UNSERIALIZE_PTR(ast);
1238 if (ast->kind == ZEND_AST_ZVAL || ast->kind == ZEND_AST_CONSTANT) {
1254 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()
191 } else if (ast->kind == ZEND_AST_OP_ARRAY) { in zend_persist_ast()
192 zend_ast_zval *copy = zend_shared_memdup(ast, sizeof(zend_ast_zval)); in zend_persist_ast()
196 uint32_t children = zend_ast_get_num_children(ast); in zend_persist_ast()
197 node = zend_shared_memdup(ast, zend_ast_size(children)); in zend_persist_ast()
/php-src/Zend/tests/type_declarations/
H A Dtyped_properties_022.phpt2 Test typed properties delay type check on ast
/php-src/Zend/tests/asymmetric_visibility/
H A Dast_printing.phpt2 private(set) protected(set) ast printing
/php-src/Zend/Optimizer/
H A Dpass1.c172 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 Dphpdbg_utils.c722 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 Dzval.rst54 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 Dget_html_translation_table_basic6.phpt66 [*] => &ast;
H A Dget_html_translation_table_basic5.phpt515 [*] => &ast;
/php-src/ext/tokenizer/
H A Dtokenizer.c475 CG(ast) = NULL; in tokenize_parse()
487 zend_ast_destroy(CG(ast)); in tokenize_parse()
/php-src/ext/reflection/
H A Dphp_reflection.c2909 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 Dhigh-level-overview.rst31 |> parser -- ast

Completed in 170 milliseconds

12