(
error: Error,
offset: Offset = {
immediate: true
}
)
| 196 | * If no offset is provided, then the offset used will determine the first location information. |
| 197 | */ |
| 198 | const getLocationFromError = ( |
| 199 | error: Error, |
| 200 | offset: Offset = { |
| 201 | immediate: true |
| 202 | } |
| 203 | ): Location => { |
| 204 | const locations = getLocationsFromError(error) |
| 205 | return getLocationWithOffset(locations, offset) |
| 206 | } |
| 207 | |
| 208 | /** |
| 209 | * Get the location information about the line that called this method. |
no test coverage detected