Lines Matching refs:kind
52 ast->kind = ZEND_AST_ZNODE; in zend_ast_create_znode()
63 ast->kind = ZEND_AST_ZVAL; in zend_ast_create_zval_int()
98 ast->kind = ZEND_AST_CONSTANT; in zend_ast_create_constant()
106 zend_ast_kind kind, uint32_t flags, uint32_t start_lineno, zend_string *doc_comment, in zend_ast_create_decl() argument
112 ast->kind = kind; in zend_ast_create_decl()
129 ZEND_API zend_ast * ZEND_FASTCALL zend_ast_create_0(zend_ast_kind kind) { in zend_ast_create_0() argument
132 ZEND_ASSERT(kind >> ZEND_AST_NUM_CHILDREN_SHIFT == 0); in zend_ast_create_0()
134 ast->kind = kind; in zend_ast_create_0()
141 ZEND_API zend_ast * ZEND_FASTCALL zend_ast_create_1(zend_ast_kind kind, zend_ast *child) { in zend_ast_create_1() argument
145 ZEND_ASSERT(kind >> ZEND_AST_NUM_CHILDREN_SHIFT == 1); in zend_ast_create_1()
147 ast->kind = kind; in zend_ast_create_1()
161 ZEND_API zend_ast * ZEND_FASTCALL zend_ast_create_2(zend_ast_kind kind, zend_ast *child1, zend_ast … in zend_ast_create_2() argument
165 ZEND_ASSERT(kind >> ZEND_AST_NUM_CHILDREN_SHIFT == 2); in zend_ast_create_2()
167 ast->kind = kind; in zend_ast_create_2()
183 ZEND_API zend_ast * ZEND_FASTCALL zend_ast_create_3(zend_ast_kind kind, zend_ast *child1, zend_ast … in zend_ast_create_3() argument
187 ZEND_ASSERT(kind >> ZEND_AST_NUM_CHILDREN_SHIFT == 3); in zend_ast_create_3()
189 ast->kind = kind; in zend_ast_create_3()
208 ZEND_API zend_ast * ZEND_FASTCALL zend_ast_create_4(zend_ast_kind kind, zend_ast *child1, zend_ast … in zend_ast_create_4() argument
212 ZEND_ASSERT(kind >> ZEND_AST_NUM_CHILDREN_SHIFT == 4); in zend_ast_create_4()
214 ast->kind = kind; in zend_ast_create_4()
236 ZEND_API zend_ast * ZEND_FASTCALL zend_ast_create_list_0(zend_ast_kind kind) { in zend_ast_create_list_0() argument
242 list->kind = kind; in zend_ast_create_list_0()
250 ZEND_API zend_ast * ZEND_FASTCALL zend_ast_create_list_1(zend_ast_kind kind, zend_ast *child) { in zend_ast_create_list_1() argument
257 list->kind = kind; in zend_ast_create_list_1()
274 ZEND_API zend_ast * ZEND_FASTCALL zend_ast_create_list_2(zend_ast_kind kind, zend_ast *child1, zend… in zend_ast_create_list_2() argument
281 list->kind = kind; in zend_ast_create_list_2()
305 static zend_ast *zend_ast_create_from_va_list(zend_ast_kind kind, zend_ast_attr attr, va_list va) { in zend_ast_create_from_va_list() argument
306 uint32_t i, children = kind >> ZEND_AST_NUM_CHILDREN_SHIFT; in zend_ast_create_from_va_list()
310 ast->kind = kind; in zend_ast_create_from_va_list()
331 ZEND_API zend_ast *zend_ast_create_ex(zend_ast_kind kind, zend_ast_attr attr, ...) { in zend_ast_create_ex() argument
336 ast = zend_ast_create_from_va_list(kind, attr, va); in zend_ast_create_ex()
342 ZEND_API zend_ast *zend_ast_create(zend_ast_kind kind, ...) { in zend_ast_create() argument
346 va_start(va, kind); in zend_ast_create()
347 ast = zend_ast_create_from_va_list(kind, 0, va); in zend_ast_create()
353 ZEND_API zend_ast *zend_ast_create_list(uint32_t init_children, zend_ast_kind kind, ...) { in zend_ast_create_list() argument
359 list->kind = kind; in zend_ast_create_list()
367 va_start(va, kind); in zend_ast_create_list()
444 switch (ast->kind) { in zend_ast_evaluate()
467 binary_op_type op = ast->kind == ZEND_AST_GREATER in zend_ast_evaluate()
668 if (ast->kind == ZEND_AST_ZVAL || ast->kind == ZEND_AST_CONSTANT) { in zend_ast_tree_size()
695 if (ast->kind == ZEND_AST_ZVAL) { in zend_ast_tree_copy()
697 new->kind = ZEND_AST_ZVAL; in zend_ast_tree_copy()
701 } else if (ast->kind == ZEND_AST_CONSTANT) { in zend_ast_tree_copy()
703 new->kind = ZEND_AST_CONSTANT; in zend_ast_tree_copy()
711 new->kind = list->kind; in zend_ast_tree_copy()
726 new->kind = ast->kind; in zend_ast_tree_copy()
762 if (EXPECTED(ast->kind >= ZEND_AST_VAR)) { in zend_ast_destroy()
770 } else if (EXPECTED(ast->kind == ZEND_AST_ZVAL)) { in zend_ast_destroy()
783 } else if (EXPECTED(ast->kind == ZEND_AST_CONSTANT)) { in zend_ast_destroy()
785 } else if (EXPECTED(ast->kind >= ZEND_AST_FUNC_DECL)) { in zend_ast_destroy()
930 if (ast->kind == ZEND_AST_ZVAL) { in zend_ast_export_name()
943 if (ast->kind == ZEND_AST_ZVAL) { in zend_ast_export_ns_name()
1005 if (ast->kind == ZEND_AST_ZVAL) { in zend_ast_export_var()
1012 } else if (ast->kind == ZEND_AST_VAR) { in zend_ast_export_var()
1041 if (ast->kind == ZEND_AST_ZVAL) { in zend_ast_export_encaps_list()
1046 } else if (ast->kind == ZEND_AST_VAR && in zend_ast_export_encaps_list()
1047 ast->child[0]->kind == ZEND_AST_ZVAL && in zend_ast_export_encaps_list()
1049 list->child[i + 1]->kind != ZEND_AST_ZVAL || in zend_ast_export_encaps_list()
1102 if (ast->kind == ZEND_AST_STMT_LIST || in zend_ast_export_stmt()
1103 ast->kind == ZEND_AST_TRAIT_ADAPTATIONS) { in zend_ast_export_stmt()
1115 switch (ast->kind) { in zend_ast_export_stmt()
1147 ZEND_ASSERT(ast->kind == ZEND_AST_IF_ELEM); in zend_ast_export_if_stmt()
1161 if (ast->child[1] && ast->child[1]->kind == ZEND_AST_IF) { in zend_ast_export_if_stmt()
1301 switch (ast->kind) { in zend_ast_export_ex()
1344 if (ast->kind != ZEND_AST_CLOSURE) { in zend_ast_export_ex()
1363 if (ast->kind != ZEND_AST_CLOSURE) { in zend_ast_export_ex()
1507 if (ast->child[0]->kind == ZEND_AST_ENCAPS_LIST) { in zend_ast_export_ex()
1511 ZEND_ASSERT(ast->child[0]->kind == ZEND_AST_ZVAL); in zend_ast_export_ex()
1673 if (ast->child[0]->kind == ZEND_AST_CLASS) { in zend_ast_export_ex()
1763 ZEND_ASSERT(ast->child[0]->kind == ZEND_AST_CONST_DECL); in zend_ast_export_ex()