Fixed conversion from forEach to for-of

This commit is contained in:
Daniel Rosenwasser
2015-07-10 17:55:04 -07:00
parent 616d84e4a0
commit 48ca1c49c4
+2 -2
View File
@@ -3479,8 +3479,8 @@ namespace ts {
for (let element of namedImportsOrExports.elements) {
// If this is the current item we are editing right now, do not filter it out
if (element.getStart() <= position && position <= element.getEnd()) {
return;
if (element.getStart() <= position && poition <= element.getEnd()) {
continue;
}
let name = element.propertyName || element.name;