Query module definitions

name
Jump-to-definition links
description
Generates use-definition pairs that provide the data for jump-to-definition in the code viewer.
kind
definitions
id
js/jump-to-definition

Imports

javascript

Provides classes for working with JavaScript programs, as well as JSON, YAML and HTML.

Predicates

getAWrite

Gets a node that may write the property read by prn.

importLookup

Holds if path expression path, which appears in a CommonJS require call or an ES 2015 import statement, imports module target; kind is always “I” (for “import”).

lookupDef

Gets a class, function or object literal va may refer to.

propertyLookup

Holds if prop is the property name expression of a property read that may read the property written by write. Furthermore, write must be the only such property write. Parameter kind is always bound to "M" at the moment.

refKind

Gets the kind of reference that r represents.

typeLookup

Holds if ref is an identifier that refers to a type or namespace declared at decl.

typedInvokeLookup

Holds if ref is the callee name of an invocation of decl.

variableDeclLookup

Holds if variable access va is of kind kind and refers to the variable declaration.

variableDefLookup

Holds if va is of kind kind and def is the unique class, function or object literal it refers to.