UNPKG

@abaplint/transpiler

Version:
17 lines 608 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.IfTranspiler = void 0; const abaplint = require("@abaplint/core"); const chunk_1 = require("../chunk"); class IfTranspiler { transpile(node, traversal) { const cond = traversal.traverse(node.findFirstExpression(abaplint.Expressions.Cond)); const ret = new chunk_1.Chunk(); ret.append("if (", node, traversal); ret.appendChunk(cond); ret.append(") {", node.getLastToken(), traversal); return ret; } } exports.IfTranspiler = IfTranspiler; //# sourceMappingURL=if.js.map