aboutsummaryrefslogtreecommitdiff
path: root/ast.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-09-04 13:48:26 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-09-04 13:48:26 -0400
commitd1b2e9f598fb8e4c0bb46fda3bc2b8e03ff1db55 (patch)
tree59d0171be180af6350df93638c751431a0765a20 /ast.c
parentf605df823016b9de23325c0a9d950c542a4ba1d5 (diff)
Disallow 'use' statements that aren't top level
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 b380a04f..901144f3 100644
--- a/ast.c
+++ b/ast.c
@@ -152,7 +152,7 @@ CORD ast_to_xml(ast_t *ast)
T(FieldAccess, "<FieldAccess field=\"%s\">%r</FieldAccess>", data.field, ast_to_xml(data.fielded))
T(Optional, "<Optional>%r</Optional>", 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.name))
+ T(Use, "<Use>%r</Use>", xml_escape(data.path))
T(LinkerDirective, "<LinkerDirective>%r</LinkerDirective>", xml_escape(data.directive))
T(InlineCCode, "<InlineCode>%r</InlineCode>", xml_escape(data.code))
#undef T