Fix for thisProperty

(cherry picked from commit b389e9c619)
This commit is contained in:
zhengbli
2016-01-27 12:43:31 -08:00
committed by Bill Ticehurst
parent 2a24e033cd
commit ea099e7d13

View File

@@ -15370,9 +15370,9 @@ namespace ts {
const specialPropertyAssignmentKind = getSpecialPropertyAssignmentKind(entityName.parent.parent);
switch (specialPropertyAssignmentKind) {
case SpecialPropertyAssignmentKind.ExportsProperty:
case SpecialPropertyAssignmentKind.ThisProperty:
case SpecialPropertyAssignmentKind.PrototypeProperty:
return getSymbolOfNode(entityName.parent);
case SpecialPropertyAssignmentKind.ThisProperty:
case SpecialPropertyAssignmentKind.ModuleExports:
return getSymbolOfNode(entityName.parent.parent);
}