File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/transformation/visitors/binary-expression Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 11import * as ts from "typescript" ;
22import * as lua from "../../../LuaAST" ;
3+ import { cast } from "../../../utils" ;
34import { TransformationContext } from "../../context" ;
45import { isTupleReturnCall } from "../../utils/annotations" ;
56import { validateAssignment , validatePropertyAssignment } from "../../utils/assignment-validation" ;
@@ -19,7 +20,7 @@ export function transformAssignmentLeftHandSideExpression(
1920
2021 return lua . isIdentifier ( left ) && symbol && isSymbolExported ( context , symbol )
2122 ? createExportedIdentifier ( context , left )
22- : ( left as lua . AssignmentLeftHandSideExpression ) ;
23+ : cast ( left , lua . isAssignmentLeftHandSideExpression ) ;
2324}
2425
2526export function transformAssignment (
You can’t perform that action at this time.
0 commit comments