typescript-to-lua
Version:
A generic TypeScript to Lua transpiler. Write your code in TypeScript and publish Lua!
10 lines • 497 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.transformInPrecedingStatementScope = transformInPrecedingStatementScope;
function transformInPrecedingStatementScope(context, transformer) {
context.pushPrecedingStatements();
const statementOrStatements = transformer();
const precedingStatements = context.popPrecedingStatements();
return { precedingStatements, result: statementOrStatements };
}
//# sourceMappingURL=preceding-statements.js.map