WithCode returns true iff the LocationRange is linked to code. TODO: This is identical to lr.IsSet(). Is it required at all?
()
| 111 | // WithCode returns true iff the LocationRange is linked to code. |
| 112 | // TODO: This is identical to lr.IsSet(). Is it required at all? |
| 113 | func (lr *LocationRange) WithCode() bool { |
| 114 | return lr.Begin.Line != 0 |
| 115 | } |
| 116 | |
| 117 | // MakeLocationRangeMessage creates a pseudo-LocationRange with a message but no |
| 118 | // location information. This is useful for special locations, e.g. |