xgo/ast/bad_expr.go
2019-01-11 01:16:34 -08:00

22 lines
315 B
Go

package ast
import "github.com/d5/tengo/source"
type BadExpr struct {
From source.Pos
To source.Pos
}
func (e *BadExpr) exprNode() {}
func (e *BadExpr) Pos() source.Pos {
return e.From
}
func (e *BadExpr) End() source.Pos {
return e.To
}
func (e *BadExpr) String() string {
return "<bad expression>"
}