aboutsummaryrefslogtreecommitdiff
path: root/ast.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-08-11 15:04:22 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-08-11 15:04:22 -0400
commitd2f4d07585d1e915365f3aaea6fc696e00a9e26d (patch)
tree12cf2a0f978835bc55db572df8e0d114c9b89494 /ast.c
parent2ecb5fe885042ca6c25ee0a3e3da070ddec9e07e (diff)
Support channels with maximum size
Diffstat (limited to 'ast.c')
-rw-r--r--ast.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ast.c b/ast.c
index 000c5f18..d3b5b3c4 100644
--- a/ast.c
+++ b/ast.c
@@ -121,7 +121,7 @@ CORD ast_to_xml(ast_t *ast)
optional_tagged_type("key-type", data.key_type), optional_tagged_type("value-type", data.value_type),
ast_list_to_xml(data.entries), optional_tagged("fallback", data.fallback))
T(TableEntry, "<TableEntry>%r%r</TableEntry>", ast_to_xml(data.key), ast_to_xml(data.value))
- T(Channel, "<Channel>%r</Channel>", type_ast_to_xml(data.item_type))
+ T(Channel, "<Channel>%r%r</Channel>", type_ast_to_xml(data.item_type), optional_tagged("max-size", data.max_size))
T(Comprehension, "<Comprehension>%r%r%r%r%r</Comprehension>", optional_tagged("expr", data.expr),
ast_list_to_xml(data.vars), optional_tagged("iter", data.iter),
optional_tagged("filter", data.filter))