Skip to content

Commit 20b2ac0

Browse files
committed
JS: Add predicate for detecting lost edges
1 parent 60c6c0e commit 20b2ac0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

javascript/ql/lib/semmle/javascript/ApiGraphs.qll

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1635,6 +1635,13 @@ module API {
16351635

16361636
import Cached
16371637

1638+
private module Debug {
1639+
query predicate lostEdge(Node pred, Label::ApiLabel lbl, Node succ) {
1640+
Stage1::edge(pred, lbl, succ) and
1641+
not Cached::edge(pred, lbl, succ)
1642+
}
1643+
}
1644+
16381645
/**
16391646
* Holds if there is an edge from `pred` to `succ` in the API graph.
16401647
*/

0 commit comments

Comments
 (0)