Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/LuaTransformer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ export class LuaTransformer {
return this.transformContinueStatement(node as ts.ContinueStatement);
case ts.SyntaxKind.EmptyStatement:
return this.transformEmptyStatement(node as ts.EmptyStatement);
case ts.SyntaxKind.NotEmittedStatement:
return undefined;
default:
throw TSTLErrors.UnsupportedKind("Statement", node.kind, node);
}
Expand Down Expand Up @@ -1553,10 +1555,14 @@ export class LuaTransformer {
case ts.SyntaxKind.EmptyStatement:
// TODO move to extra function (consistency)
return undefined;
case ts.SyntaxKind.NotEmittedStatement:
return undefined;
case ts.SyntaxKind.ClassExpression:
const className = tstl.createIdentifier("____");
const classDeclaration = this.transformClassDeclaration(expression as ts.ClassExpression, className);
return this.createImmediatelyInvokedFunctionExpression(classDeclaration, className, expression);
case ts.SyntaxKind.PartiallyEmittedExpression:
return this.transformExpression((expression as ts.PartiallyEmittedExpression).expression);
default:
throw TSTLErrors.UnsupportedKind("expression", expression.kind, expression);
}
Expand Down