mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
Change unknown location to whole file location in source extraction
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user