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

22 lines
319 B
Go

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