UNPKG

typescript-to-lua

Version:

A generic TypeScript to Lua transpiler. Write your code in TypeScript and publish Lua!

10 lines 497 B
"use strict"; 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