@abaplint/transpiler
Version:
27 lines • 1.14 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.EnhancementPointTranspiler = void 0;
const abaplint = require("@abaplint/core");
const chunk_1 = require("../chunk");
class EnhancementPointTranspiler {
transpile(_node, _traversal) {
// for now, do nothing, but leave a comment
// ENHANCEMENT-POINT enh_id SPOTS spot1 spot2 ... [STATIC] [INCLUDE BOUND].
let enhId = "";
const spots = [];
for (const tn of _node.getTokenNodes()) {
if (tn instanceof abaplint.Nodes.TokenNodeRegex) {
if (!enhId) {
enhId = tn.get().getStr();
}
else {
spots.push(tn.get().getStr());
}
}
}
// [Transpiler] EnhancementPoint not implemented. Ignoring 'enh_id' spots 'spot1', 'spot2' ...
return new chunk_1.Chunk(`// [Transpiler] EnhancementPoint not implemented. Ignoring '${enhId}' spots '${spots.join("', '")}'`);
}
}
exports.EnhancementPointTranspiler = EnhancementPointTranspiler;
//# sourceMappingURL=enhancement_point.js.map