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 BadExpr struct {
|
2019-01-11 12:16:34 +03:00
|
|
|
From source.Pos
|
|
|
|
To source.Pos
|
2019-01-09 10:17:42 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
func (e *BadExpr) exprNode() {}
|
|
|
|
|
2019-01-11 12:16:34 +03:00
|
|
|
func (e *BadExpr) Pos() source.Pos {
|
2019-01-09 10:17:42 +03:00
|
|
|
return e.From
|
|
|
|
}
|
|
|
|
|
2019-01-11 12:16:34 +03:00
|
|
|
func (e *BadExpr) End() source.Pos {
|
2019-01-09 10:17:42 +03:00
|
|
|
return e.To
|
|
|
|
}
|
|
|
|
|
|
|
|
func (e *BadExpr) String() string {
|
|
|
|
return "<bad expression>"
|
|
|
|
}
|