@abaplint/transpiler-cli 2.13.68 → 2.13.70

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 +23 -4
  2. package/package.json +2 -2
package/build/bundle.js CHANGED
@@ -105923,11 +105923,8 @@ class NewObjectTranspiler {
105923
105923
  }
105924
105924
  else {
105925
105925
  const source = node.findFirstExpression(abaplint.Expressions.Source);
105926
- if (source === undefined) {
105927
- throw new Error("NewObjectTranspiler: DataReference source not found");
105928
- }
105929
105926
  const typeCode = transpile_types_1.TranspileTypes.toType(type);
105930
- const sourceCode = traversal.traverse(source).getCode();
105927
+ const sourceCode = source === undefined ? typeCode : traversal.traverse(source).getCode();
105931
105928
  ret.appendString("((() => {const r = new abap.types.DataReference(" + typeCode + "); r.assign(" + sourceCode + "); return r; })())");
105932
105929
  }
105933
105930
  return ret;
@@ -115267,6 +115264,7 @@ __exportStar(__webpack_require__(/*! ./split */ "./node_modules/@abaplint/transp
115267
115264
  __exportStar(__webpack_require__(/*! ./start_of_selection */ "./node_modules/@abaplint/transpiler/build/src/statements/start_of_selection.js"), exports);
115268
115265
  __exportStar(__webpack_require__(/*! ./load_of_program */ "./node_modules/@abaplint/transpiler/build/src/statements/load_of_program.js"), exports);
115269
115266
  __exportStar(__webpack_require__(/*! ./stop */ "./node_modules/@abaplint/transpiler/build/src/statements/stop.js"), exports);
115267
+ __exportStar(__webpack_require__(/*! ./sum */ "./node_modules/@abaplint/transpiler/build/src/statements/sum.js"), exports);
115270
115268
  __exportStar(__webpack_require__(/*! ./submit */ "./node_modules/@abaplint/transpiler/build/src/statements/submit.js"), exports);
115271
115269
  __exportStar(__webpack_require__(/*! ./subtract */ "./node_modules/@abaplint/transpiler/build/src/statements/subtract.js"), exports);
115272
115270
  __exportStar(__webpack_require__(/*! ./at_line_selection */ "./node_modules/@abaplint/transpiler/build/src/statements/at_line_selection.js"), exports);
@@ -119151,6 +119149,27 @@ exports.SubtractTranspiler = SubtractTranspiler;
119151
119149
 
119152
119150
  /***/ },
119153
119151
 
119152
+ /***/ "./node_modules/@abaplint/transpiler/build/src/statements/sum.js"
119153
+ /*!***********************************************************************!*\
119154
+ !*** ./node_modules/@abaplint/transpiler/build/src/statements/sum.js ***!
119155
+ \***********************************************************************/
119156
+ (__unused_webpack_module, exports, __webpack_require__) {
119157
+
119158
+ "use strict";
119159
+
119160
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
119161
+ exports.SumTranspiler = void 0;
119162
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
119163
+ class SumTranspiler {
119164
+ transpile(_node, _traversal) {
119165
+ return new chunk_1.Chunk(`throw new Error("SUM, not supported, transpiler");`);
119166
+ }
119167
+ }
119168
+ exports.SumTranspiler = SumTranspiler;
119169
+ //# sourceMappingURL=sum.js.map
119170
+
119171
+ /***/ },
119172
+
119154
119173
  /***/ "./node_modules/@abaplint/transpiler/build/src/statements/syntax_check.js"
119155
119174
  /*!********************************************************************************!*\
119156
119175
  !*** ./node_modules/@abaplint/transpiler/build/src/statements/syntax_check.js ***!
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler-cli",
3
- "version": "2.13.68",
3
+ "version": "2.13.70",
4
4
  "description": "Transpiler - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -28,7 +28,7 @@
28
28
  "license": "MIT",
29
29
  "devDependencies": {
30
30
  "@abaplint/core": "^2.120.42",
31
- "@abaplint/transpiler": "^2.13.68",
31
+ "@abaplint/transpiler": "^2.13.70",
32
32
  "@types/glob": "^8.1.0",
33
33
  "@types/node": "^24.13.3",
34
34
  "@types/progress": "^2.0.7",