JS: Add FunctionSelfReferenceNode

This commit is contained in:
Asger F
2023-10-10 10:25:36 +02:00
parent 760873c01c
commit f316da78d2
4 changed files with 34 additions and 0 deletions

View File

@@ -24,6 +24,7 @@ private module Cached {
(kind = "call" or kind = "apply")
} or
TThisNode(StmtContainer f) { f.(Function).getThisBinder() = f or f instanceof TopLevel } or
TFunctionSelfReferenceNode(Function f) or
TDestructuredModuleImportNode(ImportDeclaration decl) {
exists(decl.getASpecifier().getImportedName())
} or