OffsetLocation implements the Source interface method.
(offset int32)
| 147 | |
| 148 | // OffsetLocation implements the Source interface method. |
| 149 | func (s *sourceImpl) OffsetLocation(offset int32) (Location, bool) { |
| 150 | line, lineOffset := s.findLine(offset) |
| 151 | return NewLocation(int(line), int(offset-lineOffset)), true |
| 152 | } |
| 153 | |
| 154 | // Snippet implements the Source interface method. |
| 155 | func (s *sourceImpl) Snippet(line int) (string, bool) { |
nothing calls this directly
no test coverage detected