summaryrefslogtreecommitdiff
path: root/hobgoblin/src
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2026-12-03 20:17:32 +0000
committerMichael Williamson <mike@zwobble.org>2026-12-03 20:17:32 +0000
commit6eebe3630f767458597c8f375f01e59a92a2855e (patch)
tree61cfd0caec4b92e233e1bb5f2f7cd90285d1d0fa /hobgoblin/src
parent6aeb1c1fc7ba5e6b17c10d566fc700a49b815f28 (diff)
Minimal type-checking for call nodes
Diffstat (limited to 'hobgoblin/src')
-rw-r--r--hobgoblin/src/ast/typed.hob8
1 files changed, 8 insertions, 0 deletions
diff --git a/hobgoblin/src/ast/typed.hob b/hobgoblin/src/ast/typed.hob
index ecc1ca9..529f242 100644
--- a/hobgoblin/src/ast/typed.hob
+++ b/hobgoblin/src/ast/typed.hob
@@ -128,6 +128,7 @@ struct TypedReturnNode {
sum TypedExpressionNode {
variant TypedBinaryOperationNode;
+ variant TypedCallNode;
variant TypedFunctionExpressionNode;
variant TypedMemberAccessNode;
variant TypedNumberLiteralNode;
@@ -148,6 +149,13 @@ enum TypedBinaryOperator {
variant equals;
}
+struct TypedCallNode {
+ field receiver: TypedExpressionNode;
+ field args: List[TypedExpressionNode];
+ field type: Type;
+ field source: Source;
+}
+
struct TypedFunctionExpressionNode {
field params: List[TypedParamNode];
field body: TypedExpressionNode;