diff --git a/src/compiler/emitter.ts b/src/compiler/emitter.ts index 47662c26b42..51bc49297be 100644 --- a/src/compiler/emitter.ts +++ b/src/compiler/emitter.ts @@ -3564,7 +3564,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi } emitAssignment(identifier, expression, shouldEmitCommaBeforeAssignment); return identifier; - } + } function emitDestructuring(root: BinaryExpression | VariableDeclaration | ParameterDeclaration, isAssignmentExpressionStatement: boolean, value?: Expression) { let emitCount = 0; diff --git a/src/compiler/parser.ts b/src/compiler/parser.ts index b33f3faaed9..7ea8f0aa7aa 100644 --- a/src/compiler/parser.ts +++ b/src/compiler/parser.ts @@ -3215,7 +3215,7 @@ namespace ts { parseBinaryExpressionRest(getBinaryOperatorPrecedence(), incrementExpression) : incrementExpression; } - + let unaryOperator = token; let simpleUnaryExpression = parseSimpleUnaryExpression(); if (token === SyntaxKind.AsteriskAsteriskToken) { @@ -3277,7 +3277,7 @@ namespace ts { * ++LeftHandSideExpression[?Yield] * --LeftHandSideExpression[?Yield] */ - function isIncrementExpression(): boolean{ + function isIncrementExpression(): boolean { // This function is called inside parseUnaryExpression to decide // whether to call parseSimpleUnaryExpression or call parseIncrmentExpression directly switch (token) { @@ -3288,7 +3288,7 @@ namespace ts { case SyntaxKind.DeleteKeyword: case SyntaxKind.TypeOfKeyword: case SyntaxKind.VoidKeyword: - return false + return false; case SyntaxKind.LessThanToken: // If we are not in JSX context, we are parsing TypeAssertion which is an UnaryExpression if (sourceFile.languageVariant !== LanguageVariant.JSX) { diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 3a30ce04383..5ca7ef6e909 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -708,7 +708,7 @@ namespace ts { export interface UnaryExpression extends Expression { _unaryExpressionBrand: any; } - + export interface IncrementExpression extends UnaryExpression { _incrementExpressionBrand: any; }