From cc385530d1b466c92bf642416610af2934ffcd9c Mon Sep 17 00:00:00 2001 From: Vladimir Matveev Date: Mon, 20 Apr 2015 10:47:17 -0700 Subject: [PATCH] rename local variable --- src/compiler/emitter.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/compiler/emitter.ts b/src/compiler/emitter.ts index 941bc973837..e9d0242593f 100644 --- a/src/compiler/emitter.ts +++ b/src/compiler/emitter.ts @@ -2009,12 +2009,12 @@ var __param = this.__param || function(index, decorator) { return function (targ emitDestructuring(node, node.parent.kind === SyntaxKind.ExpressionStatement); } else { - const emitPublishOfExportedValue = + const exportChanged = node.operatorToken.kind <= SyntaxKind.LastAssignment && node.operatorToken.kind <= SyntaxKind.LastAssignment && isNameOfExportedSourceLevelDeclarationInSystemExternalModule(node.left); - if (emitPublishOfExportedValue) { + if (exportChanged) { write(`${exportFunctionForFile}("`); emitNodeWithoutSourceMap(node.left); write(`", `); @@ -2025,7 +2025,7 @@ var __param = this.__param || function(index, decorator) { return function (targ let indentedAfterOperator = indentIfOnDifferentLines(node, node.operatorToken, node.right, " "); emit(node.right); decreaseIndentIf(indentedBeforeOperator, indentedAfterOperator); - if (emitPublishOfExportedValue) { + if (exportChanged) { write(")"); } }