From 0da185da194c65464bb6b055f57492f9faa5536c Mon Sep 17 00:00:00 2001 From: Ron Buckton Date: Fri, 22 Apr 2016 10:56:48 -0700 Subject: [PATCH] PR Feedback --- src/compiler/printer.ts | 4 ---- src/compiler/transformers/destructuring.ts | 1 + 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/compiler/printer.ts b/src/compiler/printer.ts index 3beb71fc356..137fce46345 100644 --- a/src/compiler/printer.ts +++ b/src/compiler/printer.ts @@ -2174,10 +2174,6 @@ const _super = (function (geti, seti) { } function tryEmitSubstitute(node: Node, emitNode: (node: Node) => void, isExpression: boolean) { - if ((node).text === "localizedDiagnosticMessages" && isExpression) { - debugger; - } - if (isSubstitutionEnabled(node) && (getNodeEmitFlags(node) & NodeEmitFlags.NoSubstitution) === 0) { const substitute = onSubstituteNode(node, isExpression); if (substitute !== node) { diff --git a/src/compiler/transformers/destructuring.ts b/src/compiler/transformers/destructuring.ts index 6c1b796a836..c8ee58d8afc 100644 --- a/src/compiler/transformers/destructuring.ts +++ b/src/compiler/transformers/destructuring.ts @@ -405,6 +405,7 @@ namespace ts { location: TextRange, emitTempVariableAssignment: (value: Expression, location: TextRange) => Identifier, visitor?: (node: Node) => VisitResult) { + if (isIdentifier(value) && reuseIdentifierExpressions) { return value; }