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()
116 zend_ast_kind kind, uint32_t flags, uint32_t start_lineno, zend_string *doc_comment, in zend_ast_create_decl() argument
122 ast->kind = kind; in zend_ast_create_decl()
140 ZEND_API zend_ast * ZEND_FASTCALL zend_ast_create_0(zend_ast_kind kind) { in zend_ast_create_0() argument
143 ZEND_ASSERT(kind >> ZEND_AST_NUM_CHILDREN_SHIFT == 0); in zend_ast_create_0()
145 ast->kind = kind; in zend_ast_create_0()
152 ZEND_API zend_ast * ZEND_FASTCALL zend_ast_create_1(zend_ast_kind kind, zend_ast *child) { in zend_ast_create_1() argument
156 ZEND_ASSERT(kind >> ZEND_AST_NUM_CHILDREN_SHIFT == 1); in zend_ast_create_1()
158 ast->kind = kind; in zend_ast_create_1()
171 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
175 ZEND_ASSERT(kind >> ZEND_AST_NUM_CHILDREN_SHIFT == 2); in zend_ast_create_2()
177 ast->kind = kind; in zend_ast_create_2()
193 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
197 ZEND_ASSERT(kind >> ZEND_AST_NUM_CHILDREN_SHIFT == 3); in zend_ast_create_3()
199 ast->kind = kind; in zend_ast_create_3()
218 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
222 ZEND_ASSERT(kind >> ZEND_AST_NUM_CHILDREN_SHIFT == 4); in zend_ast_create_4()
224 ast->kind = kind; in zend_ast_create_4()
246 ZEND_API zend_ast * ZEND_FASTCALL zend_ast_create_5(zend_ast_kind kind, zend_ast *child1, zend_ast … in zend_ast_create_5() argument
250 ZEND_ASSERT(kind >> ZEND_AST_NUM_CHILDREN_SHIFT == 5); in zend_ast_create_5()
252 ast->kind = kind; in zend_ast_create_5()
277 ZEND_API zend_ast * ZEND_FASTCALL zend_ast_create_list_0(zend_ast_kind kind) { in zend_ast_create_list_0() argument
283 list->kind = kind; in zend_ast_create_list_0()
291 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
298 list->kind = kind; in zend_ast_create_list_1()
315 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
322 list->kind = kind; in zend_ast_create_list_2()
346 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
347 uint32_t i, children = kind >> ZEND_AST_NUM_CHILDREN_SHIFT; in zend_ast_create_from_va_list()
351 ast->kind = kind; in zend_ast_create_from_va_list()
372 ZEND_API zend_ast *zend_ast_create_ex(zend_ast_kind kind, zend_ast_attr attr, ...) { in zend_ast_create_ex() argument
377 ast = zend_ast_create_from_va_list(kind, attr, va); in zend_ast_create_ex()
383 ZEND_API zend_ast *zend_ast_create(zend_ast_kind kind, ...) { in zend_ast_create() argument
387 va_start(va, kind); in zend_ast_create()
388 ast = zend_ast_create_from_va_list(kind, 0, va); in zend_ast_create()
394 ZEND_API zend_ast *zend_ast_create_list(uint32_t init_children, zend_ast_kind kind, ...) { in zend_ast_create_list() argument
400 list->kind = kind; in zend_ast_create_list()
408 va_start(va, kind); in zend_ast_create_list()
512 switch (ast->kind) { in zend_ast_evaluate()
535 binary_op_type op = ast->kind == ZEND_AST_GREATER in zend_ast_evaluate()
702 if (elem->kind == ZEND_AST_UNPACK) { in zend_ast_evaluate()
768 if (ast->kind == ZEND_AST_ZVAL || ast->kind == ZEND_AST_CONSTANT) { in zend_ast_tree_size()
795 if (ast->kind == ZEND_AST_ZVAL) { in zend_ast_tree_copy()
797 new->kind = ZEND_AST_ZVAL; in zend_ast_tree_copy()
801 } else if (ast->kind == ZEND_AST_CONSTANT) { in zend_ast_tree_copy()
803 new->kind = ZEND_AST_CONSTANT; in zend_ast_tree_copy()
811 new->kind = list->kind; in zend_ast_tree_copy()
826 new->kind = ast->kind; in zend_ast_tree_copy()
862 if (EXPECTED(ast->kind >= ZEND_AST_VAR)) { in zend_ast_destroy()
870 } else if (EXPECTED(ast->kind == ZEND_AST_ZVAL)) { in zend_ast_destroy()
883 } else if (EXPECTED(ast->kind == ZEND_AST_CONSTANT)) { in zend_ast_destroy()
885 } else if (EXPECTED(ast->kind >= ZEND_AST_FUNC_DECL)) { in zend_ast_destroy()
1032 if (ast->kind == ZEND_AST_ZVAL) { in zend_ast_export_name()
1045 if (ast->kind == ZEND_AST_ZVAL) { in zend_ast_export_ns_name()
1107 if (ast->kind == ZEND_AST_ZVAL) { in zend_ast_export_var()
1114 } else if (ast->kind == ZEND_AST_VAR) { in zend_ast_export_var()
1143 if (ast->kind == ZEND_AST_ZVAL) { in zend_ast_export_encaps_list()
1148 } else if (ast->kind == ZEND_AST_VAR && in zend_ast_export_encaps_list()
1149 ast->child[0]->kind == ZEND_AST_ZVAL && in zend_ast_export_encaps_list()
1151 list->child[i + 1]->kind != ZEND_AST_ZVAL || in zend_ast_export_encaps_list()
1204 if (ast->kind == ZEND_AST_STMT_LIST || in zend_ast_export_stmt()
1205 ast->kind == ZEND_AST_TRAIT_ADAPTATIONS) { in zend_ast_export_stmt()
1217 switch (ast->kind) { in zend_ast_export_stmt()
1249 ZEND_ASSERT(ast->kind == ZEND_AST_IF_ELEM); in zend_ast_export_if_stmt()
1263 if (ast->child[1] && ast->child[1]->kind == ZEND_AST_IF) { in zend_ast_export_if_stmt()
1407 if (ast->kind == ZEND_AST_TYPE_UNION) { in zend_ast_export_type()
1475 switch (ast->kind) { in zend_ast_export_ex()
1500 zend_bool newlines = !(ast->kind == ZEND_AST_CLOSURE || ast->kind == ZEND_AST_ARROW_FUNC); in zend_ast_export_ex()
1515 if (decl->kind == ZEND_AST_ARROW_FUNC) { in zend_ast_export_ex()
1523 if (ast->kind != ZEND_AST_CLOSURE && ast->kind != ZEND_AST_ARROW_FUNC) { in zend_ast_export_ex()
1535 if (decl->kind == ZEND_AST_ARROW_FUNC) { in zend_ast_export_ex()
1536 ZEND_ASSERT(decl->child[2]->kind == ZEND_AST_RETURN); in zend_ast_export_ex()
1546 if (ast->kind != ZEND_AST_CLOSURE) { in zend_ast_export_ex()
1717 if (ast->child[0]->kind == ZEND_AST_ENCAPS_LIST) { in zend_ast_export_ex()
1721 ZEND_ASSERT(ast->child[0]->kind == ZEND_AST_ZVAL); in zend_ast_export_ex()
1806 smart_str_appends(str, ast->kind == ZEND_AST_NULLSAFE_PROP ? "?->" : "->"); in zend_ast_export_ex()
1889 if (ast->child[0]->kind == ZEND_AST_CLASS) { in zend_ast_export_ex()
2002 ZEND_ASSERT(ast->child[0]->kind == ZEND_AST_CONST_DECL); in zend_ast_export_ex()
2086 smart_str_appends(str, ast->kind == ZEND_AST_NULLSAFE_METHOD_CALL ? "?->" : "->"); in zend_ast_export_ex()
2256 ZEND_ASSERT(attr->kind == ZEND_AST_ATTRIBUTE_LIST); in zend_ast_with_attributes()
2258 switch (ast->kind) { in zend_ast_with_attributes()