(i, j int)
| 135 | func (self ErrorList) Len() int { return len(self) } |
| 136 | func (self ErrorList) Swap(i, j int) { self[i], self[j] = self[j], self[i] } |
| 137 | func (self ErrorList) Less(i, j int) bool { |
| 138 | x := &self[i].Position |
| 139 | y := &self[j].Position |
| 140 | if x.Filename < y.Filename { |
| 141 | return true |
| 142 | } |
| 143 | if x.Filename == y.Filename { |
| 144 | if x.Line < y.Line { |
| 145 | return true |
| 146 | } |
| 147 | if x.Line == y.Line { |
| 148 | return x.Column < y.Column |
| 149 | } |
| 150 | } |
| 151 | return false |
| 152 | } |
| 153 | |
| 154 | func (self ErrorList) Sort() { |
| 155 | sort.Sort(self) |
nothing calls this directly
no outgoing calls
no test coverage detected