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

22 lines
314 B
Go

package ast
import "github.com/d5/tengo/source"
type BadStmt struct {
From source.Pos
To source.Pos
}
func (s *BadStmt) stmtNode() {}
func (s *BadStmt) Pos() source.Pos {
return s.From
}
func (s *BadStmt) End() source.Pos {
return s.To
}
func (s *BadStmt) String() string {
return "<bad statement>"
}