Change unknown location to whole file location in source extraction

This commit is contained in:
Tamas Vajk
2021-12-16 11:02:50 +01:00
committed by Ian Lynagh
parent 9d7794185e
commit 30ff5e2517

View File

@@ -245,14 +245,14 @@ class SourceFileTrapWriter (
if (startOffset != endOffset) {
// TODO: Warn
}
return unknownLocation
return getWholeFileLocation()
}
if (startOffset == SYNTHETIC_OFFSET || endOffset == SYNTHETIC_OFFSET) {
if (startOffset != endOffset) {
// TODO: Warn
}
return unknownLocation
return getWholeFileLocation()
}
// If this is the location for a compiler-generated element, then it will