Lines Matching refs:kind

53 	ast->kind = ZEND_AST_ZNODE;  in zend_ast_create_znode()
64 ast->kind = ZEND_AST_ZVAL; in zend_ast_create_zval_with_lineno()
76 zend_ast_kind kind, uint32_t flags, uint32_t start_lineno, zend_string *doc_comment, in zend_ast_create_decl() argument
82 ast->kind = kind; in zend_ast_create_decl()
98 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
99 uint32_t i, children = kind >> ZEND_AST_NUM_CHILDREN_SHIFT; in zend_ast_create_from_va_list()
103 ast->kind = kind; in zend_ast_create_from_va_list()
124 ZEND_API zend_ast *zend_ast_create_ex(zend_ast_kind kind, zend_ast_attr attr, ...) { in zend_ast_create_ex() argument
129 ast = zend_ast_create_from_va_list(kind, attr, va); in zend_ast_create_ex()
135 ZEND_API zend_ast *zend_ast_create(zend_ast_kind kind, ...) { in zend_ast_create() argument
139 va_start(va, kind); in zend_ast_create()
140 ast = zend_ast_create_from_va_list(kind, 0, va); in zend_ast_create()
146 ZEND_API zend_ast *zend_ast_create_list(uint32_t init_children, zend_ast_kind kind, ...) { in zend_ast_create_list() argument
152 list->kind = kind; in zend_ast_create_list()
160 va_start(va, kind); in zend_ast_create_list()
236 switch (ast->kind) { in zend_ast_evaluate()
259 binary_op_type op = ast->kind == ZEND_AST_GREATER in zend_ast_evaluate()
462 } else if (ast->kind == ZEND_AST_ZVAL) { in zend_ast_copy()
464 new->kind = ZEND_AST_ZVAL; in zend_ast_copy()
472 new->kind = list->kind; in zend_ast_copy()
482 new->kind = ast->kind; in zend_ast_copy()
496 switch (ast->kind) { in zend_ast_destroy_ex()
670 if (ast->kind == ZEND_AST_ZVAL) { in zend_ast_export_name()
683 if (ast->kind == ZEND_AST_ZVAL) { in zend_ast_export_ns_name()
740 if (ast->kind == ZEND_AST_ZVAL) { in zend_ast_export_var()
747 } else if (ast->kind == ZEND_AST_VAR) { in zend_ast_export_var()
776 if (ast->kind == ZEND_AST_ZVAL) { in zend_ast_export_encaps_list()
781 } else if (ast->kind == ZEND_AST_VAR && in zend_ast_export_encaps_list()
782 ast->child[0]->kind == ZEND_AST_ZVAL && in zend_ast_export_encaps_list()
784 list->child[i + 1]->kind != ZEND_AST_ZVAL || in zend_ast_export_encaps_list()
834 if (ast->kind == ZEND_AST_STMT_LIST || in zend_ast_export_stmt()
835 ast->kind == ZEND_AST_TRAIT_ADAPTATIONS) { in zend_ast_export_stmt()
847 switch (ast->kind) { in zend_ast_export_stmt()
879 ZEND_ASSERT(ast->kind == ZEND_AST_IF_ELEM); in zend_ast_export_if_stmt()
893 if (ast->child[1]->kind == ZEND_AST_IF) { in zend_ast_export_if_stmt()
1036 switch (ast->kind) { in zend_ast_export_ex()
1071 if (ast->kind != ZEND_AST_CLOSURE) { in zend_ast_export_ex()
1087 if (ast->kind != ZEND_AST_CLOSURE) { in zend_ast_export_ex()
1236 if (ast->child[0]->kind == ZEND_AST_ENCAPS_LIST) { in zend_ast_export_ex()
1240 ZEND_ASSERT(ast->child[0]->kind == ZEND_AST_ZVAL); in zend_ast_export_ex()
1400 if (ast->child[0]->kind == ZEND_AST_CLASS) { in zend_ast_export_ex()
1490 ZEND_ASSERT(ast->child[0]->kind == ZEND_AST_CONST_DECL); in zend_ast_export_ex()