xgo/ast/bad_stmt.go

23 lines
314 B
Go
Raw Normal View History

2019-01-09 10:17:42 +03:00
package ast
import "github.com/d5/tengo/source"
2019-01-09 10:17:42 +03:00
type BadStmt struct {
From source.Pos
To source.Pos
2019-01-09 10:17:42 +03:00
}
func (s *BadStmt) stmtNode() {}
func (s *BadStmt) Pos() source.Pos {
2019-01-09 10:17:42 +03:00
return s.From
}
func (s *BadStmt) End() source.Pos {
2019-01-09 10:17:42 +03:00
return s.To
}
func (s *BadStmt) String() string {
return "<bad statement>"
}