import { Symbol } from "https://deno.land/x/ts_morph@21.0.1/mod.ts";
Gets the export symbol of the symbol if its a local symbol with a corresponding export symbol. Otherwise returns the current 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 getExportSymbol
on that local symbol will return the exported symbol.