@@ -114,7 +114,7 @@ export class LuaTransformer {
114114 tstl . createReturnStatement ( [ this . transformExpression ( statement . expression ) ] )
115115 ) ;
116116 } else {
117- this . pushScope ( ScopeType . File , node ) ;
117+ this . pushScope ( ScopeType . File ) ;
118118
119119 this . isModule = tsHelper . isFileModule ( node ) ;
120120 statements = this . performHoisting ( this . transformStatements ( node . statements ) ) ;
@@ -217,14 +217,14 @@ export class LuaTransformer {
217217 }
218218
219219 public transformBlock ( block : ts . Block ) : tstl . Block {
220- this . pushScope ( ScopeType . Block , block ) ;
220+ this . pushScope ( ScopeType . Block ) ;
221221 const statements = this . performHoisting ( this . transformStatements ( block . statements ) ) ;
222222 this . popScope ( ) ;
223223 return tstl . createBlock ( statements , block ) ;
224224 }
225225
226226 public transformBlockAsDoStatement ( block : ts . Block ) : StatementVisitResult {
227- this . pushScope ( ScopeType . Block , block ) ;
227+ this . pushScope ( ScopeType . Block ) ;
228228 const statements = this . performHoisting ( this . transformStatements ( block . statements ) ) ;
229229 this . popScope ( ) ;
230230 return tstl . createDoStatement ( statements , block ) ;
@@ -1289,7 +1289,7 @@ export class LuaTransformer {
12891289 spreadIdentifier ?: tstl . Identifier
12901290 ) : [ tstl . Statement [ ] , Scope ]
12911291 {
1292- this . pushScope ( ScopeType . Function , body ) ;
1292+ this . pushScope ( ScopeType . Function ) ;
12931293
12941294 const headerStatements = [ ] ;
12951295
@@ -1497,7 +1497,7 @@ export class LuaTransformer {
14971497
14981498 // Transform moduleblock to block and visit it
14991499 if ( tsHelper . moduleHasEmittedBody ( statement ) ) {
1500- this . pushScope ( ScopeType . Block , statement ) ;
1500+ this . pushScope ( ScopeType . Block ) ;
15011501 let statements = ts . isModuleBlock ( statement . body )
15021502 ? this . transformStatements ( statement . body . statements )
15031503 : this . transformModuleDeclaration ( statement . body ) ;
@@ -1805,11 +1805,11 @@ export class LuaTransformer {
18051805 return this . createLocalOrExportedOrGlobalDeclaration ( name , functionExpression , functionDeclaration ) ;
18061806 }
18071807
1808- public transformTypeAliasDeclaration ( statement : ts . TypeAliasDeclaration ) : StatementVisitResult {
1808+ public transformTypeAliasDeclaration ( _statement : ts . TypeAliasDeclaration ) : StatementVisitResult {
18091809 return undefined ;
18101810 }
18111811
1812- public transformInterfaceDeclaration ( statement : ts . InterfaceDeclaration ) : StatementVisitResult {
1812+ public transformInterfaceDeclaration ( _statement : ts . InterfaceDeclaration ) : StatementVisitResult {
18131813 return undefined ;
18141814 }
18151815
@@ -2077,7 +2077,7 @@ export class LuaTransformer {
20772077 }
20782078
20792079 public transformIfStatement ( statement : ts . IfStatement ) : StatementVisitResult {
2080- this . pushScope ( ScopeType . Conditional , statement . thenStatement ) ;
2080+ this . pushScope ( ScopeType . Conditional ) ;
20812081 const condition = this . transformExpression ( statement . expression ) ;
20822082 const statements = this . performHoisting ( this . transformBlockOrStatement ( statement . thenStatement ) ) ;
20832083 this . popScope ( ) ;
@@ -2087,7 +2087,7 @@ export class LuaTransformer {
20872087 const elseStatement = this . transformIfStatement ( statement . elseStatement ) as tstl . IfStatement ;
20882088 return tstl . createIfStatement ( condition , ifBlock , elseStatement ) ;
20892089 } else {
2090- this . pushScope ( ScopeType . Conditional , statement . elseStatement ) ;
2090+ this . pushScope ( ScopeType . Conditional ) ;
20912091 const elseStatements = this . performHoisting ( this . transformBlockOrStatement ( statement . elseStatement ) ) ;
20922092 this . popScope ( ) ;
20932093 const elseBlock = tstl . createBlock ( elseStatements ) ;
@@ -2187,7 +2187,7 @@ export class LuaTransformer {
21872187 loop : ts . WhileStatement | ts . DoStatement | ts . ForStatement | ts . ForOfStatement | ts . ForInOrOfStatement
21882188 ) : tstl . Statement [ ]
21892189 {
2190- this . pushScope ( ScopeType . Loop , loop . statement ) ;
2190+ this . pushScope ( ScopeType . Loop ) ;
21912191 const body = this . performHoisting ( this . transformBlockOrStatement ( loop . statement ) ) ;
21922192 const scope = this . popScope ( ) ;
21932193 const scopeId = scope . id ;
@@ -2401,7 +2401,7 @@ export class LuaTransformer {
24012401 throw TSTLErrors . UnsupportedForTarget ( "Switch statements" , this . luaTarget , statement ) ;
24022402 }
24032403
2404- this . pushScope ( ScopeType . Switch , statement ) ;
2404+ this . pushScope ( ScopeType . Switch ) ;
24052405
24062406 // Give the switch a unique name to prevent nested switches from acting up.
24072407 const scope = this . peekScope ( ) ;
@@ -2542,7 +2542,7 @@ export class LuaTransformer {
25422542 ) ;
25432543 }
25442544
2545- public transformEmptyStatement ( statement : ts . EmptyStatement ) : StatementVisitResult {
2545+ public transformEmptyStatement ( _statement : ts . EmptyStatement ) : StatementVisitResult {
25462546 return undefined ;
25472547 }
25482548
@@ -5135,7 +5135,7 @@ export class LuaTransformer {
51355135 return this . scopeStack [ this . scopeStack . length - 1 ] ;
51365136 }
51375137
5138- protected pushScope ( scopeType : ScopeType , node : ts . Node ) : void {
5138+ protected pushScope ( scopeType : ScopeType ) : void {
51395139 this . scopeStack . push ( {
51405140 type : scopeType ,
51415141 id : this . genVarCounter ,
0 commit comments