mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-18 17:27:54 -05:00
fix(35474): formatter incorrectly adds space after increment (#35550)
This commit is contained in:
committed by
Daniel Rosenwasser
parent
05a2f1b110
commit
a39a675696
@@ -433,9 +433,9 @@ namespace ts.formatting {
|
||||
}
|
||||
|
||||
function isBinaryOpContext(context: FormattingContext): boolean {
|
||||
|
||||
switch (context.contextNode.kind) {
|
||||
case SyntaxKind.BinaryExpression:
|
||||
return (<BinaryExpression>context.contextNode).operatorToken.kind !== SyntaxKind.CommaToken;
|
||||
case SyntaxKind.ConditionalExpression:
|
||||
case SyntaxKind.ConditionalType:
|
||||
case SyntaxKind.AsExpression:
|
||||
|
||||
Reference in New Issue
Block a user