diff options
| author | Mel <einebeere@gmail.com> | 2022-07-27 22:53:35 +0000 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2022-07-27 22:53:35 +0000 |
| commit | d79973cb9df8660fe89810507557f5ba86256f30 (patch) | |
| tree | 201774dae1fa63e6b962e7be9aeea20c033bb5e3 /pkg/lang/ast/stmt.go | |
| parent | 4f23155ca7f8591cae0be6938610386513d24b7f (diff) | |
| download | jinx-d79973cb9df8660fe89810507557f5ba86256f30.tar.zst jinx-d79973cb9df8660fe89810507557f5ba86256f30.zip | |
Parse type declaration statements
Diffstat (limited to 'pkg/lang/ast/stmt.go')
| -rw-r--r-- | pkg/lang/ast/stmt.go | 5 |
1 files changed, 4 insertions, 1 deletions
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 |
