We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 734cba7 commit 44654bdCopy full SHA for 44654bd
go/ql/lib/semmle/go/Overlay.qll
@@ -20,7 +20,9 @@ private @file getFile(@locatable locatable) {
20
/** Holds if the `locatable` is in the `file` and is part of the overlay base database. */
21
private predicate discardableLocatable(@file file, @locatable locatable) {
22
not isOverlay() and
23
- file = getFile(locatable)
+ file = getFile(locatable) and
24
+ // Avoid discarding @file entities, since they are shared between base and overlay.
25
+ not locatable instanceof @file
26
}
27
28
/**
0 commit comments