#include "block.h" #include "iterate.h" #include "ivy/status.h" #include "node.h" #include #include static void collect_children( struct ivy_ast_node *node, struct ivy_ast_node_iterator *iterator) { struct ivy_ast_msgh_node *msgh = (struct ivy_ast_msgh_node *)node; ast_node_iterator_enqueue_node(iterator, node, &msgh->n_sel->n_base); ast_node_iterator_enqueue_node(iterator, node, msgh->n_body); } struct ast_node_type msgh_node_ops = { .n_collect_children = collect_children, .n_node_size = sizeof(struct ivy_ast_msgh_node), };