You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
276 B
22 lines
276 B
8 years ago
|
package gogen
|
||
|
|
||
|
import "go/ast"
|
||
|
|
||
|
type Thunk struct {
|
||
|
Expr ast.Expr
|
||
|
Stmt ast.Stmt
|
||
|
Decl ast.Decl
|
||
|
}
|
||
|
|
||
|
func (me Thunk) Expression() ast.Expr {
|
||
|
return me.Expr
|
||
|
}
|
||
|
|
||
|
func (me Thunk) Statement() ast.Stmt {
|
||
|
return me.Stmt
|
||
|
}
|
||
|
|
||
|
func (me Thunk) Declaration() ast.Decl {
|
||
|
return me.Decl
|
||
|
}
|