Constructor callable for a class: the explicit constructor body (if any) plus all non-static, non-function field initializers.
Finds the callable that contains node. Anonymous callbacks are
attributed to their enclosing named callable; references inside a
non-function field initializer are attributed to the class constructor.
Stable identity of a callable: file:line:name of its declaration.
Resolves the declarations behind an expression via the type checker.
Returns undefined when no symbol can be resolved (caller may fall back
to name-based lookup) and an empty array when the symbol resolves to
declarations that cannot be represented.
Finds a callable by name in one file.
member, Class.member or Class.constructor; without a
class prefix, class members are tried first, then top-level functions
and variables.
Path of the source file in the project.
The callable, or null when the file or name is not found.
Converts a declaration node into a Callable, or null when the node
cannot run code (e.g. a plain data property or an interface member).
Resolves callables and their callees in a ts-morph project.
Maps TypeScript declarations to callables (methods, functions, constructors incl. field initializers, accessors, function-valued properties) and resolves what a callable calls: call expressions via the type checker (name-based fallback),
new X(),super(), and property reads/writes that hit a getter/setter.Remarks
Shared by CallGraphBuilder (caller/callee trees for one target) and BootstrapExecutionAnalyzer (everything that runs from bootstrap roots).