2019-01-09 10:17:42 +03:00
|
|
|
package ast
|
|
|
|
|
2019-01-11 12:16:34 +03:00
|
|
|
import "github.com/d5/tengo/source"
|
2019-01-09 10:17:42 +03:00
|
|
|
|
|
|
|
type SelectorExpr struct {
|
|
|
|
Expr Expr
|
|
|
|
Sel Expr
|
|
|
|
}
|
|
|
|
|
|
|
|
func (e *SelectorExpr) exprNode() {}
|
|
|
|
|
2019-01-11 12:16:34 +03:00
|
|
|
func (e *SelectorExpr) Pos() source.Pos {
|
2019-01-09 10:17:42 +03:00
|
|
|
return e.Expr.Pos()
|
|
|
|
}
|
|
|
|
|
2019-01-11 12:16:34 +03:00
|
|
|
func (e *SelectorExpr) End() source.Pos {
|
2019-01-09 10:17:42 +03:00
|
|
|
return e.Sel.End()
|
|
|
|
}
|
|
|
|
|
|
|
|
func (e *SelectorExpr) String() string {
|
|
|
|
return e.Expr.String() + "." + e.Sel.String()
|
|
|
|
}
|