// THIS FILE WAS AUTO-GENERATED
// Source: lib/templates/backends/typescriptGenerator/blockSetup.mustache
// Any manual changes will be lost.
import { apply } from "typestache";
export const template = `const __bsetup = setupFunction();
const __bstack = __bsetup.stack;
const __self = __bstack.locals;
{{#params}}
__bstack.args[{{{this.paramNameQuoted}}}] = {{{this.paramName}}};
{{/params}}
const runner = new Runner(__ctx, __bstack, { state: __bstack, moduleId: {{{moduleId}}}, scopeName: {{{scopeName}}} });
try {
{{{body}}}
return runner.halted ? runner.haltResult : undefined;
} finally {
__ctx.stateStack.pop();
}`;
const render = (args) => {
    return apply(template, args);
};
export default render;
