aab9da03创建于 2020年5月10日历史提交
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,
	}
}