Skip to content

Commit bff8caa

Browse files
author
Yui T
committed
Add class expression if existed to classifiable-name map
1 parent e6d91a4 commit bff8caa

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/compiler/binder.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -973,6 +973,10 @@ namespace ts {
973973
else {
974974
let bindingName = node.name ? node.name.text : "__class";
975975
bindAnonymousDeclaration(node, SymbolFlags.Class, bindingName);
976+
// Add name of class expression into the map for semantic classifier
977+
if (node.name) {
978+
classifiableNames[node.name.text] = node.name.text;
979+
}
976980
}
977981

978982
let symbol = node.symbol;
@@ -1062,4 +1066,4 @@ namespace ts {
10621066
: declareSymbolAndAddToSymbolTable(node, symbolFlags, symbolExcludes);
10631067
}
10641068
}
1065-
}
1069+
}

0 commit comments

Comments
 (0)