@abaplint/transpiler-cli 2.7.92 → 2.7.93
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/bundle.js +38 -1
- package/package.json +2 -2
package/build/bundle.js
CHANGED
|
@@ -71280,6 +71280,7 @@ __exportStar(__webpack_require__(/*! ./sql_from_source */ "./node_modules/@abapl
|
|
|
71280
71280
|
__exportStar(__webpack_require__(/*! ./sql_from */ "./node_modules/@abaplint/transpiler/build/src/expressions/sql_from.js"), exports);
|
|
71281
71281
|
__exportStar(__webpack_require__(/*! ./sql_into_structure */ "./node_modules/@abaplint/transpiler/build/src/expressions/sql_into_structure.js"), exports);
|
|
71282
71282
|
__exportStar(__webpack_require__(/*! ./sql_join */ "./node_modules/@abaplint/transpiler/build/src/expressions/sql_join.js"), exports);
|
|
71283
|
+
__exportStar(__webpack_require__(/*! ./sql_order_by */ "./node_modules/@abaplint/transpiler/build/src/expressions/sql_order_by.js"), exports);
|
|
71283
71284
|
__exportStar(__webpack_require__(/*! ./sql_source_simple */ "./node_modules/@abaplint/transpiler/build/src/expressions/sql_source_simple.js"), exports);
|
|
71284
71285
|
__exportStar(__webpack_require__(/*! ./sql_source */ "./node_modules/@abaplint/transpiler/build/src/expressions/sql_source.js"), exports);
|
|
71285
71286
|
__exportStar(__webpack_require__(/*! ./sql_target */ "./node_modules/@abaplint/transpiler/build/src/expressions/sql_target.js"), exports);
|
|
@@ -72576,6 +72577,38 @@ exports.SQLJoinTranspiler = SQLJoinTranspiler;
|
|
|
72576
72577
|
|
|
72577
72578
|
/***/ }),
|
|
72578
72579
|
|
|
72580
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/expressions/sql_order_by.js":
|
|
72581
|
+
/*!*********************************************************************************!*\
|
|
72582
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/expressions/sql_order_by.js ***!
|
|
72583
|
+
\*********************************************************************************/
|
|
72584
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
72585
|
+
|
|
72586
|
+
"use strict";
|
|
72587
|
+
|
|
72588
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
72589
|
+
exports.SQLOrderByTranspiler = void 0;
|
|
72590
|
+
const abaplint = __webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js");
|
|
72591
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
72592
|
+
const sql_field_name_1 = __webpack_require__(/*! ./sql_field_name */ "./node_modules/@abaplint/transpiler/build/src/expressions/sql_field_name.js");
|
|
72593
|
+
class SQLOrderByTranspiler {
|
|
72594
|
+
transpile(node, traversal) {
|
|
72595
|
+
const ret = new chunk_1.Chunk();
|
|
72596
|
+
for (const c of node.getChildren()) {
|
|
72597
|
+
if (c instanceof abaplint.Nodes.ExpressionNode && c.get() instanceof abaplint.Expressions.SQLFieldName) {
|
|
72598
|
+
ret.appendString(new sql_field_name_1.SQLFieldNameTranspiler().transpile(c, traversal).getCode() + " ");
|
|
72599
|
+
}
|
|
72600
|
+
else {
|
|
72601
|
+
ret.appendString(c.concatTokens() + " ");
|
|
72602
|
+
}
|
|
72603
|
+
}
|
|
72604
|
+
return ret;
|
|
72605
|
+
}
|
|
72606
|
+
}
|
|
72607
|
+
exports.SQLOrderByTranspiler = SQLOrderByTranspiler;
|
|
72608
|
+
//# sourceMappingURL=sql_order_by.js.map
|
|
72609
|
+
|
|
72610
|
+
/***/ }),
|
|
72611
|
+
|
|
72579
72612
|
/***/ "./node_modules/@abaplint/transpiler/build/src/expressions/sql_source.js":
|
|
72580
72613
|
/*!*******************************************************************************!*\
|
|
72581
72614
|
!*** ./node_modules/@abaplint/transpiler/build/src/expressions/sql_source.js ***!
|
|
@@ -78269,6 +78302,10 @@ class SelectTranspiler {
|
|
|
78269
78302
|
const code = new expressions_1.SQLFieldTranspiler().transpile(f, traversal).getCode();
|
|
78270
78303
|
fields.push(code);
|
|
78271
78304
|
}
|
|
78305
|
+
else if (f instanceof abaplint.Nodes.ExpressionNode && f.get() instanceof abaplint.Expressions.SQLFieldName) {
|
|
78306
|
+
const code = new expressions_1.SQLFieldNameTranspiler().transpile(f, traversal).getCode();
|
|
78307
|
+
fields.push(code);
|
|
78308
|
+
}
|
|
78272
78309
|
else {
|
|
78273
78310
|
fields.push(f.concatTokens());
|
|
78274
78311
|
}
|
|
@@ -78300,7 +78337,7 @@ class SelectTranspiler {
|
|
|
78300
78337
|
}
|
|
78301
78338
|
const orderBy = node.findFirstExpression(abaplint.Expressions.SQLOrderBy);
|
|
78302
78339
|
if (orderBy) {
|
|
78303
|
-
select += orderBy.
|
|
78340
|
+
select += new expressions_1.SQLOrderByTranspiler().transpile(orderBy, traversal).getCode();
|
|
78304
78341
|
}
|
|
78305
78342
|
for (const d of node.findAllExpressionsRecursive(abaplint.Expressions.Dynamic)) {
|
|
78306
78343
|
const chain = d.findFirstExpression(abaplint.Expressions.FieldChain);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler-cli",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.93",
|
|
4
4
|
"description": "Transpiler - Command Line Interface",
|
|
5
5
|
"funding": "https://github.com/sponsors/larshp",
|
|
6
6
|
"bin": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"author": "abaplint",
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@abaplint/transpiler": "^2.7.
|
|
29
|
+
"@abaplint/transpiler": "^2.7.93",
|
|
30
30
|
"@types/glob": "^7.2.0",
|
|
31
31
|
"glob": "=7.2.0",
|
|
32
32
|
"@types/progress": "^2.0.5",
|