OffsetLocation returns the absolute location given the relative offset, if found.
(offset int32)
| 2441 | |
| 2442 | // OffsetLocation returns the absolute location given the relative offset, if found. |
| 2443 | func (rel *RelativeSource) OffsetLocation(offset int32) (common.Location, bool) { |
| 2444 | absOffset, found := rel.Source.LocationOffset(rel.absLoc) |
| 2445 | if !found { |
| 2446 | return common.NoLocation, false |
| 2447 | } |
| 2448 | return rel.Source.OffsetLocation(absOffset + offset) |
| 2449 | } |
nothing calls this directly
no test coverage detected