CodeQL library for JavaScript/TypeScript
codeql/javascript-all 0.8.15-dev (changelog, source)
Search

Predicate functionHasPrimaryName

Holds if (package, name) is the primary name for the given function.

The function node may be an actual function expression, or a call site from which a function is returned.

Import path

import semmle.javascript.endpoints.EndpointNaming
predicate functionHasPrimaryName(SourceNode function, string package, string name)