aboutsummaryrefslogtreecommitdiff
path: root/src/ast.h
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.h
parent0a54b8965319545741c427086d8994f77a72089f (diff)
Improve support for inferring the specific type of the `self` value in a
method call.
Diffstat (limited to 'src/ast.h')
-rw-r--r--src/ast.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ast.h b/src/ast.h
index 4f370e11..3beb6be2 100644
--- a/src/ast.h
+++ b/src/ast.h
@@ -150,6 +150,7 @@ typedef enum {
InlineCCode,
Deserialize,
Extend,
+ ExplicitlyTyped,
} ast_e;
struct ast_s {
@@ -338,6 +339,10 @@ struct ast_s {
const char *name;
ast_t *body;
} Extend;
+ struct {
+ ast_t *ast;
+ struct type_s *type;
+ } ExplicitlyTyped;
} __data;
};