Skip to content

Commit 03a7baf

Browse files
committed
fmt
1 parent 507b13d commit 03a7baf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/checker/checker.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12404,17 +12404,17 @@ func (c *Checker) checkNullishCoalesceOperands(left *ast.Node, right *ast.Node)
1240412404
operatorToken := left.Parent.Parent.AsBinaryExpression().OperatorToken
1240512405
left := left.Parent.Parent.AsBinaryExpression().Left
1240612406
if ast.IsBinaryExpression(left) && operatorToken.Kind == ast.KindBarBarToken {
12407-
c.grammarErrorOnNode(left, diagnostics.X_0_and_1_operations_cannot_be_mixed_without_parentheses, scanner.TokenToString(ast.KindQuestionQuestionToken), scanner.TokenToString(operatorToken.Kind))
12407+
c.grammarErrorOnNode(left, diagnostics.X_0_and_1_operations_cannot_be_mixed_without_parentheses, scanner.TokenToString(ast.KindQuestionQuestionToken), scanner.TokenToString(operatorToken.Kind))
1240812408
}
1240912409
} else if ast.IsBinaryExpression(left) {
1241012410
operatorToken := left.AsBinaryExpression().OperatorToken
1241112411
if operatorToken.Kind == ast.KindBarBarToken || operatorToken.Kind == ast.KindAmpersandAmpersandToken {
12412-
c.grammarErrorOnNode(left, diagnostics.X_0_and_1_operations_cannot_be_mixed_without_parentheses, scanner.TokenToString(operatorToken.Kind), scanner.TokenToString(ast.KindQuestionQuestionToken))
12412+
c.grammarErrorOnNode(left, diagnostics.X_0_and_1_operations_cannot_be_mixed_without_parentheses, scanner.TokenToString(operatorToken.Kind), scanner.TokenToString(ast.KindQuestionQuestionToken))
1241312413
}
1241412414
} else if ast.IsBinaryExpression(right) {
1241512415
operatorToken := right.AsBinaryExpression().OperatorToken
1241612416
if operatorToken.Kind == ast.KindAmpersandAmpersandToken {
12417-
c.grammarErrorOnNode(right, diagnostics.X_0_and_1_operations_cannot_be_mixed_without_parentheses, scanner.TokenToString(ast.KindQuestionQuestionToken), scanner.TokenToString(operatorToken.Kind))
12417+
c.grammarErrorOnNode(right, diagnostics.X_0_and_1_operations_cannot_be_mixed_without_parentheses, scanner.TokenToString(ast.KindQuestionQuestionToken), scanner.TokenToString(operatorToken.Kind))
1241812418
}
1241912419
}
1242012420
leftTarget := ast.SkipOuterExpressions(left, ast.OEKAll)

0 commit comments

Comments
 (0)