remove position from node package
This commit is contained in:
parent
e814483f37
commit
a49fdcf8a0
13
node/node.go
13
node/node.go
@ -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)
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user