Lines Matching refs:j
137 var j int
138 for j = i + 1; j < len(list.Values); j++ {
139 if list.Values[j].Pos().Line > line+1 {
142 line = list.Values[j].Pos().Line
146 if j < len(list.Values) {
147 nextPos = list.Values[j].Pos()
149 sortSubList(list.Values[i:j], nextPos, file)
150 i = j - 1
158 var j int
159 for j = i + 1; j < len(list.Values); j++ {
160 if list.Values[j].Pos().Line > line+1 {
163 line = list.Values[j].Pos().Line
166 if !subListIsSorted(list.Values[i:j]) {
169 i = j - 1
208 sort.SliceStable(l, func(i, j int) bool {
209 return numericStringLess(l[i].s, l[j].s)
217 for j := range file.Comments[i].Comments {
218 c := *file.Comments[i].Comments[j]
219 cg.Comments[j] = &c
228 for j, c := range copyComments {
230 file.Comments[j].Comments[0].Slash.Line = curPos.Line
231 file.Comments[j].Comments[0].Slash.Offset += values[i].Pos().Offset - e.pos.Offset
272 func (l commentsByOffset) Less(i, j int) bool {
273 return l[i].Pos().Offset < l[j].Pos().Offset
276 func (l commentsByOffset) Swap(i, j int) {
277 l[i], l[j] = l[j], l[i]