@abaplint/transpiler-cli 2.12.30 → 2.12.31

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 +40 -2
  2. package/package.json +2 -2
package/build/bundle.js CHANGED
@@ -85125,6 +85125,8 @@ var EventKind;
85125
85125
  EventKind[EventKind["None"] = 0] = "None";
85126
85126
  EventKind[EventKind["Start"] = 1] = "Start";
85127
85127
  EventKind[EventKind["End"] = 2] = "End";
85128
+ EventKind[EventKind["AtLineSelection"] = 3] = "AtLineSelection";
85129
+ EventKind[EventKind["AtSelectionScreen"] = 4] = "AtSelectionScreen";
85128
85130
  })(EventKind || (EventKind = {}));
85129
85131
  class Rearranger {
85130
85132
  run(type, node) {
@@ -85150,13 +85152,16 @@ class Rearranger {
85150
85152
  // Check if there are any list event statements
85151
85153
  const hasStartOfSelection = children.some(c => c instanceof core_1.Nodes.StatementNode && c.get() instanceof core_1.Statements.StartOfSelection);
85152
85154
  const hasEndOfSelection = children.some(c => c instanceof core_1.Nodes.StatementNode && c.get() instanceof core_1.Statements.EndOfSelection);
85153
- if (!hasStartOfSelection && !hasEndOfSelection) {
85155
+ const hasAtLineSelection = children.some(c => c instanceof core_1.Nodes.StatementNode && c.get() instanceof core_1.Statements.AtLineSelection);
85156
+ const hasAtSelectionScreen = children.some(c => c instanceof core_1.Nodes.StatementNode && c.get() instanceof core_1.Statements.AtSelectionScreen);
85157
+ if (!hasStartOfSelection && !hasEndOfSelection && !hasAtLineSelection && !hasAtSelectionScreen) {
85154
85158
  return node;
85155
85159
  }
85156
85160
  // Split children into: preamble (before first event), event blocks (keyed by event type)
85157
85161
  const preamble = [];
85158
85162
  const startBlocks = [];
85159
85163
  const endBlocks = [];
85164
+ // AT LINE-SELECTION and AT SELECTION-SCREEN are interactive events, their blocks are discarded
85160
85165
  let currentEvent = EventKind.None;
85161
85166
  for (const child of children) {
85162
85167
  if (child instanceof core_1.Nodes.StatementNode && child.get() instanceof core_1.Statements.StartOfSelection) {
@@ -85167,6 +85172,12 @@ class Rearranger {
85167
85172
  currentEvent = EventKind.End;
85168
85173
  endBlocks.push(child);
85169
85174
  }
85175
+ else if (child instanceof core_1.Nodes.StatementNode && child.get() instanceof core_1.Statements.AtLineSelection) {
85176
+ currentEvent = EventKind.AtLineSelection;
85177
+ }
85178
+ else if (child instanceof core_1.Nodes.StatementNode && child.get() instanceof core_1.Statements.AtSelectionScreen) {
85179
+ currentEvent = EventKind.AtSelectionScreen;
85180
+ }
85170
85181
  else {
85171
85182
  switch (currentEvent) {
85172
85183
  case EventKind.None:
@@ -85178,12 +85189,17 @@ class Rearranger {
85178
85189
  case EventKind.End:
85179
85190
  endBlocks.push(child);
85180
85191
  break;
85192
+ case EventKind.AtLineSelection:
85193
+ case EventKind.AtSelectionScreen:
85194
+ // discard: these are interactive events not executed in batch
85195
+ break;
85181
85196
  default:
85182
85197
  break;
85183
85198
  }
85184
85199
  }
85185
85200
  }
85186
85201
  // Reassemble: preamble, then START-OF-SELECTION blocks, then END-OF-SELECTION blocks
85202
+ // AT LINE-SELECTION and AT SELECTION-SCREEN blocks are omitted
85187
85203
  const newChildren = [...preamble, ...startBlocks, ...endBlocks];
85188
85204
  node.setChildren(newChildren);
85189
85205
  return node;
@@ -85698,6 +85714,27 @@ exports.AtTranspiler = AtTranspiler;
85698
85714
 
85699
85715
  /***/ },
85700
85716
 
85717
+ /***/ "./node_modules/@abaplint/transpiler/build/src/statements/at_line_selection.js"
85718
+ /*!*************************************************************************************!*\
85719
+ !*** ./node_modules/@abaplint/transpiler/build/src/statements/at_line_selection.js ***!
85720
+ \*************************************************************************************/
85721
+ (__unused_webpack_module, exports, __webpack_require__) {
85722
+
85723
+ "use strict";
85724
+
85725
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
85726
+ exports.AtLineSelectionTranspiler = void 0;
85727
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
85728
+ class AtLineSelectionTranspiler {
85729
+ transpile(_node) {
85730
+ return new chunk_1.Chunk("");
85731
+ }
85732
+ }
85733
+ exports.AtLineSelectionTranspiler = AtLineSelectionTranspiler;
85734
+ //# sourceMappingURL=at_line_selection.js.map
85735
+
85736
+ /***/ },
85737
+
85701
85738
  /***/ "./node_modules/@abaplint/transpiler/build/src/statements/at_selection_screen.js"
85702
85739
  /*!***************************************************************************************!*\
85703
85740
  !*** ./node_modules/@abaplint/transpiler/build/src/statements/at_selection_screen.js ***!
@@ -85711,7 +85748,7 @@ exports.AtSelectionScreenTranspiler = void 0;
85711
85748
  const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
85712
85749
  class AtSelectionScreenTranspiler {
85713
85750
  transpile(_node, _traversal) {
85714
- return new chunk_1.Chunk(`throw new Error("AtSelectionScreen, not supported, transpiler");`);
85751
+ return new chunk_1.Chunk(``);
85715
85752
  }
85716
85753
  }
85717
85754
  exports.AtSelectionScreenTranspiler = AtSelectionScreenTranspiler;
@@ -88406,6 +88443,7 @@ __exportStar(__webpack_require__(/*! ./split */ "./node_modules/@abaplint/transp
88406
88443
  __exportStar(__webpack_require__(/*! ./start_of_selection */ "./node_modules/@abaplint/transpiler/build/src/statements/start_of_selection.js"), exports);
88407
88444
  __exportStar(__webpack_require__(/*! ./submit */ "./node_modules/@abaplint/transpiler/build/src/statements/submit.js"), exports);
88408
88445
  __exportStar(__webpack_require__(/*! ./subtract */ "./node_modules/@abaplint/transpiler/build/src/statements/subtract.js"), exports);
88446
+ __exportStar(__webpack_require__(/*! ./at_line_selection */ "./node_modules/@abaplint/transpiler/build/src/statements/at_line_selection.js"), exports);
88409
88447
  __exportStar(__webpack_require__(/*! ./syntax_check */ "./node_modules/@abaplint/transpiler/build/src/statements/syntax_check.js"), exports);
88410
88448
  __exportStar(__webpack_require__(/*! ./system_call */ "./node_modules/@abaplint/transpiler/build/src/statements/system_call.js"), exports);
88411
88449
  __exportStar(__webpack_require__(/*! ./tables */ "./node_modules/@abaplint/transpiler/build/src/statements/tables.js"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler-cli",
3
- "version": "2.12.30",
3
+ "version": "2.12.31",
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.115.26",
31
- "@abaplint/transpiler": "^2.12.30",
31
+ "@abaplint/transpiler": "^2.12.31",
32
32
  "@types/glob": "^8.1.0",
33
33
  "@types/node": "^24.10.13",
34
34
  "@types/progress": "^2.0.7",