From 7cc65ca73efa4d89266dc5ff3797fb3fbc4e568e Mon Sep 17 00:00:00 2001 From: Cyrus Najmabadi Date: Sun, 30 Nov 2014 21:22:23 -0800 Subject: [PATCH] Simplify the emitter. --- src/compiler/emitter.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/compiler/emitter.ts b/src/compiler/emitter.ts index 179a01f5157..df99de098f3 100644 --- a/src/compiler/emitter.ts +++ b/src/compiler/emitter.ts @@ -2395,10 +2395,7 @@ module ts { // the resulting expression a prefix increment operation. And in the second, it will make the resulting // expression a prefix increment whose operand is a plus expression - (++(+x)) // The same is true of minus of course. - if (node.operator >= SyntaxKind.Identifier) { - write(" "); - } - else if (node.kind === SyntaxKind.PrefixUnaryExpression && node.operand.kind === SyntaxKind.PrefixUnaryExpression) { + if (node.operand.kind === SyntaxKind.PrefixUnaryExpression) { var operand = node.operand; if (node.operator === SyntaxKind.PlusToken && (operand.operator === SyntaxKind.PlusToken || operand.operator === SyntaxKind.PlusPlusToken)) { write(" ");