ContainsPos returns true if and only if the given position is contained within the receiving range. In the unlikely case that the line/column information disagree with the byte offset information in the given position or receiving range, the byte offsets are given priority.
(pos Pos)
| 107 | // offset information in the given position or receiving range, the byte |
| 108 | // offsets are given priority. |
| 109 | func (r Range) ContainsPos(pos Pos) bool { |
| 110 | return r.ContainsOffset(pos.Byte) |
| 111 | } |
| 112 | |
| 113 | // ContainsOffset returns true if and only if the given byte offset is within |
| 114 | // the receiving Range. |
no test coverage detected