PR Feedback

This commit is contained in:
Ron Buckton 2016-03-31 10:16:05 -07:00
parent fe13cdc7bd
commit 033864be82
2 changed files with 2 additions and 3 deletions

View File

@ -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

View File

@ -2431,7 +2431,6 @@ namespace ts {
// ES6 Spec 11.8.6.1 - Static Semantics of TV's and TRV's
// <CR><LF> and <CR> LineTerminatorSequences are normalized to <LF> for both TV and TRV.
text = text.replace(/\r\n?/g, "\n");
//text = escapeString(text);
return createLiteral(text, /*location*/ node);
}