lang: ast: fix match node type specifying wrong node size

This commit is contained in:
2024-12-05 22:00:23 +00:00
parent 8ef057360e
commit 5fe3231c9e

View File

@@ -233,7 +233,7 @@ struct ast_node_type match_node_ops = {
.n_add_child = add_child, .n_add_child = add_child,
.n_collect_children = match_collect_children, .n_collect_children = match_collect_children,
.n_state_size = sizeof(struct match_parser_state), .n_state_size = sizeof(struct match_parser_state),
.n_node_size = sizeof(struct ivy_ast_cond_group_node), .n_node_size = sizeof(struct ivy_ast_match_node),
.n_keyword_parsers = { .n_keyword_parsers = {
KW_PARSER(MATCH, parse_match), KW_PARSER(MATCH, parse_match),
KW_PARSER(IN, parse_in), KW_PARSER(IN, parse_in),