@abaplint/transpiler-cli 2.7.18 → 2.7.20

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 +49 -0
  2. package/package.json +2 -2
package/build/bundle.js CHANGED
@@ -71813,6 +71813,47 @@ exports.HandleEnqu = HandleEnqu;
71813
71813
 
71814
71814
  /***/ }),
71815
71815
 
71816
+ /***/ "./node_modules/@abaplint/transpiler/build/src/handlers/handle_msag.js":
71817
+ /*!*****************************************************************************!*\
71818
+ !*** ./node_modules/@abaplint/transpiler/build/src/handlers/handle_msag.js ***!
71819
+ \*****************************************************************************/
71820
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
71821
+
71822
+ "use strict";
71823
+
71824
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
71825
+ exports.HandleMSAG = void 0;
71826
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
71827
+ class HandleMSAG {
71828
+ runObject(obj, _reg) {
71829
+ var _a;
71830
+ const filename = (_a = obj.getXMLFile()) === null || _a === void 0 ? void 0 : _a.getFilename().replace(".xml", ".mjs").toLowerCase();
71831
+ if (filename === undefined) {
71832
+ return [];
71833
+ }
71834
+ const chunk = new chunk_1.Chunk().appendString(`abap.MSAG["${obj.getName().toUpperCase()}"] = {\n`);
71835
+ for (const m of obj.getMessages()) {
71836
+ chunk.appendString(` "${m.getNumber()}": "${m.getMessage().replace(/"/g, `\\"`)}",\n`);
71837
+ }
71838
+ chunk.appendString(`};`);
71839
+ const output = {
71840
+ object: {
71841
+ name: obj.getName(),
71842
+ type: obj.getType(),
71843
+ },
71844
+ filename: filename,
71845
+ chunk: chunk,
71846
+ requires: [],
71847
+ exports: [],
71848
+ };
71849
+ return [output];
71850
+ }
71851
+ }
71852
+ exports.HandleMSAG = HandleMSAG;
71853
+ //# sourceMappingURL=handle_msag.js.map
71854
+
71855
+ /***/ }),
71856
+
71816
71857
  /***/ "./node_modules/@abaplint/transpiler/build/src/handlers/handle_smim.js":
71817
71858
  /*!*****************************************************************************!*\
71818
71859
  !*** ./node_modules/@abaplint/transpiler/build/src/handlers/handle_smim.js ***!
@@ -72131,6 +72172,7 @@ const handle_enqu_1 = __webpack_require__(/*! ./handlers/handle_enqu */ "./node_
72131
72172
  const handle_type_pool_1 = __webpack_require__(/*! ./handlers/handle_type_pool */ "./node_modules/@abaplint/transpiler/build/src/handlers/handle_type_pool.js");
72132
72173
  const handle_w3mi_1 = __webpack_require__(/*! ./handlers/handle_w3mi */ "./node_modules/@abaplint/transpiler/build/src/handlers/handle_w3mi.js");
72133
72174
  const handle_smim_1 = __webpack_require__(/*! ./handlers/handle_smim */ "./node_modules/@abaplint/transpiler/build/src/handlers/handle_smim.js");
72175
+ const handle_msag_1 = __webpack_require__(/*! ./handlers/handle_msag */ "./node_modules/@abaplint/transpiler/build/src/handlers/handle_msag.js");
72134
72176
  class Transpiler {
72135
72177
  constructor(options) {
72136
72178
  this.options = options;
@@ -72192,6 +72234,9 @@ class Transpiler {
72192
72234
  else if (obj instanceof abaplint.Objects.WebMIME) {
72193
72235
  output.objects.push(...new handle_w3mi_1.HandleW3MI().runObject(obj, reg));
72194
72236
  }
72237
+ else if (obj instanceof abaplint.Objects.MessageClass) {
72238
+ output.objects.push(...new handle_msag_1.HandleMSAG().runObject(obj, reg));
72239
+ }
72195
72240
  }
72196
72241
  return output;
72197
72242
  }
@@ -73704,6 +73749,9 @@ class CreateDataTranspiler {
73704
73749
  const so = traversal.traverse(node.findDirectExpression(abaplint.Expressions.Source));
73705
73750
  options.push(`"like": ` + so.getCode());
73706
73751
  }
73752
+ if (concat.includes(" TYPE LINE OF ")) {
73753
+ options.push(`"typeLineOf": true`);
73754
+ }
73707
73755
  const handle = node.findExpressionAfterToken("HANDLE");
73708
73756
  if (handle) {
73709
73757
  const so = traversal.traverse(node.findDirectExpression(abaplint.Expressions.Source));
@@ -80080,6 +80128,7 @@ run().then(() => {
80080
80128
  if (obj instanceof abaplint.Objects.Table
80081
80129
  || obj instanceof abaplint.Objects.DataElement
80082
80130
  || obj instanceof abaplint.Objects.LockObject
80131
+ || obj instanceof abaplint.Objects.MessageClass
80083
80132
  || obj instanceof abaplint.Objects.MIMEObject
80084
80133
  || obj instanceof abaplint.Objects.WebMIME
80085
80134
  || obj instanceof abaplint.Objects.TypePool
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler-cli",
3
- "version": "2.7.18",
3
+ "version": "2.7.20",
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.18",
29
+ "@abaplint/transpiler": "^2.7.20",
30
30
  "@types/glob": "^7.2.0",
31
31
  "glob": "=7.2.0",
32
32
  "@types/progress": "^2.0.5",