Ptr returns a pointer to a copy of the receiver. This is a convenience when ranges in places where pointers are required, such as in Diagnostic, but the range in question is returned from a method. Go would otherwise not allow one to take the address of a function call.
()
| 121 | // the range in question is returned from a method. Go would otherwise not |
| 122 | // allow one to take the address of a function call. |
| 123 | func (r Range) Ptr() *Range { |
| 124 | return &r |
| 125 | } |
| 126 | |
| 127 | // String returns a compact string representation of the receiver. |
| 128 | // Callers should generally prefer to present a range more visually, |
no outgoing calls
no test coverage detected