remove position from node package

This commit is contained in:
z7zmey 2018-01-11 19:37:53 +02:00
parent e814483f37
commit a49fdcf8a0

View File

@ -1,20 +1,7 @@
package node package node
import "fmt"
// Node interface // Node interface
type Node interface { type Node interface {
Attributes() map[string]interface{} Attributes() map[string]interface{}
Walk(v Visitor) Walk(v Visitor)
} }
type Position struct {
StartLine int
EndLine int
StartPos int
EndPos int
}
func (p Position) String() string {
return fmt.Sprintf("Pos{Line: %d-%d Pos: %d-%d}", p.StartLine, p.EndLine, p.StartPos, p.EndPos)
}