@abaplint/transpiler-cli 2.7.75 → 2.7.76

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.
Files changed (2) hide show
  1. package/build/bundle.js +39 -4
  2. 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 <= 2 || typePoolName.length > 5) {
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.23";
47789
+ return "2.102.25";
47790
47790
  }
47791
47791
  getDDICReferences() {
47792
47792
  return this.ddicReferences;
@@ -74666,6 +74666,41 @@ exports.CommitTranspiler = CommitTranspiler;
74666
74666
 
74667
74667
  /***/ }),
74668
74668
 
74669
+ /***/ "./node_modules/@abaplint/transpiler/build/src/statements/compute.js":
74670
+ /*!***************************************************************************!*\
74671
+ !*** ./node_modules/@abaplint/transpiler/build/src/statements/compute.js ***!
74672
+ \***************************************************************************/
74673
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
74674
+
74675
+ "use strict";
74676
+
74677
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
74678
+ exports.ComputeTranspiler = void 0;
74679
+ const abaplint = __webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js");
74680
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
74681
+ class ComputeTranspiler {
74682
+ transpile(node, traversal) {
74683
+ let source = traversal.traverse(node.findDirectExpression(abaplint.Expressions.Source));
74684
+ const targets = [];
74685
+ for (const t of node.findDirectExpressions(abaplint.Expressions.Target)) {
74686
+ targets.push(traversal.traverse(t));
74687
+ }
74688
+ const ret = new chunk_1.Chunk();
74689
+ for (const target of targets.reverse()) {
74690
+ ret.appendChunk(target)
74691
+ .appendString(".set(")
74692
+ .appendChunk(source)
74693
+ .append(");", node.getLastToken(), traversal);
74694
+ source = target;
74695
+ }
74696
+ return ret;
74697
+ }
74698
+ }
74699
+ exports.ComputeTranspiler = ComputeTranspiler;
74700
+ //# sourceMappingURL=compute.js.map
74701
+
74702
+ /***/ }),
74703
+
74669
74704
  /***/ "./node_modules/@abaplint/transpiler/build/src/statements/concatenate.js":
74670
74705
  /*!*******************************************************************************!*\
74671
74706
  !*** ./node_modules/@abaplint/transpiler/build/src/statements/concatenate.js ***!
@@ -76297,6 +76332,7 @@ __exportStar(__webpack_require__(/*! ./call_transformation */ "./node_modules/@a
76297
76332
  __exportStar(__webpack_require__(/*! ./call */ "./node_modules/@abaplint/transpiler/build/src/statements/call.js"), exports);
76298
76333
  __exportStar(__webpack_require__(/*! ./case */ "./node_modules/@abaplint/transpiler/build/src/statements/case.js"), exports);
76299
76334
  __exportStar(__webpack_require__(/*! ./check */ "./node_modules/@abaplint/transpiler/build/src/statements/check.js"), exports);
76335
+ __exportStar(__webpack_require__(/*! ./compute */ "./node_modules/@abaplint/transpiler/build/src/statements/compute.js"), exports);
76300
76336
  __exportStar(__webpack_require__(/*! ./class_deferred */ "./node_modules/@abaplint/transpiler/build/src/statements/class_deferred.js"), exports);
76301
76337
  __exportStar(__webpack_require__(/*! ./class_definition_load */ "./node_modules/@abaplint/transpiler/build/src/statements/class_definition_load.js"), exports);
76302
76338
  __exportStar(__webpack_require__(/*! ./class_implementation */ "./node_modules/@abaplint/transpiler/build/src/statements/class_implementation.js"), exports);
@@ -81557,7 +81593,6 @@ exports.config = {
81557
81593
  "form_no_dash": true,
81558
81594
  "omit_preceding_zeros": true,
81559
81595
  "obsolete_statement": {
81560
- "compute": true,
81561
81596
  "setExtended": true,
81562
81597
  },
81563
81598
  "forbidden_identifier": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler-cli",
3
- "version": "2.7.75",
3
+ "version": "2.7.76",
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.75",
29
+ "@abaplint/transpiler": "^2.7.76",
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.0",
34
- "@abaplint/core": "^2.102.23",
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",