Dont check computed name visibility results when the computed name representation is not in use (#41806)

This commit is contained in:
Wesley Wigham
2020-12-18 11:41:55 -08:00
committed by GitHub
parent 5cdb2e8899
commit caebbe6714
8 changed files with 300 additions and 7 deletions

View File

@@ -4996,7 +4996,7 @@ namespace ts {
anyType : getTypeOfSymbol(propertySymbol);
const saveEnclosingDeclaration = context.enclosingDeclaration;
context.enclosingDeclaration = undefined;
if (context.tracker.trackSymbol && getCheckFlags(propertySymbol) & CheckFlags.Late) {
if (context.tracker.trackSymbol && getCheckFlags(propertySymbol) & CheckFlags.Late && isLateBoundName(propertySymbol.escapedName)) {
const decl = first(propertySymbol.declarations);
if (hasLateBindableName(decl)) {
if (isBinaryExpression(decl)) {