Files
ivy/lang/ast/msgh.c
T

21 lines
574 B
C
Raw Normal View History

2024-12-01 13:25:36 +00:00
#include "block.h"
#include "iterate.h"
#include "ivy/status.h"
#include "node.h"
2026-03-16 14:07:33 +00:00
#include <fx/ds/string.h>
#include <ivy/lang/lex.h>
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);
2024-12-01 13:25:36 +00:00
ast_node_iterator_enqueue_node(iterator, node, msgh->n_body);
}
struct ast_node_type msgh_node_ops = {
.n_collect_children = collect_children,
2024-11-29 12:06:06 +00:00
.n_node_size = sizeof(struct ivy_ast_msgh_node),
};