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.
18 lines
240 B
18 lines
240 B
8 years ago
|
package gogen
|
||
|
|
||
|
import "go/ast"
|
||
|
|
||
|
type Dotted struct {
|
||
|
Receiver Expression
|
||
|
Name string
|
||
|
}
|
||
|
|
||
|
func (me Dotted) Expression() ast.Expr {
|
||
|
return &ast.SelectorExpr{
|
||
|
X: me.Receiver.Expression(),
|
||
|
Sel: &ast.Ident{
|
||
|
Name: me.Name,
|
||
|
},
|
||
|
}
|
||
|
}
|