UNPKG

@abaplint/transpiler

Version:
16 lines 502 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.WhenTranspiler = void 0; const chunk_1 = require("../chunk"); class WhenTranspiler { transpile(node, traversal) { const ret = new chunk_1.Chunk(); for (const c of node.getChildren()) { ret.appendChunk(traversal.traverse(c)); } ret.append("break;\n", node, traversal); return ret; } } exports.WhenTranspiler = WhenTranspiler; //# sourceMappingURL=when.js.map