Skip to content

Commit

Permalink
fix #437
Browse files Browse the repository at this point in the history
  • Loading branch information
yanghuan committed Nov 25, 2023
1 parent 0517570 commit 8b0f027
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CSharp.lua/LuaSyntaxNodeTransform.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1604,6 +1604,9 @@ private LuaExpressionSyntax BuildCommonAssignmentExpression(LuaExpressionSyntax
private LuaExpressionSyntax BuildCommonAssignmentExpression(ExpressionSyntax leftNode, ExpressionSyntax rightNode, string operatorToken, ExpressionSyntax parent) {
var left = VisitExpression(leftNode);
var right = VisitExpression(rightNode);
if (rightNode is BinaryExpressionSyntax) {
right = right.Parenthesized();
}
return BuildCommonAssignmentExpression(left, right, operatorToken, rightNode, parent);
}

Expand Down

0 comments on commit 8b0f027

Please sign in to comment.