Gets the compiler's TypeChecker.
Gets the constant value of a declaration.
Node to get the constant value from.
Gets the contextual type of an expression.
Expression.
Gets the local target symbol of the provided export specifier.
Export specifier.
Gets the export symbol of a local symbol with a corresponding export symbol. Otherwise returns the input symbol.
The following is from the compiler API documentation:
For example, at export type T = number;:
- getSymbolAtLocation at the location T will return the exported symbol for T.
- But the result of getSymbolsInScope will contain the local symbol for T, not the exported symbol.
- Calling getExportSymbolOfSymbol on that local symbol will return the exported symbol.
Gets the fully qualified name of a symbol.
Symbol to get the fully qualified name of.
Gets the resolved signature from a node or returns undefined if the signature can't be resolved.
Node to get the signature from.
Gets the resolved signature from a node or throws if the signature cannot be resolved.
Node to get the signature from.
Optionalmessage: string | (() => string)Gets a signature from a node.
Node to get the signature from.
Gets the symbols in the scope of the provided node.
Note: This will always return the local symbols. If you want the export symbol from a local symbol, then
use the #getExportSymbolOfSymbol(symbol) method.
Node to check the scope for.
Meaning of symbol to filter by.
Wrapper around the TypeChecker.