@abaplint/transpiler
Version:
13 lines • 590 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CloseCursorTranspiler = void 0;
const abaplint = require("@abaplint/core");
const chunk_1 = require("../chunk");
class CloseCursorTranspiler {
transpile(node, traversal) {
const cursor = traversal.traverse(node.findFirstExpression(abaplint.Expressions.SQLSourceSimple)).getCode();
return new chunk_1.Chunk().append(`await abap.statements.closeCursor(${cursor});`, node, traversal);
}
}
exports.CloseCursorTranspiler = CloseCursorTranspiler;
//# sourceMappingURL=close_cursor.js.map