We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89ae1d2 commit 62f50d0Copy full SHA for 62f50d0
src/Transpiler.ts
@@ -819,9 +819,11 @@ export abstract class LuaTranspiler {
819
// Check if this is an assignment token, then handle accordingly
820
const [isAssignment, operator] = tsHelper.isBinaryAssignmentToken(node.operatorToken.kind);
821
if (isAssignment) {
822
+ const binaryExpression = ts.createBinary(node.left, operator, node.right);
823
+ binaryExpression.pos = node.operatorToken.pos;
824
return this.transpileAssignmentExpression(
825
node.left,
- ts.createBinary(node.left, operator, node.right),
826
+ binaryExpression,
827
tsHelper.isExpressionStatement(node),
828
false
829
);
0 commit comments