(int line, String lineSource, int offset)
| 344 | } |
| 345 | |
| 346 | private MappedLocation mapLocation(int line, String lineSource, int offset) { |
| 347 | SourceMapper mapper = compilerEnv.getSourceMapper(); |
| 348 | if (mapper != null) { |
| 349 | Position mapped = mapper.mapPosition(line, offset); |
| 350 | if (mapped != null) { |
| 351 | line = mapped.getLine(); |
| 352 | offset = mapped.getColumn(); |
| 353 | String mappedLine = mapper.getSourceLineText(mapped.getSourcePath(), line); |
| 354 | if (mappedLine != null) { |
| 355 | lineSource = mappedLine; |
| 356 | } |
| 357 | } |
| 358 | } |
| 359 | return new MappedLocation(line, lineSource, offset); |
| 360 | } |
| 361 | |
| 362 | String lookupMessage(String messageId) { |
| 363 | return lookupMessage(messageId, null); |
no test coverage detected