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

Predicate definitionOf

Gets an element, of kind kind, that element e uses, if any.

The kind is a string representing what kind of use it is:

  • "M" for function and method calls
  • "T" for uses of types
  • "V" for variable accesses
  • "I" for imports

Import path

import definitions
AstNode definitionOf(Locatable e, string kind)