(pstr ValueString)
| 469 | } |
| 470 | |
| 471 | func (c *compiler) relSource(pstr ValueString) *RelativeSource { |
| 472 | line := 0 |
| 473 | col := 1 |
| 474 | if offset, found := c.info.GetOffsetRange(pstr.ID); found { |
| 475 | if loc, found := c.src.OffsetLocation(offset.Start); found { |
| 476 | line = loc.Line() |
| 477 | col = loc.Column() |
| 478 | } |
| 479 | } |
| 480 | return c.src.Relative(pstr.Value, line, col) |
| 481 | } |
| 482 | |
| 483 | const ( |
| 484 | // Consider making the variables namespace configurable. |
no test coverage detected