mirror of
https://github.com/github/codeql.git
synced 2026-04-28 02:05:14 +02:00
JS: Restrict Stage1 to the base database
This commit is contained in:
@@ -1545,8 +1545,15 @@ module API {
|
||||
pragma[inline]
|
||||
predicate isAdditionalDefRoot(Node node) { none() }
|
||||
|
||||
overlay[local]
|
||||
private predicate isOverlay() { databaseMetadata("isOverlay", "true") }
|
||||
|
||||
bindingset[node]
|
||||
predicate inScope(DataFlow::Node node) { any() }
|
||||
predicate inScope(DataFlow::Node node) {
|
||||
// In the base database, compute everything in stage 1.
|
||||
// In an overlay database, do nothing in stage 1.
|
||||
not isOverlay() and exists(node)
|
||||
}
|
||||
}
|
||||
|
||||
private module Stage1 = Stage<Stage1Input>;
|
||||
|
||||
Reference in New Issue
Block a user