UNPKG

@abaplint/transpiler

Version:
26 lines 973 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SQLFieldTranspiler = void 0; const abaplint = require("@abaplint/core"); const chunk_1 = require("../chunk"); const sql_field_name_1 = require("./sql_field_name"); class SQLFieldTranspiler { transpile(node, traversal) { const chunk = new chunk_1.Chunk(); for (const c of node.getChildren()) { if (c instanceof abaplint.Nodes.TokenNode) { // keywords chunk.appendString(c.concatTokens() + " "); } else if (c.get() instanceof abaplint.Expressions.SQLFieldName) { chunk.appendChunk(new sql_field_name_1.SQLFieldNameTranspiler().transpile(c, traversal)); } else { chunk.appendString(c.concatTokens() + " "); } } return chunk; } } exports.SQLFieldTranspiler = SQLFieldTranspiler; //# sourceMappingURL=sql_field.js.map