import { TypeChecker } from "https://deno.land/x/ts_morph@20.0.0/ts_morph.d.ts";
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.
Parameters
symbol: Symbol