Lines Matching refs:l
100 l := make(elemList, len(values))
110 l[i] = elem{s.Value, i, v.Pos(), n}
113 sort.Sort(l)
128 for i, e := range l {
171 func (l elemList) Len() int {
172 return len(l)
175 func (l elemList) Swap(i, j int) {
176 l[i], l[j] = l[j], l[i]
179 func (l elemList) Less(i, j int) bool {
180 return l[i].s < l[j].s
185 func (l commentsByOffset) Len() int {
186 return len(l)
189 func (l commentsByOffset) Less(i, j int) bool {
190 return l[i].Pos().Offset < l[j].Pos().Offset
193 func (l commentsByOffset) Swap(i, j int) {
194 l[i], l[j] = l[j], l[i]