| 1 | package astscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/ast`/ |
| 2 | |
| 3 | import ( |
| 4 | "github.com/goccmack/gocc/example/astx/tokenscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/token`/" |
| 5 | ) |
| 6 | |
| 7 | type ( |
| 8 | StmtListscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/ast`/StmtList# []Stmtscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/ast`/Stmt# |
| 9 | Stmtscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/ast`/Stmt# string |
| 10 | ) |
| 11 | |
| 12 | func NewStmtListscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/ast`/NewStmtList().(stmt interface{}) (StmtListscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/ast`/StmtList#, error) { |
| 13 | return StmtListscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/ast`/StmtList#{stmt.(Stmtscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/ast`/Stmt#)}, nil |
| 14 | } |
| 15 | |
| 16 | func AppendStmtscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/ast`/AppendStmt().(stmtList, stmt interface{}) (StmtListscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/ast`/StmtList#, error) { |
| 17 | return append(stmtList.(StmtListscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/ast`/StmtList#), stmt.(Stmtscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/ast`/Stmt#)), nil |
| 18 | } |
| 19 | |
| 20 | // stmtList is passed using $T0. |
| 21 | func NewStmtscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/ast`/NewStmt().(stmtList *tokenscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/token`/.Tokenscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/token`/Token#) (Stmtscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/ast`/Stmt#, error) { |
| 22 | return Stmtscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/ast`/Stmt#(stmtList.Litscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/astx/token`/Token#Lit.), nil |
| 23 | } |