diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-04-06 13:22:22 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-04-06 13:22:22 -0400 |
| commit | 3b4a0e8b907bce9d5682b64ef02dfbf430762f5b (patch) | |
| tree | 93eca6cc83c624abbe2ed56c65df1dd524ad6a3a /src/ast.c | |
| parent | 0a54b8965319545741c427086d8994f77a72089f (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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 } |
