Skip to content

Commit 17263c5

Browse files
committed
JS: Add library for naming endpoints
1 parent 6cfdd7a commit 17263c5

File tree

29 files changed

+620
-0
lines changed

29 files changed

+620
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -594,6 +594,9 @@ module API {
594594
exportedName = "" and
595595
result = getAModuleImportRaw(moduleName)
596596
}
597+
598+
/** Gets a sink node that represents instances of `cls`. */
599+
Node getClassInstance(DataFlow::ClassNode cls) { result = Impl::MkClassInstance(cls) }
597600
}
598601

599602
/**

0 commit comments

Comments
 (0)