mirror of
https://github.com/cwinfo/matterbridge.git
synced 2024-11-14 17:50:26 +00: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>"
|
||
|
}
|