OffsetLocation returns the absolute location given the relative offset, if found.
(offset int32)
| 2423 | |
| 2424 | // OffsetLocation returns the absolute location given the relative offset, if found. |
| 2425 | func (rel *RelativeSource) OffsetLocation(offset int32) (common.Location, bool) { |
| 2426 | absOffset, found := rel.Source.LocationOffset(rel.absLoc) |
| 2427 | if !found { |
| 2428 | return common.NoLocation, false |
| 2429 | } |
| 2430 | return rel.Source.OffsetLocation(absOffset + offset) |
| 2431 | } |
nothing calls this directly
no test coverage detected