ContainsOffset returns true if and only if the given byte offset is within the receiving Range.
(offset int)
| 113 | // ContainsOffset returns true if and only if the given byte offset is within |
| 114 | // the receiving Range. |
| 115 | func (r Range) ContainsOffset(offset int) bool { |
| 116 | return offset >= r.Start.Byte && offset < r.End.Byte |
| 117 | } |
| 118 | |
| 119 | // Ptr returns a pointer to a copy of the receiver. This is a convenience when |
| 120 | // ranges in places where pointers are required, such as in Diagnostic, but |
no outgoing calls
no test coverage detected