From d79973cb9df8660fe89810507557f5ba86256f30 Mon Sep 17 00:00:00 2001 From: Mel Date: Wed, 27 Jul 2022 22:53:35 +0000 Subject: Parse type declaration statements --- pkg/lang/ast/stmt.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'pkg/lang/ast/stmt.go') diff --git a/pkg/lang/ast/stmt.go b/pkg/lang/ast/stmt.go index 8a538f2..7545bee 100644 --- a/pkg/lang/ast/stmt.go +++ b/pkg/lang/ast/stmt.go @@ -41,7 +41,10 @@ type StmtFnDecl struct { Body BlockNode } -type StmtTypeDecl struct {} +type StmtTypeDecl struct { + Name IdentNode + Methods []TypeMethodNode +} type StmtVarDecl struct { Name IdentNode -- cgit 1.4.1