Lines Matching refs:i
134 for i := 0; i < len(list.Values); i++ {
136 line := list.Values[i].Pos().Line
138 for j = i + 1; j < len(list.Values); j++ {
149 sortSubList(list.Values[i:j], nextPos, file)
150 i = j - 1
155 for i := 0; i < len(list.Values); i++ {
157 line := list.Values[i].Pos().Line
159 for j = i + 1; j < len(list.Values); j++ {
166 if !subListIsSorted(list.Values[i:j]) {
169 i = j - 1
196 for i, v := range values {
202 if i < len(values)-1 {
203 n = values[i+1].Pos()
205 l[i] = elem{s.Value, i, v.Pos(), n}
208 sort.SliceStable(l, func(i, j int) bool {
209 return numericStringLess(l[i].s, l[j].s)
214 for i := range file.Comments {
215 cg := *file.Comments[i]
217 for j := range file.Comments[i].Comments {
218 c := *file.Comments[i].Comments[j]
221 copyComments[i] = &cg
225 for i, e := range l {
226 values[i] = copyValues[e.i]
227 values[i].(*String).LiteralPos = curPos
232 file.Comments[j].Comments[0].Slash.Offset += values[i].Pos().Offset - e.pos.Offset
262 i int member
273 func (l commentsByOffset) Less(i, j int) bool { argument
274 return l[i].Pos().Offset < l[j].Pos().Offset
277 func (l commentsByOffset) Swap(i, j int) { argument
278 l[i], l[j] = l[j], l[i]