added comments, fixed typo

This commit is contained in:
Vladimir Matveev
2015-04-21 06:49:31 -07:00
parent b4bd216013
commit 767d76241a

View File

@@ -2046,11 +2046,12 @@ var __param = this.__param || function(index, decorator) { return function (targ
}
else {
const exportChanged =
node.operatorToken.kind <= SyntaxKind.LastAssignment &&
node.operatorToken.kind >= SyntaxKind.FirstAssignment &&
node.operatorToken.kind <= SyntaxKind.LastAssignment &&
isNameOfExportedSourceLevelDeclarationInSystemExternalModule(node.left);
if (exportChanged) {
// emit assignment 'x <op> y' as 'exports("x", x <op> y)'
write(`${exportFunctionForFile}("`);
emitNodeWithoutSourceMap(node.left);
write(`", `);