Lines Matching refs:kind
49 ast->kind = ZEND_AST_ZNODE; in zend_ast_create_znode()
60 ast->kind = ZEND_AST_ZVAL; in zend_ast_create_zval_int()
95 ast->kind = ZEND_AST_CONSTANT; in zend_ast_create_constant()
113 zend_ast_kind kind, uint32_t flags, uint32_t start_lineno, zend_string *doc_comment, in zend_ast_create_decl() argument
119 ast->kind = kind; in zend_ast_create_decl()
136 ZEND_API zend_ast * ZEND_FASTCALL zend_ast_create_0(zend_ast_kind kind) { in zend_ast_create_0() argument
139 ZEND_ASSERT(kind >> ZEND_AST_NUM_CHILDREN_SHIFT == 0); in zend_ast_create_0()
141 ast->kind = kind; in zend_ast_create_0()
148 ZEND_API zend_ast * ZEND_FASTCALL zend_ast_create_1(zend_ast_kind kind, zend_ast *child) { in zend_ast_create_1() argument
152 ZEND_ASSERT(kind >> ZEND_AST_NUM_CHILDREN_SHIFT == 1); in zend_ast_create_1()
154 ast->kind = kind; in zend_ast_create_1()
167 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
171 ZEND_ASSERT(kind >> ZEND_AST_NUM_CHILDREN_SHIFT == 2); in zend_ast_create_2()
173 ast->kind = kind; in zend_ast_create_2()
189 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
193 ZEND_ASSERT(kind >> ZEND_AST_NUM_CHILDREN_SHIFT == 3); in zend_ast_create_3()
195 ast->kind = kind; in zend_ast_create_3()
214 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
218 ZEND_ASSERT(kind >> ZEND_AST_NUM_CHILDREN_SHIFT == 4); in zend_ast_create_4()
220 ast->kind = kind; in zend_ast_create_4()
242 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
246 ZEND_ASSERT(kind >> ZEND_AST_NUM_CHILDREN_SHIFT == 5); in zend_ast_create_5()
248 ast->kind = kind; in zend_ast_create_5()
274 zend_ast_kind kind, zend_ast_attr attr, va_list *va) { in zend_ast_create_va() argument
276 uint32_t children = kind >> ZEND_AST_NUM_CHILDREN_SHIFT; in zend_ast_create_va()
278 ast->kind = kind; in zend_ast_create_va()
293 ZEND_API zend_ast * zend_ast_create_n(unsigned kind, ...) { in zend_ast_create_n() argument
295 va_start(va, kind); in zend_ast_create_n()
296 zend_ast *ast = zend_ast_create_va(kind, 0, &va); in zend_ast_create_n()
302 zend_ast_kind kind, unsigned attr, ...) { in zend_ast_create_ex_n() argument
305 zend_ast *ast = zend_ast_create_va(kind, attr, &va); in zend_ast_create_ex_n()
310 ZEND_API zend_ast * ZEND_FASTCALL zend_ast_create_list_0(zend_ast_kind kind) { in zend_ast_create_list_0() argument
316 list->kind = kind; in zend_ast_create_list_0()
324 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
331 list->kind = kind; in zend_ast_create_list_1()
348 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
355 list->kind = kind; in zend_ast_create_list_2()
379 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
380 uint32_t i, children = kind >> ZEND_AST_NUM_CHILDREN_SHIFT; in zend_ast_create_from_va_list()
384 ast->kind = kind; in zend_ast_create_from_va_list()
405 ZEND_API zend_ast *zend_ast_create_ex(zend_ast_kind kind, zend_ast_attr attr, ...) { in zend_ast_create_ex() argument
410 ast = zend_ast_create_from_va_list(kind, attr, va); in zend_ast_create_ex()
416 ZEND_API zend_ast *zend_ast_create(zend_ast_kind kind, ...) { in zend_ast_create() argument
420 va_start(va, kind); in zend_ast_create()
421 ast = zend_ast_create_from_va_list(kind, 0, va); in zend_ast_create()
427 ZEND_API zend_ast *zend_ast_create_list(uint32_t init_children, zend_ast_kind kind, ...) { in zend_ast_create_list() argument
433 list->kind = kind; in zend_ast_create_list()
441 va_start(va, kind); in zend_ast_create_list()
460 if (op0->kind == ZEND_AST_ZVAL && op1->kind == ZEND_AST_ZVAL) { in zend_ast_create_concat_op()
579 switch (ast->kind) { in zend_ast_evaluate_inner()
602 binary_op_type op = ast->kind == ZEND_AST_GREATER in zend_ast_evaluate_inner()
769 if (elem->kind == ZEND_AST_UNPACK) { in zend_ast_evaluate_inner()
929 if (arg_ast->kind == ZEND_AST_NAMED_ARG) { in zend_ast_evaluate_inner()
1003 if (ast->kind == ZEND_AST_NULLSAFE_PROP && Z_TYPE(op1) == IS_NULL) { in zend_ast_evaluate_inner()
1071 if (ast->kind == ZEND_AST_ZVAL || ast->kind == ZEND_AST_CONSTANT) { in zend_ast_tree_size()
1098 if (ast->kind == ZEND_AST_ZVAL) { in zend_ast_tree_copy()
1100 new->kind = ZEND_AST_ZVAL; in zend_ast_tree_copy()
1105 } else if (ast->kind == ZEND_AST_CONSTANT) { in zend_ast_tree_copy()
1107 new->kind = ZEND_AST_CONSTANT; in zend_ast_tree_copy()
1116 new->kind = list->kind; in zend_ast_tree_copy()
1132 new->kind = ast->kind; in zend_ast_tree_copy()
1169 if (EXPECTED(ast->kind >= ZEND_AST_VAR)) { in zend_ast_destroy()
1177 } else if (EXPECTED(ast->kind == ZEND_AST_ZVAL)) { in zend_ast_destroy()
1190 } else if (EXPECTED(ast->kind == ZEND_AST_CONSTANT)) { in zend_ast_destroy()
1192 } else if (EXPECTED(ast->kind >= ZEND_AST_FUNC_DECL)) { in zend_ast_destroy()
1339 if (ast->kind == ZEND_AST_ZVAL) { in zend_ast_export_name()
1352 if (ast->kind == ZEND_AST_ZVAL) { in zend_ast_export_ns_name()
1414 if (ast->kind == ZEND_AST_ZVAL) { in zend_ast_export_var()
1421 } else if (ast->kind == ZEND_AST_VAR) { in zend_ast_export_var()
1450 if (ast->kind == ZEND_AST_ZVAL) { in zend_ast_export_encaps_list()
1455 } else if (ast->kind == ZEND_AST_VAR && in zend_ast_export_encaps_list()
1456 ast->child[0]->kind == ZEND_AST_ZVAL && in zend_ast_export_encaps_list()
1458 list->child[i + 1]->kind != ZEND_AST_ZVAL || in zend_ast_export_encaps_list()
1511 if (ast->kind == ZEND_AST_STMT_LIST || in zend_ast_export_stmt()
1512 ast->kind == ZEND_AST_TRAIT_ADAPTATIONS) { in zend_ast_export_stmt()
1524 switch (ast->kind) { in zend_ast_export_stmt()
1564 ZEND_ASSERT(ast->kind == ZEND_AST_IF_ELEM); in zend_ast_export_if_stmt()
1578 if (ast->child[1] && ast->child[1]->kind == ZEND_AST_IF) { in zend_ast_export_if_stmt()
1721 if (ast->kind == ZEND_AST_TYPE_UNION) { in zend_ast_export_type()
1731 if (ast->kind == ZEND_AST_TYPE_INTERSECTION) { in zend_ast_export_type()
1799 switch (ast->kind) { in zend_ast_export_ex()
1824 bool newlines = !(ast->kind == ZEND_AST_CLOSURE || ast->kind == ZEND_AST_ARROW_FUNC); in zend_ast_export_ex()
1839 if (decl->kind == ZEND_AST_ARROW_FUNC) { in zend_ast_export_ex()
1847 if (ast->kind != ZEND_AST_CLOSURE && ast->kind != ZEND_AST_ARROW_FUNC) { in zend_ast_export_ex()
1859 if (decl->kind == ZEND_AST_ARROW_FUNC) { in zend_ast_export_ex()
1861 if (body->kind == ZEND_AST_RETURN) { in zend_ast_export_ex()
1873 if (ast->kind != ZEND_AST_CLOSURE) { in zend_ast_export_ex()
2061 if (ast->child[0]->kind == ZEND_AST_ENCAPS_LIST) { in zend_ast_export_ex()
2065 ZEND_ASSERT(ast->child[0]->kind == ZEND_AST_ZVAL); in zend_ast_export_ex()
2150 smart_str_appends(str, ast->kind == ZEND_AST_NULLSAFE_PROP ? "?->" : "->"); in zend_ast_export_ex()
2255 if (ast->child[0]->kind == ZEND_AST_CLASS) { in zend_ast_export_ex()
2369 ZEND_ASSERT(ast->child[0]->kind == ZEND_AST_CONST_DECL); in zend_ast_export_ex()
2416 } else if (body->kind == ZEND_AST_PROPERTY_HOOK_SHORT_BODY) { in zend_ast_export_ex()
2506 smart_str_appends(str, ast->kind == ZEND_AST_NULLSAFE_METHOD_CALL ? "?->" : "->"); in zend_ast_export_ex()
2687 ZEND_ASSERT(attr->kind == ZEND_AST_ATTRIBUTE_LIST); in zend_ast_with_attributes()
2689 switch (ast->kind) { in zend_ast_with_attributes()