We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b12d927 commit 1001e86Copy full SHA for 1001e86
1 file changed
javascript/ql/lib/semmle/javascript/ApiGraphs.qll
@@ -1545,8 +1545,15 @@ module API {
1545
pragma[inline]
1546
predicate isAdditionalDefRoot(Node node) { none() }
1547
1548
+ overlay[local]
1549
+ private predicate isOverlay() { databaseMetadata("isOverlay", "true") }
1550
+
1551
bindingset[node]
- predicate inScope(DataFlow::Node node) { any() }
1552
+ predicate inScope(DataFlow::Node node) {
1553
+ // In the base database, compute everything in stage 1.
1554
+ // In an overlay database, do nothing in stage 1.
1555
+ not isOverlay() and exists(node)
1556
+ }
1557
}
1558
1559
private module Stage1 = Stage<Stage1Input>;
0 commit comments