@@ -137,7 +137,7 @@ var LuaTranspiler = /** @class */ (function () {
137137 } ;
138138 LuaTranspiler . prototype . transpileNamespace = function ( node ) {
139139 // If phantom namespace just transpile the body as normal
140- if ( TSHelper_1 . TSHelper . isPhantom ( this . checker . getTypeAtLocation ( node ) ) )
140+ if ( TSHelper_1 . TSHelper . isPhantom ( this . checker . getTypeAtLocation ( node ) , this . checker ) )
141141 return this . transpileNode ( node . body ) ;
142142 var defName = this . definitionName ( node . name . text ) ;
143143 var result = this . indent + ( defName + " = {}\n" ) ;
@@ -151,7 +151,7 @@ var LuaTranspiler = /** @class */ (function () {
151151 var val = 0 ;
152152 var result = "" ;
153153 var type = this . checker . getTypeAtLocation ( node ) ;
154- var membersOnly = TSHelper_1 . TSHelper . isCompileMembersOnlyEnum ( type ) ;
154+ var membersOnly = TSHelper_1 . TSHelper . isCompileMembersOnlyEnum ( type , this . checker ) ;
155155 if ( ! membersOnly ) {
156156 var defName = this . definitionName ( node . name . escapedText ) ;
157157 result += this . indent + ( defName + "={}\n" ) ;
@@ -572,7 +572,7 @@ var LuaTranspiler = /** @class */ (function () {
572572 return this . transpileArrayProperty ( node ) ;
573573 }
574574 // Do not output path for member only enums
575- if ( TSHelper_1 . TSHelper . isCompileMembersOnlyEnum ( type ) ) {
575+ if ( TSHelper_1 . TSHelper . isCompileMembersOnlyEnum ( type , this . checker ) ) {
576576 return property ;
577577 }
578578 var path = this . transpileExpression ( node . expression ) ;
@@ -705,16 +705,16 @@ var LuaTranspiler = /** @class */ (function () {
705705 if ( clause . token == ts . SyntaxKind . ExtendsKeyword ) {
706706 var superType = _this . checker . getTypeAtLocation ( clause . types [ 0 ] ) ;
707707 // Ignore purely abstract types (decorated with /** @PureAbstract */)
708- if ( ! TSHelper_1 . TSHelper . isPureAbstractClass ( superType ) ) {
708+ if ( ! TSHelper_1 . TSHelper . isPureAbstractClass ( superType , _this . checker ) ) {
709709 extendsType = clause . types [ 0 ] ;
710710 }
711- noClassOr = TSHelper_1 . TSHelper . hasCustomDecorator ( superType , "!NoClassOr" ) ;
711+ noClassOr = TSHelper_1 . TSHelper . hasCustomDecorator ( superType , _this . checker , "!NoClassOr" ) ;
712712 }
713713 } ) ;
714714 var className = node . name . escapedText ;
715715 var result = "" ;
716716 // Skip header if this is an extension class
717- var isExtension = TSHelper_1 . TSHelper . isExtensionClass ( this . checker . getTypeAtLocation ( node ) ) ;
717+ var isExtension = TSHelper_1 . TSHelper . isExtensionClass ( this . checker . getTypeAtLocation ( node ) , this . checker ) ;
718718 if ( ! isExtension ) {
719719 // Write class declaration
720720 var classOr = noClassOr ? "" : className + " or " ;
0 commit comments