mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-22 02:35:48 -05:00
fix 39453 (#39579)
* fix 39453 * add restriction. * add tests * comment. * fix as suggestion.
This commit is contained in:
@@ -249,6 +249,10 @@ namespace ts.CallHierarchy {
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
// #39453
|
||||
if (isVariableDeclaration(location) && location.initializer && isConstNamedExpression(location.initializer)) {
|
||||
return location.initializer;
|
||||
}
|
||||
if (!followingSymbol) {
|
||||
let symbol = typeChecker.getSymbolAtLocation(location);
|
||||
if (symbol) {
|
||||
|
||||
Reference in New Issue
Block a user