File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -326,6 +326,8 @@ var LuaTranspiler = /** @class */ (function () {
326326 return this . transpileNewExpression ( node ) ;
327327 case ts . SyntaxKind . ComputedPropertyName :
328328 return "[" + this . transpileExpression ( node . expression ) + "]" ;
329+ case ts . SyntaxKind . ParenthesizedExpression :
330+ return "(" + this . transpileExpression ( node . expression ) + ")" ;
329331 case ts . SyntaxKind . SuperKeyword :
330332 return "self.__base" ;
331333 case ts . SyntaxKind . TypeAssertionExpression :
Original file line number Diff line number Diff line change @@ -358,6 +358,8 @@ export class LuaTranspiler {
358358 return this . transpileNewExpression ( < ts . NewExpression > node ) ;
359359 case ts . SyntaxKind . ComputedPropertyName :
360360 return "[" + this . transpileExpression ( ( < ts . ComputedPropertyName > node ) . expression ) + "]" ;
361+ case ts . SyntaxKind . ParenthesizedExpression :
362+ return "(" + this . transpileExpression ( ( < ts . ParenthesizedExpression > node ) . expression ) + ")" ;
361363 case ts . SyntaxKind . SuperKeyword :
362364 return "self.__base" ;
363365 case ts . SyntaxKind . TypeAssertionExpression :
You can’t perform that action at this time.
0 commit comments