From fa7e52787f81f3673f9d57e9e4ba7fc015ca8432 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 12 Sep 2024 00:13:53 -0400 Subject: Add postfix `!` operator for optionals --- ast.c | 1 + 1 file changed, 1 insertion(+) (limited to 'ast.c') diff --git a/ast.c b/ast.c index 1e89d29b..dc2ff13b 100644 --- a/ast.c +++ b/ast.c @@ -151,6 +151,7 @@ CORD ast_to_xml(ast_t *ast) T(Index, "%r%r", optional_tagged("indexed", data.indexed), optional_tagged("index", data.index)) T(FieldAccess, "%r", data.field, ast_to_xml(data.fielded)) T(Optional, "%r", ast_to_xml(data.value)) + T(NonOptional, "%r", ast_to_xml(data.value)) T(DocTest, "%r%r", optional_tagged("expression", data.expr), xml_escape(data.output)) T(Use, "%r", xml_escape(data.path)) T(LinkerDirective, "%r", xml_escape(data.directive)) -- cgit v1.2.3