UNPKG

@abaplint/transpiler

Version:
17 lines 696 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CaseTranspiler = void 0; const abaplint = require("@abaplint/core"); const expressions_1 = require("../expressions"); const chunk_1 = require("../chunk"); class CaseTranspiler { transpile(node, traversal) { const source = new expressions_1.SourceTranspiler(true).transpile(node.findDirectExpression(abaplint.Expressions.Source), traversal); return new chunk_1.Chunk() .append("switch (", node, traversal) .appendChunk(source) .append(") {", node.getLastToken(), traversal); } } exports.CaseTranspiler = CaseTranspiler; //# sourceMappingURL=case.js.map