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

Member predicate Function::getName

Gets the name of this function if it has one, or a name inferred from its context.

For named functions such as function f() { ... }, this is just the declared name. For functions assigned to variables or properties (including class members), this is the name of the variable or property. If no meaningful name can be inferred, there is no result.

string getName()