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()
137 ZEND_API zend_ast * ZEND_FASTCALL zend_ast_create_0(zend_ast_kind kind) { in zend_ast_create_0() argument
140 ZEND_ASSERT(kind >> ZEND_AST_NUM_CHILDREN_SHIFT == 0); in zend_ast_create_0()
142 ast->kind = kind; in zend_ast_create_0()
149 ZEND_API zend_ast * ZEND_FASTCALL zend_ast_create_1(zend_ast_kind kind, zend_ast *child) { in zend_ast_create_1() argument
153 ZEND_ASSERT(kind >> ZEND_AST_NUM_CHILDREN_SHIFT == 1); in zend_ast_create_1()
155 ast->kind = kind; in zend_ast_create_1()
168 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
172 ZEND_ASSERT(kind >> ZEND_AST_NUM_CHILDREN_SHIFT == 2); in zend_ast_create_2()
174 ast->kind = kind; in zend_ast_create_2()
190 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
194 ZEND_ASSERT(kind >> ZEND_AST_NUM_CHILDREN_SHIFT == 3); in zend_ast_create_3()
196 ast->kind = kind; in zend_ast_create_3()
215 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
219 ZEND_ASSERT(kind >> ZEND_AST_NUM_CHILDREN_SHIFT == 4); in zend_ast_create_4()
221 ast->kind = kind; in zend_ast_create_4()
243 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
247 ZEND_ASSERT(kind >> ZEND_AST_NUM_CHILDREN_SHIFT == 5); in zend_ast_create_5()
249 ast->kind = kind; in zend_ast_create_5()
274 ZEND_API zend_ast * ZEND_FASTCALL zend_ast_create_list_0(zend_ast_kind kind) { in zend_ast_create_list_0() argument
280 list->kind = kind; in zend_ast_create_list_0()
288 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
295 list->kind = kind; in zend_ast_create_list_1()
312 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
319 list->kind = kind; in zend_ast_create_list_2()
343 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
344 uint32_t i, children = kind >> ZEND_AST_NUM_CHILDREN_SHIFT; in zend_ast_create_from_va_list()
348 ast->kind = kind; in zend_ast_create_from_va_list()
369 ZEND_API zend_ast *zend_ast_create_ex(zend_ast_kind kind, zend_ast_attr attr, ...) { in zend_ast_create_ex() argument
374 ast = zend_ast_create_from_va_list(kind, attr, va); in zend_ast_create_ex()
380 ZEND_API zend_ast *zend_ast_create(zend_ast_kind kind, ...) { in zend_ast_create() argument
384 va_start(va, kind); in zend_ast_create()
385 ast = zend_ast_create_from_va_list(kind, 0, va); in zend_ast_create()
391 ZEND_API zend_ast *zend_ast_create_list(uint32_t init_children, zend_ast_kind kind, ...) { in zend_ast_create_list() argument
397 list->kind = kind; in zend_ast_create_list()
405 va_start(va, kind); in zend_ast_create_list()
492 switch (ast->kind) { in zend_ast_evaluate()
515 binary_op_type op = ast->kind == ZEND_AST_GREATER in zend_ast_evaluate()
682 if (elem->kind == ZEND_AST_UNPACK) { in zend_ast_evaluate()
805 if (arg_ast->kind == ZEND_AST_NAMED_ARG) { in zend_ast_evaluate()
879 if (ast->kind == ZEND_AST_ZVAL || ast->kind == ZEND_AST_CONSTANT) { in zend_ast_tree_size()
906 if (ast->kind == ZEND_AST_ZVAL) { in zend_ast_tree_copy()
908 new->kind = ZEND_AST_ZVAL; in zend_ast_tree_copy()
912 } else if (ast->kind == ZEND_AST_CONSTANT) { in zend_ast_tree_copy()
914 new->kind = ZEND_AST_CONSTANT; in zend_ast_tree_copy()
922 new->kind = list->kind; in zend_ast_tree_copy()
937 new->kind = ast->kind; in zend_ast_tree_copy()
973 if (EXPECTED(ast->kind >= ZEND_AST_VAR)) { in zend_ast_destroy()
981 } else if (EXPECTED(ast->kind == ZEND_AST_ZVAL)) { in zend_ast_destroy()
994 } else if (EXPECTED(ast->kind == ZEND_AST_CONSTANT)) { in zend_ast_destroy()
996 } else if (EXPECTED(ast->kind >= ZEND_AST_FUNC_DECL)) { in zend_ast_destroy()
1143 if (ast->kind == ZEND_AST_ZVAL) { in zend_ast_export_name()
1156 if (ast->kind == ZEND_AST_ZVAL) { in zend_ast_export_ns_name()
1218 if (ast->kind == ZEND_AST_ZVAL) { in zend_ast_export_var()
1225 } else if (ast->kind == ZEND_AST_VAR) { in zend_ast_export_var()
1254 if (ast->kind == ZEND_AST_ZVAL) { in zend_ast_export_encaps_list()
1259 } else if (ast->kind == ZEND_AST_VAR && in zend_ast_export_encaps_list()
1260 ast->child[0]->kind == ZEND_AST_ZVAL && in zend_ast_export_encaps_list()
1262 list->child[i + 1]->kind != ZEND_AST_ZVAL || in zend_ast_export_encaps_list()
1315 if (ast->kind == ZEND_AST_STMT_LIST || in zend_ast_export_stmt()
1316 ast->kind == ZEND_AST_TRAIT_ADAPTATIONS) { in zend_ast_export_stmt()
1328 switch (ast->kind) { in zend_ast_export_stmt()
1360 ZEND_ASSERT(ast->kind == ZEND_AST_IF_ELEM); in zend_ast_export_if_stmt()
1374 if (ast->child[1] && ast->child[1]->kind == ZEND_AST_IF) { in zend_ast_export_if_stmt()
1507 if (ast->kind == ZEND_AST_TYPE_UNION) { in zend_ast_export_type()
1517 if (ast->kind == ZEND_AST_TYPE_INTERSECTION) { in zend_ast_export_type()
1585 switch (ast->kind) { in zend_ast_export_ex()
1610 bool newlines = !(ast->kind == ZEND_AST_CLOSURE || ast->kind == ZEND_AST_ARROW_FUNC); in zend_ast_export_ex()
1625 if (decl->kind == ZEND_AST_ARROW_FUNC) { in zend_ast_export_ex()
1633 if (ast->kind != ZEND_AST_CLOSURE && ast->kind != ZEND_AST_ARROW_FUNC) { in zend_ast_export_ex()
1645 if (decl->kind == ZEND_AST_ARROW_FUNC) { in zend_ast_export_ex()
1646 ZEND_ASSERT(decl->child[2]->kind == ZEND_AST_RETURN); in zend_ast_export_ex()
1656 if (ast->kind != ZEND_AST_CLOSURE) { in zend_ast_export_ex()
1836 if (ast->child[0]->kind == ZEND_AST_ENCAPS_LIST) { in zend_ast_export_ex()
1840 ZEND_ASSERT(ast->child[0]->kind == ZEND_AST_ZVAL); in zend_ast_export_ex()
1925 smart_str_appends(str, ast->kind == ZEND_AST_NULLSAFE_PROP ? "?->" : "->"); in zend_ast_export_ex()
2024 if (ast->child[0]->kind == ZEND_AST_CLASS) { in zend_ast_export_ex()
2138 ZEND_ASSERT(ast->child[0]->kind == ZEND_AST_CONST_DECL); in zend_ast_export_ex()
2222 smart_str_appends(str, ast->kind == ZEND_AST_NULLSAFE_METHOD_CALL ? "?->" : "->"); in zend_ast_export_ex()
2403 ZEND_ASSERT(attr->kind == ZEND_AST_ATTRIBUTE_LIST); in zend_ast_with_attributes()
2405 switch (ast->kind) { in zend_ast_with_attributes()