php-parser/node/node.go
2018-01-04 22:09:48 +02:00

18 lines
244 B
Go

package node
type Node interface {
Positioner
Attributes() map[string]interface{}
Walk(v Visitor)
}
type Positioner interface {
Position() *Position
SetPosition(p *Position) Node
}
type Position struct {
StartLine int
EndLine int
}