@abaplint/transpiler
Version:
18 lines • 720 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.SQLIntoListTranspiler = void 0;
const abaplint = require("@abaplint/core");
const chunk_1 = require("../chunk");
class SQLIntoListTranspiler {
transpile(node, traversal) {
const targets = node.findDirectExpressions(abaplint.Expressions.SQLTarget);
const transpiled = targets.map(t => traversal.traverse(t));
const chunk = new chunk_1.Chunk();
chunk.appendString("[");
chunk.appendString(transpiled.map(t => t.getCode()).join(","));
chunk.appendString("]");
return chunk;
}
}
exports.SQLIntoListTranspiler = SQLIntoListTranspiler;
//# sourceMappingURL=sql_into_list.js.map