LocationOffset translates a Location to an offset. Given the line and column of the Location returns the Location's character offset in the Source, and a bool indicating whether the Location was found.
(location Location)
| 41 | // Location's character offset in the Source, and a bool |
| 42 | // indicating whether the Location was found. |
| 43 | LocationOffset(location Location) (int32, bool) |
| 44 | |
| 45 | // OffsetLocation translates a character offset to a Location, or |
| 46 | // false if the conversion was not feasible. |
no outgoing calls