aboutsummaryrefslogtreecommitdiff
path: root/src/ast.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-04-06 13:22:22 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-04-06 13:22:22 -0400
commit3b4a0e8b907bce9d5682b64ef02dfbf430762f5b (patch)
tree93eca6cc83c624abbe2ed56c65df1dd524ad6a3a /src/ast.c
parent0a54b8965319545741c427086d8994f77a72089f (diff)
Improve support for inferring the specific type of the `self` value in a
method call.
Diffstat (limited to 'src/ast.c')
-rw-r--r--src/ast.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ast.c b/src/ast.c
index 8544ebad..d4ecca2d 100644
--- a/src/ast.c
+++ b/src/ast.c
@@ -4,6 +4,7 @@
#include <stdarg.h>
#include "ast.h"
+#include "types.h"
#include "stdlib/datatypes.h"
#include "stdlib/integers.h"
#include "stdlib/tables.h"
@@ -193,6 +194,7 @@ CORD ast_to_xml(ast_t *ast)
T(InlineCCode, "<InlineCode>%r</InlineCode>", xml_escape(data.code))
T(Deserialize, "<Deserialize><type>%r</type>%r</Deserialize>", type_ast_to_xml(data.type), ast_to_xml(data.value))
T(Extend, "<Extend name=\"%s\">%r</Extend>", data.name, ast_to_xml(data.body))
+ T(ExplicitlyTyped, "<ExplicitlyTyped type=\"%r\">%r</ExplicitlyTyped>", type_to_cord(data.type), ast_to_xml(data.ast))
default: return "???";
#undef T
}