aboutsummaryrefslogtreecommitdiff
path: root/src/ast.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-04-21 16:50:40 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-04-21 16:50:40 -0400
commitab55eee556ecbe6a8bd0a4f4cd92e38b021f6841 (patch)
tree47c339c48c9aaeffb931588c1b6241d35690c5a2 /src/ast.c
parentf2eab0d205d1a60e9ce7a8e2420196e12d7eed10 (diff)
Add `assert`
Diffstat (limited to 'src/ast.c')
-rw-r--r--src/ast.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ast.c b/src/ast.c
index 3380d927..bcf0a601 100644
--- a/src/ast.c
+++ b/src/ast.c
@@ -189,6 +189,7 @@ CORD ast_to_xml(ast_t *ast)
T(Optional, "<Optional>%r</Optional>", ast_to_xml(data.value))
T(NonOptional, "<NonOptional>%r</NonOptional>", ast_to_xml(data.value))
T(DocTest, "<DocTest>%r%r</DocTest>", optional_tagged("expression", data.expr), optional_tagged("expected", data.expected))
+ T(Assert, "<Assert>%r%r</Assert>", ast_to_xml(data.expr), optional_tagged("message", data.message))
T(Use, "<Use>%r%r</Use>", optional_tagged("var", data.var), xml_escape(data.path))
T(InlineCCode, "<InlineCode>%r</InlineCode>", ast_list_to_xml(data.chunks))
T(Deserialize, "<Deserialize><type>%r</type>%r</Deserialize>", type_ast_to_xml(data.type), ast_to_xml(data.value))