mirror of
https://github.com/42wim/matterbridge.git
synced 2024-12-18 23:12:00 -08:00
26 lines
507 B
Go
26 lines
507 B
Go
|
package ast
|
||
|
|
||
|
import "github.com/d5/tengo/compiler/source"
|
||
|
|
||
|
// BadStmt represents a bad statement.
|
||
|
type BadStmt struct {
|
||
|
From source.Pos
|
||
|
To source.Pos
|
||
|
}
|
||
|
|
||
|
func (s *BadStmt) stmtNode() {}
|
||
|
|
||
|
// Pos returns the position of first character belonging to the node.
|
||
|
func (s *BadStmt) Pos() source.Pos {
|
||
|
return s.From
|
||
|
}
|
||
|
|
||
|
// End returns the position of first character immediately after the node.
|
||
|
func (s *BadStmt) End() source.Pos {
|
||
|
return s.To
|
||
|
}
|
||
|
|
||
|
func (s *BadStmt) String() string {
|
||
|
return "<bad statement>"
|
||
|
}
|