Skip to content

Commit 7cc65ca

Browse files
Simplify the emitter.
1 parent aed8404 commit 7cc65ca

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/compiler/emitter.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2395,10 +2395,7 @@ module ts {
23952395
// the resulting expression a prefix increment operation. And in the second, it will make the resulting
23962396
// expression a prefix increment whose operand is a plus expression - (++(+x))
23972397
// The same is true of minus of course.
2398-
if (node.operator >= SyntaxKind.Identifier) {
2399-
write(" ");
2400-
}
2401-
else if (node.kind === SyntaxKind.PrefixUnaryExpression && node.operand.kind === SyntaxKind.PrefixUnaryExpression) {
2398+
if (node.operand.kind === SyntaxKind.PrefixUnaryExpression) {
24022399
var operand = <PrefixUnaryExpression>node.operand;
24032400
if (node.operator === SyntaxKind.PlusToken && (operand.operator === SyntaxKind.PlusToken || operand.operator === SyntaxKind.PlusPlusToken)) {
24042401
write(" ");

0 commit comments

Comments
 (0)