@abaplint/transpiler-cli 2.7.134 → 2.7.136

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 +229 -105
  2. package/package.json +4 -4
package/build/bundle.js CHANGED
@@ -119,95 +119,8 @@ exports.Lexer = void 0;
119
119
  const position_1 = __webpack_require__(/*! ../../position */ "./node_modules/@abaplint/core/build/src/position.js");
120
120
  const virtual_position_1 = __webpack_require__(/*! ../../virtual_position */ "./node_modules/@abaplint/core/build/src/virtual_position.js");
121
121
  const tokens_1 = __webpack_require__(/*! ./tokens */ "./node_modules/@abaplint/core/build/src/abap/1_lexer/tokens/index.js");
122
- class Buffer {
123
- constructor() {
124
- this.buf = "";
125
- }
126
- add(s) {
127
- this.buf = this.buf + s;
128
- return this.buf;
129
- }
130
- get() {
131
- return this.buf;
132
- }
133
- clear() {
134
- this.buf = "";
135
- }
136
- countIsEven(char) {
137
- let count = 0;
138
- for (let i = 0; i < this.buf.length; i += 1) {
139
- if (this.buf.charAt(i) === char) {
140
- count += 1;
141
- }
142
- }
143
- return count % 2 === 0;
144
- }
145
- }
146
- class Stream {
147
- constructor(raw) {
148
- this.offset = -1;
149
- this.raw = raw;
150
- this.row = 0;
151
- this.col = 0;
152
- }
153
- advance() {
154
- if (this.currentChar() === "\n") {
155
- this.col = 1;
156
- this.row = this.row + 1;
157
- }
158
- if (this.offset === this.raw.length) {
159
- return false;
160
- }
161
- this.col = this.col + 1;
162
- this.offset = this.offset + 1;
163
- return true;
164
- }
165
- getCol() {
166
- return this.col;
167
- }
168
- getRow() {
169
- return this.row;
170
- }
171
- prevChar() {
172
- if (this.offset - 1 < 0) {
173
- return "";
174
- }
175
- return this.raw.substr(this.offset - 1, 1);
176
- }
177
- prevPrevChar() {
178
- if (this.offset - 2 < 0) {
179
- return "";
180
- }
181
- return this.raw.substr(this.offset - 2, 2);
182
- }
183
- currentChar() {
184
- if (this.offset < 0) {
185
- return "\n"; // simulate newline at start of file to handle star(*) comments
186
- }
187
- else if (this.offset >= this.raw.length) {
188
- return "";
189
- }
190
- return this.raw.substr(this.offset, 1);
191
- }
192
- nextChar() {
193
- if (this.offset + 2 > this.raw.length) {
194
- return "";
195
- }
196
- return this.raw.substr(this.offset + 1, 1);
197
- }
198
- nextNextChar() {
199
- if (this.offset + 3 > this.raw.length) {
200
- return this.nextChar();
201
- }
202
- return this.raw.substr(this.offset + 1, 2);
203
- }
204
- getRaw() {
205
- return this.raw;
206
- }
207
- getOffset() {
208
- return this.offset;
209
- }
210
- }
122
+ const lexer_buffer_1 = __webpack_require__(/*! ./lexer_buffer */ "./node_modules/@abaplint/core/build/src/abap/1_lexer/lexer_buffer.js");
123
+ const lexer_stream_1 = __webpack_require__(/*! ./lexer_stream */ "./node_modules/@abaplint/core/build/src/abap/1_lexer/lexer_stream.js");
211
124
  class Lexer {
212
125
  constructor() {
213
126
  this.ModeNormal = 1;
@@ -415,8 +328,8 @@ class Lexer {
415
328
  this.buffer.clear();
416
329
  }
417
330
  process(raw) {
418
- this.stream = new Stream(raw.replace(/\r/g, ""));
419
- this.buffer = new Buffer();
331
+ this.stream = new lexer_stream_1.LexerStream(raw.replace(/\r/g, ""));
332
+ this.buffer = new lexer_buffer_1.LexerBuffer();
420
333
  const splits = {};
421
334
  splits[" "] = true;
422
335
  splits[":"] = true;
@@ -561,6 +474,125 @@ exports.Lexer = Lexer;
561
474
 
562
475
  /***/ }),
563
476
 
477
+ /***/ "./node_modules/@abaplint/core/build/src/abap/1_lexer/lexer_buffer.js":
478
+ /*!****************************************************************************!*\
479
+ !*** ./node_modules/@abaplint/core/build/src/abap/1_lexer/lexer_buffer.js ***!
480
+ \****************************************************************************/
481
+ /***/ ((__unused_webpack_module, exports) => {
482
+
483
+ "use strict";
484
+
485
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
486
+ exports.LexerBuffer = void 0;
487
+ class LexerBuffer {
488
+ constructor() {
489
+ this.buf = "";
490
+ }
491
+ add(s) {
492
+ this.buf = this.buf + s;
493
+ return this.buf;
494
+ }
495
+ get() {
496
+ return this.buf;
497
+ }
498
+ clear() {
499
+ this.buf = "";
500
+ }
501
+ countIsEven(char) {
502
+ let count = 0;
503
+ for (let i = 0; i < this.buf.length; i += 1) {
504
+ if (this.buf.charAt(i) === char) {
505
+ count += 1;
506
+ }
507
+ }
508
+ return count % 2 === 0;
509
+ }
510
+ }
511
+ exports.LexerBuffer = LexerBuffer;
512
+ //# sourceMappingURL=lexer_buffer.js.map
513
+
514
+ /***/ }),
515
+
516
+ /***/ "./node_modules/@abaplint/core/build/src/abap/1_lexer/lexer_stream.js":
517
+ /*!****************************************************************************!*\
518
+ !*** ./node_modules/@abaplint/core/build/src/abap/1_lexer/lexer_stream.js ***!
519
+ \****************************************************************************/
520
+ /***/ ((__unused_webpack_module, exports) => {
521
+
522
+ "use strict";
523
+
524
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
525
+ exports.LexerStream = void 0;
526
+ class LexerStream {
527
+ constructor(raw) {
528
+ this.offset = -1;
529
+ this.raw = raw;
530
+ this.row = 0;
531
+ this.col = 0;
532
+ }
533
+ advance() {
534
+ if (this.currentChar() === "\n") {
535
+ this.col = 1;
536
+ this.row = this.row + 1;
537
+ }
538
+ if (this.offset === this.raw.length) {
539
+ return false;
540
+ }
541
+ this.col = this.col + 1;
542
+ this.offset = this.offset + 1;
543
+ return true;
544
+ }
545
+ getCol() {
546
+ return this.col;
547
+ }
548
+ getRow() {
549
+ return this.row;
550
+ }
551
+ prevChar() {
552
+ if (this.offset - 1 < 0) {
553
+ return "";
554
+ }
555
+ return this.raw.substr(this.offset - 1, 1);
556
+ }
557
+ prevPrevChar() {
558
+ if (this.offset - 2 < 0) {
559
+ return "";
560
+ }
561
+ return this.raw.substr(this.offset - 2, 2);
562
+ }
563
+ currentChar() {
564
+ if (this.offset < 0) {
565
+ return "\n"; // simulate newline at start of file to handle star(*) comments
566
+ }
567
+ else if (this.offset >= this.raw.length) {
568
+ return "";
569
+ }
570
+ return this.raw.substr(this.offset, 1);
571
+ }
572
+ nextChar() {
573
+ if (this.offset + 2 > this.raw.length) {
574
+ return "";
575
+ }
576
+ return this.raw.substr(this.offset + 1, 1);
577
+ }
578
+ nextNextChar() {
579
+ if (this.offset + 3 > this.raw.length) {
580
+ return this.nextChar();
581
+ }
582
+ return this.raw.substr(this.offset + 1, 2);
583
+ }
584
+ getRaw() {
585
+ return this.raw;
586
+ }
587
+ getOffset() {
588
+ return this.offset;
589
+ }
590
+ }
591
+ exports.LexerStream = LexerStream;
592
+ //# sourceMappingURL=lexer_stream.js.map
593
+
594
+ /***/ }),
595
+
564
596
  /***/ "./node_modules/@abaplint/core/build/src/abap/1_lexer/tokens/abstract_token.js":
565
597
  /*!*************************************************************************************!*\
566
598
  !*** ./node_modules/@abaplint/core/build/src/abap/1_lexer/tokens/abstract_token.js ***!
@@ -33606,6 +33638,7 @@ __exportStar(__webpack_require__(/*! ./expression_node */ "./node_modules/@abapl
33606
33638
  __exportStar(__webpack_require__(/*! ./statement_node */ "./node_modules/@abaplint/core/build/src/abap/nodes/statement_node.js"), exports);
33607
33639
  __exportStar(__webpack_require__(/*! ./structure_node */ "./node_modules/@abaplint/core/build/src/abap/nodes/structure_node.js"), exports);
33608
33640
  __exportStar(__webpack_require__(/*! ./token_node */ "./node_modules/@abaplint/core/build/src/abap/nodes/token_node.js"), exports);
33641
+ __exportStar(__webpack_require__(/*! ./token_node_regex */ "./node_modules/@abaplint/core/build/src/abap/nodes/token_node_regex.js"), exports);
33609
33642
  //# sourceMappingURL=index.js.map
33610
33643
 
33611
33644
  /***/ }),
@@ -34226,7 +34259,7 @@ exports.StructureNode = StructureNode;
34226
34259
  "use strict";
34227
34260
 
34228
34261
  Object.defineProperty(exports, "__esModule", ({ value: true }));
34229
- exports.TokenNodeRegex = exports.TokenNode = void 0;
34262
+ exports.TokenNode = void 0;
34230
34263
  class TokenNode {
34231
34264
  constructor(token) {
34232
34265
  this.token = token;
@@ -34257,10 +34290,25 @@ class TokenNode {
34257
34290
  }
34258
34291
  }
34259
34292
  exports.TokenNode = TokenNode;
34260
- class TokenNodeRegex extends TokenNode {
34293
+ //# sourceMappingURL=token_node.js.map
34294
+
34295
+ /***/ }),
34296
+
34297
+ /***/ "./node_modules/@abaplint/core/build/src/abap/nodes/token_node_regex.js":
34298
+ /*!******************************************************************************!*\
34299
+ !*** ./node_modules/@abaplint/core/build/src/abap/nodes/token_node_regex.js ***!
34300
+ \******************************************************************************/
34301
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
34302
+
34303
+ "use strict";
34304
+
34305
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
34306
+ exports.TokenNodeRegex = void 0;
34307
+ const token_node_1 = __webpack_require__(/*! ./token_node */ "./node_modules/@abaplint/core/build/src/abap/nodes/token_node.js");
34308
+ class TokenNodeRegex extends token_node_1.TokenNode {
34261
34309
  }
34262
34310
  exports.TokenNodeRegex = TokenNodeRegex;
34263
- //# sourceMappingURL=token_node.js.map
34311
+ //# sourceMappingURL=token_node_regex.js.map
34264
34312
 
34265
34313
  /***/ }),
34266
34314
 
@@ -41123,6 +41171,7 @@ class Help {
41123
41171
  switch (node.constructor.name) {
41124
41172
  case "TokenNode":
41125
41173
  case "TokenNodeRegex":
41174
+ // @ts-ignore
41126
41175
  extra = node.get().constructor.name + ", \"" + node.get().getStr() + "\"";
41127
41176
  break;
41128
41177
  case "ExpressionNode":
@@ -45589,6 +45638,7 @@ __exportStar(__webpack_require__(/*! ./messaging_channel */ "./node_modules/@aba
45589
45638
  __exportStar(__webpack_require__(/*! ./mime_object */ "./node_modules/@abaplint/core/build/src/objects/mime_object.js"), exports);
45590
45639
  __exportStar(__webpack_require__(/*! ./namespace */ "./node_modules/@abaplint/core/build/src/objects/namespace.js"), exports);
45591
45640
  __exportStar(__webpack_require__(/*! ./number_range */ "./node_modules/@abaplint/core/build/src/objects/number_range.js"), exports);
45641
+ __exportStar(__webpack_require__(/*! ./oauth2_profile */ "./node_modules/@abaplint/core/build/src/objects/oauth2_profile.js"), exports);
45592
45642
  __exportStar(__webpack_require__(/*! ./object_characteristic */ "./node_modules/@abaplint/core/build/src/objects/object_characteristic.js"), exports);
45593
45643
  __exportStar(__webpack_require__(/*! ./outbound_service */ "./node_modules/@abaplint/core/build/src/objects/outbound_service.js"), exports);
45594
45644
  __exportStar(__webpack_require__(/*! ./package_interface */ "./node_modules/@abaplint/core/build/src/objects/package_interface.js"), exports);
@@ -46235,6 +46285,37 @@ exports.NumberRange = NumberRange;
46235
46285
 
46236
46286
  /***/ }),
46237
46287
 
46288
+ /***/ "./node_modules/@abaplint/core/build/src/objects/oauth2_profile.js":
46289
+ /*!*************************************************************************!*\
46290
+ !*** ./node_modules/@abaplint/core/build/src/objects/oauth2_profile.js ***!
46291
+ \*************************************************************************/
46292
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
46293
+
46294
+ "use strict";
46295
+
46296
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
46297
+ exports.Oauth2Profile = void 0;
46298
+ const _abstract_object_1 = __webpack_require__(/*! ./_abstract_object */ "./node_modules/@abaplint/core/build/src/objects/_abstract_object.js");
46299
+ class Oauth2Profile extends _abstract_object_1.AbstractObject {
46300
+ getType() {
46301
+ return "OA2P";
46302
+ }
46303
+ getAllowedNaming() {
46304
+ return {
46305
+ maxLength: 30,
46306
+ allowNamespace: true,
46307
+ };
46308
+ }
46309
+ getDescription() {
46310
+ // todo
46311
+ return undefined;
46312
+ }
46313
+ }
46314
+ exports.Oauth2Profile = Oauth2Profile;
46315
+ //# sourceMappingURL=oauth2_profile.js.map
46316
+
46317
+ /***/ }),
46318
+
46238
46319
  /***/ "./node_modules/@abaplint/core/build/src/objects/object_characteristic.js":
46239
46320
  /*!********************************************************************************!*\
46240
46321
  !*** ./node_modules/@abaplint/core/build/src/objects/object_characteristic.js ***!
@@ -49870,7 +49951,7 @@ class Registry {
49870
49951
  }
49871
49952
  static abaplintVersion() {
49872
49953
  // magic, see build script "version.sh"
49873
- return "2.103.6";
49954
+ return "2.103.8";
49874
49955
  }
49875
49956
  getDDICReferences() {
49876
49957
  return this.ddicReferences;
@@ -57360,24 +57441,40 @@ ${indentation} output = ${uniqueName}.\n`;
57360
57441
  if (cdef && cdef.getMethodDefinitions === undefined) {
57361
57442
  return undefined; // something wrong
57362
57443
  }
57363
- const importing = (_c = cdef === null || cdef === void 0 ? void 0 : cdef.getMethodDefinitions().getByName("CONSTRUCTOR")) === null || _c === void 0 ? void 0 : _c.getParameters().getDefaultImporting();
57444
+ const importing = (_c = this.findConstructor(cdef, spag)) === null || _c === void 0 ? void 0 : _c.getParameters().getDefaultImporting();
57364
57445
  if (importing) {
57365
57446
  extra += " EXPORTING " + importing + " = " + source;
57366
57447
  }
57367
57448
  else if (spag === undefined) {
57368
- extra += " SpagUndefined";
57449
+ extra += " SpagUndefined ERROR";
57369
57450
  }
57370
57451
  else if (cdef === undefined) {
57371
- extra += " ClassDefinitionNotFound";
57452
+ extra += " ClassDefinitionNotFound ERROR";
57372
57453
  }
57373
57454
  else {
57374
- extra += " SomeError";
57455
+ extra += " SomeError ERROR";
57375
57456
  }
57376
57457
  }
57377
57458
  }
57378
57459
  const abap = `CREATE OBJECT ${name}${extra}.`;
57379
57460
  return abap;
57380
57461
  }
57462
+ findConstructor(cdef, spag) {
57463
+ let def = cdef;
57464
+ while (def !== undefined) {
57465
+ const method = def === null || def === void 0 ? void 0 : def.getMethodDefinitions().getByName("CONSTRUCTOR");
57466
+ if (method) {
57467
+ return method;
57468
+ }
57469
+ const name = def.getSuperClass();
57470
+ if (name) {
57471
+ def = spag === null || spag === void 0 ? void 0 : spag.findClassDefinition(name);
57472
+ }
57473
+ else {
57474
+ return undefined;
57475
+ }
57476
+ }
57477
+ }
57381
57478
  }
57382
57479
  exports.Downport = Downport;
57383
57480
  //# sourceMappingURL=downport.js.map
@@ -78934,18 +79031,16 @@ __exportStar(__webpack_require__(/*! ./call_transformation */ "./node_modules/@a
78934
79031
  __exportStar(__webpack_require__(/*! ./call */ "./node_modules/@abaplint/transpiler/build/src/statements/call.js"), exports);
78935
79032
  __exportStar(__webpack_require__(/*! ./case */ "./node_modules/@abaplint/transpiler/build/src/statements/case.js"), exports);
78936
79033
  __exportStar(__webpack_require__(/*! ./check */ "./node_modules/@abaplint/transpiler/build/src/statements/check.js"), exports);
78937
- __exportStar(__webpack_require__(/*! ./compute */ "./node_modules/@abaplint/transpiler/build/src/statements/compute.js"), exports);
78938
79034
  __exportStar(__webpack_require__(/*! ./class_deferred */ "./node_modules/@abaplint/transpiler/build/src/statements/class_deferred.js"), exports);
78939
79035
  __exportStar(__webpack_require__(/*! ./class_definition_load */ "./node_modules/@abaplint/transpiler/build/src/statements/class_definition_load.js"), exports);
78940
79036
  __exportStar(__webpack_require__(/*! ./class_implementation */ "./node_modules/@abaplint/transpiler/build/src/statements/class_implementation.js"), exports);
78941
79037
  __exportStar(__webpack_require__(/*! ./class_local_friends */ "./node_modules/@abaplint/transpiler/build/src/statements/class_local_friends.js"), exports);
78942
79038
  __exportStar(__webpack_require__(/*! ./clear */ "./node_modules/@abaplint/transpiler/build/src/statements/clear.js"), exports);
78943
- __exportStar(__webpack_require__(/*! ./open_cursor */ "./node_modules/@abaplint/transpiler/build/src/statements/open_cursor.js"), exports);
78944
79039
  __exportStar(__webpack_require__(/*! ./close_cursor */ "./node_modules/@abaplint/transpiler/build/src/statements/close_cursor.js"), exports);
78945
- __exportStar(__webpack_require__(/*! ./fetch_next_cursor */ "./node_modules/@abaplint/transpiler/build/src/statements/fetch_next_cursor.js"), exports);
78946
79040
  __exportStar(__webpack_require__(/*! ./close_dataset */ "./node_modules/@abaplint/transpiler/build/src/statements/close_dataset.js"), exports);
78947
79041
  __exportStar(__webpack_require__(/*! ./collect */ "./node_modules/@abaplint/transpiler/build/src/statements/collect.js"), exports);
78948
79042
  __exportStar(__webpack_require__(/*! ./commit */ "./node_modules/@abaplint/transpiler/build/src/statements/commit.js"), exports);
79043
+ __exportStar(__webpack_require__(/*! ./compute */ "./node_modules/@abaplint/transpiler/build/src/statements/compute.js"), exports);
78949
79044
  __exportStar(__webpack_require__(/*! ./concatenate */ "./node_modules/@abaplint/transpiler/build/src/statements/concatenate.js"), exports);
78950
79045
  __exportStar(__webpack_require__(/*! ./condense */ "./node_modules/@abaplint/transpiler/build/src/statements/condense.js"), exports);
78951
79046
  __exportStar(__webpack_require__(/*! ./constant */ "./node_modules/@abaplint/transpiler/build/src/statements/constant.js"), exports);
@@ -78978,6 +79073,7 @@ __exportStar(__webpack_require__(/*! ./end_while */ "./node_modules/@abaplint/tr
78978
79073
  __exportStar(__webpack_require__(/*! ./enhancement_section */ "./node_modules/@abaplint/transpiler/build/src/statements/enhancement_section.js"), exports);
78979
79074
  __exportStar(__webpack_require__(/*! ./exit */ "./node_modules/@abaplint/transpiler/build/src/statements/exit.js"), exports);
78980
79075
  __exportStar(__webpack_require__(/*! ./export */ "./node_modules/@abaplint/transpiler/build/src/statements/export.js"), exports);
79076
+ __exportStar(__webpack_require__(/*! ./fetch_next_cursor */ "./node_modules/@abaplint/transpiler/build/src/statements/fetch_next_cursor.js"), exports);
78981
79077
  __exportStar(__webpack_require__(/*! ./field_symbol */ "./node_modules/@abaplint/transpiler/build/src/statements/field_symbol.js"), exports);
78982
79078
  __exportStar(__webpack_require__(/*! ./find */ "./node_modules/@abaplint/transpiler/build/src/statements/find.js"), exports);
78983
79079
  __exportStar(__webpack_require__(/*! ./form */ "./node_modules/@abaplint/transpiler/build/src/statements/form.js"), exports);
@@ -79011,6 +79107,7 @@ __exportStar(__webpack_require__(/*! ./modify_internal */ "./node_modules/@abapl
79011
79107
  __exportStar(__webpack_require__(/*! ./modify_screen */ "./node_modules/@abaplint/transpiler/build/src/statements/modify_screen.js"), exports);
79012
79108
  __exportStar(__webpack_require__(/*! ./move_corresponding */ "./node_modules/@abaplint/transpiler/build/src/statements/move_corresponding.js"), exports);
79013
79109
  __exportStar(__webpack_require__(/*! ./move */ "./node_modules/@abaplint/transpiler/build/src/statements/move.js"), exports);
79110
+ __exportStar(__webpack_require__(/*! ./open_cursor */ "./node_modules/@abaplint/transpiler/build/src/statements/open_cursor.js"), exports);
79014
79111
  __exportStar(__webpack_require__(/*! ./open_dataset */ "./node_modules/@abaplint/transpiler/build/src/statements/open_dataset.js"), exports);
79015
79112
  __exportStar(__webpack_require__(/*! ./overlay */ "./node_modules/@abaplint/transpiler/build/src/statements/overlay.js"), exports);
79016
79113
  __exportStar(__webpack_require__(/*! ./parameter */ "./node_modules/@abaplint/transpiler/build/src/statements/parameter.js"), exports);
@@ -79051,6 +79148,7 @@ __exportStar(__webpack_require__(/*! ./start_of_selection */ "./node_modules/@ab
79051
79148
  __exportStar(__webpack_require__(/*! ./submit */ "./node_modules/@abaplint/transpiler/build/src/statements/submit.js"), exports);
79052
79149
  __exportStar(__webpack_require__(/*! ./subtract */ "./node_modules/@abaplint/transpiler/build/src/statements/subtract.js"), exports);
79053
79150
  __exportStar(__webpack_require__(/*! ./syntax_check */ "./node_modules/@abaplint/transpiler/build/src/statements/syntax_check.js"), exports);
79151
+ __exportStar(__webpack_require__(/*! ./system_call */ "./node_modules/@abaplint/transpiler/build/src/statements/system_call.js"), exports);
79054
79152
  __exportStar(__webpack_require__(/*! ./tables */ "./node_modules/@abaplint/transpiler/build/src/statements/tables.js"), exports);
79055
79153
  __exportStar(__webpack_require__(/*! ./translate */ "./node_modules/@abaplint/transpiler/build/src/statements/translate.js"), exports);
79056
79154
  __exportStar(__webpack_require__(/*! ./truncate_dataset */ "./node_modules/@abaplint/transpiler/build/src/statements/truncate_dataset.js"), exports);
@@ -80534,8 +80632,13 @@ class ReplaceTranspiler {
80534
80632
  extra.push("of: " + new expressions_1.SourceTranspiler().transpile(o, traversal).getCode());
80535
80633
  }
80536
80634
  const length = node.findExpressionAfterToken("LENGTH");
80537
- if (length && length.get() instanceof abaplint.Expressions.Source) {
80538
- extra.push("sectionLength: " + new expressions_1.SourceTranspiler().transpile(length, traversal).getCode());
80635
+ if (length) {
80636
+ if (length.get() instanceof abaplint.Expressions.Source) {
80637
+ extra.push("sectionLength: " + new expressions_1.SourceTranspiler().transpile(length, traversal).getCode());
80638
+ }
80639
+ else if (length.get() instanceof abaplint.Expressions.Target) {
80640
+ extra.push("replacementLength: " + new expressions_1.TargetTranspiler().transpile(length, traversal).getCode());
80641
+ }
80539
80642
  }
80540
80643
  const offset = node.findExpressionAfterToken("OFFSET");
80541
80644
  if (offset && offset.get() instanceof abaplint.Expressions.Source) {
@@ -80839,7 +80942,7 @@ class SelectTranspiler {
80839
80942
  by = JSON.stringify(keys);
80840
80943
  }
80841
80944
  const code = `if (${faeTranspiled}.array().length === 0) {
80842
- throw "FAE, todo, empty table";
80945
+ throw new Error("FAE, todo, empty table");
80843
80946
  } else {
80844
80947
  const ${unique2} = ${faeTranspiled}.array();
80845
80948
  abap.statements.clear(${target});
@@ -81413,6 +81516,27 @@ exports.SyntaxCheckTranspiler = SyntaxCheckTranspiler;
81413
81516
 
81414
81517
  /***/ }),
81415
81518
 
81519
+ /***/ "./node_modules/@abaplint/transpiler/build/src/statements/system_call.js":
81520
+ /*!*******************************************************************************!*\
81521
+ !*** ./node_modules/@abaplint/transpiler/build/src/statements/system_call.js ***!
81522
+ \*******************************************************************************/
81523
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
81524
+
81525
+ "use strict";
81526
+
81527
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
81528
+ exports.SystemCallTranspiler = void 0;
81529
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
81530
+ class SystemCallTranspiler {
81531
+ transpile(_node, _traversal) {
81532
+ return new chunk_1.Chunk(`throw new Error("SystemCall, not supported, transpiler");`);
81533
+ }
81534
+ }
81535
+ exports.SystemCallTranspiler = SystemCallTranspiler;
81536
+ //# sourceMappingURL=system_call.js.map
81537
+
81538
+ /***/ }),
81539
+
81416
81540
  /***/ "./node_modules/@abaplint/transpiler/build/src/statements/tables.js":
81417
81541
  /*!**************************************************************************!*\
81418
81542
  !*** ./node_modules/@abaplint/transpiler/build/src/statements/tables.js ***!
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler-cli",
3
- "version": "2.7.134",
3
+ "version": "2.7.136",
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.134",
29
+ "@abaplint/transpiler": "^2.7.136",
30
30
  "@types/glob": "^7.2.0",
31
31
  "glob": "=7.2.0",
32
32
  "@types/progress": "^2.0.7",
33
- "@types/node": "^20.9.0",
34
- "@abaplint/core": "^2.103.6",
33
+ "@types/node": "^20.9.1",
34
+ "@abaplint/core": "^2.103.8",
35
35
  "progress": "^2.0.3",
36
36
  "webpack": "^5.89.0",
37
37
  "webpack-cli": "^5.1.4",