aboutsummaryrefslogtreecommitdiff
path: root/ast.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-10-27 19:54:48 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-10-27 20:35:12 -0400
commit41c0ea851a542bcd7d54b8c5c06d70e1e00095e1 (patch)
tree6880cd0c58c10545a9723115f712d86e12224347 /ast.c
parentdf258c1773adef59994da2e010f74610eb81a1b2 (diff)
Deprecate "&" for stack references
Diffstat (limited to 'ast.c')
-rw-r--r--ast.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/ast.c b/ast.c
index af0aea5a..0593ccbf 100644
--- a/ast.c
+++ b/ast.c
@@ -113,7 +113,6 @@ CORD ast_to_xml(ast_t *ast)
T(Negative, "<Negative>%r</Negative>", ast_to_xml(data.value))
T(Not, "<Not>%r</Not>", ast_to_xml(data.value))
T(HeapAllocate, "<HeapAllocate>%r</HeapAllocate>", ast_to_xml(data.value))
- T(StackReference, "<StackReference>%r</StackReference>", ast_to_xml(data.value))
T(Min, "<Min>%r%r%r</Min>", ast_to_xml(data.lhs), ast_to_xml(data.rhs), optional_tagged("key", data.key))
T(Max, "<Max>%r%r%r</Max>", ast_to_xml(data.lhs), ast_to_xml(data.rhs), optional_tagged("key", data.key))
T(Array, "<Array>%r%r</Array>", optional_tagged_type("item-type", data.item_type), ast_list_to_xml(data.items))
@@ -172,8 +171,8 @@ CORD type_ast_to_xml(type_ast_t *t)
#define T(type, ...) case type: { auto data = t->__data.type; (void)data; return CORD_asprintf(__VA_ARGS__); }
T(UnknownTypeAST, "<UnknownType/>")
T(VarTypeAST, "%s", data.name)
- T(PointerTypeAST, "<PointerType is_stack=\"%s\">%r</PointerType>",
- data.is_stack ? "yes" : "no", type_ast_to_xml(data.pointed))
+ T(PointerTypeAST, "<PointerType is_view=\"%s\">%r</PointerType>",
+ data.is_view ? "yes" : "no", type_ast_to_xml(data.pointed))
T(ArrayTypeAST, "<ArrayType>%r</ArrayType>", type_ast_to_xml(data.item))
T(SetTypeAST, "<TableType>%r</TableType>", type_ast_to_xml(data.item))
T(ChannelTypeAST, "<ChannelType>%r</ChannelType>", type_ast_to_xml(data.item))