UNPKG

@abaplint/transpiler

Version:
22 lines 743 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SQLFieldNameTranspiler = void 0; const chunk_1 = require("../chunk"); class SQLFieldNameTranspiler { transpile(node, _traversal) { const chunk = new chunk_1.Chunk(); let concat = node.concatTokens(); /* if (concat.includes("~") && concat.split("~")[0].includes("/")) { concat = "'" + concat.replace("~", "'~"); } else { */ concat = concat.replace(/~/, `\\".\\"`); concat = `\\"` + concat + `\\"`; // } chunk.appendString(concat); return chunk; } } exports.SQLFieldNameTranspiler = SQLFieldNameTranspiler; //# sourceMappingURL=sql_field_name.js.map