about summary refs log tree commit diff
path: root/pkg/lang/ast/nodes.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/lang/ast/nodes.go')
-rw-r--r--pkg/lang/ast/nodes.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/pkg/lang/ast/nodes.go b/pkg/lang/ast/nodes.go
index 117d8bf..74ebd2a 100644
--- a/pkg/lang/ast/nodes.go
+++ b/pkg/lang/ast/nodes.go
@@ -17,3 +17,12 @@ type CondNode struct {
 	Cond Expr
 	Then BlockNode
 }
+
+type TypeMethodNode struct {
+	At            source.Loc
+	HasThis       bool
+	IsConstructor bool
+	Name          IdentNode
+	Args          []IdentNode
+	Body          BlockNode
+}