aboutsummaryrefslogtreecommitdiff
path: root/ast.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-09-27 14:56:24 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-09-27 14:56:24 -0400
commitca93e6f3cb78f65f8eb8aac0d6fae81be2c250e8 (patch)
tree426245f7e01d666cdcbdbc4c42766db9d1dcc95d /ast.c
parent9b15799e73b2d8342b815de1715c85c3a1bc27d7 (diff)
Simplify code by making `name := use ...` a Use AST instead of a Declare
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 5ac5a325..f726bc4f 100644
--- a/ast.c
+++ b/ast.c
@@ -156,7 +156,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<output>%r</output></DocTest>", optional_tagged("expression", data.expr), xml_escape(data.output))
- T(Use, "<Use>%r</Use>", xml_escape(data.path))
+ T(Use, "<Use>%r%r</Use>", optional_tagged("var", data.var), xml_escape(data.path))
T(InlineCCode, "<InlineCode>%r</InlineCode>", xml_escape(data.code))
default: return "???";
#undef T