xgo/ast/bad_expr.go
2019-01-08 23:17:42 -08:00

22 lines
320 B
Go

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