Skip to content

Commit

Permalink
JS: Add library for naming endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
asgerf committed Jan 30, 2024
1 parent 6cfdd7a commit 08e61b6
Show file tree
Hide file tree
Showing 29 changed files with 620 additions and 0 deletions.
3 changes: 3 additions & 0 deletions javascript/ql/lib/semmle/javascript/ApiGraphs.qll
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,9 @@ module API {
exportedName = "" and
result = getAModuleImportRaw(moduleName)
}

/** Gets a sink node that represents instances of `cls`. */
Node getClassInstance(DataFlow::ClassNode cls) { result = Impl::MkClassInstance(cls) }
}

/**
Expand Down
Loading

0 comments on commit 08e61b6

Please sign in to comment.