File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -2672,11 +2672,19 @@ export class EmitterLua {
26722672 this . processExpression ( node . operand ) ;
26732673 break ;
26742674 case ts . SyntaxKind . ExclamationToken :
2675- this . functionContext . textCode . push ( "not(" ) ;
2676- this . processExpression ( node . operand ) ;
2677- this . functionContext . textCode . push ( ")" ) ;
2675+ if ( this . ignoreExtraLogic )
2676+ {
2677+ this . functionContext . textCode . push ( "not(" ) ;
2678+ this . processExpression ( node . operand ) ;
2679+ this . functionContext . textCode . push ( ")" ) ;
2680+ }
2681+ else
2682+ {
2683+ this . functionContext . textCode . push ( "__not(" ) ;
2684+ this . processExpression ( node . operand ) ;
2685+ this . functionContext . textCode . push ( ")" ) ;
2686+ }
26782687 break ;
2679-
26802688 case ts . SyntaxKind . PlusPlusToken :
26812689 this . processExpression ( node . operand ) ;
26822690 this . functionContext . textCode . push ( " = " ) ;
You can’t perform that action at this time.
0 commit comments