php-parser/pkg/position/position.go

20 lines
374 B
Go
Raw Normal View History

2020-05-10 05:53:00 +00:00
package position
// Position represents node position
type Position struct {
StartLine int
EndLine int
StartPos int
EndPos int
}
// NewPosition Position constructor
func NewPosition(StartLine int, EndLine int, StartPos int, EndPos int) *Position {
return &Position{
StartLine: StartLine,
EndLine: EndLine,
StartPos: StartPos,
EndPos: EndPos,
}
}