Skip to content

Commit e4050ca

Browse files
committed
Removed statement static mod
1 parent c9e459b commit e4050ca

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/Transformer.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export class LuaTransformer {
2424
public transform(node: ts.SourceFile): ts.SourceFile {
2525
this.sourceFile = node;
2626
this.isModule = tsHelper.isFileModule(node);
27+
console.log(this.checker.getTypeAtLocation(this.sourceFile).getSymbol().exports);
2728
return ts
2829
.transform(node,
2930
[(ctx: ts.TransformationContext) => {
@@ -304,11 +305,6 @@ export class LuaTransformer {
304305
return undefined;
305306
}
306307
public visitVariableStatement(node: ts.VariableStatement): ts.VisitResult<ts.VariableStatement> {
307-
// TODO maybe flag as gglobal/local here somehow?
308-
if (!this.isModule && !this.currentNamespace) {
309-
return ts.updateVariableStatement(
310-
node, [ts.createModifier(ts.SyntaxKind.StaticKeyword)], node.declarationList);
311-
}
312308
return node;
313309
}
314310
public visitExpressionStatement(node: ts.ExpressionStatement): ts.VisitResult<ts.ExpressionStatement> {

test/runner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ fs.copyFileSync(
2323
testRunner.outputStream
2424
// this will use alsatian's default output if you remove this
2525
// you'll get TAP or you can add your favourite TAP reporter in it's place
26-
.pipe(TapBark.create().getPipeable())
26+
// .pipe(TapBark.create().getPipeable())
2727
// pipe to the console
2828
.pipe(process.stdout);
2929

0 commit comments

Comments
 (0)