LessThan returns true if s is less b
(b SLoc)
| 16 | |
| 17 | // LessThan returns true if s is less b |
| 18 | func (s SLoc) LessThan(b SLoc) bool { |
| 19 | if s.Line < b.Line { |
| 20 | return true |
| 21 | } |
| 22 | return s.Line == b.Line && s.Row < b.Row |
| 23 | } |
| 24 | |
| 25 | // GreaterThan returns true if s is bigger than b |
| 26 | func (s SLoc) GreaterThan(b SLoc) bool { |