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()
458 } else if (ast->kind == ZEND_AST_ZVAL) { in zend_ast_copy()
460 new->kind = ZEND_AST_ZVAL; in zend_ast_copy()
468 new->kind = list->kind; in zend_ast_copy()
478 new->kind = ast->kind; in zend_ast_copy()
492 switch (ast->kind) { in zend_ast_destroy_ex()
666 if (ast->kind == ZEND_AST_ZVAL) { in zend_ast_export_name()
679 if (ast->kind == ZEND_AST_ZVAL) { in zend_ast_export_ns_name()
741 if (ast->kind == ZEND_AST_ZVAL) { in zend_ast_export_var()
748 } else if (ast->kind == ZEND_AST_VAR) { in zend_ast_export_var()
777 if (ast->kind == ZEND_AST_ZVAL) { in zend_ast_export_encaps_list()
782 } else if (ast->kind == ZEND_AST_VAR && in zend_ast_export_encaps_list()
783 ast->child[0]->kind == ZEND_AST_ZVAL && in zend_ast_export_encaps_list()
785 list->child[i + 1]->kind != ZEND_AST_ZVAL || in zend_ast_export_encaps_list()
838 if (ast->kind == ZEND_AST_STMT_LIST || in zend_ast_export_stmt()
839 ast->kind == ZEND_AST_TRAIT_ADAPTATIONS) { in zend_ast_export_stmt()
851 switch (ast->kind) { in zend_ast_export_stmt()
883 ZEND_ASSERT(ast->kind == ZEND_AST_IF_ELEM); in zend_ast_export_if_stmt()
897 if (ast->child[1] && ast->child[1]->kind == ZEND_AST_IF) { in zend_ast_export_if_stmt()
1040 switch (ast->kind) { in zend_ast_export_ex()
1075 if (ast->kind != ZEND_AST_CLOSURE) { in zend_ast_export_ex()
1094 if (ast->kind != ZEND_AST_CLOSURE) { in zend_ast_export_ex()
1238 if (ast->child[0]->kind == ZEND_AST_ENCAPS_LIST) { in zend_ast_export_ex()
1242 ZEND_ASSERT(ast->child[0]->kind == ZEND_AST_ZVAL); in zend_ast_export_ex()
1404 if (ast->child[0]->kind == ZEND_AST_CLASS) { in zend_ast_export_ex()
1494 ZEND_ASSERT(ast->child[0]->kind == ZEND_AST_CONST_DECL); in zend_ast_export_ex()