@abaplint/transpiler-cli 2.7.75 → 2.7.77
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 +44 -6
- package/package.json +4 -4
package/build/bundle.js
CHANGED
|
@@ -16685,7 +16685,7 @@ const _combi_1 = __webpack_require__(/*! ./_combi */ "./node_modules/@abaplint/c
|
|
|
16685
16685
|
const when_type_1 = __webpack_require__(/*! ./when_type */ "./node_modules/@abaplint/core/build/src/abap/3_structures/structures/when_type.js");
|
|
16686
16686
|
class CaseType {
|
|
16687
16687
|
getMatcher() {
|
|
16688
|
-
return (0, _combi_1.beginEnd)((0, _combi_1.sta)(Statements.CaseType), (0, _combi_1.star)((0, _combi_1.sub)(when_type_1.WhenType)), (0, _combi_1.sta)(Statements.EndCase));
|
|
16688
|
+
return (0, _combi_1.beginEnd)((0, _combi_1.sta)(Statements.CaseType), (0, _combi_1.star)((0, _combi_1.alt)((0, _combi_1.sub)(when_type_1.WhenType), (0, _combi_1.sta)(Statements.Data))), (0, _combi_1.sta)(Statements.EndCase));
|
|
16689
16689
|
}
|
|
16690
16690
|
}
|
|
16691
16691
|
exports.CaseType = CaseType;
|
|
@@ -19761,7 +19761,7 @@ class CurrentScope {
|
|
|
19761
19761
|
return undefined;
|
|
19762
19762
|
}
|
|
19763
19763
|
const typePoolName = name.split("_")[0];
|
|
19764
|
-
if (typePoolName.length <=
|
|
19764
|
+
if (typePoolName.length <= 1 || typePoolName.length > 5) {
|
|
19765
19765
|
return undefined;
|
|
19766
19766
|
}
|
|
19767
19767
|
const typePool = this.reg.getObject("TYPE", typePoolName);
|
|
@@ -47786,7 +47786,7 @@ class Registry {
|
|
|
47786
47786
|
}
|
|
47787
47787
|
static abaplintVersion() {
|
|
47788
47788
|
// magic, see build script "version.sh"
|
|
47789
|
-
return "2.102.
|
|
47789
|
+
return "2.102.25";
|
|
47790
47790
|
}
|
|
47791
47791
|
getDDICReferences() {
|
|
47792
47792
|
return this.ddicReferences;
|
|
@@ -70171,10 +70171,13 @@ class CompareTranspiler {
|
|
|
70171
70171
|
return new chunk_1.Chunk().appendString(pre + "INPUT && INPUT." + concat.replace(" IS NOT SUPPLIED", "").toLowerCase() + " === undefined");
|
|
70172
70172
|
}
|
|
70173
70173
|
if (concat.endsWith(" IS REQUESTED")) {
|
|
70174
|
-
|
|
70174
|
+
const field = concat.replace(" IS REQUESTED", "").toLowerCase();
|
|
70175
|
+
// yea, for function modules the naming is revereed, using "importing"
|
|
70176
|
+
return new chunk_1.Chunk().appendString(pre + "INPUT && (INPUT." + field + " || INPUT.importing." + field + ")");
|
|
70175
70177
|
}
|
|
70176
70178
|
else if (concat.endsWith(" IS NOT REQUESTED")) {
|
|
70177
|
-
|
|
70179
|
+
const field = concat.replace(" IS NOT REQUESTED", "").toLowerCase();
|
|
70180
|
+
return new chunk_1.Chunk().appendString(pre + "INPUT && INPUT." + field + " === undefined && INPUT.importing." + field + " === undefined");
|
|
70178
70181
|
}
|
|
70179
70182
|
if (concat.startsWith("NOT ") || concat.includes(" IS NOT INSTANCE OF ")) {
|
|
70180
70183
|
const cname = (_a = node.findDirectExpression(core_1.Expressions.ClassName)) === null || _a === void 0 ? void 0 : _a.concatTokens();
|
|
@@ -74666,6 +74669,41 @@ exports.CommitTranspiler = CommitTranspiler;
|
|
|
74666
74669
|
|
|
74667
74670
|
/***/ }),
|
|
74668
74671
|
|
|
74672
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/compute.js":
|
|
74673
|
+
/*!***************************************************************************!*\
|
|
74674
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/statements/compute.js ***!
|
|
74675
|
+
\***************************************************************************/
|
|
74676
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
74677
|
+
|
|
74678
|
+
"use strict";
|
|
74679
|
+
|
|
74680
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
74681
|
+
exports.ComputeTranspiler = void 0;
|
|
74682
|
+
const abaplint = __webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js");
|
|
74683
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
74684
|
+
class ComputeTranspiler {
|
|
74685
|
+
transpile(node, traversal) {
|
|
74686
|
+
let source = traversal.traverse(node.findDirectExpression(abaplint.Expressions.Source));
|
|
74687
|
+
const targets = [];
|
|
74688
|
+
for (const t of node.findDirectExpressions(abaplint.Expressions.Target)) {
|
|
74689
|
+
targets.push(traversal.traverse(t));
|
|
74690
|
+
}
|
|
74691
|
+
const ret = new chunk_1.Chunk();
|
|
74692
|
+
for (const target of targets.reverse()) {
|
|
74693
|
+
ret.appendChunk(target)
|
|
74694
|
+
.appendString(".set(")
|
|
74695
|
+
.appendChunk(source)
|
|
74696
|
+
.append(");", node.getLastToken(), traversal);
|
|
74697
|
+
source = target;
|
|
74698
|
+
}
|
|
74699
|
+
return ret;
|
|
74700
|
+
}
|
|
74701
|
+
}
|
|
74702
|
+
exports.ComputeTranspiler = ComputeTranspiler;
|
|
74703
|
+
//# sourceMappingURL=compute.js.map
|
|
74704
|
+
|
|
74705
|
+
/***/ }),
|
|
74706
|
+
|
|
74669
74707
|
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/concatenate.js":
|
|
74670
74708
|
/*!*******************************************************************************!*\
|
|
74671
74709
|
!*** ./node_modules/@abaplint/transpiler/build/src/statements/concatenate.js ***!
|
|
@@ -76297,6 +76335,7 @@ __exportStar(__webpack_require__(/*! ./call_transformation */ "./node_modules/@a
|
|
|
76297
76335
|
__exportStar(__webpack_require__(/*! ./call */ "./node_modules/@abaplint/transpiler/build/src/statements/call.js"), exports);
|
|
76298
76336
|
__exportStar(__webpack_require__(/*! ./case */ "./node_modules/@abaplint/transpiler/build/src/statements/case.js"), exports);
|
|
76299
76337
|
__exportStar(__webpack_require__(/*! ./check */ "./node_modules/@abaplint/transpiler/build/src/statements/check.js"), exports);
|
|
76338
|
+
__exportStar(__webpack_require__(/*! ./compute */ "./node_modules/@abaplint/transpiler/build/src/statements/compute.js"), exports);
|
|
76300
76339
|
__exportStar(__webpack_require__(/*! ./class_deferred */ "./node_modules/@abaplint/transpiler/build/src/statements/class_deferred.js"), exports);
|
|
76301
76340
|
__exportStar(__webpack_require__(/*! ./class_definition_load */ "./node_modules/@abaplint/transpiler/build/src/statements/class_definition_load.js"), exports);
|
|
76302
76341
|
__exportStar(__webpack_require__(/*! ./class_implementation */ "./node_modules/@abaplint/transpiler/build/src/statements/class_implementation.js"), exports);
|
|
@@ -81557,7 +81596,6 @@ exports.config = {
|
|
|
81557
81596
|
"form_no_dash": true,
|
|
81558
81597
|
"omit_preceding_zeros": true,
|
|
81559
81598
|
"obsolete_statement": {
|
|
81560
|
-
"compute": true,
|
|
81561
81599
|
"setExtended": true,
|
|
81562
81600
|
},
|
|
81563
81601
|
"forbidden_identifier": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler-cli",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.77",
|
|
4
4
|
"description": "Transpiler - Command Line Interface",
|
|
5
5
|
"funding": "https://github.com/sponsors/larshp",
|
|
6
6
|
"bin": {
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
"author": "abaplint",
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@abaplint/transpiler": "^2.7.
|
|
29
|
+
"@abaplint/transpiler": "^2.7.77",
|
|
30
30
|
"@types/glob": "^7.2.0",
|
|
31
31
|
"glob": "=7.2.0",
|
|
32
32
|
"@types/progress": "^2.0.5",
|
|
33
|
-
"@types/node": "^20.5.
|
|
34
|
-
"@abaplint/core": "^2.102.
|
|
33
|
+
"@types/node": "^20.5.1",
|
|
34
|
+
"@abaplint/core": "^2.102.25",
|
|
35
35
|
"progress": "^2.0.3",
|
|
36
36
|
"webpack": "^5.88.2",
|
|
37
37
|
"webpack-cli": "^5.1.4",
|