From 033864be820660c64dcce7a2bfc96183a45565a0 Mon Sep 17 00:00:00 2001 From: Ron Buckton Date: Thu, 31 Mar 2016 10:16:05 -0700 Subject: [PATCH] PR Feedback --- src/compiler/factory.ts | 4 ++-- src/compiler/transformers/es6.ts | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/compiler/factory.ts b/src/compiler/factory.ts index 4583643bc28..7598f1f69dc 100644 --- a/src/compiler/factory.ts +++ b/src/compiler/factory.ts @@ -1248,7 +1248,7 @@ namespace ts { // x|(a|b) => x|a|b // x&(a&b) => x&a&b // x^(a^b) => x^a^b - if (isMathAssociativeOperator(binaryOperator)) { + if (operatorHasAssociativeProperty(binaryOperator)) { return false; } @@ -1286,7 +1286,7 @@ namespace ts { * * @param binaryOperator The binary operator. */ - function isMathAssociativeOperator(binaryOperator: SyntaxKind) { + function operatorHasAssociativeProperty(binaryOperator: SyntaxKind) { // The following operators are associative in JavaScript: // (a*b)*c -> a*(b*c) -> a*b*c // (a|b)|c -> a|(b|c) -> a|b|c diff --git a/src/compiler/transformers/es6.ts b/src/compiler/transformers/es6.ts index 3566e3c3d81..c008a754ebd 100644 --- a/src/compiler/transformers/es6.ts +++ b/src/compiler/transformers/es6.ts @@ -2431,7 +2431,6 @@ namespace ts { // ES6 Spec 11.8.6.1 - Static Semantics of TV's and TRV's // and LineTerminatorSequences are normalized to for both TV and TRV. text = text.replace(/\r\n?/g, "\n"); - //text = escapeString(text); return createLiteral(text, /*location*/ node); }