(pstr ValueString)
| 492 | } |
| 493 | |
| 494 | func (c *compiler) relSource(pstr ValueString) *RelativeSource { |
| 495 | line := 0 |
| 496 | col := 1 |
| 497 | if offset, found := c.info.GetOffsetRange(pstr.ID); found { |
| 498 | if loc, found := c.src.OffsetLocation(offset.Start); found { |
| 499 | line = loc.Line() |
| 500 | col = loc.Column() |
| 501 | } |
| 502 | } |
| 503 | return c.src.Relative(pstr.Value, line, col) |
| 504 | } |
| 505 | |
| 506 | const ( |
| 507 | // Consider making the variables namespace configurable. |
no test coverage detected