Lines Matching refs:End
54 Start, End Location member
58 return fmt.Sprintf("%v-%v", s.Start, s.End)
68 case s.End.Before(o.End):
70 case o.End.Before(s.End):
80 func (s Span) Inside(o Span) bool { return s.Start.Compare(o.Start) >= 0 && s.End.Compare(o.End) <=…
92 idxStart := sort.Search(len(*l), func(i int) bool { return (*l)[i].End.Compare(s.Start) >= 0 })
98 idxEnd := sort.Search(len(*l), func(i int) bool { return (*l)[i].Start.Compare(s.End) > 0 })
104 if last := (*l)[idxEnd-1]; last.End.After(s.End) {
105 s.End = last.End
118 if s.Start == s.End {
127 idxStart := sort.Search(len(*l), func(i int) bool { return (*l)[i].End.Compare(s.Start) > 0 })
128 idxEnd := sort.Search(len(*l), func(i int) bool { return (*l)[i].Start.Compare(s.End) >= 0 })
137 if last.End.Compare(s.End) > 0 {
138 merged = append(merged, Span{s.End, last.End})
169 for s := span.Start.Line; s <= span.End.Line; s++ {