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 f7208f9 commit 0c39e04Copy full SHA for 0c39e04
javascript/ql/lib/semmle/javascript/ApiGraphs.qll
@@ -778,6 +778,17 @@ module API {
778
} or
779
MkSyntheticCallbackArg(DataFlow::InvokeNode nd)
780
781
+ private predicate needsDefNode(DataFlow::ClassNode cls) {
782
+ hasSemantics(cls) and
783
+ (
784
+ cls = trackDefNode(_)
785
+ or
786
+ cls.getAnInstanceReference() = trackDefNode(_)
787
788
+ needsDefNode(cls.getADirectSubClass())
789
+ )
790
+ }
791
+
792
class TDef = MkModuleDef or TNonModuleDef;
793
794
class TNonModuleDef = MkModuleExport or MkClassInstance or MkDef or MkSyntheticCallbackArg;
0 commit comments