OffsetRanges returns a map of expression id to OffsetRange values where the range indicates either: the start and end position in the input stream where the expression occurs, or the start position only. If the range only captures start position, the stop position of the range will be equal to the s
()
| 342 | // only. If the range only captures start position, the stop position of the range will be equal to |
| 343 | // the start. |
| 344 | func (s *SourceInfo) OffsetRanges() map[int64]OffsetRange { |
| 345 | if s == nil { |
| 346 | return map[int64]OffsetRange{} |
| 347 | } |
| 348 | return s.offsetRanges |
| 349 | } |
| 350 | |
| 351 | // GetOffsetRange retrieves an OffsetRange for the given expression id if one exists. |
| 352 | func (s *SourceInfo) GetOffsetRange(id int64) (OffsetRange, bool) { |
no outgoing calls