LocationOffset implements the Source interface method.
(location Location)
| 134 | |
| 135 | // LocationOffset implements the Source interface method. |
| 136 | func (s *sourceImpl) LocationOffset(location Location) (int32, bool) { |
| 137 | if lineOffset, found := s.findLineOffset(location.Line()); found { |
| 138 | return lineOffset + int32(location.Column()), true |
| 139 | } |
| 140 | return -1, false |
| 141 | } |
| 142 | |
| 143 | // NewLocation implements the Source interface method. |
| 144 | func (s *sourceImpl) NewLocation(line, col int) Location { |
nothing calls this directly
no test coverage detected