File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed
Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ var LuaTranspiler = /** @class */ (function () {
3333 // Transpile a source file
3434 LuaTranspiler . transpileSourceFile = function ( node , checker ) {
3535 var transpiler = new LuaTranspiler ( checker ) ;
36- return "require(\"lib.typescript\")\n" + transpiler . transpileBlock ( node ) ;
36+ return transpiler . transpileBlock ( node ) ;
3737 } ;
3838 LuaTranspiler . prototype . pushIndent = function ( ) {
3939 this . indent = this . indent + " " ;
Original file line number Diff line number Diff line change 1+ -- Ternary operator
2+ function TS_ITE (condition , v1f , v2f )
3+ if condition then
4+ return v1f ()
5+ else
6+ return v2f ()
7+ end
8+ end
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ export class LuaTranspiler {
1515 // Transpile a source file
1616 static transpileSourceFile ( node : ts . SourceFile , checker : ts . TypeChecker ) : string {
1717 let transpiler = new LuaTranspiler ( checker ) ;
18- return "require(\"lib.typescript\")\n" + transpiler . transpileBlock ( node ) ;
18+ return transpiler . transpileBlock ( node ) ;
1919 }
2020
2121 indent : string ;
You can’t perform that action at this time.
0 commit comments