@abaplint/transpiler-cli 2.14.29 → 2.14.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 +2098 -445
  2. package/package.json +3 -3
package/build/bundle.js CHANGED
@@ -606,6 +606,7 @@ async function loadLibraries(config) {
606
606
  const result = [];
607
607
  for (const [index, lib] of libs.entries()) {
608
608
  const libraryName = names[index];
609
+ const start = Date.now();
609
610
  let dir;
610
611
  let cleanupFolder = false;
611
612
  const folder = (0, lib_folder_1.resolveLibFolder)(lib.folder, process.cwd());
@@ -649,7 +650,7 @@ async function loadLibraries(config) {
649
650
  }
650
651
  }
651
652
  result.push({ name: libraryName, files });
652
- console.log("\t" + files.length + " files added from lib");
653
+ console.log("\t" + files.length + " files added from lib, " + ((Date.now() - start) / 1000).toFixed(1) + " seconds");
653
654
  }
654
655
  finally {
655
656
  if (cleanupFolder) {
@@ -46336,6 +46337,7 @@ var __importStar = (this && this.__importStar) || (function () {
46336
46337
  Object.defineProperty(exports, "__esModule", ({ value: true }));
46337
46338
  exports.ModifyInternal = void 0;
46338
46339
  const Expressions = __importStar(__webpack_require__(/*! ../../2_statements/expressions */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/index.js"));
46340
+ const nodes_1 = __webpack_require__(/*! ../../nodes */ "./node_modules/@abaplint/core/build/src/abap/nodes/index.js");
46339
46341
  const source_1 = __webpack_require__(/*! ../expressions/source */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/expressions/source.js");
46340
46342
  const target_1 = __webpack_require__(/*! ../expressions/target */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/expressions/target.js");
46341
46343
  const fstarget_1 = __webpack_require__(/*! ../expressions/fstarget */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/expressions/fstarget.js");
@@ -46344,15 +46346,22 @@ const basic_1 = __webpack_require__(/*! ../../types/basic */ "./node_modules/@ab
46344
46346
  const _syntax_input_1 = __webpack_require__(/*! ../_syntax_input */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/_syntax_input.js");
46345
46347
  class ModifyInternal {
46346
46348
  runSyntax(node, input) {
46347
- for (const s of node.findDirectExpressions(Expressions.Source)) {
46348
- source_1.Source.runSyntax(s, input);
46349
- }
46349
+ var _a;
46350
46350
  // there is only one
46351
46351
  const target = node.findFirstExpression(Expressions.Target);
46352
- const targetExpression = target;
46353
- if (targetExpression) {
46354
- // it might be a dynamic target
46355
- const targetType = target_1.Target.runSyntax(targetExpression, input);
46352
+ // it might be a dynamic target
46353
+ const targetType = target ? target_1.Target.runSyntax(target, input) : undefined;
46354
+ // the FROM work area has the row type of the table, used for inferring "#"
46355
+ const rowType = targetType instanceof basic_1.TableType ? targetType.getRowType() : undefined;
46356
+ const children = node.getChildren();
46357
+ for (let i = 0; i < children.length; i++) {
46358
+ const s = children[i];
46359
+ if (s instanceof nodes_1.ExpressionNode && s.get() instanceof Expressions.Source) {
46360
+ const isFrom = ((_a = children[i - 1]) === null || _a === void 0 ? void 0 : _a.concatTokens().toUpperCase()) === "FROM";
46361
+ source_1.Source.runSyntax(s, input, isFrom ? rowType : undefined);
46362
+ }
46363
+ }
46364
+ if (target) {
46356
46365
  if (targetType instanceof basic_1.VoidType
46357
46366
  || targetType instanceof basic_1.AnyType
46358
46367
  || targetType instanceof basic_1.UnknownType) {
@@ -52215,7 +52224,8 @@ class SyntaxLogic {
52215
52224
  }
52216
52225
  }
52217
52226
  }
52218
- if (isStructure || isStatement) {
52227
+ // statements only have expressions and tokens as children, nothing to traverse
52228
+ if (isStructure) {
52219
52229
  this.traverse(child);
52220
52230
  }
52221
52231
  }
@@ -62325,6 +62335,31 @@ exports.MemoryFile = MemoryFile;
62325
62335
 
62326
62336
  /***/ },
62327
62337
 
62338
+ /***/ "./node_modules/@abaplint/core/build/src/files/raw_rows_cache.js"
62339
+ /*!***********************************************************************!*\
62340
+ !*** ./node_modules/@abaplint/core/build/src/files/raw_rows_cache.js ***!
62341
+ \***********************************************************************/
62342
+ (__unused_webpack_module, exports) {
62343
+
62344
+ "use strict";
62345
+
62346
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
62347
+ exports.getCachedRawRows = getCachedRawRows;
62348
+ const rowCache = new WeakMap();
62349
+ /** getRawRows() splits the source on every call; a file is never changed, edits create a new one,
62350
+ * so the rows can be cached per file object. The result must not be modified */
62351
+ function getCachedRawRows(file) {
62352
+ let rows = rowCache.get(file);
62353
+ if (rows === undefined) {
62354
+ rows = file.getRawRows();
62355
+ rowCache.set(file, rows);
62356
+ }
62357
+ return rows;
62358
+ }
62359
+ //# sourceMappingURL=raw_rows_cache.js.map
62360
+
62361
+ /***/ },
62362
+
62328
62363
  /***/ "./node_modules/@abaplint/core/build/src/index.js"
62329
62364
  /*!********************************************************!*\
62330
62365
  !*** ./node_modules/@abaplint/core/build/src/index.js ***!
@@ -62509,11 +62544,12 @@ exports.Issue = void 0;
62509
62544
  const position_1 = __webpack_require__(/*! ./position */ "./node_modules/@abaplint/core/build/src/position.js");
62510
62545
  const virtual_position_1 = __webpack_require__(/*! ./virtual_position */ "./node_modules/@abaplint/core/build/src/virtual_position.js");
62511
62546
  const severity_1 = __webpack_require__(/*! ./severity */ "./node_modules/@abaplint/core/build/src/severity.js");
62547
+ const raw_rows_cache_1 = __webpack_require__(/*! ./files/raw_rows_cache */ "./node_modules/@abaplint/core/build/src/files/raw_rows_cache.js");
62512
62548
  class Issue {
62513
62549
  //////////////////////////
62514
62550
  static atRow(file, row, message, key, severity) {
62515
62551
  const start = new position_1.Position(row, 1);
62516
- const end = new position_1.Position(row, file.getRawRows()[row - 1].length + 1);
62552
+ const end = new position_1.Position(row, (0, raw_rows_cache_1.getCachedRawRows)(file)[row - 1].length + 1);
62517
62553
  severity = severity !== null && severity !== void 0 ? severity : severity_1.Severity.Error;
62518
62554
  return new Issue({
62519
62555
  filename: file.getFilename(),
@@ -62529,7 +62565,7 @@ class Issue {
62529
62565
  }
62530
62566
  static atPosition(file, start, message, key, severity, fix) {
62531
62567
  const row = start.getRow();
62532
- const end = new position_1.Position(row, file.getRawRows()[row - 1].length + 1);
62568
+ const end = new position_1.Position(row, (0, raw_rows_cache_1.getCachedRawRows)(file)[row - 1].length + 1);
62533
62569
  severity = severity !== null && severity !== void 0 ? severity : severity_1.Severity.Error;
62534
62570
  return new Issue({
62535
62571
  filename: file.getFilename(),
@@ -74733,6 +74769,8 @@ class Registry {
74733
74769
  this.objects = {};
74734
74770
  this.objectsByType = {};
74735
74771
  this.dependencies = {};
74772
+ /** upper case filename to object containing the file, kept in sync by add/remove methods */
74773
+ this.filenameIndex = new Map();
74736
74774
  this.setConfig(conf ? conf : config_1.Config.getDefault());
74737
74775
  this.clear();
74738
74776
  }
@@ -74741,13 +74779,14 @@ class Registry {
74741
74779
  this.objects = {};
74742
74780
  this.objectsByType = {};
74743
74781
  this.dependencies = {};
74782
+ this.filenameIndex = new Map();
74744
74783
  this.ddicReferences = new ddic_references_1.DDICReferences();
74745
74784
  this.msagReferences = new msag_references_1.MSAGReferences();
74746
74785
  this.macroReferences = new macro_references_1.MacroReferences();
74747
74786
  }
74748
74787
  static abaplintVersion() {
74749
74788
  // magic, see build script "version.js"
74750
- return "2.120.103";
74789
+ return "2.120.105";
74751
74790
  }
74752
74791
  getDDICReferences() {
74753
74792
  return this.ddicReferences;
@@ -74800,11 +74839,13 @@ class Registry {
74800
74839
  }
74801
74840
  getFileByName(filename) {
74802
74841
  const upper = filename.toUpperCase();
74803
- for (const o of this.getObjects()) {
74804
- for (const f of o.getFiles()) {
74805
- if (f.getFilename().toUpperCase() === upper) {
74806
- return f;
74807
- }
74842
+ const obj = this.filenameIndex.get(upper);
74843
+ if (obj === undefined) {
74844
+ return undefined;
74845
+ }
74846
+ for (const f of obj.getFiles()) {
74847
+ if (f.getFilename().toUpperCase() === upper) {
74848
+ return f;
74808
74849
  }
74809
74850
  }
74810
74851
  return undefined;
@@ -74845,6 +74886,7 @@ class Registry {
74845
74886
  removeFile(file) {
74846
74887
  const obj = this.find(file.getObjectName(), file.getObjectType());
74847
74888
  obj.removeFile(file);
74889
+ this.unindexFile(file.getFilename(), obj);
74848
74890
  if (obj.getFiles().length === 0) {
74849
74891
  this.ddicReferences.clear(obj);
74850
74892
  this.msagReferences.clear(obj);
@@ -74871,6 +74913,7 @@ class Registry {
74871
74913
  found = this.findOrCreate(f.getObjectName(), f.getObjectType());
74872
74914
  }
74873
74915
  found.addFile(f);
74916
+ this.filenameIndex.set(filename.toUpperCase(), found);
74874
74917
  }
74875
74918
  return this;
74876
74919
  }
@@ -74939,11 +74982,13 @@ class Registry {
74939
74982
  // assumption: the file is already in the registry
74940
74983
  findObjectForFile(file) {
74941
74984
  const filename = file.getFilename();
74942
- for (const obj of this.getObjects()) {
74943
- for (const ofile of obj.getFiles()) {
74944
- if (ofile.getFilename() === filename) {
74945
- return obj;
74946
- }
74985
+ const obj = this.filenameIndex.get(filename.toUpperCase());
74986
+ if (obj === undefined) {
74987
+ return undefined;
74988
+ }
74989
+ for (const ofile of obj.getFiles()) {
74990
+ if (ofile.getFilename() === filename) {
74991
+ return obj;
74947
74992
  }
74948
74993
  }
74949
74994
  return undefined;
@@ -75035,6 +75080,9 @@ class Registry {
75035
75080
  if (this.objects[remove.getName()][remove.getType()] === undefined) {
75036
75081
  throw new Error("removeObject: object not found");
75037
75082
  }
75083
+ for (const f of remove.getFiles()) {
75084
+ this.unindexFile(f.getFilename(), remove);
75085
+ }
75038
75086
  if (Object.keys(this.objects[remove.getName()]).length === 1) {
75039
75087
  delete this.objects[remove.getName()];
75040
75088
  }
@@ -75048,6 +75096,12 @@ class Registry {
75048
75096
  delete this.objectsByType[remove.getType()][remove.getName()];
75049
75097
  }
75050
75098
  }
75099
+ unindexFile(filename, obj) {
75100
+ const upper = filename.toUpperCase();
75101
+ if (this.filenameIndex.get(upper) === obj) {
75102
+ this.filenameIndex.delete(upper);
75103
+ }
75104
+ }
75051
75105
  find(name, type) {
75052
75106
  const searchType = type ? type : "UNKNOWN";
75053
75107
  const searchName = name.toUpperCase();
@@ -75345,6 +75399,7 @@ const _statement_1 = __webpack_require__(/*! ../abap/2_statements/statements/_st
75345
75399
  const tokens_1 = __webpack_require__(/*! ../abap/1_lexer/tokens */ "./node_modules/@abaplint/core/build/src/abap/1_lexer/tokens/index.js");
75346
75400
  const _reference_1 = __webpack_require__(/*! ../abap/5_syntax/_reference */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/_reference.js");
75347
75401
  const syntax_1 = __webpack_require__(/*! ../abap/5_syntax/syntax */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/syntax.js");
75402
+ const raw_rows_cache_1 = __webpack_require__(/*! ../files/raw_rows_cache */ "./node_modules/@abaplint/core/build/src/files/raw_rows_cache.js");
75348
75403
  const nodes_1 = __webpack_require__(/*! ../abap/nodes */ "./node_modules/@abaplint/core/build/src/abap/nodes/index.js");
75349
75404
  const _typed_identifier_1 = __webpack_require__(/*! ../abap/types/_typed_identifier */ "./node_modules/@abaplint/core/build/src/abap/types/_typed_identifier.js");
75350
75405
  const basic_1 = __webpack_require__(/*! ../abap/types/basic */ "./node_modules/@abaplint/core/build/src/abap/types/basic/index.js");
@@ -76651,16 +76706,6 @@ class Hierarchy {
76651
76706
  exports.Hierarchy = Hierarchy;
76652
76707
  ////////////////////////////////////////
76653
76708
  // edits
76654
- const rowCache = new WeakMap();
76655
- /** getRawRows() splits the source on every call; a file is never changed, edits create a new one */
76656
- function rowsOf(file) {
76657
- let rows = rowCache.get(file);
76658
- if (rows === undefined) {
76659
- rows = file.getRawRows();
76660
- rowCache.set(file, rows);
76661
- }
76662
- return rows;
76663
- }
76664
76709
  /** edits of one fix, sorted so that applying them one after the other keeps the positions valid */
76665
76710
  function mergeEdits(file, edits) {
76666
76711
  const list = [];
@@ -76680,7 +76725,7 @@ function deleteRegion(file, first, last) {
76680
76725
  if (first === last && first.getColon() !== undefined) {
76681
76726
  return edit_helper_1.EditHelper.deleteStatement(file, first);
76682
76727
  }
76683
- const rows = rowsOf(file);
76728
+ const rows = (0, raw_rows_cache_1.getCachedRawRows)(file);
76684
76729
  const start = first.getStart();
76685
76730
  const end = last.getEnd();
76686
76731
  const before = rows[start.getRow() - 1].substring(0, start.getCol() - 1);
@@ -76695,7 +76740,7 @@ function deleteStatement(file, statement) {
76695
76740
  }
76696
76741
  /** the source code between two positions, as written */
76697
76742
  function rawText(file, start, end) {
76698
- const rows = rowsOf(file);
76743
+ const rows = (0, raw_rows_cache_1.getCachedRawRows)(file);
76699
76744
  if (start.getRow() === end.getRow()) {
76700
76745
  return rows[start.getRow() - 1].substring(start.getCol() - 1, end.getCol() - 1);
76701
76746
  }
@@ -86605,8 +86650,23 @@ Make sure to test the downported code, it might not always be completely correct
86605
86650
  }
86606
86651
  highSyntaxObj = this.highReg.findObjectForFile(f);
86607
86652
  }
86653
+ // the syntax run is expensive and most statements need no downport, so run it on first use
86654
+ let computedSyntax = undefined;
86655
+ const runHighSyntax = () => {
86656
+ if (computedSyntax === undefined) {
86657
+ computedSyntax = new syntax_1.SyntaxLogic(this.highReg, highSyntaxObj).run();
86658
+ }
86659
+ return computedSyntax;
86660
+ };
86661
+ const highSyntax = {
86662
+ get issues() {
86663
+ return runHighSyntax().issues;
86664
+ },
86665
+ get spaghetti() {
86666
+ return runHighSyntax().spaghetti;
86667
+ },
86668
+ };
86608
86669
  for (const lowFile of lowObj.getABAPFiles()) {
86609
- let highSyntax = undefined;
86610
86670
  const highFile = highObj.getABAPFileByName(lowFile.getFilename());
86611
86671
  if (highFile === undefined) {
86612
86672
  continue;
@@ -86625,9 +86685,6 @@ Make sure to test the downported code, it might not always be completely correct
86625
86685
  // actively editing the files
86626
86686
  continue;
86627
86687
  }
86628
- if (highSyntax === undefined) {
86629
- highSyntax = new syntax_1.SyntaxLogic(this.highReg, highSyntaxObj).run();
86630
- }
86631
86688
  let containsUnknown = false;
86632
86689
  const notDownported = [];
86633
86690
  for (let i = 0; i < lowStatements.length; i++) {
@@ -109517,6 +109574,8 @@ const _irule_1 = __webpack_require__(/*! ./_irule */ "./node_modules/@abaplint/c
109517
109574
  const syntax_1 = __webpack_require__(/*! ../abap/5_syntax/syntax */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/syntax.js");
109518
109575
  const _reference_1 = __webpack_require__(/*! ../abap/5_syntax/_reference */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/_reference.js");
109519
109576
  const types_1 = __webpack_require__(/*! ../abap/types */ "./node_modules/@abaplint/core/build/src/abap/types/index.js");
109577
+ const position_1 = __webpack_require__(/*! ../position */ "./node_modules/@abaplint/core/build/src/position.js");
109578
+ const virtual_position_1 = __webpack_require__(/*! ../virtual_position */ "./node_modules/@abaplint/core/build/src/virtual_position.js");
109520
109579
  class StaticCallViaInstanceConf extends _basic_rule_config_1.BasicRuleConfig {
109521
109580
  constructor() {
109522
109581
  super(...arguments);
@@ -109556,24 +109615,36 @@ ENDMETHOD.`,
109556
109615
  if (this.getConfig().allowInTestclassIncludes === true && file.getFilename().includes(".testclasses.")) {
109557
109616
  return [];
109558
109617
  }
109559
- const staticMethodCalls = this.listMethodCalls(file.getFilename(), new syntax_1.SyntaxLogic(this.reg, obj).run().spaghetti.getTop());
109618
+ const staticMethodCalls = new Set();
109619
+ for (const s of this.listMethodCalls(file.getFilename(), new syntax_1.SyntaxLogic(this.reg, obj).run().spaghetti.getTop())) {
109620
+ staticMethodCalls.add(StaticCallViaInstance.positionKey(s));
109621
+ }
109622
+ if (staticMethodCalls.size === 0) {
109623
+ return [];
109624
+ }
109560
109625
  const tokens = file.getTokens();
109561
109626
  for (let i = 0; i < tokens.length - 1; i++) {
109562
109627
  const token = tokens[i];
109563
109628
  if (token.getStr() !== "->") {
109564
109629
  continue;
109565
109630
  }
109566
- const next = tokens[i + 1];
109567
- for (const s of staticMethodCalls) {
109568
- if (s.equals(next.getStart())) {
109569
- const message = "Avoid calling static method via instance";
109570
- issues.push(issue_1.Issue.atToken(file, token, message, this.getMetadata().key));
109571
- break;
109572
- }
109631
+ const next = tokens[i + 1].getStart();
109632
+ // a plain reference position also matches a token inside a macro call at the same row and column
109633
+ if (staticMethodCalls.has(StaticCallViaInstance.positionKey(next))
109634
+ || (next instanceof virtual_position_1.VirtualPosition
109635
+ && staticMethodCalls.has(StaticCallViaInstance.positionKey(new position_1.Position(next.getRow(), next.getCol()))))) {
109636
+ const message = "Avoid calling static method via instance";
109637
+ issues.push(issue_1.Issue.atToken(file, token, message, this.getMetadata().key));
109573
109638
  }
109574
109639
  }
109575
109640
  return issues;
109576
109641
  }
109642
+ static positionKey(p) {
109643
+ if (p instanceof virtual_position_1.VirtualPosition) {
109644
+ return p.getRow() + ":" + p.getCol() + ":" + p.vrow + ":" + p.vcol;
109645
+ }
109646
+ return p.getRow() + ":" + p.getCol();
109647
+ }
109577
109648
  listMethodCalls(filename, node) {
109578
109649
  const ret = [];
109579
109650
  for (const r of node.getData().references) {
@@ -113164,31 +113235,40 @@ const _scope_type_1 = __webpack_require__(/*! ../abap/5_syntax/_scope_type */ ".
113164
113235
  const edit_helper_1 = __webpack_require__(/*! ../edit_helper */ "./node_modules/@abaplint/core/build/src/edit_helper.js");
113165
113236
  const _reference_1 = __webpack_require__(/*! ../abap/5_syntax/_reference */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/_reference.js");
113166
113237
  const _statement_1 = __webpack_require__(/*! ../abap/2_statements/statements/_statement */ "./node_modules/@abaplint/core/build/src/abap/2_statements/statements/_statement.js");
113238
+ const virtual_position_1 = __webpack_require__(/*! ../virtual_position */ "./node_modules/@abaplint/core/build/src/virtual_position.js");
113167
113239
  class WorkArea {
113168
113240
  constructor() {
113169
- this.workarea = [];
113241
+ // keyed by identifier position, insertion order is kept
113242
+ this.workarea = new Map();
113170
113243
  }
113171
113244
  push(id) {
113172
- for (const w of this.workarea) {
113173
- if (id.equals(w)) {
113174
- return;
113175
- }
113245
+ const key = WorkArea.buildKey(id);
113246
+ if (this.workarea.has(key) === false) {
113247
+ this.workarea.set(key, id);
113176
113248
  }
113177
- this.workarea.push(id);
113178
113249
  }
113179
113250
  removeIfExists(id) {
113180
- for (let i = 0; i < this.workarea.length; i++) {
113181
- if (id.equals(this.workarea[i])) {
113182
- this.workarea.splice(i, 1);
113183
- return;
113251
+ this.workarea.delete(WorkArea.buildKey(id));
113252
+ }
113253
+ /** removes the identifiers referenced somewhere */
113254
+ removeReferenced(referenced) {
113255
+ for (const key of [...this.workarea.keys()]) {
113256
+ if (referenced.has(key)) {
113257
+ this.workarea.delete(key);
113184
113258
  }
113185
113259
  }
113186
113260
  }
113187
113261
  get() {
113188
- return this.workarea;
113262
+ return [...this.workarea.values()];
113189
113263
  }
113190
113264
  count() {
113191
- return this.workarea.length;
113265
+ return this.workarea.size;
113266
+ }
113267
+ /** identifiers from one macro call share the row and column, the virtual position tells them apart */
113268
+ static buildKey(id) {
113269
+ const start = id.getStart();
113270
+ const key = id.getFilename() + "," + start.getRow() + "," + start.getCol();
113271
+ return start instanceof virtual_position_1.VirtualPosition ? key + "," + start.vrow + "," + start.vcol : key;
113192
113272
  }
113193
113273
  }
113194
113274
  class UnusedTypesConf extends _basic_rule_config_1.BasicRuleConfig {
@@ -113204,6 +113284,8 @@ exports.UnusedTypesConf = UnusedTypesConf;
113204
113284
  class UnusedTypes {
113205
113285
  constructor() {
113206
113286
  this.conf = new UnusedTypesConf();
113287
+ /** keys of the identifiers with a type reference in any object, built once per run when needed */
113288
+ this.referenced = undefined;
113207
113289
  }
113208
113290
  getMetadata() {
113209
113291
  return {
@@ -113227,6 +113309,7 @@ class UnusedTypes {
113227
113309
  }
113228
113310
  initialize(reg) {
113229
113311
  this.reg = reg;
113312
+ this.referenced = undefined;
113230
113313
  return this;
113231
113314
  }
113232
113315
  run(obj) {
@@ -113251,20 +113334,10 @@ class UnusedTypes {
113251
113334
  if (this.workarea.count() === 0) {
113252
113335
  return []; // exit early if all types are used in the current object
113253
113336
  }
113254
- for (const o of this.reg.getObjects()) {
113255
- if (o === obj) {
113256
- continue;
113257
- }
113258
- else if (o instanceof _abap_object_1.ABAPObject) {
113259
- if (this.reg.isDependency(o)) {
113260
- continue; // do not search in dependencies
113261
- }
113262
- const syntax = new syntax_1.SyntaxLogic(this.reg, o).run();
113263
- this.traverse(syntax.spaghetti.getTop(), o, false);
113264
- }
113265
- if (this.workarea.count() === 0) {
113266
- return []; // exit early if all types are used
113267
- }
113337
+ // uses in other objects, collected once instead of searching all objects for each object
113338
+ this.workarea.removeReferenced(this.getReferenced());
113339
+ if (this.workarea.count() === 0) {
113340
+ return []; // exit early if all types are used
113268
113341
  }
113269
113342
  // what is left is unused
113270
113343
  const ret = [];
@@ -113308,6 +113381,33 @@ class UnusedTypes {
113308
113381
  return false;
113309
113382
  }
113310
113383
  ////////////////////////////
113384
+ getReferenced() {
113385
+ if (this.referenced === undefined) {
113386
+ const referenced = new Set();
113387
+ for (const o of this.reg.getObjects()) {
113388
+ if (!(o instanceof _abap_object_1.ABAPObject) || this.reg.isDependency(o)) {
113389
+ continue; // do not search in dependencies
113390
+ }
113391
+ const syntax = new syntax_1.SyntaxLogic(this.reg, o).run();
113392
+ this.collectReferenced(syntax.spaghetti.getTop(), referenced);
113393
+ }
113394
+ this.referenced = referenced;
113395
+ }
113396
+ return this.referenced;
113397
+ }
113398
+ /** same nodes and references as checkNode() with add = false */
113399
+ collectReferenced(node, referenced) {
113400
+ if (node.getIdentifier().stype !== _scope_type_1.ScopeType.BuiltIn) {
113401
+ for (const r of node.getData().references) {
113402
+ if (r.referenceType === _reference_1.ReferenceType.TypeReference && r.resolved) {
113403
+ referenced.add(WorkArea.buildKey(r.resolved));
113404
+ }
113405
+ }
113406
+ }
113407
+ for (const c of node.getChildren()) {
113408
+ this.collectReferenced(c, referenced);
113409
+ }
113410
+ }
113311
113411
  traverse(node, obj, add) {
113312
113412
  if (node.getIdentifier().stype !== _scope_type_1.ScopeType.BuiltIn) {
113313
113413
  this.checkNode(node, obj, add);
@@ -113427,17 +113527,17 @@ class WorkArea {
113427
113527
  this.workarea = new Map();
113428
113528
  }
113429
113529
  push(id, count = 1) {
113430
- const key = this.buildKey(id);
113530
+ const key = WorkArea.buildKey(id);
113431
113531
  if (this.workarea.has(key)) {
113432
113532
  return;
113433
113533
  }
113434
- this.workarea.set(key, { id, count });
113534
+ this.workarea.set(key, { id, count, required: count });
113435
113535
  }
113436
113536
  removeIfExists(id) {
113437
113537
  if (id === undefined) {
113438
113538
  return;
113439
113539
  }
113440
- const key = this.buildKey(id);
113540
+ const key = WorkArea.buildKey(id);
113441
113541
  const found = this.workarea.get(key);
113442
113542
  if (found !== undefined) {
113443
113543
  found.count--;
@@ -113446,13 +113546,23 @@ class WorkArea {
113446
113546
  }
113447
113547
  }
113448
113548
  }
113549
+ /** removes the identifiers with enough references, counts include all objects, also the one the
113550
+ * identifiers belong to, so it is compared to the required count and not the remaining count */
113551
+ removeReferenced(counts) {
113552
+ var _a;
113553
+ for (const [key, entry] of this.workarea) {
113554
+ if (((_a = counts.get(key)) !== null && _a !== void 0 ? _a : 0) >= entry.required) {
113555
+ this.workarea.delete(key);
113556
+ }
113557
+ }
113558
+ }
113449
113559
  get() {
113450
113560
  return [...this.workarea.values()];
113451
113561
  }
113452
113562
  count() {
113453
113563
  return this.workarea.size;
113454
113564
  }
113455
- buildKey(id) {
113565
+ static buildKey(id) {
113456
113566
  const start = id.getStart();
113457
113567
  return id.getFilename() + "," + start.getRow() + "," + start.getCol();
113458
113568
  }
@@ -113460,6 +113570,8 @@ class WorkArea {
113460
113570
  class UnusedVariables {
113461
113571
  constructor() {
113462
113572
  this.conf = new UnusedVariablesConf();
113573
+ /** read, write and type references per identifier key in all objects, built once per run when needed */
113574
+ this.referenceCounts = undefined;
113463
113575
  }
113464
113576
  getMetadata() {
113465
113577
  return {
@@ -113497,6 +113609,7 @@ Errors found in INCLUDES are reported for the main program.`,
113497
113609
  }
113498
113610
  initialize(reg) {
113499
113611
  this.reg = reg;
113612
+ this.referenceCounts = undefined;
113500
113613
  return this;
113501
113614
  }
113502
113615
  run(obj) {
@@ -113524,34 +113637,53 @@ Errors found in INCLUDES are reported for the main program.`,
113524
113637
  if (this.workarea.count() === 0) {
113525
113638
  return this.buildIssues(obj); // exit early if all variables are used
113526
113639
  }
113527
- this.findUses(top, obj);
113528
- for (const o of this.reg.getObjects()) {
113529
- if (o === obj) {
113530
- continue;
113531
- }
113532
- else if (o instanceof _abap_object_1.ABAPObject) {
113533
- if (this.reg.isDependency(o)) {
113640
+ this.findUses(top);
113641
+ if (this.workarea.count() === 0) {
113642
+ return this.buildIssues(obj); // exit early if all variables are used
113643
+ }
113644
+ // uses in other objects, the counts are built once instead of searching all objects for each object
113645
+ this.workarea.removeReferenced(this.getReferenceCounts());
113646
+ return this.buildIssues(obj);
113647
+ }
113648
+ getReferenceCounts() {
113649
+ if (this.referenceCounts === undefined) {
113650
+ const counts = new Map();
113651
+ for (const o of this.reg.getObjects()) {
113652
+ if (!(o instanceof _abap_object_1.ABAPObject) || this.reg.isDependency(o)) {
113534
113653
  continue; // do not search in dependencies
113535
113654
  }
113536
113655
  const syntax = new syntax_1.SyntaxLogic(this.reg, o).run();
113537
- this.findUses(syntax.spaghetti.getTop(), o);
113538
- if (this.workarea.count() === 0) {
113539
- return this.buildIssues(obj); // exit early if all variables are used
113540
- }
113656
+ this.countUses(syntax.spaghetti.getTop(), counts);
113541
113657
  }
113658
+ this.referenceCounts = counts;
113542
113659
  }
113543
- return this.buildIssues(obj);
113660
+ return this.referenceCounts;
113544
113661
  }
113545
- findUses(node, obj) {
113662
+ static isUse(r) {
113663
+ return r.referenceType === _reference_1.ReferenceType.DataReadReference
113664
+ || r.referenceType === _reference_1.ReferenceType.DataWriteReference
113665
+ || r.referenceType === _reference_1.ReferenceType.TypeReference;
113666
+ }
113667
+ findUses(node) {
113546
113668
  for (const r of node.getData().references) {
113547
- if (r.referenceType === _reference_1.ReferenceType.DataReadReference
113548
- || r.referenceType === _reference_1.ReferenceType.DataWriteReference
113549
- || r.referenceType === _reference_1.ReferenceType.TypeReference) {
113669
+ if (UnusedVariables.isUse(r)) {
113550
113670
  this.workarea.removeIfExists(r.resolved);
113551
113671
  }
113552
113672
  }
113553
113673
  for (const c of node.getChildren()) {
113554
- this.findUses(c, obj);
113674
+ this.findUses(c);
113675
+ }
113676
+ }
113677
+ countUses(node, counts) {
113678
+ var _a;
113679
+ for (const r of node.getData().references) {
113680
+ if (r.resolved !== undefined && UnusedVariables.isUse(r)) {
113681
+ const key = WorkArea.buildKey(r.resolved);
113682
+ counts.set(key, ((_a = counts.get(key)) !== null && _a !== void 0 ? _a : 0) + 1);
113683
+ }
113684
+ }
113685
+ for (const c of node.getChildren()) {
113686
+ this.countUses(c, counts);
113555
113687
  }
113556
113688
  }
113557
113689
  buildWorkarea(node, obj) {
@@ -117328,14 +117460,20 @@ class DatabaseSetup {
117328
117460
  for (const obj of this.reg.getObjects()) {
117329
117461
  if (obj instanceof abaplint.Objects.Table
117330
117462
  && obj.getTableCategory() === abaplint.Objects.TableCategory.Transparent) {
117331
- statements.push(schemaGenerator.buildTABL(obj).trim());
117463
+ const statement = schemaGenerator.buildTABL(obj).trim();
117464
+ if (statement.length > 0) {
117465
+ statements.push(statement);
117466
+ }
117332
117467
  }
117333
117468
  }
117334
117469
  // CREATE VIEWs after TABLEs
117335
117470
  // todo: what if the view is based on another view?
117336
117471
  for (const obj of this.reg.getObjects()) {
117337
117472
  if (obj instanceof abaplint.Objects.View) {
117338
- statements.push(schemaGenerator.buildVIEW(obj).trim());
117473
+ const statement = schemaGenerator.buildVIEW(obj).trim();
117474
+ if (statement.length > 0) {
117475
+ statements.push(statement);
117476
+ }
117339
117477
  }
117340
117478
  }
117341
117479
  return statements;
@@ -119179,17 +119317,22 @@ class CondBodyTranspiler {
119179
119317
  else {
119180
119318
  throw new Error("CondBodyTranspiler, Expected Cond, todo, " + when.get().constructor.name);
119181
119319
  }
119182
- let value = "";
119183
119320
  if (then.get() instanceof core_1.Expressions.Source) {
119184
- value = new source_1.SourceTranspiler().transpile(then, traversal).getCode();
119321
+ const value = new source_1.SourceTranspiler().transpile(then, traversal).getCode();
119322
+ ret.appendString(`if (${condition}) { return ${value}; }\n`);
119323
+ }
119324
+ else if (then.get() instanceof core_1.Expressions.Throw) {
119325
+ ret.appendString(`if (${condition}) {\n${traversal.traverse(then).getCode()}\n}\n`);
119185
119326
  }
119186
119327
  else {
119187
119328
  throw new Error("CondBodyTranspiler, Expected Source, todo, " + then.get().constructor.name);
119188
119329
  }
119189
- ret.appendString(`if (${condition}) { return ${value}; }\n`);
119190
119330
  }
119191
119331
  const els = body.findExpressionAfterToken("ELSE");
119192
- if (els) {
119332
+ if (els?.get() instanceof core_1.Expressions.Throw) {
119333
+ ret.appendString(traversal.traverse(els).getCode() + "\n");
119334
+ }
119335
+ else if (els) {
119193
119336
  if (!(els.get() instanceof core_1.Expressions.Source)) {
119194
119337
  throw new Error("CondBodyTranspiler, Expected Source, todo, " + els.get().constructor.name);
119195
119338
  }
@@ -120390,6 +120533,7 @@ __exportStar(__webpack_require__(/*! ./table_expression */ "./node_modules/@abap
120390
120533
  __exportStar(__webpack_require__(/*! ./target_field_symbol */ "./node_modules/@abaplint/transpiler/build/src/expressions/target_field_symbol.js"), exports);
120391
120534
  __exportStar(__webpack_require__(/*! ./target_field */ "./node_modules/@abaplint/transpiler/build/src/expressions/target_field.js"), exports);
120392
120535
  __exportStar(__webpack_require__(/*! ./target */ "./node_modules/@abaplint/transpiler/build/src/expressions/target.js"), exports);
120536
+ __exportStar(__webpack_require__(/*! ./throw */ "./node_modules/@abaplint/transpiler/build/src/expressions/throw.js"), exports);
120393
120537
  __exportStar(__webpack_require__(/*! ./type_name_or_infer */ "./node_modules/@abaplint/transpiler/build/src/expressions/type_name_or_infer.js"), exports);
120394
120538
  //# sourceMappingURL=index.js.map
120395
120539
 
@@ -121141,7 +121285,7 @@ class NewObjectTranspiler {
121141
121285
  // single default parameter
121142
121286
  const scope = traversal.findCurrentScopeByToken(typeNameOrInfer.getFirstToken());
121143
121287
  const cdef = traversal.findClassDefinition(type.getIdentifierName(), scope);
121144
- const constr = this.findConstructor(cdef, scope);
121288
+ const constr = NewObjectTranspiler.findConstructor(cdef, scope);
121145
121289
  const pname = constr?.getParameters().getDefaultImporting()?.toLowerCase();
121146
121290
  para = `{${pname}: ${traversal.traverse(node.getChildren()[3]).getCode()}}`;
121147
121291
  }
@@ -121194,7 +121338,7 @@ class NewObjectTranspiler {
121194
121338
  }
121195
121339
  return ret;
121196
121340
  }
121197
- findConstructor(cdef, spag) {
121341
+ static findConstructor(cdef, spag) {
121198
121342
  let def = cdef;
121199
121343
  while (def !== undefined) {
121200
121344
  const method = def?.getMethodDefinitions().getByName("CONSTRUCTOR");
@@ -122673,6 +122817,13 @@ const abaplint = __importStar(__webpack_require__(/*! @abaplint/core */ "./node_
122673
122817
  const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
122674
122818
  const sql_field_name_1 = __webpack_require__(/*! ./sql_field_name */ "./node_modules/@abaplint/transpiler/build/src/expressions/sql_field_name.js");
122675
122819
  class SQLFieldAndValueTranspiler {
122820
+ columns;
122821
+ statementStart;
122822
+ /** columns: the columns of the updated table, a plain name among them that is no data object is that column */
122823
+ constructor(columns, statementStart) {
122824
+ this.columns = columns;
122825
+ this.statementStart = statementStart;
122826
+ }
122676
122827
  transpile(node, traversal) {
122677
122828
  const chunk = new chunk_1.Chunk();
122678
122829
  chunk.appendString("\"");
@@ -122684,6 +122835,10 @@ class SQLFieldAndValueTranspiler {
122684
122835
  else if (n.get() instanceof abaplint.Expressions.SQLFieldName) {
122685
122836
  chunk.appendString(new sql_field_name_1.SQLFieldNameTranspiler().transpile(n, traversal).getCode());
122686
122837
  }
122838
+ else if (n.get() instanceof abaplint.Expressions.SQLSource && this.isColumn(n, traversal)) {
122839
+ // SET f = g, where g is a column of the table: the column, as the database reads it
122840
+ chunk.appendString(new sql_field_name_1.SQLFieldNameTranspiler().transpile(n, traversal).getCode().toLowerCase());
122841
+ }
122687
122842
  else if (n.get() instanceof abaplint.Expressions.SQLSource) {
122688
122843
  const source = traversal.traverse(n);
122689
122844
  // todo: value conversion? abap vs db, traversal.isSQLConversion
@@ -122701,6 +122856,15 @@ class SQLFieldAndValueTranspiler {
122701
122856
  chunk.appendString("\"");
122702
122857
  return chunk;
122703
122858
  }
122859
+ isColumn(node, traversal) {
122860
+ const plain = node.concatTokens();
122861
+ if (this.columns === undefined || /^[A-Za-z_][A-Za-z0-9_]*$/.test(plain) === false || !this.columns.has(plain.toLowerCase())) {
122862
+ return false;
122863
+ }
122864
+ const variable = traversal.findCurrentScopeByToken(node.getFirstToken())?.findVariable(plain);
122865
+ // abaplint declares an unknown name in SET at the UPDATE statement itself, that is no data object either
122866
+ return variable === undefined || (this.statementStart !== undefined && variable.getStart().equals(this.statementStart));
122867
+ }
122704
122868
  }
122705
122869
  exports.SQLFieldAndValueTranspiler = SQLFieldAndValueTranspiler;
122706
122870
  //# sourceMappingURL=sql_field_and_value.js.map
@@ -123778,7 +123942,10 @@ class SwitchBodyTranspiler {
123778
123942
  for (const wto of whenThenOr) {
123779
123943
  let thenValue = "";
123780
123944
  if (wto.then?.get() instanceof core_1.Expressions.Source) {
123781
- thenValue = new source_1.SourceTranspiler().transpile(wto.then, traversal).getCode();
123945
+ thenValue = "return " + new source_1.SourceTranspiler().transpile(wto.then, traversal).getCode() + ";";
123946
+ }
123947
+ else if (wto.then?.get() instanceof core_1.Expressions.Throw) {
123948
+ thenValue = "\n" + traversal.traverse(wto.then).getCode() + "\n";
123782
123949
  }
123783
123950
  else {
123784
123951
  throw new Error("SwitchBodyTranspiler, Expected Source1, todo, " + wto.then?.get().constructor.name);
@@ -123792,10 +123959,13 @@ class SwitchBodyTranspiler {
123792
123959
  else {
123793
123960
  throw new Error("SwitchBodyTranspiler, Expected Source2, todo, " + thenOr.get().constructor.name);
123794
123961
  }
123795
- ret.appendString(`if (abap.compare.eq(${source.getCode()}, ${condition})) { return ${thenValue}; }\n`);
123962
+ ret.appendString(`if (abap.compare.eq(${source.getCode()}, ${condition})) { ${thenValue} }\n`);
123796
123963
  }
123797
123964
  }
123798
- if (elseExpression) {
123965
+ if (elseExpression?.get() instanceof core_1.Expressions.Throw) {
123966
+ ret.appendString(traversal.traverse(elseExpression).getCode() + "\n");
123967
+ }
123968
+ else if (elseExpression) {
123799
123969
  if (!(elseExpression.get() instanceof core_1.Expressions.Source)) {
123800
123970
  throw new Error("SwitchBodyTranspiler, Expected Source3, todo, " + elseExpression.get().constructor.name);
123801
123971
  }
@@ -123837,21 +124007,27 @@ class TableExpressionTranspiler {
123837
124007
  let field = "";
123838
124008
  let usesTableLine = false;
123839
124009
  const withKey = [];
123840
- if (node.getChildren().length === 3 && node.findDirectExpression(core_1.Expressions.Source)) {
123841
- extra.push(`index: ${traversal.traverse(node.findDirectExpression(core_1.Expressions.Source)).getCode()}`);
124010
+ // KEY name: the row is searched, or counted by INDEX, in the order of that key
124011
+ const keyName = node.findDirectExpression(core_1.Expressions.SimpleName);
124012
+ if (keyName) {
124013
+ extra.push(`keyName: "${keyName.concatTokens().toLowerCase()}"`);
123842
124014
  }
123843
- else if (node.findDirectTokenByText("INDEX")) {
123844
- throw new Error("TableExpressionTranspiler: todo, other INDEX");
124015
+ if (node.findDirectExpression(core_1.Expressions.Dynamic)) {
124016
+ return ret.appendString(`(function() { throw new Error("Table expression with a dynamic key, not supported, transpiler") })()`);
123845
124017
  }
123846
- else if (node.findDirectExpression(core_1.Expressions.SimpleName)) {
123847
- throw new Error("TableExpressionTranspiler: todo, SimpleName");
124018
+ else if (node.getChildren().length === 3 && node.findDirectExpression(core_1.Expressions.Source)) {
124019
+ extra.push(`index: ${traversal.traverse(node.findDirectExpression(core_1.Expressions.Source)).getCode()}`);
123848
124020
  }
123849
- else if (node.findDirectExpression(core_1.Expressions.Dynamic)) {
123850
- throw new Error("TableExpressionTranspiler: todo, Dynamic");
124021
+ else if (node.findDirectTokenByText("INDEX")) {
124022
+ extra.push(`index: ${traversal.traverse(node.findExpressionAfterToken("INDEX")).getCode()}`);
123851
124023
  }
123852
124024
  else {
123853
124025
  // conditions
123854
124026
  for (const c of node.getChildren()) {
124027
+ // only the keywords, a component can be named "key" or "components"
124028
+ if (c === keyName || (c instanceof core_1.Nodes.TokenNode && ["KEY", "COMPONENTS"].includes(c.concatTokens().toUpperCase()))) {
124029
+ continue;
124030
+ }
123855
124031
  if (c instanceof core_1.Nodes.ExpressionNode && c.get() instanceof core_1.Expressions.ComponentChainSimple) {
123856
124032
  field = new component_chain_simple_1.ComponentChainSimpleTranspiler("i.").transpile(c, traversal).getCode();
123857
124033
  if (field === "i.table_line") {
@@ -124083,6 +124259,85 @@ exports.TargetFieldSymbolTranspiler = TargetFieldSymbolTranspiler;
124083
124259
 
124084
124260
  /***/ },
124085
124261
 
124262
+ /***/ "./node_modules/@abaplint/transpiler/build/src/expressions/throw.js"
124263
+ /*!**************************************************************************!*\
124264
+ !*** ./node_modules/@abaplint/transpiler/build/src/expressions/throw.js ***!
124265
+ \**************************************************************************/
124266
+ (__unused_webpack_module, exports, __webpack_require__) {
124267
+
124268
+ "use strict";
124269
+
124270
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
124271
+ if (k2 === undefined) k2 = k;
124272
+ var desc = Object.getOwnPropertyDescriptor(m, k);
124273
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
124274
+ desc = { enumerable: true, get: function() { return m[k]; } };
124275
+ }
124276
+ Object.defineProperty(o, k2, desc);
124277
+ }) : (function(o, m, k, k2) {
124278
+ if (k2 === undefined) k2 = k;
124279
+ o[k2] = m[k];
124280
+ }));
124281
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
124282
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
124283
+ }) : function(o, v) {
124284
+ o["default"] = v;
124285
+ });
124286
+ var __importStar = (this && this.__importStar) || (function () {
124287
+ var ownKeys = function(o) {
124288
+ ownKeys = Object.getOwnPropertyNames || function (o) {
124289
+ var ar = [];
124290
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
124291
+ return ar;
124292
+ };
124293
+ return ownKeys(o);
124294
+ };
124295
+ return function (mod) {
124296
+ if (mod && mod.__esModule) return mod;
124297
+ var result = {};
124298
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
124299
+ __setModuleDefault(result, mod);
124300
+ return result;
124301
+ };
124302
+ })();
124303
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
124304
+ exports.ThrowTranspiler = void 0;
124305
+ const abaplint = __importStar(__webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js"));
124306
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
124307
+ const unique_identifier_1 = __webpack_require__(/*! ../unique_identifier */ "./node_modules/@abaplint/transpiler/build/src/unique_identifier.js");
124308
+ const new_object_1 = __webpack_require__(/*! ./new_object */ "./node_modules/@abaplint/transpiler/build/src/expressions/new_object.js");
124309
+ /** THROW cx( ... ) in COND and SWITCH: raises the exception as RAISE EXCEPTION NEW cx( ... ) does, the result is a statement */
124310
+ class ThrowTranspiler {
124311
+ transpile(node, traversal) {
124312
+ if (node.findDirectTokenByText("MESSAGE")) {
124313
+ return new chunk_1.Chunk().append(`throw new Error("THROW MESSAGE, not supported, transpiler");`, node, traversal);
124314
+ }
124315
+ const classNameToken = node.findDirectExpression(abaplint.Expressions.ClassName).getFirstToken();
124316
+ let parameters = "";
124317
+ const list = node.findDirectExpression(abaplint.Expressions.ParameterListS);
124318
+ const single = node.findDirectExpression(abaplint.Expressions.Source);
124319
+ if (list) {
124320
+ parameters = traversal.traverse(list).getCode();
124321
+ }
124322
+ else if (single) {
124323
+ // the single parameter is the default importing parameter of the constructor
124324
+ const scope = traversal.findCurrentScopeByToken(classNameToken);
124325
+ const cdef = traversal.findClassDefinition(classNameToken.getStr(), scope);
124326
+ const name = new_object_1.NewObjectTranspiler.findConstructor(cdef, scope)?.getParameters().getDefaultImporting()?.toLowerCase();
124327
+ parameters = `{${name}: ${traversal.traverse(single).getCode()}}`;
124328
+ }
124329
+ const lookup = traversal.lookupClassOrInterface(classNameToken.getStr(), classNameToken);
124330
+ const id = unique_identifier_1.UniqueIdentifier.get();
124331
+ return new chunk_1.Chunk().append(`const ${id} = await (new ${lookup}()).constructor_(${parameters});
124332
+ ${id}.EXTRA_CX = ${traversal.buildExtraCX(node)};
124333
+ throw ${id};`, node, traversal);
124334
+ }
124335
+ }
124336
+ exports.ThrowTranspiler = ThrowTranspiler;
124337
+ //# sourceMappingURL=throw.js.map
124338
+
124339
+ /***/ },
124340
+
124086
124341
  /***/ "./node_modules/@abaplint/transpiler/build/src/expressions/type_name_or_infer.js"
124087
124342
  /*!***************************************************************************************!*\
124088
124343
  !*** ./node_modules/@abaplint/transpiler/build/src/expressions/type_name_or_infer.js ***!
@@ -124093,7 +124348,9 @@ exports.TargetFieldSymbolTranspiler = TargetFieldSymbolTranspiler;
124093
124348
 
124094
124349
  Object.defineProperty(exports, "__esModule", ({ value: true }));
124095
124350
  exports.TypeNameOrInfer = void 0;
124351
+ const core_1 = __webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js");
124096
124352
  const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
124353
+ const types_1 = __webpack_require__(/*! ../types */ "./node_modules/@abaplint/transpiler/build/src/types.js");
124097
124354
  class TypeNameOrInfer {
124098
124355
  findType(node, traversal) {
124099
124356
  const scope = traversal.findCurrentScopeByToken(node.getFirstToken());
@@ -124105,7 +124362,12 @@ class TypeNameOrInfer {
124105
124362
  return sqlType;
124106
124363
  }
124107
124364
  }
124108
- throw new Error("TypeNameOrInfer, type not found: " + node.concatTokens() + ", " + traversal.getCurrentObject().getName() + ", " + traversal.getFilename() + " line " + node.getFirstToken().getStart().getRow());
124365
+ const text = "TypeNameOrInfer, type not found: " + node.concatTokens() + ", " + traversal.getCurrentObject().getName() + ", " + traversal.getFilename() + " line " + node.getFirstToken().getStart().getRow();
124366
+ if (traversal.options?.unknownTypes === types_1.UnknownTypesEnum.runtimeError) {
124367
+ // eg. # for a parameter of a class that is not there: the code fails when it runs, as with other unknown types
124368
+ return new core_1.BasicTypes.UnknownType(text);
124369
+ }
124370
+ throw new Error(text);
124109
124371
  }
124110
124372
  return type;
124111
124373
  }
@@ -126893,6 +127155,27 @@ exports.AddTranspiler = AddTranspiler;
126893
127155
 
126894
127156
  /***/ },
126895
127157
 
127158
+ /***/ "./node_modules/@abaplint/transpiler/build/src/statements/add_corresponding.js"
127159
+ /*!*************************************************************************************!*\
127160
+ !*** ./node_modules/@abaplint/transpiler/build/src/statements/add_corresponding.js ***!
127161
+ \*************************************************************************************/
127162
+ (__unused_webpack_module, exports, __webpack_require__) {
127163
+
127164
+ "use strict";
127165
+
127166
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
127167
+ exports.AddCorrespondingTranspiler = void 0;
127168
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
127169
+ class AddCorrespondingTranspiler {
127170
+ transpile(_node, _traversal) {
127171
+ return new chunk_1.Chunk(`throw new Error("ADD-CORRESPONDING, not supported, transpiler");`);
127172
+ }
127173
+ }
127174
+ exports.AddCorrespondingTranspiler = AddCorrespondingTranspiler;
127175
+ //# sourceMappingURL=add_corresponding.js.map
127176
+
127177
+ /***/ },
127178
+
126896
127179
  /***/ "./node_modules/@abaplint/transpiler/build/src/statements/append.js"
126897
127180
  /*!**************************************************************************!*\
126898
127181
  !*** ./node_modules/@abaplint/transpiler/build/src/statements/append.js ***!
@@ -127276,6 +127559,27 @@ exports.AssignTranspiler = AssignTranspiler;
127276
127559
 
127277
127560
  /***/ },
127278
127561
 
127562
+ /***/ "./node_modules/@abaplint/transpiler/build/src/statements/assign_local_copy.js"
127563
+ /*!*************************************************************************************!*\
127564
+ !*** ./node_modules/@abaplint/transpiler/build/src/statements/assign_local_copy.js ***!
127565
+ \*************************************************************************************/
127566
+ (__unused_webpack_module, exports, __webpack_require__) {
127567
+
127568
+ "use strict";
127569
+
127570
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
127571
+ exports.AssignLocalCopyTranspiler = void 0;
127572
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
127573
+ class AssignLocalCopyTranspiler {
127574
+ transpile(_node, _traversal) {
127575
+ return new chunk_1.Chunk(`throw new Error("ASSIGN LOCAL COPY, not supported, transpiler");`);
127576
+ }
127577
+ }
127578
+ exports.AssignLocalCopyTranspiler = AssignLocalCopyTranspiler;
127579
+ //# sourceMappingURL=assign_local_copy.js.map
127580
+
127581
+ /***/ },
127582
+
127279
127583
  /***/ "./node_modules/@abaplint/transpiler/build/src/statements/at.js"
127280
127584
  /*!**********************************************************************!*\
127281
127585
  !*** ./node_modules/@abaplint/transpiler/build/src/statements/at.js ***!
@@ -127434,6 +127738,27 @@ exports.AuthorityCheckTranspiler = AuthorityCheckTranspiler;
127434
127738
 
127435
127739
  /***/ },
127436
127740
 
127741
+ /***/ "./node_modules/@abaplint/transpiler/build/src/statements/back.js"
127742
+ /*!************************************************************************!*\
127743
+ !*** ./node_modules/@abaplint/transpiler/build/src/statements/back.js ***!
127744
+ \************************************************************************/
127745
+ (__unused_webpack_module, exports, __webpack_require__) {
127746
+
127747
+ "use strict";
127748
+
127749
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
127750
+ exports.BackTranspiler = void 0;
127751
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
127752
+ class BackTranspiler {
127753
+ transpile(_node, _traversal) {
127754
+ return new chunk_1.Chunk(`throw new Error("BACK, not supported, transpiler");`);
127755
+ }
127756
+ }
127757
+ exports.BackTranspiler = BackTranspiler;
127758
+ //# sourceMappingURL=back.js.map
127759
+
127760
+ /***/ },
127761
+
127437
127762
  /***/ "./node_modules/@abaplint/transpiler/build/src/statements/break.js"
127438
127763
  /*!*************************************************************************!*\
127439
127764
  !*** ./node_modules/@abaplint/transpiler/build/src/statements/break.js ***!
@@ -127660,6 +127985,48 @@ exports.CallTranspiler = CallTranspiler;
127660
127985
 
127661
127986
  /***/ },
127662
127987
 
127988
+ /***/ "./node_modules/@abaplint/transpiler/build/src/statements/call_database.js"
127989
+ /*!*********************************************************************************!*\
127990
+ !*** ./node_modules/@abaplint/transpiler/build/src/statements/call_database.js ***!
127991
+ \*********************************************************************************/
127992
+ (__unused_webpack_module, exports, __webpack_require__) {
127993
+
127994
+ "use strict";
127995
+
127996
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
127997
+ exports.CallDatabaseTranspiler = void 0;
127998
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
127999
+ class CallDatabaseTranspiler {
128000
+ transpile(_node, _traversal) {
128001
+ return new chunk_1.Chunk(`throw new Error("CALL DATABASE PROCEDURE, not supported, transpiler");`);
128002
+ }
128003
+ }
128004
+ exports.CallDatabaseTranspiler = CallDatabaseTranspiler;
128005
+ //# sourceMappingURL=call_database.js.map
128006
+
128007
+ /***/ },
128008
+
128009
+ /***/ "./node_modules/@abaplint/transpiler/build/src/statements/call_dialog.js"
128010
+ /*!*******************************************************************************!*\
128011
+ !*** ./node_modules/@abaplint/transpiler/build/src/statements/call_dialog.js ***!
128012
+ \*******************************************************************************/
128013
+ (__unused_webpack_module, exports, __webpack_require__) {
128014
+
128015
+ "use strict";
128016
+
128017
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
128018
+ exports.CallDialogTranspiler = void 0;
128019
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
128020
+ class CallDialogTranspiler {
128021
+ transpile(_node, _traversal) {
128022
+ return new chunk_1.Chunk(`throw new Error("CALL DIALOG, not supported, transpiler");`);
128023
+ }
128024
+ }
128025
+ exports.CallDialogTranspiler = CallDialogTranspiler;
128026
+ //# sourceMappingURL=call_dialog.js.map
128027
+
128028
+ /***/ },
128029
+
127663
128030
  /***/ "./node_modules/@abaplint/transpiler/build/src/statements/call_function.js"
127664
128031
  /*!*********************************************************************************!*\
127665
128032
  !*** ./node_modules/@abaplint/transpiler/build/src/statements/call_function.js ***!
@@ -127836,6 +128203,27 @@ exports.CallKernelTranspiler = CallKernelTranspiler;
127836
128203
 
127837
128204
  /***/ },
127838
128205
 
128206
+ /***/ "./node_modules/@abaplint/transpiler/build/src/statements/call_ole.js"
128207
+ /*!****************************************************************************!*\
128208
+ !*** ./node_modules/@abaplint/transpiler/build/src/statements/call_ole.js ***!
128209
+ \****************************************************************************/
128210
+ (__unused_webpack_module, exports, __webpack_require__) {
128211
+
128212
+ "use strict";
128213
+
128214
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
128215
+ exports.CallOLETranspiler = void 0;
128216
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
128217
+ class CallOLETranspiler {
128218
+ transpile(_node, _traversal) {
128219
+ return new chunk_1.Chunk(`throw new Error("CALL METHOD OF, not supported, transpiler");`);
128220
+ }
128221
+ }
128222
+ exports.CallOLETranspiler = CallOLETranspiler;
128223
+ //# sourceMappingURL=call_ole.js.map
128224
+
128225
+ /***/ },
128226
+
127839
128227
  /***/ "./node_modules/@abaplint/transpiler/build/src/statements/call_screen.js"
127840
128228
  /*!*******************************************************************************!*\
127841
128229
  !*** ./node_modules/@abaplint/transpiler/build/src/statements/call_screen.js ***!
@@ -128109,6 +128497,27 @@ exports.CheckTranspiler = CheckTranspiler;
128109
128497
 
128110
128498
  /***/ },
128111
128499
 
128500
+ /***/ "./node_modules/@abaplint/transpiler/build/src/statements/check_select_options.js"
128501
+ /*!****************************************************************************************!*\
128502
+ !*** ./node_modules/@abaplint/transpiler/build/src/statements/check_select_options.js ***!
128503
+ \****************************************************************************************/
128504
+ (__unused_webpack_module, exports, __webpack_require__) {
128505
+
128506
+ "use strict";
128507
+
128508
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
128509
+ exports.CheckSelectOptionsTranspiler = void 0;
128510
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
128511
+ class CheckSelectOptionsTranspiler {
128512
+ transpile(_node, _traversal) {
128513
+ return new chunk_1.Chunk(`throw new Error("CHECK SELECT-OPTIONS, not supported, transpiler");`);
128514
+ }
128515
+ }
128516
+ exports.CheckSelectOptionsTranspiler = CheckSelectOptionsTranspiler;
128517
+ //# sourceMappingURL=check_select_options.js.map
128518
+
128519
+ /***/ },
128520
+
128112
128521
  /***/ "./node_modules/@abaplint/transpiler/build/src/statements/class_deferred.js"
128113
128522
  /*!**********************************************************************************!*\
128114
128523
  !*** ./node_modules/@abaplint/transpiler/build/src/statements/class_deferred.js ***!
@@ -128666,6 +129075,27 @@ exports.CommitEntitiesTranspiler = CommitEntitiesTranspiler;
128666
129075
 
128667
129076
  /***/ },
128668
129077
 
129078
+ /***/ "./node_modules/@abaplint/transpiler/build/src/statements/communication.js"
129079
+ /*!*********************************************************************************!*\
129080
+ !*** ./node_modules/@abaplint/transpiler/build/src/statements/communication.js ***!
129081
+ \*********************************************************************************/
129082
+ (__unused_webpack_module, exports, __webpack_require__) {
129083
+
129084
+ "use strict";
129085
+
129086
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
129087
+ exports.CommunicationTranspiler = void 0;
129088
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
129089
+ class CommunicationTranspiler {
129090
+ transpile(_node, _traversal) {
129091
+ return new chunk_1.Chunk(`throw new Error("COMMUNICATION, not supported, transpiler");`);
129092
+ }
129093
+ }
129094
+ exports.CommunicationTranspiler = CommunicationTranspiler;
129095
+ //# sourceMappingURL=communication.js.map
129096
+
129097
+ /***/ },
129098
+
128669
129099
  /***/ "./node_modules/@abaplint/transpiler/build/src/statements/compute.js"
128670
129100
  /*!***************************************************************************!*\
128671
129101
  !*** ./node_modules/@abaplint/transpiler/build/src/statements/compute.js ***!
@@ -128895,6 +129325,27 @@ exports.ConstantTranspiler = ConstantTranspiler;
128895
129325
 
128896
129326
  /***/ },
128897
129327
 
129328
+ /***/ "./node_modules/@abaplint/transpiler/build/src/statements/contexts.js"
129329
+ /*!****************************************************************************!*\
129330
+ !*** ./node_modules/@abaplint/transpiler/build/src/statements/contexts.js ***!
129331
+ \****************************************************************************/
129332
+ (__unused_webpack_module, exports, __webpack_require__) {
129333
+
129334
+ "use strict";
129335
+
129336
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
129337
+ exports.ContextsTranspiler = void 0;
129338
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
129339
+ class ContextsTranspiler {
129340
+ transpile(_node, _traversal) {
129341
+ return new chunk_1.Chunk(`throw new Error("CONTEXTS, not supported, transpiler");`);
129342
+ }
129343
+ }
129344
+ exports.ContextsTranspiler = ContextsTranspiler;
129345
+ //# sourceMappingURL=contexts.js.map
129346
+
129347
+ /***/ },
129348
+
128898
129349
  /***/ "./node_modules/@abaplint/transpiler/build/src/statements/continue.js"
128899
129350
  /*!****************************************************************************!*\
128900
129351
  !*** ./node_modules/@abaplint/transpiler/build/src/statements/continue.js ***!
@@ -129018,6 +129469,27 @@ exports.ConvertTranspiler = ConvertTranspiler;
129018
129469
 
129019
129470
  /***/ },
129020
129471
 
129472
+ /***/ "./node_modules/@abaplint/transpiler/build/src/statements/convert_text.js"
129473
+ /*!********************************************************************************!*\
129474
+ !*** ./node_modules/@abaplint/transpiler/build/src/statements/convert_text.js ***!
129475
+ \********************************************************************************/
129476
+ (__unused_webpack_module, exports, __webpack_require__) {
129477
+
129478
+ "use strict";
129479
+
129480
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
129481
+ exports.ConvertTextTranspiler = void 0;
129482
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
129483
+ class ConvertTextTranspiler {
129484
+ transpile(_node, _traversal) {
129485
+ return new chunk_1.Chunk(`throw new Error("CONVERT TEXT, not supported, transpiler");`);
129486
+ }
129487
+ }
129488
+ exports.ConvertTextTranspiler = ConvertTextTranspiler;
129489
+ //# sourceMappingURL=convert_text.js.map
129490
+
129491
+ /***/ },
129492
+
129021
129493
  /***/ "./node_modules/@abaplint/transpiler/build/src/statements/create_data.js"
129022
129494
  /*!*******************************************************************************!*\
129023
129495
  !*** ./node_modules/@abaplint/transpiler/build/src/statements/create_data.js ***!
@@ -129291,6 +129763,27 @@ exports.CreateObjectTranspiler = CreateObjectTranspiler;
129291
129763
 
129292
129764
  /***/ },
129293
129765
 
129766
+ /***/ "./node_modules/@abaplint/transpiler/build/src/statements/create_ole.js"
129767
+ /*!******************************************************************************!*\
129768
+ !*** ./node_modules/@abaplint/transpiler/build/src/statements/create_ole.js ***!
129769
+ \******************************************************************************/
129770
+ (__unused_webpack_module, exports, __webpack_require__) {
129771
+
129772
+ "use strict";
129773
+
129774
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
129775
+ exports.CreateOLETranspiler = void 0;
129776
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
129777
+ class CreateOLETranspiler {
129778
+ transpile(_node, _traversal) {
129779
+ return new chunk_1.Chunk(`throw new Error("CREATE OBJECT OLE, not supported, transpiler");`);
129780
+ }
129781
+ }
129782
+ exports.CreateOLETranspiler = CreateOLETranspiler;
129783
+ //# sourceMappingURL=create_ole.js.map
129784
+
129785
+ /***/ },
129786
+
129294
129787
  /***/ "./node_modules/@abaplint/transpiler/build/src/statements/data.js"
129295
129788
  /*!************************************************************************!*\
129296
129789
  !*** ./node_modules/@abaplint/transpiler/build/src/statements/data.js ***!
@@ -129609,6 +130102,27 @@ exports.DeleteDatasetTranspiler = DeleteDatasetTranspiler;
129609
130102
 
129610
130103
  /***/ },
129611
130104
 
130105
+ /***/ "./node_modules/@abaplint/transpiler/build/src/statements/delete_dynpro.js"
130106
+ /*!*********************************************************************************!*\
130107
+ !*** ./node_modules/@abaplint/transpiler/build/src/statements/delete_dynpro.js ***!
130108
+ \*********************************************************************************/
130109
+ (__unused_webpack_module, exports, __webpack_require__) {
130110
+
130111
+ "use strict";
130112
+
130113
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
130114
+ exports.DeleteDynproTranspiler = void 0;
130115
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
130116
+ class DeleteDynproTranspiler {
130117
+ transpile(_node, _traversal) {
130118
+ return new chunk_1.Chunk(`throw new Error("DELETE DYNPRO, not supported, transpiler");`);
130119
+ }
130120
+ }
130121
+ exports.DeleteDynproTranspiler = DeleteDynproTranspiler;
130122
+ //# sourceMappingURL=delete_dynpro.js.map
130123
+
130124
+ /***/ },
130125
+
129612
130126
  /***/ "./node_modules/@abaplint/transpiler/build/src/statements/delete_internal.js"
129613
130127
  /*!***********************************************************************************!*\
129614
130128
  !*** ./node_modules/@abaplint/transpiler/build/src/statements/delete_internal.js ***!
@@ -129667,6 +130181,9 @@ class DeleteInternalTranspiler {
129667
130181
  if (componentCompare) {
129668
130182
  // todo: this can be optimized, WITH TABLE KEY
129669
130183
  extra.push("where: async " + traversal.traverse(componentCompare).getCode());
130184
+ if (concat.startsWith("DELETE TABLE ")) {
130185
+ extra.push("withTableKey: true");
130186
+ }
129670
130187
  }
129671
130188
  // todo, this is not completely correct, fields might have the name ADJACENT
129672
130189
  if (node.findDirectTokenByText("ADJACENT")) {
@@ -129774,6 +130291,27 @@ exports.DeleteTextpoolTranspiler = DeleteTextpoolTranspiler;
129774
130291
 
129775
130292
  /***/ },
129776
130293
 
130294
+ /***/ "./node_modules/@abaplint/transpiler/build/src/statements/demand.js"
130295
+ /*!**************************************************************************!*\
130296
+ !*** ./node_modules/@abaplint/transpiler/build/src/statements/demand.js ***!
130297
+ \**************************************************************************/
130298
+ (__unused_webpack_module, exports, __webpack_require__) {
130299
+
130300
+ "use strict";
130301
+
130302
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
130303
+ exports.DemandTranspiler = void 0;
130304
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
130305
+ class DemandTranspiler {
130306
+ transpile(_node, _traversal) {
130307
+ return new chunk_1.Chunk(`throw new Error("DEMAND, not supported, transpiler");`);
130308
+ }
130309
+ }
130310
+ exports.DemandTranspiler = DemandTranspiler;
130311
+ //# sourceMappingURL=demand.js.map
130312
+
130313
+ /***/ },
130314
+
129777
130315
  /***/ "./node_modules/@abaplint/transpiler/build/src/statements/describe.js"
129778
130316
  /*!****************************************************************************!*\
129779
130317
  !*** ./node_modules/@abaplint/transpiler/build/src/statements/describe.js ***!
@@ -129830,6 +130368,28 @@ exports.DescribeTranspiler = DescribeTranspiler;
129830
130368
 
129831
130369
  /***/ },
129832
130370
 
130371
+ /***/ "./node_modules/@abaplint/transpiler/build/src/statements/detail.js"
130372
+ /*!**************************************************************************!*\
130373
+ !*** ./node_modules/@abaplint/transpiler/build/src/statements/detail.js ***!
130374
+ \**************************************************************************/
130375
+ (__unused_webpack_module, exports, __webpack_require__) {
130376
+
130377
+ "use strict";
130378
+
130379
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
130380
+ exports.DetailTranspiler = void 0;
130381
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
130382
+ class DetailTranspiler {
130383
+ transpile(_node, _traversal) {
130384
+ // obsolete short form of a list format setting (DETAIL), it does not change the text of the list
130385
+ return new chunk_1.Chunk("");
130386
+ }
130387
+ }
130388
+ exports.DetailTranspiler = DetailTranspiler;
130389
+ //# sourceMappingURL=detail.js.map
130390
+
130391
+ /***/ },
130392
+
129833
130393
  /***/ "./node_modules/@abaplint/transpiler/build/src/statements/divide.js"
129834
130394
  /*!**************************************************************************!*\
129835
130395
  !*** ./node_modules/@abaplint/transpiler/build/src/statements/divide.js ***!
@@ -130582,6 +131142,48 @@ exports.ExportTranspiler = ExportTranspiler;
130582
131142
 
130583
131143
  /***/ },
130584
131144
 
131145
+ /***/ "./node_modules/@abaplint/transpiler/build/src/statements/export_dynpro.js"
131146
+ /*!*********************************************************************************!*\
131147
+ !*** ./node_modules/@abaplint/transpiler/build/src/statements/export_dynpro.js ***!
131148
+ \*********************************************************************************/
131149
+ (__unused_webpack_module, exports, __webpack_require__) {
131150
+
131151
+ "use strict";
131152
+
131153
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
131154
+ exports.ExportDynproTranspiler = void 0;
131155
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
131156
+ class ExportDynproTranspiler {
131157
+ transpile(_node, _traversal) {
131158
+ return new chunk_1.Chunk(`throw new Error("EXPORT DYNPRO, not supported, transpiler");`);
131159
+ }
131160
+ }
131161
+ exports.ExportDynproTranspiler = ExportDynproTranspiler;
131162
+ //# sourceMappingURL=export_dynpro.js.map
131163
+
131164
+ /***/ },
131165
+
131166
+ /***/ "./node_modules/@abaplint/transpiler/build/src/statements/extract.js"
131167
+ /*!***************************************************************************!*\
131168
+ !*** ./node_modules/@abaplint/transpiler/build/src/statements/extract.js ***!
131169
+ \***************************************************************************/
131170
+ (__unused_webpack_module, exports, __webpack_require__) {
131171
+
131172
+ "use strict";
131173
+
131174
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
131175
+ exports.ExtractTranspiler = void 0;
131176
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
131177
+ class ExtractTranspiler {
131178
+ transpile(_node, _traversal) {
131179
+ return new chunk_1.Chunk(`throw new Error("EXTRACT, not supported, transpiler");`);
131180
+ }
131181
+ }
131182
+ exports.ExtractTranspiler = ExtractTranspiler;
131183
+ //# sourceMappingURL=extract.js.map
131184
+
131185
+ /***/ },
131186
+
130585
131187
  /***/ "./node_modules/@abaplint/transpiler/build/src/statements/fetch_next_cursor.js"
130586
131188
  /*!*************************************************************************************!*\
130587
131189
  !*** ./node_modules/@abaplint/transpiler/build/src/statements/fetch_next_cursor.js ***!
@@ -130645,6 +131247,48 @@ exports.FetchNextCursorTranspiler = FetchNextCursorTranspiler;
130645
131247
 
130646
131248
  /***/ },
130647
131249
 
131250
+ /***/ "./node_modules/@abaplint/transpiler/build/src/statements/field.js"
131251
+ /*!*************************************************************************!*\
131252
+ !*** ./node_modules/@abaplint/transpiler/build/src/statements/field.js ***!
131253
+ \*************************************************************************/
131254
+ (__unused_webpack_module, exports, __webpack_require__) {
131255
+
131256
+ "use strict";
131257
+
131258
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
131259
+ exports.FieldTranspiler = void 0;
131260
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
131261
+ class FieldTranspiler {
131262
+ transpile(_node, _traversal) {
131263
+ return new chunk_1.Chunk(`throw new Error("FIELD, not supported, transpiler");`);
131264
+ }
131265
+ }
131266
+ exports.FieldTranspiler = FieldTranspiler;
131267
+ //# sourceMappingURL=field.js.map
131268
+
131269
+ /***/ },
131270
+
131271
+ /***/ "./node_modules/@abaplint/transpiler/build/src/statements/field_group.js"
131272
+ /*!*******************************************************************************!*\
131273
+ !*** ./node_modules/@abaplint/transpiler/build/src/statements/field_group.js ***!
131274
+ \*******************************************************************************/
131275
+ (__unused_webpack_module, exports, __webpack_require__) {
131276
+
131277
+ "use strict";
131278
+
131279
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
131280
+ exports.FieldGroupTranspiler = void 0;
131281
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
131282
+ class FieldGroupTranspiler {
131283
+ transpile(_node, _traversal) {
131284
+ return new chunk_1.Chunk(`throw new Error("FIELD-GROUPS, not supported, transpiler");`);
131285
+ }
131286
+ }
131287
+ exports.FieldGroupTranspiler = FieldGroupTranspiler;
131288
+ //# sourceMappingURL=field_group.js.map
131289
+
131290
+ /***/ },
131291
+
130648
131292
  /***/ "./node_modules/@abaplint/transpiler/build/src/statements/field_symbol.js"
130649
131293
  /*!********************************************************************************!*\
130650
131294
  !*** ./node_modules/@abaplint/transpiler/build/src/statements/field_symbol.js ***!
@@ -130950,7 +131594,9 @@ exports.FormatTranspiler = void 0;
130950
131594
  const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
130951
131595
  class FormatTranspiler {
130952
131596
  transpile(_node, _traversal) {
130953
- return new chunk_1.Chunk(`throw new Error("FORMAT, not supported, transpiler");`);
131597
+ // FORMAT only sets how list output looks (colors, intensity, inverse, hotspot, input fields, frames),
131598
+ // it does not change the text of the list
131599
+ return new chunk_1.Chunk("");
130954
131600
  }
130955
131601
  }
130956
131602
  exports.FormatTranspiler = FormatTranspiler;
@@ -131001,6 +131647,27 @@ exports.FreeMemoryTranspiler = FreeMemoryTranspiler;
131001
131647
 
131002
131648
  /***/ },
131003
131649
 
131650
+ /***/ "./node_modules/@abaplint/transpiler/build/src/statements/free_object.js"
131651
+ /*!*******************************************************************************!*\
131652
+ !*** ./node_modules/@abaplint/transpiler/build/src/statements/free_object.js ***!
131653
+ \*******************************************************************************/
131654
+ (__unused_webpack_module, exports, __webpack_require__) {
131655
+
131656
+ "use strict";
131657
+
131658
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
131659
+ exports.FreeObjectTranspiler = void 0;
131660
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
131661
+ class FreeObjectTranspiler {
131662
+ transpile(_node, _traversal) {
131663
+ return new chunk_1.Chunk(`throw new Error("FREE OBJECT, not supported, transpiler");`);
131664
+ }
131665
+ }
131666
+ exports.FreeObjectTranspiler = FreeObjectTranspiler;
131667
+ //# sourceMappingURL=free_object.js.map
131668
+
131669
+ /***/ },
131670
+
131004
131671
  /***/ "./node_modules/@abaplint/transpiler/build/src/statements/function_pool.js"
131005
131672
  /*!*********************************************************************************!*\
131006
131673
  !*** ./node_modules/@abaplint/transpiler/build/src/statements/function_pool.js ***!
@@ -131022,6 +131689,48 @@ exports.FunctionPoolTranspiler = FunctionPoolTranspiler;
131022
131689
 
131023
131690
  /***/ },
131024
131691
 
131692
+ /***/ "./node_modules/@abaplint/transpiler/build/src/statements/generate_dynpro.js"
131693
+ /*!***********************************************************************************!*\
131694
+ !*** ./node_modules/@abaplint/transpiler/build/src/statements/generate_dynpro.js ***!
131695
+ \***********************************************************************************/
131696
+ (__unused_webpack_module, exports, __webpack_require__) {
131697
+
131698
+ "use strict";
131699
+
131700
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
131701
+ exports.GenerateDynproTranspiler = void 0;
131702
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
131703
+ class GenerateDynproTranspiler {
131704
+ transpile(_node, _traversal) {
131705
+ return new chunk_1.Chunk(`throw new Error("GENERATE DYNPRO, not supported, transpiler");`);
131706
+ }
131707
+ }
131708
+ exports.GenerateDynproTranspiler = GenerateDynproTranspiler;
131709
+ //# sourceMappingURL=generate_dynpro.js.map
131710
+
131711
+ /***/ },
131712
+
131713
+ /***/ "./node_modules/@abaplint/transpiler/build/src/statements/generate_report.js"
131714
+ /*!***********************************************************************************!*\
131715
+ !*** ./node_modules/@abaplint/transpiler/build/src/statements/generate_report.js ***!
131716
+ \***********************************************************************************/
131717
+ (__unused_webpack_module, exports, __webpack_require__) {
131718
+
131719
+ "use strict";
131720
+
131721
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
131722
+ exports.GenerateReportTranspiler = void 0;
131723
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
131724
+ class GenerateReportTranspiler {
131725
+ transpile(_node, _traversal) {
131726
+ return new chunk_1.Chunk(`throw new Error("GENERATE REPORT, not supported, transpiler");`);
131727
+ }
131728
+ }
131729
+ exports.GenerateReportTranspiler = GenerateReportTranspiler;
131730
+ //# sourceMappingURL=generate_report.js.map
131731
+
131732
+ /***/ },
131733
+
131025
131734
  /***/ "./node_modules/@abaplint/transpiler/build/src/statements/generate_subroutine.js"
131026
131735
  /*!***************************************************************************************!*\
131027
131736
  !*** ./node_modules/@abaplint/transpiler/build/src/statements/generate_subroutine.js ***!
@@ -131113,6 +131822,27 @@ exports.GenerateSubroutineTranspiler = GenerateSubroutineTranspiler;
131113
131822
 
131114
131823
  /***/ },
131115
131824
 
131825
+ /***/ "./node_modules/@abaplint/transpiler/build/src/statements/get.js"
131826
+ /*!***********************************************************************!*\
131827
+ !*** ./node_modules/@abaplint/transpiler/build/src/statements/get.js ***!
131828
+ \***********************************************************************/
131829
+ (__unused_webpack_module, exports, __webpack_require__) {
131830
+
131831
+ "use strict";
131832
+
131833
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
131834
+ exports.GetTranspiler = void 0;
131835
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
131836
+ class GetTranspiler {
131837
+ transpile(_node, _traversal) {
131838
+ return new chunk_1.Chunk(`throw new Error("GET, not supported, transpiler");`);
131839
+ }
131840
+ }
131841
+ exports.GetTranspiler = GetTranspiler;
131842
+ //# sourceMappingURL=get.js.map
131843
+
131844
+ /***/ },
131845
+
131116
131846
  /***/ "./node_modules/@abaplint/transpiler/build/src/statements/get_bit.js"
131117
131847
  /*!***************************************************************************!*\
131118
131848
  !*** ./node_modules/@abaplint/transpiler/build/src/statements/get_bit.js ***!
@@ -131155,173 +131885,236 @@ var __importStar = (this && this.__importStar) || (function () {
131155
131885
  };
131156
131886
  })();
131157
131887
  Object.defineProperty(exports, "__esModule", ({ value: true }));
131158
- exports.GetBitTranspiler = void 0;
131888
+ exports.GetBitTranspiler = void 0;
131889
+ const abaplint = __importStar(__webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js"));
131890
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
131891
+ class GetBitTranspiler {
131892
+ transpile(node, traversal) {
131893
+ const sources = node.findDirectExpressions(abaplint.Expressions.Source);
131894
+ const source0 = traversal.traverse(sources[0]);
131895
+ const source1 = traversal.traverse(sources[1]);
131896
+ const target = traversal.traverse(node.findDirectExpression(abaplint.Expressions.Target));
131897
+ return new chunk_1.Chunk()
131898
+ .append("abap.statements.getBit(", node, traversal)
131899
+ .join([source0, source1, target])
131900
+ .append(");", node.getLastToken(), traversal);
131901
+ }
131902
+ }
131903
+ exports.GetBitTranspiler = GetBitTranspiler;
131904
+ //# sourceMappingURL=get_bit.js.map
131905
+
131906
+ /***/ },
131907
+
131908
+ /***/ "./node_modules/@abaplint/transpiler/build/src/statements/get_cursor.js"
131909
+ /*!******************************************************************************!*\
131910
+ !*** ./node_modules/@abaplint/transpiler/build/src/statements/get_cursor.js ***!
131911
+ \******************************************************************************/
131912
+ (__unused_webpack_module, exports, __webpack_require__) {
131913
+
131914
+ "use strict";
131915
+
131916
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
131917
+ exports.GetCursorTranspiler = void 0;
131918
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
131919
+ class GetCursorTranspiler {
131920
+ transpile(_node, _traversal) {
131921
+ return new chunk_1.Chunk(`throw new Error("GET CURSOR, not supported, transpiler");`);
131922
+ }
131923
+ }
131924
+ exports.GetCursorTranspiler = GetCursorTranspiler;
131925
+ //# sourceMappingURL=get_cursor.js.map
131926
+
131927
+ /***/ },
131928
+
131929
+ /***/ "./node_modules/@abaplint/transpiler/build/src/statements/get_dataset.js"
131930
+ /*!*******************************************************************************!*\
131931
+ !*** ./node_modules/@abaplint/transpiler/build/src/statements/get_dataset.js ***!
131932
+ \*******************************************************************************/
131933
+ (__unused_webpack_module, exports, __webpack_require__) {
131934
+
131935
+ "use strict";
131936
+
131937
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
131938
+ exports.GetDatasetTranspiler = void 0;
131939
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
131940
+ const _dataset_1 = __webpack_require__(/*! ./_dataset */ "./node_modules/@abaplint/transpiler/build/src/statements/_dataset.js");
131941
+ class GetDatasetTranspiler {
131942
+ transpile(node, traversal) {
131943
+ const operands = new _dataset_1.DatasetOperands(node, traversal);
131944
+ const options = [];
131945
+ if (operands.after("POSITION") !== undefined) {
131946
+ options.push("position: " + operands.after("POSITION"));
131947
+ }
131948
+ if (operands.after("ATTRIBUTES") !== undefined) {
131949
+ options.push("attributes: " + operands.after("ATTRIBUTES"));
131950
+ }
131951
+ return new chunk_1.Chunk()
131952
+ .append("await abap.statements.getDataset(", node, traversal)
131953
+ .appendString(operands.first() + ", {" + options.join(", ") + "}")
131954
+ .append(");", node.getLastToken(), traversal);
131955
+ }
131956
+ }
131957
+ exports.GetDatasetTranspiler = GetDatasetTranspiler;
131958
+ //# sourceMappingURL=get_dataset.js.map
131959
+
131960
+ /***/ },
131961
+
131962
+ /***/ "./node_modules/@abaplint/transpiler/build/src/statements/get_locale.js"
131963
+ /*!******************************************************************************!*\
131964
+ !*** ./node_modules/@abaplint/transpiler/build/src/statements/get_locale.js ***!
131965
+ \******************************************************************************/
131966
+ (__unused_webpack_module, exports, __webpack_require__) {
131967
+
131968
+ "use strict";
131969
+
131970
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
131971
+ if (k2 === undefined) k2 = k;
131972
+ var desc = Object.getOwnPropertyDescriptor(m, k);
131973
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
131974
+ desc = { enumerable: true, get: function() { return m[k]; } };
131975
+ }
131976
+ Object.defineProperty(o, k2, desc);
131977
+ }) : (function(o, m, k, k2) {
131978
+ if (k2 === undefined) k2 = k;
131979
+ o[k2] = m[k];
131980
+ }));
131981
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
131982
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
131983
+ }) : function(o, v) {
131984
+ o["default"] = v;
131985
+ });
131986
+ var __importStar = (this && this.__importStar) || (function () {
131987
+ var ownKeys = function(o) {
131988
+ ownKeys = Object.getOwnPropertyNames || function (o) {
131989
+ var ar = [];
131990
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
131991
+ return ar;
131992
+ };
131993
+ return ownKeys(o);
131994
+ };
131995
+ return function (mod) {
131996
+ if (mod && mod.__esModule) return mod;
131997
+ var result = {};
131998
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
131999
+ __setModuleDefault(result, mod);
132000
+ return result;
132001
+ };
132002
+ })();
132003
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
132004
+ exports.GetLocaleTranspiler = void 0;
132005
+ const abaplint = __importStar(__webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js"));
132006
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
132007
+ class GetLocaleTranspiler {
132008
+ transpile(node, traversal) {
132009
+ const t = traversal.traverse(node.findFirstExpression(abaplint.Expressions.Target));
132010
+ return new chunk_1.Chunk(`abap.statements.getLocale(${t.getCode()});`);
132011
+ }
132012
+ }
132013
+ exports.GetLocaleTranspiler = GetLocaleTranspiler;
132014
+ //# sourceMappingURL=get_locale.js.map
132015
+
132016
+ /***/ },
132017
+
132018
+ /***/ "./node_modules/@abaplint/transpiler/build/src/statements/get_parameter.js"
132019
+ /*!*********************************************************************************!*\
132020
+ !*** ./node_modules/@abaplint/transpiler/build/src/statements/get_parameter.js ***!
132021
+ \*********************************************************************************/
132022
+ (__unused_webpack_module, exports, __webpack_require__) {
132023
+
132024
+ "use strict";
132025
+
132026
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
132027
+ if (k2 === undefined) k2 = k;
132028
+ var desc = Object.getOwnPropertyDescriptor(m, k);
132029
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
132030
+ desc = { enumerable: true, get: function() { return m[k]; } };
132031
+ }
132032
+ Object.defineProperty(o, k2, desc);
132033
+ }) : (function(o, m, k, k2) {
132034
+ if (k2 === undefined) k2 = k;
132035
+ o[k2] = m[k];
132036
+ }));
132037
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
132038
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
132039
+ }) : function(o, v) {
132040
+ o["default"] = v;
132041
+ });
132042
+ var __importStar = (this && this.__importStar) || (function () {
132043
+ var ownKeys = function(o) {
132044
+ ownKeys = Object.getOwnPropertyNames || function (o) {
132045
+ var ar = [];
132046
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
132047
+ return ar;
132048
+ };
132049
+ return ownKeys(o);
132050
+ };
132051
+ return function (mod) {
132052
+ if (mod && mod.__esModule) return mod;
132053
+ var result = {};
132054
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
132055
+ __setModuleDefault(result, mod);
132056
+ return result;
132057
+ };
132058
+ })();
132059
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
132060
+ exports.GetParameterTranspiler = void 0;
131159
132061
  const abaplint = __importStar(__webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js"));
131160
132062
  const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
131161
- class GetBitTranspiler {
132063
+ class GetParameterTranspiler {
131162
132064
  transpile(node, traversal) {
131163
- const sources = node.findDirectExpressions(abaplint.Expressions.Source);
131164
- const source0 = traversal.traverse(sources[0]);
131165
- const source1 = traversal.traverse(sources[1]);
132065
+ const source = traversal.traverse(node.findDirectExpression(abaplint.Expressions.Source));
131166
132066
  const target = traversal.traverse(node.findDirectExpression(abaplint.Expressions.Target));
131167
- return new chunk_1.Chunk()
131168
- .append("abap.statements.getBit(", node, traversal)
131169
- .join([source0, source1, target])
131170
- .append(");", node.getLastToken(), traversal);
132067
+ return new chunk_1.Chunk(`abap.statements.getParameter(`)
132068
+ .appendChunk(source)
132069
+ .appendString(",")
132070
+ .appendChunk(target)
132071
+ .appendString(");");
131171
132072
  }
131172
132073
  }
131173
- exports.GetBitTranspiler = GetBitTranspiler;
131174
- //# sourceMappingURL=get_bit.js.map
132074
+ exports.GetParameterTranspiler = GetParameterTranspiler;
132075
+ //# sourceMappingURL=get_parameter.js.map
131175
132076
 
131176
132077
  /***/ },
131177
132078
 
131178
- /***/ "./node_modules/@abaplint/transpiler/build/src/statements/get_dataset.js"
131179
- /*!*******************************************************************************!*\
131180
- !*** ./node_modules/@abaplint/transpiler/build/src/statements/get_dataset.js ***!
131181
- \*******************************************************************************/
132079
+ /***/ "./node_modules/@abaplint/transpiler/build/src/statements/get_pf_status.js"
132080
+ /*!*********************************************************************************!*\
132081
+ !*** ./node_modules/@abaplint/transpiler/build/src/statements/get_pf_status.js ***!
132082
+ \*********************************************************************************/
131182
132083
  (__unused_webpack_module, exports, __webpack_require__) {
131183
132084
 
131184
132085
  "use strict";
131185
132086
 
131186
132087
  Object.defineProperty(exports, "__esModule", ({ value: true }));
131187
- exports.GetDatasetTranspiler = void 0;
132088
+ exports.GetPFStatusTranspiler = void 0;
131188
132089
  const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
131189
- const _dataset_1 = __webpack_require__(/*! ./_dataset */ "./node_modules/@abaplint/transpiler/build/src/statements/_dataset.js");
131190
- class GetDatasetTranspiler {
131191
- transpile(node, traversal) {
131192
- const operands = new _dataset_1.DatasetOperands(node, traversal);
131193
- const options = [];
131194
- if (operands.after("POSITION") !== undefined) {
131195
- options.push("position: " + operands.after("POSITION"));
131196
- }
131197
- if (operands.after("ATTRIBUTES") !== undefined) {
131198
- options.push("attributes: " + operands.after("ATTRIBUTES"));
131199
- }
131200
- return new chunk_1.Chunk()
131201
- .append("await abap.statements.getDataset(", node, traversal)
131202
- .appendString(operands.first() + ", {" + options.join(", ") + "}")
131203
- .append(");", node.getLastToken(), traversal);
132090
+ class GetPFStatusTranspiler {
132091
+ transpile(_node, _traversal) {
132092
+ return new chunk_1.Chunk(`throw new Error("GET PF-STATUS, not supported, transpiler");`);
131204
132093
  }
131205
132094
  }
131206
- exports.GetDatasetTranspiler = GetDatasetTranspiler;
131207
- //# sourceMappingURL=get_dataset.js.map
132095
+ exports.GetPFStatusTranspiler = GetPFStatusTranspiler;
132096
+ //# sourceMappingURL=get_pf_status.js.map
131208
132097
 
131209
132098
  /***/ },
131210
132099
 
131211
- /***/ "./node_modules/@abaplint/transpiler/build/src/statements/get_locale.js"
131212
- /*!******************************************************************************!*\
131213
- !*** ./node_modules/@abaplint/transpiler/build/src/statements/get_locale.js ***!
131214
- \******************************************************************************/
132100
+ /***/ "./node_modules/@abaplint/transpiler/build/src/statements/get_property.js"
132101
+ /*!********************************************************************************!*\
132102
+ !*** ./node_modules/@abaplint/transpiler/build/src/statements/get_property.js ***!
132103
+ \********************************************************************************/
131215
132104
  (__unused_webpack_module, exports, __webpack_require__) {
131216
132105
 
131217
132106
  "use strict";
131218
132107
 
131219
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
131220
- if (k2 === undefined) k2 = k;
131221
- var desc = Object.getOwnPropertyDescriptor(m, k);
131222
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
131223
- desc = { enumerable: true, get: function() { return m[k]; } };
131224
- }
131225
- Object.defineProperty(o, k2, desc);
131226
- }) : (function(o, m, k, k2) {
131227
- if (k2 === undefined) k2 = k;
131228
- o[k2] = m[k];
131229
- }));
131230
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
131231
- Object.defineProperty(o, "default", { enumerable: true, value: v });
131232
- }) : function(o, v) {
131233
- o["default"] = v;
131234
- });
131235
- var __importStar = (this && this.__importStar) || (function () {
131236
- var ownKeys = function(o) {
131237
- ownKeys = Object.getOwnPropertyNames || function (o) {
131238
- var ar = [];
131239
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
131240
- return ar;
131241
- };
131242
- return ownKeys(o);
131243
- };
131244
- return function (mod) {
131245
- if (mod && mod.__esModule) return mod;
131246
- var result = {};
131247
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
131248
- __setModuleDefault(result, mod);
131249
- return result;
131250
- };
131251
- })();
131252
132108
  Object.defineProperty(exports, "__esModule", ({ value: true }));
131253
- exports.GetLocaleTranspiler = void 0;
131254
- const abaplint = __importStar(__webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js"));
132109
+ exports.GetPropertyTranspiler = void 0;
131255
132110
  const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
131256
- class GetLocaleTranspiler {
131257
- transpile(node, traversal) {
131258
- const t = traversal.traverse(node.findFirstExpression(abaplint.Expressions.Target));
131259
- return new chunk_1.Chunk(`abap.statements.getLocale(${t.getCode()});`);
131260
- }
131261
- }
131262
- exports.GetLocaleTranspiler = GetLocaleTranspiler;
131263
- //# sourceMappingURL=get_locale.js.map
131264
-
131265
- /***/ },
131266
-
131267
- /***/ "./node_modules/@abaplint/transpiler/build/src/statements/get_parameter.js"
131268
- /*!*********************************************************************************!*\
131269
- !*** ./node_modules/@abaplint/transpiler/build/src/statements/get_parameter.js ***!
131270
- \*********************************************************************************/
131271
- (__unused_webpack_module, exports, __webpack_require__) {
131272
-
131273
- "use strict";
131274
-
131275
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
131276
- if (k2 === undefined) k2 = k;
131277
- var desc = Object.getOwnPropertyDescriptor(m, k);
131278
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
131279
- desc = { enumerable: true, get: function() { return m[k]; } };
131280
- }
131281
- Object.defineProperty(o, k2, desc);
131282
- }) : (function(o, m, k, k2) {
131283
- if (k2 === undefined) k2 = k;
131284
- o[k2] = m[k];
131285
- }));
131286
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
131287
- Object.defineProperty(o, "default", { enumerable: true, value: v });
131288
- }) : function(o, v) {
131289
- o["default"] = v;
131290
- });
131291
- var __importStar = (this && this.__importStar) || (function () {
131292
- var ownKeys = function(o) {
131293
- ownKeys = Object.getOwnPropertyNames || function (o) {
131294
- var ar = [];
131295
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
131296
- return ar;
131297
- };
131298
- return ownKeys(o);
131299
- };
131300
- return function (mod) {
131301
- if (mod && mod.__esModule) return mod;
131302
- var result = {};
131303
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
131304
- __setModuleDefault(result, mod);
131305
- return result;
131306
- };
131307
- })();
131308
- Object.defineProperty(exports, "__esModule", ({ value: true }));
131309
- exports.GetParameterTranspiler = void 0;
131310
- const abaplint = __importStar(__webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js"));
131311
- const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
131312
- class GetParameterTranspiler {
131313
- transpile(node, traversal) {
131314
- const source = traversal.traverse(node.findDirectExpression(abaplint.Expressions.Source));
131315
- const target = traversal.traverse(node.findDirectExpression(abaplint.Expressions.Target));
131316
- return new chunk_1.Chunk(`abap.statements.getParameter(`)
131317
- .appendChunk(source)
131318
- .appendString(",")
131319
- .appendChunk(target)
131320
- .appendString(");");
132111
+ class GetPropertyTranspiler {
132112
+ transpile(_node, _traversal) {
132113
+ return new chunk_1.Chunk(`throw new Error("GET PROPERTY, not supported, transpiler");`);
131321
132114
  }
131322
132115
  }
131323
- exports.GetParameterTranspiler = GetParameterTranspiler;
131324
- //# sourceMappingURL=get_parameter.js.map
132116
+ exports.GetPropertyTranspiler = GetPropertyTranspiler;
132117
+ //# sourceMappingURL=get_property.js.map
131325
132118
 
131326
132119
  /***/ },
131327
132120
 
@@ -131534,7 +132327,9 @@ exports.HideTranspiler = void 0;
131534
132327
  const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
131535
132328
  class HideTranspiler {
131536
132329
  transpile(_node, _traversal) {
131537
- return new chunk_1.Chunk(`throw new Error("HIDE, not supported, transpiler");`);
132330
+ // HIDE keeps a field's value for the list line, for the line selection of an interactive list
132331
+ // (AT LINE-SELECTION), it does not change the list itself
132332
+ return new chunk_1.Chunk("");
131538
132333
  }
131539
132334
  }
131540
132335
  exports.HideTranspiler = HideTranspiler;
@@ -131623,6 +132418,48 @@ exports.ImportTranspiler = ImportTranspiler;
131623
132418
 
131624
132419
  /***/ },
131625
132420
 
132421
+ /***/ "./node_modules/@abaplint/transpiler/build/src/statements/import_dynpro.js"
132422
+ /*!*********************************************************************************!*\
132423
+ !*** ./node_modules/@abaplint/transpiler/build/src/statements/import_dynpro.js ***!
132424
+ \*********************************************************************************/
132425
+ (__unused_webpack_module, exports, __webpack_require__) {
132426
+
132427
+ "use strict";
132428
+
132429
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
132430
+ exports.ImportDynproTranspiler = void 0;
132431
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
132432
+ class ImportDynproTranspiler {
132433
+ transpile(_node, _traversal) {
132434
+ return new chunk_1.Chunk(`throw new Error("IMPORT DYNPRO, not supported, transpiler");`);
132435
+ }
132436
+ }
132437
+ exports.ImportDynproTranspiler = ImportDynproTranspiler;
132438
+ //# sourceMappingURL=import_dynpro.js.map
132439
+
132440
+ /***/ },
132441
+
132442
+ /***/ "./node_modules/@abaplint/transpiler/build/src/statements/import_nametab.js"
132443
+ /*!**********************************************************************************!*\
132444
+ !*** ./node_modules/@abaplint/transpiler/build/src/statements/import_nametab.js ***!
132445
+ \**********************************************************************************/
132446
+ (__unused_webpack_module, exports, __webpack_require__) {
132447
+
132448
+ "use strict";
132449
+
132450
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
132451
+ exports.ImportNametabTranspiler = void 0;
132452
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
132453
+ class ImportNametabTranspiler {
132454
+ transpile(_node, _traversal) {
132455
+ return new chunk_1.Chunk(`throw new Error("IMPORT NAMETAB, not supported, transpiler");`);
132456
+ }
132457
+ }
132458
+ exports.ImportNametabTranspiler = ImportNametabTranspiler;
132459
+ //# sourceMappingURL=import_nametab.js.map
132460
+
132461
+ /***/ },
132462
+
131626
132463
  /***/ "./node_modules/@abaplint/transpiler/build/src/statements/include.js"
131627
132464
  /*!***************************************************************************!*\
131628
132465
  !*** ./node_modules/@abaplint/transpiler/build/src/statements/include.js ***!
@@ -131738,6 +132575,16 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
131738
132575
  };
131739
132576
  Object.defineProperty(exports, "__esModule", ({ value: true }));
131740
132577
  __exportStar(__webpack_require__(/*! ./add */ "./node_modules/@abaplint/transpiler/build/src/statements/add.js"), exports);
132578
+ __exportStar(__webpack_require__(/*! ./add_corresponding */ "./node_modules/@abaplint/transpiler/build/src/statements/add_corresponding.js"), exports);
132579
+ __exportStar(__webpack_require__(/*! ./assign_local_copy */ "./node_modules/@abaplint/transpiler/build/src/statements/assign_local_copy.js"), exports);
132580
+ __exportStar(__webpack_require__(/*! ./communication */ "./node_modules/@abaplint/transpiler/build/src/statements/communication.js"), exports);
132581
+ __exportStar(__webpack_require__(/*! ./contexts */ "./node_modules/@abaplint/transpiler/build/src/statements/contexts.js"), exports);
132582
+ __exportStar(__webpack_require__(/*! ./convert_text */ "./node_modules/@abaplint/transpiler/build/src/statements/convert_text.js"), exports);
132583
+ __exportStar(__webpack_require__(/*! ./demand */ "./node_modules/@abaplint/transpiler/build/src/statements/demand.js"), exports);
132584
+ __exportStar(__webpack_require__(/*! ./pack */ "./node_modules/@abaplint/transpiler/build/src/statements/pack.js"), exports);
132585
+ __exportStar(__webpack_require__(/*! ./set_country */ "./node_modules/@abaplint/transpiler/build/src/statements/set_country.js"), exports);
132586
+ __exportStar(__webpack_require__(/*! ./supply */ "./node_modules/@abaplint/transpiler/build/src/statements/supply.js"), exports);
132587
+ __exportStar(__webpack_require__(/*! ./subtract_corresponding */ "./node_modules/@abaplint/transpiler/build/src/statements/subtract_corresponding.js"), exports);
131741
132588
  __exportStar(__webpack_require__(/*! ./append */ "./node_modules/@abaplint/transpiler/build/src/statements/append.js"), exports);
131742
132589
  __exportStar(__webpack_require__(/*! ./assert */ "./node_modules/@abaplint/transpiler/build/src/statements/assert.js"), exports);
131743
132590
  __exportStar(__webpack_require__(/*! ./assign */ "./node_modules/@abaplint/transpiler/build/src/statements/assign.js"), exports);
@@ -131745,6 +132592,21 @@ __exportStar(__webpack_require__(/*! ./at_pf */ "./node_modules/@abaplint/transp
131745
132592
  __exportStar(__webpack_require__(/*! ./at_selection_screen */ "./node_modules/@abaplint/transpiler/build/src/statements/at_selection_screen.js"), exports);
131746
132593
  __exportStar(__webpack_require__(/*! ./at */ "./node_modules/@abaplint/transpiler/build/src/statements/at.js"), exports);
131747
132594
  __exportStar(__webpack_require__(/*! ./at_user_command */ "./node_modules/@abaplint/transpiler/build/src/statements/at_user_command.js"), exports);
132595
+ __exportStar(__webpack_require__(/*! ./back */ "./node_modules/@abaplint/transpiler/build/src/statements/back.js"), exports);
132596
+ __exportStar(__webpack_require__(/*! ./call_dialog */ "./node_modules/@abaplint/transpiler/build/src/statements/call_dialog.js"), exports);
132597
+ __exportStar(__webpack_require__(/*! ./field */ "./node_modules/@abaplint/transpiler/build/src/statements/field.js"), exports);
132598
+ __exportStar(__webpack_require__(/*! ./get_cursor */ "./node_modules/@abaplint/transpiler/build/src/statements/get_cursor.js"), exports);
132599
+ __exportStar(__webpack_require__(/*! ./get_pf_status */ "./node_modules/@abaplint/transpiler/build/src/statements/get_pf_status.js"), exports);
132600
+ __exportStar(__webpack_require__(/*! ./modify_line */ "./node_modules/@abaplint/transpiler/build/src/statements/modify_line.js"), exports);
132601
+ __exportStar(__webpack_require__(/*! ./module */ "./node_modules/@abaplint/transpiler/build/src/statements/module.js"), exports);
132602
+ __exportStar(__webpack_require__(/*! ./position */ "./node_modules/@abaplint/transpiler/build/src/statements/position.js"), exports);
132603
+ __exportStar(__webpack_require__(/*! ./refresh_control */ "./node_modules/@abaplint/transpiler/build/src/statements/refresh_control.js"), exports);
132604
+ __exportStar(__webpack_require__(/*! ./scroll_list */ "./node_modules/@abaplint/transpiler/build/src/statements/scroll_list.js"), exports);
132605
+ __exportStar(__webpack_require__(/*! ./set_left */ "./node_modules/@abaplint/transpiler/build/src/statements/set_left.js"), exports);
132606
+ __exportStar(__webpack_require__(/*! ./set_margin */ "./node_modules/@abaplint/transpiler/build/src/statements/set_margin.js"), exports);
132607
+ __exportStar(__webpack_require__(/*! ./set_user_command */ "./node_modules/@abaplint/transpiler/build/src/statements/set_user_command.js"), exports);
132608
+ __exportStar(__webpack_require__(/*! ./suppress_dialog */ "./node_modules/@abaplint/transpiler/build/src/statements/suppress_dialog.js"), exports);
132609
+ __exportStar(__webpack_require__(/*! ./window */ "./node_modules/@abaplint/transpiler/build/src/statements/window.js"), exports);
131748
132610
  __exportStar(__webpack_require__(/*! ./authority_check */ "./node_modules/@abaplint/transpiler/build/src/statements/authority_check.js"), exports);
131749
132611
  __exportStar(__webpack_require__(/*! ./break_id */ "./node_modules/@abaplint/transpiler/build/src/statements/break_id.js"), exports);
131750
132612
  __exportStar(__webpack_require__(/*! ./break */ "./node_modules/@abaplint/transpiler/build/src/statements/break.js"), exports);
@@ -131754,9 +132616,25 @@ __exportStar(__webpack_require__(/*! ./call_screen */ "./node_modules/@abaplint/
131754
132616
  __exportStar(__webpack_require__(/*! ./call_selection_screen */ "./node_modules/@abaplint/transpiler/build/src/statements/call_selection_screen.js"), exports);
131755
132617
  __exportStar(__webpack_require__(/*! ./call_transaction */ "./node_modules/@abaplint/transpiler/build/src/statements/call_transaction.js"), exports);
131756
132618
  __exportStar(__webpack_require__(/*! ./call_transformation */ "./node_modules/@abaplint/transpiler/build/src/statements/call_transformation.js"), exports);
132619
+ __exportStar(__webpack_require__(/*! ./delete_dynpro */ "./node_modules/@abaplint/transpiler/build/src/statements/delete_dynpro.js"), exports);
132620
+ __exportStar(__webpack_require__(/*! ./export_dynpro */ "./node_modules/@abaplint/transpiler/build/src/statements/export_dynpro.js"), exports);
132621
+ __exportStar(__webpack_require__(/*! ./generate_dynpro */ "./node_modules/@abaplint/transpiler/build/src/statements/generate_dynpro.js"), exports);
132622
+ __exportStar(__webpack_require__(/*! ./generate_report */ "./node_modules/@abaplint/transpiler/build/src/statements/generate_report.js"), exports);
132623
+ __exportStar(__webpack_require__(/*! ./import_dynpro */ "./node_modules/@abaplint/transpiler/build/src/statements/import_dynpro.js"), exports);
132624
+ __exportStar(__webpack_require__(/*! ./import_nametab */ "./node_modules/@abaplint/transpiler/build/src/statements/import_nametab.js"), exports);
132625
+ __exportStar(__webpack_require__(/*! ./load_report */ "./node_modules/@abaplint/transpiler/build/src/statements/load_report.js"), exports);
131757
132626
  __exportStar(__webpack_require__(/*! ./call */ "./node_modules/@abaplint/transpiler/build/src/statements/call.js"), exports);
131758
132627
  __exportStar(__webpack_require__(/*! ./case */ "./node_modules/@abaplint/transpiler/build/src/statements/case.js"), exports);
131759
132628
  __exportStar(__webpack_require__(/*! ./check */ "./node_modules/@abaplint/transpiler/build/src/statements/check.js"), exports);
132629
+ __exportStar(__webpack_require__(/*! ./check_select_options */ "./node_modules/@abaplint/transpiler/build/src/statements/check_select_options.js"), exports);
132630
+ __exportStar(__webpack_require__(/*! ./extract */ "./node_modules/@abaplint/transpiler/build/src/statements/extract.js"), exports);
132631
+ __exportStar(__webpack_require__(/*! ./field_group */ "./node_modules/@abaplint/transpiler/build/src/statements/field_group.js"), exports);
132632
+ __exportStar(__webpack_require__(/*! ./infotypes */ "./node_modules/@abaplint/transpiler/build/src/statements/infotypes.js"), exports);
132633
+ __exportStar(__webpack_require__(/*! ./insert_field_group */ "./node_modules/@abaplint/transpiler/build/src/statements/insert_field_group.js"), exports);
132634
+ __exportStar(__webpack_require__(/*! ./nodes */ "./node_modules/@abaplint/transpiler/build/src/statements/nodes.js"), exports);
132635
+ __exportStar(__webpack_require__(/*! ./put */ "./node_modules/@abaplint/transpiler/build/src/statements/put.js"), exports);
132636
+ __exportStar(__webpack_require__(/*! ./reject */ "./node_modules/@abaplint/transpiler/build/src/statements/reject.js"), exports);
132637
+ __exportStar(__webpack_require__(/*! ./get */ "./node_modules/@abaplint/transpiler/build/src/statements/get.js"), exports);
131760
132638
  __exportStar(__webpack_require__(/*! ./class_deferred */ "./node_modules/@abaplint/transpiler/build/src/statements/class_deferred.js"), exports);
131761
132639
  __exportStar(__webpack_require__(/*! ./class_definition_load */ "./node_modules/@abaplint/transpiler/build/src/statements/class_definition_load.js"), exports);
131762
132640
  __exportStar(__webpack_require__(/*! ./class_implementation */ "./node_modules/@abaplint/transpiler/build/src/statements/class_implementation.js"), exports);
@@ -131778,6 +132656,11 @@ __exportStar(__webpack_require__(/*! ./continue */ "./node_modules/@abaplint/tra
131778
132656
  __exportStar(__webpack_require__(/*! ./convert */ "./node_modules/@abaplint/transpiler/build/src/statements/convert.js"), exports);
131779
132657
  __exportStar(__webpack_require__(/*! ./create_data */ "./node_modules/@abaplint/transpiler/build/src/statements/create_data.js"), exports);
131780
132658
  __exportStar(__webpack_require__(/*! ./create_object */ "./node_modules/@abaplint/transpiler/build/src/statements/create_object.js"), exports);
132659
+ __exportStar(__webpack_require__(/*! ./call_ole */ "./node_modules/@abaplint/transpiler/build/src/statements/call_ole.js"), exports);
132660
+ __exportStar(__webpack_require__(/*! ./create_ole */ "./node_modules/@abaplint/transpiler/build/src/statements/create_ole.js"), exports);
132661
+ __exportStar(__webpack_require__(/*! ./free_object */ "./node_modules/@abaplint/transpiler/build/src/statements/free_object.js"), exports);
132662
+ __exportStar(__webpack_require__(/*! ./get_property */ "./node_modules/@abaplint/transpiler/build/src/statements/get_property.js"), exports);
132663
+ __exportStar(__webpack_require__(/*! ./set_property */ "./node_modules/@abaplint/transpiler/build/src/statements/set_property.js"), exports);
131781
132664
  __exportStar(__webpack_require__(/*! ./data */ "./node_modules/@abaplint/transpiler/build/src/statements/data.js"), exports);
131782
132665
  __exportStar(__webpack_require__(/*! ./delete_cluster */ "./node_modules/@abaplint/transpiler/build/src/statements/delete_cluster.js"), exports);
131783
132666
  __exportStar(__webpack_require__(/*! ./delete_database */ "./node_modules/@abaplint/transpiler/build/src/statements/delete_database.js"), exports);
@@ -131787,6 +132670,7 @@ __exportStar(__webpack_require__(/*! ./delete_memory */ "./node_modules/@abaplin
131787
132670
  __exportStar(__webpack_require__(/*! ./delete_report */ "./node_modules/@abaplint/transpiler/build/src/statements/delete_report.js"), exports);
131788
132671
  __exportStar(__webpack_require__(/*! ./delete_textpool */ "./node_modules/@abaplint/transpiler/build/src/statements/delete_textpool.js"), exports);
131789
132672
  __exportStar(__webpack_require__(/*! ./describe */ "./node_modules/@abaplint/transpiler/build/src/statements/describe.js"), exports);
132673
+ __exportStar(__webpack_require__(/*! ./detail */ "./node_modules/@abaplint/transpiler/build/src/statements/detail.js"), exports);
131790
132674
  __exportStar(__webpack_require__(/*! ./divide */ "./node_modules/@abaplint/transpiler/build/src/statements/divide.js"), exports);
131791
132675
  __exportStar(__webpack_require__(/*! ./do */ "./node_modules/@abaplint/transpiler/build/src/statements/do.js"), exports);
131792
132676
  __exportStar(__webpack_require__(/*! ./editor_call */ "./node_modules/@abaplint/transpiler/build/src/statements/editor_call.js"), exports);
@@ -131832,6 +132716,7 @@ __exportStar(__webpack_require__(/*! ./insert_database */ "./node_modules/@abapl
131832
132716
  __exportStar(__webpack_require__(/*! ./insert_internal */ "./node_modules/@abaplint/transpiler/build/src/statements/insert_internal.js"), exports);
131833
132717
  __exportStar(__webpack_require__(/*! ./insert_report */ "./node_modules/@abaplint/transpiler/build/src/statements/insert_report.js"), exports);
131834
132718
  __exportStar(__webpack_require__(/*! ./insert_textpool */ "./node_modules/@abaplint/transpiler/build/src/statements/insert_textpool.js"), exports);
132719
+ __exportStar(__webpack_require__(/*! ./input */ "./node_modules/@abaplint/transpiler/build/src/statements/input.js"), exports);
131835
132720
  __exportStar(__webpack_require__(/*! ./leave */ "./node_modules/@abaplint/transpiler/build/src/statements/leave.js"), exports);
131836
132721
  __exportStar(__webpack_require__(/*! ./log_point */ "./node_modules/@abaplint/transpiler/build/src/statements/log_point.js"), exports);
131837
132722
  __exportStar(__webpack_require__(/*! ./loop_at_screen */ "./node_modules/@abaplint/transpiler/build/src/statements/loop_at_screen.js"), exports);
@@ -131854,6 +132739,7 @@ __exportStar(__webpack_require__(/*! ./open_dataset */ "./node_modules/@abaplint
131854
132739
  __exportStar(__webpack_require__(/*! ./overlay */ "./node_modules/@abaplint/transpiler/build/src/statements/overlay.js"), exports);
131855
132740
  __exportStar(__webpack_require__(/*! ./parameter */ "./node_modules/@abaplint/transpiler/build/src/statements/parameter.js"), exports);
131856
132741
  __exportStar(__webpack_require__(/*! ./perform */ "./node_modules/@abaplint/transpiler/build/src/statements/perform.js"), exports);
132742
+ __exportStar(__webpack_require__(/*! ./print_control */ "./node_modules/@abaplint/transpiler/build/src/statements/print_control.js"), exports);
131857
132743
  __exportStar(__webpack_require__(/*! ./program */ "./node_modules/@abaplint/transpiler/build/src/statements/program.js"), exports);
131858
132744
  __exportStar(__webpack_require__(/*! ./raise_event */ "./node_modules/@abaplint/transpiler/build/src/statements/raise_event.js"), exports);
131859
132745
  __exportStar(__webpack_require__(/*! ./raise */ "./node_modules/@abaplint/transpiler/build/src/statements/raise.js"), exports);
@@ -131900,6 +132786,7 @@ __exportStar(__webpack_require__(/*! ./start_of_selection */ "./node_modules/@ab
131900
132786
  __exportStar(__webpack_require__(/*! ./load_of_program */ "./node_modules/@abaplint/transpiler/build/src/statements/load_of_program.js"), exports);
131901
132787
  __exportStar(__webpack_require__(/*! ./stop */ "./node_modules/@abaplint/transpiler/build/src/statements/stop.js"), exports);
131902
132788
  __exportStar(__webpack_require__(/*! ./sum */ "./node_modules/@abaplint/transpiler/build/src/statements/sum.js"), exports);
132789
+ __exportStar(__webpack_require__(/*! ./summary */ "./node_modules/@abaplint/transpiler/build/src/statements/summary.js"), exports);
131903
132790
  __exportStar(__webpack_require__(/*! ./submit */ "./node_modules/@abaplint/transpiler/build/src/statements/submit.js"), exports);
131904
132791
  __exportStar(__webpack_require__(/*! ./subtract */ "./node_modules/@abaplint/transpiler/build/src/statements/subtract.js"), exports);
131905
132792
  __exportStar(__webpack_require__(/*! ./at_line_selection */ "./node_modules/@abaplint/transpiler/build/src/statements/at_line_selection.js"), exports);
@@ -131917,6 +132804,9 @@ __exportStar(__webpack_require__(/*! ./uline */ "./node_modules/@abaplint/transp
131917
132804
  __exportStar(__webpack_require__(/*! ./unassign */ "./node_modules/@abaplint/transpiler/build/src/statements/unassign.js"), exports);
131918
132805
  __exportStar(__webpack_require__(/*! ./unpack */ "./node_modules/@abaplint/transpiler/build/src/statements/unpack.js"), exports);
131919
132806
  __exportStar(__webpack_require__(/*! ./update_database */ "./node_modules/@abaplint/transpiler/build/src/statements/update_database.js"), exports);
132807
+ __exportStar(__webpack_require__(/*! ./call_database */ "./node_modules/@abaplint/transpiler/build/src/statements/call_database.js"), exports);
132808
+ __exportStar(__webpack_require__(/*! ./merge_database */ "./node_modules/@abaplint/transpiler/build/src/statements/merge_database.js"), exports);
132809
+ __exportStar(__webpack_require__(/*! ./with */ "./node_modules/@abaplint/transpiler/build/src/statements/with.js"), exports);
131920
132810
  __exportStar(__webpack_require__(/*! ./wait */ "./node_modules/@abaplint/transpiler/build/src/statements/wait.js"), exports);
131921
132811
  __exportStar(__webpack_require__(/*! ./when */ "./node_modules/@abaplint/transpiler/build/src/statements/when.js"), exports);
131922
132812
  __exportStar(__webpack_require__(/*! ./while */ "./node_modules/@abaplint/transpiler/build/src/statements/while.js"), exports);
@@ -131925,6 +132815,27 @@ __exportStar(__webpack_require__(/*! ./write */ "./node_modules/@abaplint/transp
131925
132815
 
131926
132816
  /***/ },
131927
132817
 
132818
+ /***/ "./node_modules/@abaplint/transpiler/build/src/statements/infotypes.js"
132819
+ /*!*****************************************************************************!*\
132820
+ !*** ./node_modules/@abaplint/transpiler/build/src/statements/infotypes.js ***!
132821
+ \*****************************************************************************/
132822
+ (__unused_webpack_module, exports, __webpack_require__) {
132823
+
132824
+ "use strict";
132825
+
132826
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
132827
+ exports.InfotypesTranspiler = void 0;
132828
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
132829
+ class InfotypesTranspiler {
132830
+ transpile(_node, _traversal) {
132831
+ return new chunk_1.Chunk(`throw new Error("INFOTYPES, not supported, transpiler");`);
132832
+ }
132833
+ }
132834
+ exports.InfotypesTranspiler = InfotypesTranspiler;
132835
+ //# sourceMappingURL=infotypes.js.map
132836
+
132837
+ /***/ },
132838
+
131928
132839
  /***/ "./node_modules/@abaplint/transpiler/build/src/statements/initialization.js"
131929
132840
  /*!**********************************************************************************!*\
131930
132841
  !*** ./node_modules/@abaplint/transpiler/build/src/statements/initialization.js ***!
@@ -131946,6 +132857,28 @@ exports.InitializationTranspiler = InitializationTranspiler;
131946
132857
 
131947
132858
  /***/ },
131948
132859
 
132860
+ /***/ "./node_modules/@abaplint/transpiler/build/src/statements/input.js"
132861
+ /*!*************************************************************************!*\
132862
+ !*** ./node_modules/@abaplint/transpiler/build/src/statements/input.js ***!
132863
+ \*************************************************************************/
132864
+ (__unused_webpack_module, exports, __webpack_require__) {
132865
+
132866
+ "use strict";
132867
+
132868
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
132869
+ exports.InputTranspiler = void 0;
132870
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
132871
+ class InputTranspiler {
132872
+ transpile(_node, _traversal) {
132873
+ // obsolete short form of a list format setting (INPUT), it does not change the text of the list
132874
+ return new chunk_1.Chunk("");
132875
+ }
132876
+ }
132877
+ exports.InputTranspiler = InputTranspiler;
132878
+ //# sourceMappingURL=input.js.map
132879
+
132880
+ /***/ },
132881
+
131949
132882
  /***/ "./node_modules/@abaplint/transpiler/build/src/statements/insert_database.js"
131950
132883
  /*!***********************************************************************************!*\
131951
132884
  !*** ./node_modules/@abaplint/transpiler/build/src/statements/insert_database.js ***!
@@ -132052,6 +132985,27 @@ function findConnection(connection, traversal) {
132052
132985
 
132053
132986
  /***/ },
132054
132987
 
132988
+ /***/ "./node_modules/@abaplint/transpiler/build/src/statements/insert_field_group.js"
132989
+ /*!**************************************************************************************!*\
132990
+ !*** ./node_modules/@abaplint/transpiler/build/src/statements/insert_field_group.js ***!
132991
+ \**************************************************************************************/
132992
+ (__unused_webpack_module, exports, __webpack_require__) {
132993
+
132994
+ "use strict";
132995
+
132996
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
132997
+ exports.InsertFieldGroupTranspiler = void 0;
132998
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
132999
+ class InsertFieldGroupTranspiler {
133000
+ transpile(_node, _traversal) {
133001
+ return new chunk_1.Chunk(`throw new Error("INSERT INTO field group, not supported, transpiler");`);
133002
+ }
133003
+ }
133004
+ exports.InsertFieldGroupTranspiler = InsertFieldGroupTranspiler;
133005
+ //# sourceMappingURL=insert_field_group.js.map
133006
+
133007
+ /***/ },
133008
+
132055
133009
  /***/ "./node_modules/@abaplint/transpiler/build/src/statements/insert_internal.js"
132056
133010
  /*!***********************************************************************************!*\
132057
133011
  !*** ./node_modules/@abaplint/transpiler/build/src/statements/insert_internal.js ***!
@@ -132103,6 +133057,8 @@ class InsertInternalTranspiler {
132103
133057
  const source = node.findDirectExpression(abaplint.Expressions.SimpleSource4)
132104
133058
  || node.findDirectExpression(abaplint.Expressions.Source);
132105
133059
  const target = node.findDirectExpression(abaplint.Expressions.Target);
133060
+ // INSERT TABLE itab. and INSERT itab INDEX n. name only the table, its header line goes into it
133061
+ const shortForm = target === undefined && source !== undefined ? traversal.traverse(source).getCode() : undefined;
132106
133062
  const concat = node.concatTokens().toUpperCase();
132107
133063
  if (concat.startsWith("INSERT LINES OF ")) {
132108
133064
  options.push("lines: true");
@@ -132110,6 +133066,9 @@ class InsertInternalTranspiler {
132110
133066
  if (concat.startsWith("INSERT INITIAL LINE ")) {
132111
133067
  options.push("initial: true");
132112
133068
  }
133069
+ else if (shortForm !== undefined) {
133070
+ options.push("data: " + shortForm + ".getHeader()");
133071
+ }
132113
133072
  else {
132114
133073
  options.push("data: " + traversal.traverse(source).getCode());
132115
133074
  }
@@ -132125,7 +133084,7 @@ class InsertInternalTranspiler {
132125
133084
  if (assigning) {
132126
133085
  options.push("assigning: " + traversal.traverse((assigning.findFirstExpression(abaplint.Expressions.FieldSymbol))).getCode());
132127
133086
  }
132128
- options.push("table: " + traversal.traverse(target).getCode());
133087
+ options.push("table: " + (shortForm ?? traversal.traverse(target).getCode()));
132129
133088
  return new chunk_1.Chunk()
132130
133089
  .append(`abap.statements.insertInternal({`, node, traversal)
132131
133090
  .appendString(options.join(", "))
@@ -132221,6 +133180,27 @@ exports.LoadOfProgramTranspiler = LoadOfProgramTranspiler;
132221
133180
 
132222
133181
  /***/ },
132223
133182
 
133183
+ /***/ "./node_modules/@abaplint/transpiler/build/src/statements/load_report.js"
133184
+ /*!*******************************************************************************!*\
133185
+ !*** ./node_modules/@abaplint/transpiler/build/src/statements/load_report.js ***!
133186
+ \*******************************************************************************/
133187
+ (__unused_webpack_module, exports, __webpack_require__) {
133188
+
133189
+ "use strict";
133190
+
133191
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
133192
+ exports.LoadReportTranspiler = void 0;
133193
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
133194
+ class LoadReportTranspiler {
133195
+ transpile(_node, _traversal) {
133196
+ return new chunk_1.Chunk(`throw new Error("LOAD REPORT, not supported, transpiler");`);
133197
+ }
133198
+ }
133199
+ exports.LoadReportTranspiler = LoadReportTranspiler;
133200
+ //# sourceMappingURL=load_report.js.map
133201
+
133202
+ /***/ },
133203
+
132224
133204
  /***/ "./node_modules/@abaplint/transpiler/build/src/statements/log_point.js"
132225
133205
  /*!*****************************************************************************!*\
132226
133206
  !*** ./node_modules/@abaplint/transpiler/build/src/statements/log_point.js ***!
@@ -132500,6 +133480,27 @@ exports.MacroCallTranspiler = MacroCallTranspiler;
132500
133480
 
132501
133481
  /***/ },
132502
133482
 
133483
+ /***/ "./node_modules/@abaplint/transpiler/build/src/statements/merge_database.js"
133484
+ /*!**********************************************************************************!*\
133485
+ !*** ./node_modules/@abaplint/transpiler/build/src/statements/merge_database.js ***!
133486
+ \**********************************************************************************/
133487
+ (__unused_webpack_module, exports, __webpack_require__) {
133488
+
133489
+ "use strict";
133490
+
133491
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
133492
+ exports.MergeDatabaseTranspiler = void 0;
133493
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
133494
+ class MergeDatabaseTranspiler {
133495
+ transpile(_node, _traversal) {
133496
+ return new chunk_1.Chunk(`throw new Error("MERGE, not supported, transpiler");`);
133497
+ }
133498
+ }
133499
+ exports.MergeDatabaseTranspiler = MergeDatabaseTranspiler;
133500
+ //# sourceMappingURL=merge_database.js.map
133501
+
133502
+ /***/ },
133503
+
132503
133504
  /***/ "./node_modules/@abaplint/transpiler/build/src/statements/message.js"
132504
133505
  /*!***************************************************************************!*\
132505
133506
  !*** ./node_modules/@abaplint/transpiler/build/src/statements/message.js ***!
@@ -132973,6 +133974,17 @@ class ModifyDatabaseTranspiler {
132973
133974
  if (dbtab === undefined) {
132974
133975
  throw new Error("internal error, ModifyDatabaseTranspiler");
132975
133976
  }
133977
+ // "MODIFY itab FROM wa" is parsed as a database MODIFY, but when itab is an internal table
133978
+ // it is the short form of the internal table MODIFY: in a LOOP it changes the current line
133979
+ const name = dbtab.findDirectExpression(abaplint.Expressions.Dynamic) ? undefined : dbtab.getFirstToken();
133980
+ const variable = name ? traversal.findCurrentScopeByToken(name)?.findVariable(name.getStr()) : undefined;
133981
+ const from = node.findExpressionAfterToken("FROM");
133982
+ if (name && variable && variable.getType() instanceof abaplint.BasicTypes.TableType
133983
+ && from && node.findExpressionAfterToken("TABLE") === undefined) {
133984
+ const target = traversal.prefixAndName(name, variable.getFilename());
133985
+ const source = traversal.traverse(from).getCode();
133986
+ return new chunk_1.Chunk(`abap.statements.modifyInternal(${target}, {from: ${source}, ...${ModifyDatabaseTranspiler.currentLine(target)}});`);
133987
+ }
132976
133988
  const table = new expressions_1.DatabaseTableTranspiler(false).transpile(dbtab, traversal);
132977
133989
  const options = [];
132978
133990
  const tab = node.findExpressionAfterToken("TABLE");
@@ -132980,13 +133992,16 @@ class ModifyDatabaseTranspiler {
132980
133992
  const ttab = traversal.traverse(tab);
132981
133993
  options.push(`"table": ` + ttab.getCode());
132982
133994
  }
132983
- const from = node.findExpressionAfterToken("FROM");
132984
133995
  if (from && from.get() instanceof abaplint.Expressions.SQLSource) {
132985
133996
  const tvalues = traversal.traverseWithTableContext(dbtab.concatTokens(), from);
132986
133997
  options.push(`"values": ` + tvalues.getCode());
132987
133998
  }
132988
133999
  return new chunk_1.Chunk(`await abap.statements.modifyDatabase(${table.getCode()}, {${options.join(", ")}});`);
132989
134000
  }
134001
+ /** the index of the current line, when the table is looped at, else nothing */
134002
+ static currentLine(target) {
134003
+ return `(${target}.loops?.size === 1 ? {index: new abap.types.Integer().set(${target}.getCurrentLoopIndex() + 1)} : {})`;
134004
+ }
132990
134005
  }
132991
134006
  exports.ModifyDatabaseTranspiler = ModifyDatabaseTranspiler;
132992
134007
  //# sourceMappingURL=modify_database.js.map
@@ -133176,6 +134191,7 @@ exports.ModifyInternalTranspiler = void 0;
133176
134191
  const abaplint = __importStar(__webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js"));
133177
134192
  const expressions_1 = __webpack_require__(/*! ../expressions */ "./node_modules/@abaplint/transpiler/build/src/expressions/index.js");
133178
134193
  const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
134194
+ const modify_database_1 = __webpack_require__(/*! ./modify_database */ "./node_modules/@abaplint/transpiler/build/src/statements/modify_database.js");
133179
134195
  class ModifyInternalTranspiler {
133180
134196
  transpile(node, traversal) {
133181
134197
  const target = traversal.traverse(node.findDirectExpression(abaplint.Expressions.Target)).getCode();
@@ -133203,6 +134219,13 @@ class ModifyInternalTranspiler {
133203
134219
  }
133204
134220
  extra.push("transporting: [" + list.join(",") + "]");
133205
134221
  }
134222
+ // without INDEX, WHERE or TABLE, in a LOOP: the current line, from the header line when FROM is left out
134223
+ if (index === undefined && whereNode === undefined && node.findDirectTokenByText("TABLE") === undefined) {
134224
+ if (from === undefined) {
134225
+ extra.push(`from: ${target}.getHeader?.()`);
134226
+ }
134227
+ extra.push("..." + modify_database_1.ModifyDatabaseTranspiler.currentLine(target));
134228
+ }
133206
134229
  let concat = "";
133207
134230
  if (extra.length > 0) {
133208
134231
  concat = ",{" + extra.join(",") + "}";
@@ -133218,6 +134241,27 @@ exports.ModifyInternalTranspiler = ModifyInternalTranspiler;
133218
134241
 
133219
134242
  /***/ },
133220
134243
 
134244
+ /***/ "./node_modules/@abaplint/transpiler/build/src/statements/modify_line.js"
134245
+ /*!*******************************************************************************!*\
134246
+ !*** ./node_modules/@abaplint/transpiler/build/src/statements/modify_line.js ***!
134247
+ \*******************************************************************************/
134248
+ (__unused_webpack_module, exports, __webpack_require__) {
134249
+
134250
+ "use strict";
134251
+
134252
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
134253
+ exports.ModifyLineTranspiler = void 0;
134254
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
134255
+ class ModifyLineTranspiler {
134256
+ transpile(_node, _traversal) {
134257
+ return new chunk_1.Chunk(`throw new Error("MODIFY LINE, not supported, transpiler");`);
134258
+ }
134259
+ }
134260
+ exports.ModifyLineTranspiler = ModifyLineTranspiler;
134261
+ //# sourceMappingURL=modify_line.js.map
134262
+
134263
+ /***/ },
134264
+
133221
134265
  /***/ "./node_modules/@abaplint/transpiler/build/src/statements/modify_screen.js"
133222
134266
  /*!*********************************************************************************!*\
133223
134267
  !*** ./node_modules/@abaplint/transpiler/build/src/statements/modify_screen.js ***!
@@ -133239,6 +134283,27 @@ exports.ModifyScreenTranspiler = ModifyScreenTranspiler;
133239
134283
 
133240
134284
  /***/ },
133241
134285
 
134286
+ /***/ "./node_modules/@abaplint/transpiler/build/src/statements/module.js"
134287
+ /*!**************************************************************************!*\
134288
+ !*** ./node_modules/@abaplint/transpiler/build/src/statements/module.js ***!
134289
+ \**************************************************************************/
134290
+ (__unused_webpack_module, exports, __webpack_require__) {
134291
+
134292
+ "use strict";
134293
+
134294
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
134295
+ exports.ModuleTranspiler = void 0;
134296
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
134297
+ class ModuleTranspiler {
134298
+ transpile(_node, _traversal) {
134299
+ return new chunk_1.Chunk(`throw new Error("MODULE, not supported, transpiler");`);
134300
+ }
134301
+ }
134302
+ exports.ModuleTranspiler = ModuleTranspiler;
134303
+ //# sourceMappingURL=module.js.map
134304
+
134305
+ /***/ },
134306
+
133242
134307
  /***/ "./node_modules/@abaplint/transpiler/build/src/statements/move.js"
133243
134308
  /*!************************************************************************!*\
133244
134309
  !*** ./node_modules/@abaplint/transpiler/build/src/statements/move.js ***!
@@ -133629,6 +134694,27 @@ exports.NewPageTranspiler = NewPageTranspiler;
133629
134694
 
133630
134695
  /***/ },
133631
134696
 
134697
+ /***/ "./node_modules/@abaplint/transpiler/build/src/statements/nodes.js"
134698
+ /*!*************************************************************************!*\
134699
+ !*** ./node_modules/@abaplint/transpiler/build/src/statements/nodes.js ***!
134700
+ \*************************************************************************/
134701
+ (__unused_webpack_module, exports, __webpack_require__) {
134702
+
134703
+ "use strict";
134704
+
134705
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
134706
+ exports.NodesTranspiler = void 0;
134707
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
134708
+ class NodesTranspiler {
134709
+ transpile(_node, _traversal) {
134710
+ return new chunk_1.Chunk(`throw new Error("NODES, not supported, transpiler");`);
134711
+ }
134712
+ }
134713
+ exports.NodesTranspiler = NodesTranspiler;
134714
+ //# sourceMappingURL=nodes.js.map
134715
+
134716
+ /***/ },
134717
+
133632
134718
  /***/ "./node_modules/@abaplint/transpiler/build/src/statements/open_cursor.js"
133633
134719
  /*!*******************************************************************************!*\
133634
134720
  !*** ./node_modules/@abaplint/transpiler/build/src/statements/open_cursor.js ***!
@@ -133828,6 +134914,27 @@ exports.OverlayTranspiler = OverlayTranspiler;
133828
134914
 
133829
134915
  /***/ },
133830
134916
 
134917
+ /***/ "./node_modules/@abaplint/transpiler/build/src/statements/pack.js"
134918
+ /*!************************************************************************!*\
134919
+ !*** ./node_modules/@abaplint/transpiler/build/src/statements/pack.js ***!
134920
+ \************************************************************************/
134921
+ (__unused_webpack_module, exports, __webpack_require__) {
134922
+
134923
+ "use strict";
134924
+
134925
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
134926
+ exports.PackTranspiler = void 0;
134927
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
134928
+ class PackTranspiler {
134929
+ transpile(_node, _traversal) {
134930
+ return new chunk_1.Chunk(`throw new Error("PACK, not supported, transpiler");`);
134931
+ }
134932
+ }
134933
+ exports.PackTranspiler = PackTranspiler;
134934
+ //# sourceMappingURL=pack.js.map
134935
+
134936
+ /***/ },
134937
+
133831
134938
  /***/ "./node_modules/@abaplint/transpiler/build/src/statements/parameter.js"
133832
134939
  /*!*****************************************************************************!*\
133833
134940
  !*** ./node_modules/@abaplint/transpiler/build/src/statements/parameter.js ***!
@@ -133964,21 +135071,33 @@ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/tr
133964
135071
  class PerformTranspiler {
133965
135072
  transpile(node, traversal) {
133966
135073
  const formName = node.findDirectExpression(abaplint.Expressions.FormName);
133967
- if (formName === undefined) {
135074
+ // PERFORM (name) IN PROGRAM ...: the name of the subroutine is the content of the field, as it is, so it must be
135075
+ // in upper case to be found
135076
+ const dynamicName = formName === undefined ? node.findDirectExpression(abaplint.Expressions.Dynamic) : undefined;
135077
+ if (formName === undefined && dynamicName === undefined) {
133968
135078
  return new chunk_1.Chunk(`throw new Error("PerformTranspiler FormName not found");`);
133969
135079
  }
133970
- else if (node.concatTokens().toUpperCase().includes(" IN PROGRAM ")) {
135080
+ else if (formName === undefined || node.concatTokens().toUpperCase().includes(" IN PROGRAM ")) {
135081
+ // the end of the key in abap.Forms, after an open literal 'PROG-<program>-
135082
+ const formKey = formName === undefined
135083
+ ? "' + " + traversal.traverse(dynamicName.getChildren()[1]).getCode() + ".get().toString().trimEnd()"
135084
+ : formName.concatTokens().toUpperCase() + "'";
133971
135085
  const expression = node.findExpressionAfterToken("PROGRAM");
133972
135086
  let ref = "";
133973
135087
  let program = "";
133974
135088
  if (expression?.get() instanceof abaplint.Expressions.Dynamic) {
133975
- const name = expression.getChildren()[1].concatTokens() + ".get().trimEnd()";
133976
- ref = `abap.Forms['PROG-' + ${name} + '-${formName.concatTokens().toUpperCase()}']`;
135089
+ // any field, eg. a structure component; sy-repid is the name of the current program
135090
+ const field = expression.getChildren()[1];
135091
+ const name = field.concatTokens().toUpperCase() === "SY-REPID"
135092
+ ? `'${traversal.getCurrentObject().getName().toUpperCase()}'`
135093
+ : traversal.traverse(field).getCode() + ".get().trimEnd()";
135094
+ ref = `abap.Forms['PROG-' + ${name} + '-${formKey}]`;
133977
135095
  program = `'PROG-' + ${name} + '-'`;
133978
135096
  }
133979
135097
  else {
133980
- const progName = expression?.concatTokens().toUpperCase();
133981
- ref = `abap.Forms['PROG-${progName}-${formName.concatTokens().toUpperCase()}']`;
135098
+ // IN PROGRAM without a name, or no IN PROGRAM: the current program
135099
+ const progName = expression?.concatTokens().toUpperCase() ?? traversal.getCurrentObject().getName().toUpperCase();
135100
+ ref = `abap.Forms['PROG-${progName}-${formKey}]`;
133982
135101
  program = `'PROG-${progName}-'`;
133983
135102
  }
133984
135103
  const params = [];
@@ -134052,6 +135171,49 @@ exports.PerformTranspiler = PerformTranspiler;
134052
135171
 
134053
135172
  /***/ },
134054
135173
 
135174
+ /***/ "./node_modules/@abaplint/transpiler/build/src/statements/position.js"
135175
+ /*!****************************************************************************!*\
135176
+ !*** ./node_modules/@abaplint/transpiler/build/src/statements/position.js ***!
135177
+ \****************************************************************************/
135178
+ (__unused_webpack_module, exports, __webpack_require__) {
135179
+
135180
+ "use strict";
135181
+
135182
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
135183
+ exports.PositionTranspiler = void 0;
135184
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
135185
+ class PositionTranspiler {
135186
+ transpile(_node, _traversal) {
135187
+ return new chunk_1.Chunk(`throw new Error("POSITION, not supported, transpiler");`);
135188
+ }
135189
+ }
135190
+ exports.PositionTranspiler = PositionTranspiler;
135191
+ //# sourceMappingURL=position.js.map
135192
+
135193
+ /***/ },
135194
+
135195
+ /***/ "./node_modules/@abaplint/transpiler/build/src/statements/print_control.js"
135196
+ /*!*********************************************************************************!*\
135197
+ !*** ./node_modules/@abaplint/transpiler/build/src/statements/print_control.js ***!
135198
+ \*********************************************************************************/
135199
+ (__unused_webpack_module, exports, __webpack_require__) {
135200
+
135201
+ "use strict";
135202
+
135203
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
135204
+ exports.PrintControlTranspiler = void 0;
135205
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
135206
+ class PrintControlTranspiler {
135207
+ transpile(_node, _traversal) {
135208
+ // PRINT-CONTROL sets print formats for the spool, it does not change the text of the list
135209
+ return new chunk_1.Chunk("");
135210
+ }
135211
+ }
135212
+ exports.PrintControlTranspiler = PrintControlTranspiler;
135213
+ //# sourceMappingURL=print_control.js.map
135214
+
135215
+ /***/ },
135216
+
134055
135217
  /***/ "./node_modules/@abaplint/transpiler/build/src/statements/program.js"
134056
135218
  /*!***************************************************************************!*\
134057
135219
  !*** ./node_modules/@abaplint/transpiler/build/src/statements/program.js ***!
@@ -134074,6 +135236,27 @@ exports.ProgramTranspiler = ProgramTranspiler;
134074
135236
 
134075
135237
  /***/ },
134076
135238
 
135239
+ /***/ "./node_modules/@abaplint/transpiler/build/src/statements/put.js"
135240
+ /*!***********************************************************************!*\
135241
+ !*** ./node_modules/@abaplint/transpiler/build/src/statements/put.js ***!
135242
+ \***********************************************************************/
135243
+ (__unused_webpack_module, exports, __webpack_require__) {
135244
+
135245
+ "use strict";
135246
+
135247
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
135248
+ exports.PutTranspiler = void 0;
135249
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
135250
+ class PutTranspiler {
135251
+ transpile(_node, _traversal) {
135252
+ return new chunk_1.Chunk(`throw new Error("PUT, not supported, transpiler");`);
135253
+ }
135254
+ }
135255
+ exports.PutTranspiler = PutTranspiler;
135256
+ //# sourceMappingURL=put.js.map
135257
+
135258
+ /***/ },
135259
+
134077
135260
  /***/ "./node_modules/@abaplint/transpiler/build/src/statements/raise.js"
134078
135261
  /*!*************************************************************************!*\
134079
135262
  !*** ./node_modules/@abaplint/transpiler/build/src/statements/raise.js ***!
@@ -134850,6 +136033,48 @@ exports.RefreshTranspiler = RefreshTranspiler;
134850
136033
 
134851
136034
  /***/ },
134852
136035
 
136036
+ /***/ "./node_modules/@abaplint/transpiler/build/src/statements/refresh_control.js"
136037
+ /*!***********************************************************************************!*\
136038
+ !*** ./node_modules/@abaplint/transpiler/build/src/statements/refresh_control.js ***!
136039
+ \***********************************************************************************/
136040
+ (__unused_webpack_module, exports, __webpack_require__) {
136041
+
136042
+ "use strict";
136043
+
136044
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
136045
+ exports.RefreshControlTranspiler = void 0;
136046
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
136047
+ class RefreshControlTranspiler {
136048
+ transpile(_node, _traversal) {
136049
+ return new chunk_1.Chunk(`throw new Error("REFRESH CONTROL, not supported, transpiler");`);
136050
+ }
136051
+ }
136052
+ exports.RefreshControlTranspiler = RefreshControlTranspiler;
136053
+ //# sourceMappingURL=refresh_control.js.map
136054
+
136055
+ /***/ },
136056
+
136057
+ /***/ "./node_modules/@abaplint/transpiler/build/src/statements/reject.js"
136058
+ /*!**************************************************************************!*\
136059
+ !*** ./node_modules/@abaplint/transpiler/build/src/statements/reject.js ***!
136060
+ \**************************************************************************/
136061
+ (__unused_webpack_module, exports, __webpack_require__) {
136062
+
136063
+ "use strict";
136064
+
136065
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
136066
+ exports.RejectTranspiler = void 0;
136067
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
136068
+ class RejectTranspiler {
136069
+ transpile(_node, _traversal) {
136070
+ return new chunk_1.Chunk(`throw new Error("REJECT, not supported, transpiler");`);
136071
+ }
136072
+ }
136073
+ exports.RejectTranspiler = RejectTranspiler;
136074
+ //# sourceMappingURL=reject.js.map
136075
+
136076
+ /***/ },
136077
+
134853
136078
  /***/ "./node_modules/@abaplint/transpiler/build/src/statements/replace.js"
134854
136079
  /*!***************************************************************************!*\
134855
136080
  !*** ./node_modules/@abaplint/transpiler/build/src/statements/replace.js ***!
@@ -135259,6 +136484,27 @@ exports.ScanTranspiler = ScanTranspiler;
135259
136484
 
135260
136485
  /***/ },
135261
136486
 
136487
+ /***/ "./node_modules/@abaplint/transpiler/build/src/statements/scroll_list.js"
136488
+ /*!*******************************************************************************!*\
136489
+ !*** ./node_modules/@abaplint/transpiler/build/src/statements/scroll_list.js ***!
136490
+ \*******************************************************************************/
136491
+ (__unused_webpack_module, exports, __webpack_require__) {
136492
+
136493
+ "use strict";
136494
+
136495
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
136496
+ exports.ScrollListTranspiler = void 0;
136497
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
136498
+ class ScrollListTranspiler {
136499
+ transpile(_node, _traversal) {
136500
+ return new chunk_1.Chunk(`throw new Error("SCROLL LIST, not supported, transpiler");`);
136501
+ }
136502
+ }
136503
+ exports.ScrollListTranspiler = ScrollListTranspiler;
136504
+ //# sourceMappingURL=scroll_list.js.map
136505
+
136506
+ /***/ },
136507
+
135262
136508
  /***/ "./node_modules/@abaplint/transpiler/build/src/statements/search.js"
135263
136509
  /*!**************************************************************************!*\
135264
136510
  !*** ./node_modules/@abaplint/transpiler/build/src/statements/search.js ***!
@@ -135855,6 +137101,27 @@ exports.SetBlankTranspiler = SetBlankTranspiler;
135855
137101
 
135856
137102
  /***/ },
135857
137103
 
137104
+ /***/ "./node_modules/@abaplint/transpiler/build/src/statements/set_country.js"
137105
+ /*!*******************************************************************************!*\
137106
+ !*** ./node_modules/@abaplint/transpiler/build/src/statements/set_country.js ***!
137107
+ \*******************************************************************************/
137108
+ (__unused_webpack_module, exports, __webpack_require__) {
137109
+
137110
+ "use strict";
137111
+
137112
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
137113
+ exports.SetCountryTranspiler = void 0;
137114
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
137115
+ class SetCountryTranspiler {
137116
+ transpile(_node, _traversal) {
137117
+ return new chunk_1.Chunk(`throw new Error("SET COUNTRY, not supported, transpiler");`);
137118
+ }
137119
+ }
137120
+ exports.SetCountryTranspiler = SetCountryTranspiler;
137121
+ //# sourceMappingURL=set_country.js.map
137122
+
137123
+ /***/ },
137124
+
135858
137125
  /***/ "./node_modules/@abaplint/transpiler/build/src/statements/set_cursor.js"
135859
137126
  /*!******************************************************************************!*\
135860
137127
  !*** ./node_modules/@abaplint/transpiler/build/src/statements/set_cursor.js ***!
@@ -135918,7 +137185,8 @@ exports.SetExtendedCheckTranspiler = void 0;
135918
137185
  const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
135919
137186
  class SetExtendedCheckTranspiler {
135920
137187
  transpile(_node, _traversal) {
135921
- return new chunk_1.Chunk(`throw new Error("SET EXTENDED CHECK, not supported, transpiler");`);
137188
+ // switches the extended program check on or off for the code that follows, nothing happens when it runs
137189
+ return new chunk_1.Chunk("");
135922
137190
  }
135923
137191
  }
135924
137192
  exports.SetExtendedCheckTranspiler = SetExtendedCheckTranspiler;
@@ -136055,6 +137323,27 @@ exports.SetLanguageTranspiler = SetLanguageTranspiler;
136055
137323
 
136056
137324
  /***/ },
136057
137325
 
137326
+ /***/ "./node_modules/@abaplint/transpiler/build/src/statements/set_left.js"
137327
+ /*!****************************************************************************!*\
137328
+ !*** ./node_modules/@abaplint/transpiler/build/src/statements/set_left.js ***!
137329
+ \****************************************************************************/
137330
+ (__unused_webpack_module, exports, __webpack_require__) {
137331
+
137332
+ "use strict";
137333
+
137334
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
137335
+ exports.SetLeftTranspiler = void 0;
137336
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
137337
+ class SetLeftTranspiler {
137338
+ transpile(_node, _traversal) {
137339
+ return new chunk_1.Chunk(`throw new Error("SET LEFT SCROLL-BOUNDARY, not supported, transpiler");`);
137340
+ }
137341
+ }
137342
+ exports.SetLeftTranspiler = SetLeftTranspiler;
137343
+ //# sourceMappingURL=set_left.js.map
137344
+
137345
+ /***/ },
137346
+
136058
137347
  /***/ "./node_modules/@abaplint/transpiler/build/src/statements/set_locale.js"
136059
137348
  /*!******************************************************************************!*\
136060
137349
  !*** ./node_modules/@abaplint/transpiler/build/src/statements/set_locale.js ***!
@@ -136097,59 +137386,143 @@ var __importStar = (this && this.__importStar) || (function () {
136097
137386
  };
136098
137387
  })();
136099
137388
  Object.defineProperty(exports, "__esModule", ({ value: true }));
136100
- exports.SetLocaleTranspiler = void 0;
137389
+ exports.SetLocaleTranspiler = void 0;
137390
+ const abaplint = __importStar(__webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js"));
137391
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
137392
+ class SetLocaleTranspiler {
137393
+ transpile(node, traversal) {
137394
+ const s = traversal.traverse(node.findFirstExpression(abaplint.Expressions.Source));
137395
+ return new chunk_1.Chunk(`abap.statements.setLocale(${s.getCode()});`);
137396
+ }
137397
+ }
137398
+ exports.SetLocaleTranspiler = SetLocaleTranspiler;
137399
+ //# sourceMappingURL=set_locale.js.map
137400
+
137401
+ /***/ },
137402
+
137403
+ /***/ "./node_modules/@abaplint/transpiler/build/src/statements/set_margin.js"
137404
+ /*!******************************************************************************!*\
137405
+ !*** ./node_modules/@abaplint/transpiler/build/src/statements/set_margin.js ***!
137406
+ \******************************************************************************/
137407
+ (__unused_webpack_module, exports, __webpack_require__) {
137408
+
137409
+ "use strict";
137410
+
137411
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
137412
+ exports.SetMarginTranspiler = void 0;
137413
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
137414
+ class SetMarginTranspiler {
137415
+ transpile(_node, _traversal) {
137416
+ return new chunk_1.Chunk(`throw new Error("SET MARGIN, not supported, transpiler");`);
137417
+ }
137418
+ }
137419
+ exports.SetMarginTranspiler = SetMarginTranspiler;
137420
+ //# sourceMappingURL=set_margin.js.map
137421
+
137422
+ /***/ },
137423
+
137424
+ /***/ "./node_modules/@abaplint/transpiler/build/src/statements/set_parameter.js"
137425
+ /*!*********************************************************************************!*\
137426
+ !*** ./node_modules/@abaplint/transpiler/build/src/statements/set_parameter.js ***!
137427
+ \*********************************************************************************/
137428
+ (__unused_webpack_module, exports, __webpack_require__) {
137429
+
137430
+ "use strict";
137431
+
137432
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
137433
+ if (k2 === undefined) k2 = k;
137434
+ var desc = Object.getOwnPropertyDescriptor(m, k);
137435
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
137436
+ desc = { enumerable: true, get: function() { return m[k]; } };
137437
+ }
137438
+ Object.defineProperty(o, k2, desc);
137439
+ }) : (function(o, m, k, k2) {
137440
+ if (k2 === undefined) k2 = k;
137441
+ o[k2] = m[k];
137442
+ }));
137443
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
137444
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
137445
+ }) : function(o, v) {
137446
+ o["default"] = v;
137447
+ });
137448
+ var __importStar = (this && this.__importStar) || (function () {
137449
+ var ownKeys = function(o) {
137450
+ ownKeys = Object.getOwnPropertyNames || function (o) {
137451
+ var ar = [];
137452
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
137453
+ return ar;
137454
+ };
137455
+ return ownKeys(o);
137456
+ };
137457
+ return function (mod) {
137458
+ if (mod && mod.__esModule) return mod;
137459
+ var result = {};
137460
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
137461
+ __setModuleDefault(result, mod);
137462
+ return result;
137463
+ };
137464
+ })();
137465
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
137466
+ exports.SetParameterTranspiler = void 0;
136101
137467
  const abaplint = __importStar(__webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js"));
136102
137468
  const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
136103
- class SetLocaleTranspiler {
137469
+ class SetParameterTranspiler {
136104
137470
  transpile(node, traversal) {
136105
- const s = traversal.traverse(node.findFirstExpression(abaplint.Expressions.Source));
136106
- return new chunk_1.Chunk(`abap.statements.setLocale(${s.getCode()});`);
137471
+ const sources = node.findDirectExpressions(abaplint.Expressions.Source);
137472
+ if (sources.length !== 2) {
137473
+ throw new Error("SetParameterTranspiler, unexpected node");
137474
+ }
137475
+ return new chunk_1.Chunk(`abap.statements.setParameter(`)
137476
+ .appendChunk(traversal.traverse(sources[0]))
137477
+ .appendString(",")
137478
+ .appendChunk(traversal.traverse(sources[1]))
137479
+ .appendString(");");
136107
137480
  }
136108
137481
  }
136109
- exports.SetLocaleTranspiler = SetLocaleTranspiler;
136110
- //# sourceMappingURL=set_locale.js.map
137482
+ exports.SetParameterTranspiler = SetParameterTranspiler;
137483
+ //# sourceMappingURL=set_parameter.js.map
136111
137484
 
136112
137485
  /***/ },
136113
137486
 
136114
- /***/ "./node_modules/@abaplint/transpiler/build/src/statements/set_parameter.js"
137487
+ /***/ "./node_modules/@abaplint/transpiler/build/src/statements/set_pf_status.js"
136115
137488
  /*!*********************************************************************************!*\
136116
- !*** ./node_modules/@abaplint/transpiler/build/src/statements/set_parameter.js ***!
137489
+ !*** ./node_modules/@abaplint/transpiler/build/src/statements/set_pf_status.js ***!
136117
137490
  \*********************************************************************************/
136118
137491
  (__unused_webpack_module, exports, __webpack_require__) {
136119
137492
 
136120
137493
  "use strict";
136121
137494
 
136122
137495
  Object.defineProperty(exports, "__esModule", ({ value: true }));
136123
- exports.SetParameterTranspiler = void 0;
137496
+ exports.SetPFStatusTranspiler = void 0;
136124
137497
  const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
136125
- class SetParameterTranspiler {
137498
+ class SetPFStatusTranspiler {
136126
137499
  transpile(_node, _traversal) {
136127
- return new chunk_1.Chunk(`throw new Error("SetParameter, transpiler todo");`);
137500
+ return new chunk_1.Chunk(`throw new Error("SetPFStatus, transpiler todo");`);
136128
137501
  }
136129
137502
  }
136130
- exports.SetParameterTranspiler = SetParameterTranspiler;
136131
- //# sourceMappingURL=set_parameter.js.map
137503
+ exports.SetPFStatusTranspiler = SetPFStatusTranspiler;
137504
+ //# sourceMappingURL=set_pf_status.js.map
136132
137505
 
136133
137506
  /***/ },
136134
137507
 
136135
- /***/ "./node_modules/@abaplint/transpiler/build/src/statements/set_pf_status.js"
136136
- /*!*********************************************************************************!*\
136137
- !*** ./node_modules/@abaplint/transpiler/build/src/statements/set_pf_status.js ***!
136138
- \*********************************************************************************/
137508
+ /***/ "./node_modules/@abaplint/transpiler/build/src/statements/set_property.js"
137509
+ /*!********************************************************************************!*\
137510
+ !*** ./node_modules/@abaplint/transpiler/build/src/statements/set_property.js ***!
137511
+ \********************************************************************************/
136139
137512
  (__unused_webpack_module, exports, __webpack_require__) {
136140
137513
 
136141
137514
  "use strict";
136142
137515
 
136143
137516
  Object.defineProperty(exports, "__esModule", ({ value: true }));
136144
- exports.SetPFStatusTranspiler = void 0;
137517
+ exports.SetPropertyTranspiler = void 0;
136145
137518
  const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
136146
- class SetPFStatusTranspiler {
137519
+ class SetPropertyTranspiler {
136147
137520
  transpile(_node, _traversal) {
136148
- return new chunk_1.Chunk(`throw new Error("SetPFStatus, transpiler todo");`);
137521
+ return new chunk_1.Chunk(`throw new Error("SET PROPERTY, not supported, transpiler");`);
136149
137522
  }
136150
137523
  }
136151
- exports.SetPFStatusTranspiler = SetPFStatusTranspiler;
136152
- //# sourceMappingURL=set_pf_status.js.map
137524
+ exports.SetPropertyTranspiler = SetPropertyTranspiler;
137525
+ //# sourceMappingURL=set_property.js.map
136153
137526
 
136154
137527
  /***/ },
136155
137528
 
@@ -136195,6 +137568,27 @@ exports.SetTitlebarTranspiler = SetTitlebarTranspiler;
136195
137568
 
136196
137569
  /***/ },
136197
137570
 
137571
+ /***/ "./node_modules/@abaplint/transpiler/build/src/statements/set_user_command.js"
137572
+ /*!************************************************************************************!*\
137573
+ !*** ./node_modules/@abaplint/transpiler/build/src/statements/set_user_command.js ***!
137574
+ \************************************************************************************/
137575
+ (__unused_webpack_module, exports, __webpack_require__) {
137576
+
137577
+ "use strict";
137578
+
137579
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
137580
+ exports.SetUserCommandTranspiler = void 0;
137581
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
137582
+ class SetUserCommandTranspiler {
137583
+ transpile(_node, _traversal) {
137584
+ return new chunk_1.Chunk(`throw new Error("SET USER-COMMAND, not supported, transpiler");`);
137585
+ }
137586
+ }
137587
+ exports.SetUserCommandTranspiler = SetUserCommandTranspiler;
137588
+ //# sourceMappingURL=set_user_command.js.map
137589
+
137590
+ /***/ },
137591
+
136198
137592
  /***/ "./node_modules/@abaplint/transpiler/build/src/statements/shift.js"
136199
137593
  /*!*************************************************************************!*\
136200
137594
  !*** ./node_modules/@abaplint/transpiler/build/src/statements/shift.js ***!
@@ -136702,6 +138096,27 @@ exports.SubtractTranspiler = SubtractTranspiler;
136702
138096
 
136703
138097
  /***/ },
136704
138098
 
138099
+ /***/ "./node_modules/@abaplint/transpiler/build/src/statements/subtract_corresponding.js"
138100
+ /*!******************************************************************************************!*\
138101
+ !*** ./node_modules/@abaplint/transpiler/build/src/statements/subtract_corresponding.js ***!
138102
+ \******************************************************************************************/
138103
+ (__unused_webpack_module, exports, __webpack_require__) {
138104
+
138105
+ "use strict";
138106
+
138107
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
138108
+ exports.SubtractCorrespondingTranspiler = void 0;
138109
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
138110
+ class SubtractCorrespondingTranspiler {
138111
+ transpile(_node, _traversal) {
138112
+ return new chunk_1.Chunk(`throw new Error("SUBTRACT-CORRESPONDING, not supported, transpiler");`);
138113
+ }
138114
+ }
138115
+ exports.SubtractCorrespondingTranspiler = SubtractCorrespondingTranspiler;
138116
+ //# sourceMappingURL=subtract_corresponding.js.map
138117
+
138118
+ /***/ },
138119
+
136705
138120
  /***/ "./node_modules/@abaplint/transpiler/build/src/statements/sum.js"
136706
138121
  /*!***********************************************************************!*\
136707
138122
  !*** ./node_modules/@abaplint/transpiler/build/src/statements/sum.js ***!
@@ -136723,6 +138138,70 @@ exports.SumTranspiler = SumTranspiler;
136723
138138
 
136724
138139
  /***/ },
136725
138140
 
138141
+ /***/ "./node_modules/@abaplint/transpiler/build/src/statements/summary.js"
138142
+ /*!***************************************************************************!*\
138143
+ !*** ./node_modules/@abaplint/transpiler/build/src/statements/summary.js ***!
138144
+ \***************************************************************************/
138145
+ (__unused_webpack_module, exports, __webpack_require__) {
138146
+
138147
+ "use strict";
138148
+
138149
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
138150
+ exports.SummaryTranspiler = void 0;
138151
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
138152
+ class SummaryTranspiler {
138153
+ transpile(_node, _traversal) {
138154
+ // obsolete short form of a list format setting (SUMMARY), it does not change the text of the list
138155
+ return new chunk_1.Chunk("");
138156
+ }
138157
+ }
138158
+ exports.SummaryTranspiler = SummaryTranspiler;
138159
+ //# sourceMappingURL=summary.js.map
138160
+
138161
+ /***/ },
138162
+
138163
+ /***/ "./node_modules/@abaplint/transpiler/build/src/statements/supply.js"
138164
+ /*!**************************************************************************!*\
138165
+ !*** ./node_modules/@abaplint/transpiler/build/src/statements/supply.js ***!
138166
+ \**************************************************************************/
138167
+ (__unused_webpack_module, exports, __webpack_require__) {
138168
+
138169
+ "use strict";
138170
+
138171
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
138172
+ exports.SupplyTranspiler = void 0;
138173
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
138174
+ class SupplyTranspiler {
138175
+ transpile(_node, _traversal) {
138176
+ return new chunk_1.Chunk(`throw new Error("SUPPLY, not supported, transpiler");`);
138177
+ }
138178
+ }
138179
+ exports.SupplyTranspiler = SupplyTranspiler;
138180
+ //# sourceMappingURL=supply.js.map
138181
+
138182
+ /***/ },
138183
+
138184
+ /***/ "./node_modules/@abaplint/transpiler/build/src/statements/suppress_dialog.js"
138185
+ /*!***********************************************************************************!*\
138186
+ !*** ./node_modules/@abaplint/transpiler/build/src/statements/suppress_dialog.js ***!
138187
+ \***********************************************************************************/
138188
+ (__unused_webpack_module, exports, __webpack_require__) {
138189
+
138190
+ "use strict";
138191
+
138192
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
138193
+ exports.SuppressDialogTranspiler = void 0;
138194
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
138195
+ class SuppressDialogTranspiler {
138196
+ transpile(_node, _traversal) {
138197
+ return new chunk_1.Chunk(`throw new Error("SUPPRESS DIALOG, not supported, transpiler");`);
138198
+ }
138199
+ }
138200
+ exports.SuppressDialogTranspiler = SuppressDialogTranspiler;
138201
+ //# sourceMappingURL=suppress_dialog.js.map
138202
+
138203
+ /***/ },
138204
+
136726
138205
  /***/ "./node_modules/@abaplint/transpiler/build/src/statements/syntax_check.js"
136727
138206
  /*!********************************************************************************!*\
136728
138207
  !*** ./node_modules/@abaplint/transpiler/build/src/statements/syntax_check.js ***!
@@ -137248,8 +138727,13 @@ class UpdateDatabaseTranspiler {
137248
138727
  const sets = node.findAllExpressions(abaplint.Expressions.SQLFieldAndValue);
137249
138728
  if (sets.length > 0) {
137250
138729
  const s = [];
138730
+ let columns = undefined;
138731
+ const type = traversal.findTable(dbtab.concatTokens().toUpperCase())?.parseType(traversal.reg);
138732
+ if (type instanceof abaplint.BasicTypes.StructureType) {
138733
+ columns = new Set(type.getComponents().map(c => c.name.toLowerCase()));
138734
+ }
137251
138735
  for (const set of sets) {
137252
- s.push(new expressions_1.SQLFieldAndValueTranspiler().transpile(set, traversal).getCode());
138736
+ s.push(new expressions_1.SQLFieldAndValueTranspiler(columns, node.getFirstToken().getStart()).transpile(set, traversal).getCode());
137253
138737
  }
137254
138738
  options.push(`"set": [${s.join(",")}]`);
137255
138739
  }
@@ -137333,170 +138817,212 @@ var __importStar = (this && this.__importStar) || (function () {
137333
138817
  };
137334
138818
  })();
137335
138819
  Object.defineProperty(exports, "__esModule", ({ value: true }));
137336
- exports.WaitTranspiler = void 0;
138820
+ exports.WaitTranspiler = void 0;
138821
+ const abaplint = __importStar(__webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js"));
138822
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
138823
+ class WaitTranspiler {
138824
+ transpile(node, traversal) {
138825
+ const options = [];
138826
+ const seconds = node.findExpressionAfterToken("TO");
138827
+ if (seconds) {
138828
+ options.push("seconds: " + traversal.traverse(seconds).getCode());
138829
+ }
138830
+ const concat = node.concatTokens().toUpperCase();
138831
+ const cond = node.findFirstExpression(abaplint.Expressions.Cond);
138832
+ if (cond) {
138833
+ options.push("cond: () => {return " + traversal.traverse(cond).getCode() + ";}");
138834
+ }
138835
+ if (concat.startsWith("WAIT FOR ")) {
138836
+ const lookup = traversal.lookupClassOrInterface("KERNEL_PUSH_CHANNELS", node.getFirstToken());
138837
+ const call = `await ${lookup}.wait({${options.join(",")}});`;
138838
+ return new chunk_1.Chunk().append(`if (${lookup} === undefined) throw new Error("Wait, kernel class missing");\n${call}`, node, traversal);
138839
+ }
138840
+ else {
138841
+ return new chunk_1.Chunk().append("await abap.statements.wait({" + options.join(",") + "});", node, traversal);
138842
+ }
138843
+ }
138844
+ }
138845
+ exports.WaitTranspiler = WaitTranspiler;
138846
+ //# sourceMappingURL=wait.js.map
138847
+
138848
+ /***/ },
138849
+
138850
+ /***/ "./node_modules/@abaplint/transpiler/build/src/statements/when.js"
138851
+ /*!************************************************************************!*\
138852
+ !*** ./node_modules/@abaplint/transpiler/build/src/statements/when.js ***!
138853
+ \************************************************************************/
138854
+ (__unused_webpack_module, exports, __webpack_require__) {
138855
+
138856
+ "use strict";
138857
+
138858
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
138859
+ if (k2 === undefined) k2 = k;
138860
+ var desc = Object.getOwnPropertyDescriptor(m, k);
138861
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
138862
+ desc = { enumerable: true, get: function() { return m[k]; } };
138863
+ }
138864
+ Object.defineProperty(o, k2, desc);
138865
+ }) : (function(o, m, k, k2) {
138866
+ if (k2 === undefined) k2 = k;
138867
+ o[k2] = m[k];
138868
+ }));
138869
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
138870
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
138871
+ }) : function(o, v) {
138872
+ o["default"] = v;
138873
+ });
138874
+ var __importStar = (this && this.__importStar) || (function () {
138875
+ var ownKeys = function(o) {
138876
+ ownKeys = Object.getOwnPropertyNames || function (o) {
138877
+ var ar = [];
138878
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
138879
+ return ar;
138880
+ };
138881
+ return ownKeys(o);
138882
+ };
138883
+ return function (mod) {
138884
+ if (mod && mod.__esModule) return mod;
138885
+ var result = {};
138886
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
138887
+ __setModuleDefault(result, mod);
138888
+ return result;
138889
+ };
138890
+ })();
138891
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
138892
+ exports.WhenTranspiler = void 0;
138893
+ const abaplint = __importStar(__webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js"));
138894
+ const expressions_1 = __webpack_require__(/*! ../expressions */ "./node_modules/@abaplint/transpiler/build/src/expressions/index.js");
138895
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
138896
+ class WhenTranspiler {
138897
+ u;
138898
+ constructor(u) {
138899
+ this.u = u;
138900
+ }
138901
+ transpile(node, traversal) {
138902
+ let ret = "";
138903
+ for (const s of node.findAllExpressions(abaplint.Expressions.Source)) {
138904
+ const source = new expressions_1.SourceTranspiler().transpile(s, traversal).getCode();
138905
+ if (ret !== "") {
138906
+ ret += " || ";
138907
+ }
138908
+ ret += "abap.compare.eq(" + this.u + ", " + source + ")";
138909
+ }
138910
+ return new chunk_1.Chunk().append(ret, node, traversal);
138911
+ }
138912
+ }
138913
+ exports.WhenTranspiler = WhenTranspiler;
138914
+ //# sourceMappingURL=when.js.map
138915
+
138916
+ /***/ },
138917
+
138918
+ /***/ "./node_modules/@abaplint/transpiler/build/src/statements/while.js"
138919
+ /*!*************************************************************************!*\
138920
+ !*** ./node_modules/@abaplint/transpiler/build/src/statements/while.js ***!
138921
+ \*************************************************************************/
138922
+ (__unused_webpack_module, exports, __webpack_require__) {
138923
+
138924
+ "use strict";
138925
+
138926
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
138927
+ if (k2 === undefined) k2 = k;
138928
+ var desc = Object.getOwnPropertyDescriptor(m, k);
138929
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
138930
+ desc = { enumerable: true, get: function() { return m[k]; } };
138931
+ }
138932
+ Object.defineProperty(o, k2, desc);
138933
+ }) : (function(o, m, k, k2) {
138934
+ if (k2 === undefined) k2 = k;
138935
+ o[k2] = m[k];
138936
+ }));
138937
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
138938
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
138939
+ }) : function(o, v) {
138940
+ o["default"] = v;
138941
+ });
138942
+ var __importStar = (this && this.__importStar) || (function () {
138943
+ var ownKeys = function(o) {
138944
+ ownKeys = Object.getOwnPropertyNames || function (o) {
138945
+ var ar = [];
138946
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
138947
+ return ar;
138948
+ };
138949
+ return ownKeys(o);
138950
+ };
138951
+ return function (mod) {
138952
+ if (mod && mod.__esModule) return mod;
138953
+ var result = {};
138954
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
138955
+ __setModuleDefault(result, mod);
138956
+ return result;
138957
+ };
138958
+ })();
138959
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
138960
+ exports.WhileTranspiler = void 0;
137337
138961
  const abaplint = __importStar(__webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js"));
138962
+ const expressions_1 = __webpack_require__(/*! ../expressions */ "./node_modules/@abaplint/transpiler/build/src/expressions/index.js");
137338
138963
  const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
137339
- class WaitTranspiler {
138964
+ const unique_identifier_1 = __webpack_require__(/*! ../unique_identifier */ "./node_modules/@abaplint/transpiler/build/src/unique_identifier.js");
138965
+ class WhileTranspiler {
138966
+ syIndexBackup;
138967
+ constructor(syIndexBackup) {
138968
+ this.syIndexBackup = syIndexBackup;
138969
+ }
137340
138970
  transpile(node, traversal) {
137341
- const options = [];
137342
- const seconds = node.findExpressionAfterToken("TO");
137343
- if (seconds) {
137344
- options.push("seconds: " + traversal.traverse(seconds).getCode());
137345
- }
137346
- const concat = node.concatTokens().toUpperCase();
137347
- const cond = node.findFirstExpression(abaplint.Expressions.Cond);
137348
- if (cond) {
137349
- options.push("cond: () => {return " + traversal.traverse(cond).getCode() + ";}");
137350
- }
137351
- if (concat.startsWith("WAIT FOR ")) {
137352
- const lookup = traversal.lookupClassOrInterface("KERNEL_PUSH_CHANNELS", node.getFirstToken());
137353
- const call = `await ${lookup}.wait({${options.join(",")}});`;
137354
- return new chunk_1.Chunk().append(`if (${lookup} === undefined) throw new Error("Wait, kernel class missing");\n${call}`, node, traversal);
137355
- }
137356
- else {
137357
- return new chunk_1.Chunk().append("await abap.statements.wait({" + options.join(",") + "});", node, traversal);
137358
- }
138971
+ const cond = new expressions_1.CondTranspiler().transpile(node.findFirstExpression(abaplint.Expressions.Cond), traversal);
138972
+ const unique = unique_identifier_1.UniqueIdentifier.get();
138973
+ return new chunk_1.Chunk()
138974
+ .append(`const ${this.syIndexBackup} = abap.builtin.sy.get().index.get();
138975
+ let ${unique} = 1;
138976
+ while (`, node, traversal)
138977
+ .appendChunk(cond)
138978
+ .appendString(`) {
138979
+ abap.builtin.sy.get().index.set(${unique}++);`);
137359
138980
  }
137360
138981
  }
137361
- exports.WaitTranspiler = WaitTranspiler;
137362
- //# sourceMappingURL=wait.js.map
138982
+ exports.WhileTranspiler = WhileTranspiler;
138983
+ //# sourceMappingURL=while.js.map
137363
138984
 
137364
138985
  /***/ },
137365
138986
 
137366
- /***/ "./node_modules/@abaplint/transpiler/build/src/statements/when.js"
137367
- /*!************************************************************************!*\
137368
- !*** ./node_modules/@abaplint/transpiler/build/src/statements/when.js ***!
137369
- \************************************************************************/
138987
+ /***/ "./node_modules/@abaplint/transpiler/build/src/statements/window.js"
138988
+ /*!**************************************************************************!*\
138989
+ !*** ./node_modules/@abaplint/transpiler/build/src/statements/window.js ***!
138990
+ \**************************************************************************/
137370
138991
  (__unused_webpack_module, exports, __webpack_require__) {
137371
138992
 
137372
138993
  "use strict";
137373
138994
 
137374
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
137375
- if (k2 === undefined) k2 = k;
137376
- var desc = Object.getOwnPropertyDescriptor(m, k);
137377
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
137378
- desc = { enumerable: true, get: function() { return m[k]; } };
137379
- }
137380
- Object.defineProperty(o, k2, desc);
137381
- }) : (function(o, m, k, k2) {
137382
- if (k2 === undefined) k2 = k;
137383
- o[k2] = m[k];
137384
- }));
137385
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
137386
- Object.defineProperty(o, "default", { enumerable: true, value: v });
137387
- }) : function(o, v) {
137388
- o["default"] = v;
137389
- });
137390
- var __importStar = (this && this.__importStar) || (function () {
137391
- var ownKeys = function(o) {
137392
- ownKeys = Object.getOwnPropertyNames || function (o) {
137393
- var ar = [];
137394
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
137395
- return ar;
137396
- };
137397
- return ownKeys(o);
137398
- };
137399
- return function (mod) {
137400
- if (mod && mod.__esModule) return mod;
137401
- var result = {};
137402
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
137403
- __setModuleDefault(result, mod);
137404
- return result;
137405
- };
137406
- })();
137407
138995
  Object.defineProperty(exports, "__esModule", ({ value: true }));
137408
- exports.WhenTranspiler = void 0;
137409
- const abaplint = __importStar(__webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js"));
137410
- const expressions_1 = __webpack_require__(/*! ../expressions */ "./node_modules/@abaplint/transpiler/build/src/expressions/index.js");
138996
+ exports.WindowTranspiler = void 0;
137411
138997
  const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
137412
- class WhenTranspiler {
137413
- u;
137414
- constructor(u) {
137415
- this.u = u;
137416
- }
137417
- transpile(node, traversal) {
137418
- let ret = "";
137419
- for (const s of node.findAllExpressions(abaplint.Expressions.Source)) {
137420
- const source = new expressions_1.SourceTranspiler().transpile(s, traversal).getCode();
137421
- if (ret !== "") {
137422
- ret += " || ";
137423
- }
137424
- ret += "abap.compare.eq(" + this.u + ", " + source + ")";
137425
- }
137426
- return new chunk_1.Chunk().append(ret, node, traversal);
138998
+ class WindowTranspiler {
138999
+ transpile(_node, _traversal) {
139000
+ return new chunk_1.Chunk(`throw new Error("WINDOW, not supported, transpiler");`);
137427
139001
  }
137428
139002
  }
137429
- exports.WhenTranspiler = WhenTranspiler;
137430
- //# sourceMappingURL=when.js.map
139003
+ exports.WindowTranspiler = WindowTranspiler;
139004
+ //# sourceMappingURL=window.js.map
137431
139005
 
137432
139006
  /***/ },
137433
139007
 
137434
- /***/ "./node_modules/@abaplint/transpiler/build/src/statements/while.js"
137435
- /*!*************************************************************************!*\
137436
- !*** ./node_modules/@abaplint/transpiler/build/src/statements/while.js ***!
137437
- \*************************************************************************/
139008
+ /***/ "./node_modules/@abaplint/transpiler/build/src/statements/with.js"
139009
+ /*!************************************************************************!*\
139010
+ !*** ./node_modules/@abaplint/transpiler/build/src/statements/with.js ***!
139011
+ \************************************************************************/
137438
139012
  (__unused_webpack_module, exports, __webpack_require__) {
137439
139013
 
137440
139014
  "use strict";
137441
139015
 
137442
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
137443
- if (k2 === undefined) k2 = k;
137444
- var desc = Object.getOwnPropertyDescriptor(m, k);
137445
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
137446
- desc = { enumerable: true, get: function() { return m[k]; } };
137447
- }
137448
- Object.defineProperty(o, k2, desc);
137449
- }) : (function(o, m, k, k2) {
137450
- if (k2 === undefined) k2 = k;
137451
- o[k2] = m[k];
137452
- }));
137453
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
137454
- Object.defineProperty(o, "default", { enumerable: true, value: v });
137455
- }) : function(o, v) {
137456
- o["default"] = v;
137457
- });
137458
- var __importStar = (this && this.__importStar) || (function () {
137459
- var ownKeys = function(o) {
137460
- ownKeys = Object.getOwnPropertyNames || function (o) {
137461
- var ar = [];
137462
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
137463
- return ar;
137464
- };
137465
- return ownKeys(o);
137466
- };
137467
- return function (mod) {
137468
- if (mod && mod.__esModule) return mod;
137469
- var result = {};
137470
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
137471
- __setModuleDefault(result, mod);
137472
- return result;
137473
- };
137474
- })();
137475
139016
  Object.defineProperty(exports, "__esModule", ({ value: true }));
137476
- exports.WhileTranspiler = void 0;
137477
- const abaplint = __importStar(__webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js"));
137478
- const expressions_1 = __webpack_require__(/*! ../expressions */ "./node_modules/@abaplint/transpiler/build/src/expressions/index.js");
139017
+ exports.WithTranspiler = void 0;
137479
139018
  const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
137480
- const unique_identifier_1 = __webpack_require__(/*! ../unique_identifier */ "./node_modules/@abaplint/transpiler/build/src/unique_identifier.js");
137481
- class WhileTranspiler {
137482
- syIndexBackup;
137483
- constructor(syIndexBackup) {
137484
- this.syIndexBackup = syIndexBackup;
137485
- }
137486
- transpile(node, traversal) {
137487
- const cond = new expressions_1.CondTranspiler().transpile(node.findFirstExpression(abaplint.Expressions.Cond), traversal);
137488
- const unique = unique_identifier_1.UniqueIdentifier.get();
137489
- return new chunk_1.Chunk()
137490
- .append(`const ${this.syIndexBackup} = abap.builtin.sy.get().index.get();
137491
- let ${unique} = 1;
137492
- while (`, node, traversal)
137493
- .appendChunk(cond)
137494
- .appendString(`) {
137495
- abap.builtin.sy.get().index.set(${unique}++);`);
139019
+ class WithTranspiler {
139020
+ transpile(_node, _traversal) {
139021
+ return new chunk_1.Chunk(`throw new Error("WITH, not supported, transpiler");`);
137496
139022
  }
137497
139023
  }
137498
- exports.WhileTranspiler = WhileTranspiler;
137499
- //# sourceMappingURL=while.js.map
139024
+ exports.WithTranspiler = WithTranspiler;
139025
+ //# sourceMappingURL=with.js.map
137500
139026
 
137501
139027
  /***/ },
137502
139028
 
@@ -138029,6 +139555,27 @@ exports.CatchSystemExceptionsTranspiler = CatchSystemExceptionsTranspiler;
138029
139555
 
138030
139556
  /***/ },
138031
139557
 
139558
+ /***/ "./node_modules/@abaplint/transpiler/build/src/structures/chain.js"
139559
+ /*!*************************************************************************!*\
139560
+ !*** ./node_modules/@abaplint/transpiler/build/src/structures/chain.js ***!
139561
+ \*************************************************************************/
139562
+ (__unused_webpack_module, exports, __webpack_require__) {
139563
+
139564
+ "use strict";
139565
+
139566
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
139567
+ exports.ChainTranspiler = void 0;
139568
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
139569
+ class ChainTranspiler {
139570
+ transpile(node, traversal) {
139571
+ return new chunk_1.Chunk().append(`throw new Error("CHAIN, not supported, transpiler");`, node, traversal);
139572
+ }
139573
+ }
139574
+ exports.ChainTranspiler = ChainTranspiler;
139575
+ //# sourceMappingURL=chain.js.map
139576
+
139577
+ /***/ },
139578
+
138032
139579
  /***/ "./node_modules/@abaplint/transpiler/build/src/structures/class_definition.js"
138033
139580
  /*!************************************************************************************!*\
138034
139581
  !*** ./node_modules/@abaplint/transpiler/build/src/structures/class_definition.js ***!
@@ -138911,17 +140458,21 @@ __exportStar(__webpack_require__(/*! ./at_first */ "./node_modules/@abaplint/tra
138911
140458
  __exportStar(__webpack_require__(/*! ./at_last */ "./node_modules/@abaplint/transpiler/build/src/structures/at_last.js"), exports);
138912
140459
  __exportStar(__webpack_require__(/*! ./case_type */ "./node_modules/@abaplint/transpiler/build/src/structures/case_type.js"), exports);
138913
140460
  __exportStar(__webpack_require__(/*! ./case */ "./node_modules/@abaplint/transpiler/build/src/structures/case.js"), exports);
140461
+ __exportStar(__webpack_require__(/*! ./chain */ "./node_modules/@abaplint/transpiler/build/src/structures/chain.js"), exports);
138914
140462
  __exportStar(__webpack_require__(/*! ./catch_system_exceptions */ "./node_modules/@abaplint/transpiler/build/src/structures/catch_system_exceptions.js"), exports);
138915
140463
  __exportStar(__webpack_require__(/*! ./class_definition */ "./node_modules/@abaplint/transpiler/build/src/structures/class_definition.js"), exports);
138916
140464
  __exportStar(__webpack_require__(/*! ./class_implementation */ "./node_modules/@abaplint/transpiler/build/src/structures/class_implementation.js"), exports);
138917
140465
  __exportStar(__webpack_require__(/*! ./constants */ "./node_modules/@abaplint/transpiler/build/src/structures/constants.js"), exports);
138918
140466
  __exportStar(__webpack_require__(/*! ./data */ "./node_modules/@abaplint/transpiler/build/src/structures/data.js"), exports);
140467
+ __exportStar(__webpack_require__(/*! ./statics */ "./node_modules/@abaplint/transpiler/build/src/structures/statics.js"), exports);
138919
140468
  __exportStar(__webpack_require__(/*! ./define */ "./node_modules/@abaplint/transpiler/build/src/structures/define.js"), exports);
138920
140469
  __exportStar(__webpack_require__(/*! ./do */ "./node_modules/@abaplint/transpiler/build/src/structures/do.js"), exports);
138921
140470
  __exportStar(__webpack_require__(/*! ./exec_sql */ "./node_modules/@abaplint/transpiler/build/src/structures/exec_sql.js"), exports);
138922
140471
  __exportStar(__webpack_require__(/*! ./function_module */ "./node_modules/@abaplint/transpiler/build/src/structures/function_module.js"), exports);
138923
140472
  __exportStar(__webpack_require__(/*! ./interface */ "./node_modules/@abaplint/transpiler/build/src/structures/interface.js"), exports);
138924
140473
  __exportStar(__webpack_require__(/*! ./loop */ "./node_modules/@abaplint/transpiler/build/src/structures/loop.js"), exports);
140474
+ __exportStar(__webpack_require__(/*! ./loop_extract */ "./node_modules/@abaplint/transpiler/build/src/structures/loop_extract.js"), exports);
140475
+ __exportStar(__webpack_require__(/*! ./provide */ "./node_modules/@abaplint/transpiler/build/src/structures/provide.js"), exports);
138925
140476
  __exportStar(__webpack_require__(/*! ./module */ "./node_modules/@abaplint/transpiler/build/src/structures/module.js"), exports);
138926
140477
  __exportStar(__webpack_require__(/*! ./select */ "./node_modules/@abaplint/transpiler/build/src/structures/select.js"), exports);
138927
140478
  __exportStar(__webpack_require__(/*! ./method */ "./node_modules/@abaplint/transpiler/build/src/structures/method.js"), exports);
@@ -138930,6 +140481,7 @@ __exportStar(__webpack_require__(/*! ./type_enum */ "./node_modules/@abaplint/tr
138930
140481
  __exportStar(__webpack_require__(/*! ./types */ "./node_modules/@abaplint/transpiler/build/src/structures/types.js"), exports);
138931
140482
  __exportStar(__webpack_require__(/*! ./when */ "./node_modules/@abaplint/transpiler/build/src/structures/when.js"), exports);
138932
140483
  __exportStar(__webpack_require__(/*! ./while */ "./node_modules/@abaplint/transpiler/build/src/structures/while.js"), exports);
140484
+ __exportStar(__webpack_require__(/*! ./with */ "./node_modules/@abaplint/transpiler/build/src/structures/with.js"), exports);
138933
140485
  __exportStar(__webpack_require__(/*! ./form */ "./node_modules/@abaplint/transpiler/build/src/structures/form.js"), exports);
138934
140486
  //# sourceMappingURL=index.js.map
138935
140487
 
@@ -139215,6 +140767,27 @@ exports.LoopTranspiler = LoopTranspiler;
139215
140767
 
139216
140768
  /***/ },
139217
140769
 
140770
+ /***/ "./node_modules/@abaplint/transpiler/build/src/structures/loop_extract.js"
140771
+ /*!********************************************************************************!*\
140772
+ !*** ./node_modules/@abaplint/transpiler/build/src/structures/loop_extract.js ***!
140773
+ \********************************************************************************/
140774
+ (__unused_webpack_module, exports, __webpack_require__) {
140775
+
140776
+ "use strict";
140777
+
140778
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
140779
+ exports.LoopExtractTranspiler = void 0;
140780
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
140781
+ class LoopExtractTranspiler {
140782
+ transpile(node, traversal) {
140783
+ return new chunk_1.Chunk().append(`throw new Error("LOOP over extract, not supported, transpiler");`, node, traversal);
140784
+ }
140785
+ }
140786
+ exports.LoopExtractTranspiler = LoopExtractTranspiler;
140787
+ //# sourceMappingURL=loop_extract.js.map
140788
+
140789
+ /***/ },
140790
+
139218
140791
  /***/ "./node_modules/@abaplint/transpiler/build/src/structures/method.js"
139219
140792
  /*!**************************************************************************!*\
139220
140793
  !*** ./node_modules/@abaplint/transpiler/build/src/structures/method.js ***!
@@ -139300,6 +140873,27 @@ exports.ModuleTranspiler = ModuleTranspiler;
139300
140873
 
139301
140874
  /***/ },
139302
140875
 
140876
+ /***/ "./node_modules/@abaplint/transpiler/build/src/structures/provide.js"
140877
+ /*!***************************************************************************!*\
140878
+ !*** ./node_modules/@abaplint/transpiler/build/src/structures/provide.js ***!
140879
+ \***************************************************************************/
140880
+ (__unused_webpack_module, exports, __webpack_require__) {
140881
+
140882
+ "use strict";
140883
+
140884
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
140885
+ exports.ProvideTranspiler = void 0;
140886
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
140887
+ class ProvideTranspiler {
140888
+ transpile(node, traversal) {
140889
+ return new chunk_1.Chunk().append(`throw new Error("PROVIDE, not supported, transpiler");`, node, traversal);
140890
+ }
140891
+ }
140892
+ exports.ProvideTranspiler = ProvideTranspiler;
140893
+ //# sourceMappingURL=provide.js.map
140894
+
140895
+ /***/ },
140896
+
139303
140897
  /***/ "./node_modules/@abaplint/transpiler/build/src/structures/select.js"
139304
140898
  /*!**************************************************************************!*\
139305
140899
  !*** ./node_modules/@abaplint/transpiler/build/src/structures/select.js ***!
@@ -139403,6 +140997,27 @@ exports.SelectTranspiler = SelectTranspiler;
139403
140997
 
139404
140998
  /***/ },
139405
140999
 
141000
+ /***/ "./node_modules/@abaplint/transpiler/build/src/structures/statics.js"
141001
+ /*!***************************************************************************!*\
141002
+ !*** ./node_modules/@abaplint/transpiler/build/src/structures/statics.js ***!
141003
+ \***************************************************************************/
141004
+ (__unused_webpack_module, exports, __webpack_require__) {
141005
+
141006
+ "use strict";
141007
+
141008
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
141009
+ exports.StaticsTranspiler = void 0;
141010
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
141011
+ class StaticsTranspiler {
141012
+ transpile(node, traversal) {
141013
+ return new chunk_1.Chunk().append(`throw new Error("STATICS, not supported, transpiler");`, node, traversal);
141014
+ }
141015
+ }
141016
+ exports.StaticsTranspiler = StaticsTranspiler;
141017
+ //# sourceMappingURL=statics.js.map
141018
+
141019
+ /***/ },
141020
+
139406
141021
  /***/ "./node_modules/@abaplint/transpiler/build/src/structures/try.js"
139407
141022
  /*!***********************************************************************!*\
139408
141023
  !*** ./node_modules/@abaplint/transpiler/build/src/structures/try.js ***!
@@ -139748,6 +141363,27 @@ exports.WhileTranspiler = WhileTranspiler;
139748
141363
 
139749
141364
  /***/ },
139750
141365
 
141366
+ /***/ "./node_modules/@abaplint/transpiler/build/src/structures/with.js"
141367
+ /*!************************************************************************!*\
141368
+ !*** ./node_modules/@abaplint/transpiler/build/src/structures/with.js ***!
141369
+ \************************************************************************/
141370
+ (__unused_webpack_module, exports, __webpack_require__) {
141371
+
141372
+ "use strict";
141373
+
141374
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
141375
+ exports.WithTranspiler = void 0;
141376
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
141377
+ class WithTranspiler {
141378
+ transpile(node, traversal) {
141379
+ return new chunk_1.Chunk().append(`throw new Error("WITH, not supported, transpiler");`, node, traversal);
141380
+ }
141381
+ }
141382
+ exports.WithTranspiler = WithTranspiler;
141383
+ //# sourceMappingURL=with.js.map
141384
+
141385
+ /***/ },
141386
+
139751
141387
  /***/ "./node_modules/@abaplint/transpiler/build/src/transpile_types.js"
139752
141388
  /*!************************************************************************!*\
139753
141389
  !*** ./node_modules/@abaplint/transpiler/build/src/transpile_types.js ***!
@@ -140330,10 +141966,14 @@ class Traversal {
140330
141966
  if (this.getCurrentObject().getABAPFileByName(filename) !== undefined) {
140331
141967
  return true;
140332
141968
  }
140333
- const file = this.reg.getFileByName(filename);
140334
- const found = file ? this.reg.findObjectForFile(file) : undefined;
141969
+ const found = this.findObjectForFilename(filename);
140335
141970
  return found instanceof abaplint.Objects.Program && found.isInclude();
140336
141971
  }
141972
+ /** the object containing the file, undefined if the file is not in the registry */
141973
+ findObjectForFilename(filename) {
141974
+ const file = this.reg.getFileByName(filename);
141975
+ return file === undefined ? undefined : this.reg.findObjectForFile(file);
141976
+ }
140337
141977
  traverse(node) {
140338
141978
  if (node instanceof abaplint.Nodes.StructureNode) {
140339
141979
  return this.traverseStructure(node);
@@ -140488,17 +142128,12 @@ class Traversal {
140488
142128
  let name = t.getStr().toLowerCase().replace(/^!/, "");
140489
142129
  if (filename && this.isCurrentObjectFile(filename) === false) {
140490
142130
  // the prefix is from a different object
140491
- const file = this.reg.getFileByName(filename);
140492
- if (file) {
140493
- const found = this.reg.findObjectForFile(file);
140494
- if (found) {
140495
- if (found instanceof abaplint.Objects.Interface) {
140496
- return Traversal.escapeNamespace(this.lookupClassOrInterface(found.getName(), t)) + "." + found.getName().toLowerCase() + "$" + name;
140497
- }
140498
- else {
140499
- return Traversal.escapeNamespace(this.lookupClassOrInterface(found.getName(), t)) + "." + name;
140500
- }
140501
- }
142131
+ const found = this.findObjectForFilename(filename);
142132
+ if (found instanceof abaplint.Objects.Interface) {
142133
+ return Traversal.escapeNamespace(this.lookupClassOrInterface(found.getName(), t)) + "." + found.getName().toLowerCase() + "$" + name;
142134
+ }
142135
+ else if (found) {
142136
+ return Traversal.escapeNamespace(this.lookupClassOrInterface(found.getName(), t)) + "." + name;
140502
142137
  }
140503
142138
  }
140504
142139
  const className = this.isStaticClassAttribute(t);
@@ -140763,12 +142398,7 @@ class Traversal {
140763
142398
  isTypePool(token) {
140764
142399
  const ref = this.findReadOrWriteReference(token);
140765
142400
  if (ref?.getFilename().endsWith(".type.abap")) {
140766
- const file = this.reg.getFileByName(ref.getFilename());
140767
- if (file === undefined) {
140768
- return undefined;
140769
- }
140770
- const obj = this.reg.findObjectForFile(file);
140771
- return obj?.getName();
142401
+ return this.findObjectForFilename(ref.getFilename())?.getName();
140772
142402
  }
140773
142403
  return undefined;
140774
142404
  }
@@ -141208,8 +142838,7 @@ this.INTERNAL_ID = abap.internalIdCounter++;\n`;
141208
142838
  findEnumValueIndex(identifier) {
141209
142839
  // the enum can be declared in another object, eg. a global interface the class implements
141210
142840
  const filename = identifier.getFilename();
141211
- const raw = this.reg.getFileByName(filename);
141212
- const obj = raw === undefined ? undefined : this.reg.findObjectForFile(raw);
142841
+ const obj = this.findObjectForFilename(filename);
141213
142842
  const file = obj instanceof abaplint.ABAPObject ? obj.getABAPFileByName(filename) : undefined;
141214
142843
  for (const enumeration of file?.getStructure()?.findAllStructures(abaplint.Structures.TypeEnum) || []) {
141215
142844
  const values = enumeration.getChildren().filter(c => c instanceof abaplint.Nodes.StatementNode
@@ -142152,6 +143781,7 @@ exports.config = {
142152
143781
  // hmm this ^ is okay? since lines will be prefixed with "abap.builtin"?
142153
143782
  class Validation {
142154
143783
  options;
143784
+ scopes = new Map();
142155
143785
  constructor(options) {
142156
143786
  this.options = options;
142157
143787
  }
@@ -142182,7 +143812,30 @@ class Validation {
142182
143812
  const conf = new core_1.Config(JSON.stringify(exports.config));
142183
143813
  reg.setConfig(conf);
142184
143814
  const issues = reg.findIssues();
142185
- return issues;
143815
+ return issues.filter(i => i.getKey() !== "ambiguous_statement" || this.isInternalModify(reg, i) === false);
143816
+ }
143817
+ /** "MODIFY itab FROM wa" and "MODIFY itab" are not ambiguous when itab is an internal table */
143818
+ isInternalModify(reg, issue) {
143819
+ const file = reg.getFileByName(issue.getFilename());
143820
+ const obj = file ? reg.findObjectForFile(file) : undefined;
143821
+ if (!(obj instanceof core_1.ABAPObject)) {
143822
+ return false;
143823
+ }
143824
+ const statement = obj.getABAPFileByName(issue.getFilename())?.getStatements()
143825
+ .find(s => s.getStart().equals(issue.getStart()));
143826
+ const token = statement?.getTokens()[1];
143827
+ if (statement === undefined || token === undefined
143828
+ || statement.getFirstToken().getStr().toUpperCase() !== "MODIFY"
143829
+ || token.getStr().toUpperCase() === "TABLE") {
143830
+ return false;
143831
+ }
143832
+ let spaghetti = this.scopes.get(obj);
143833
+ if (spaghetti === undefined) {
143834
+ spaghetti = new core_1.SyntaxLogic(reg, obj).run().spaghetti;
143835
+ this.scopes.set(obj, spaghetti);
143836
+ }
143837
+ const variable = spaghetti.lookupPosition(token.getStart(), issue.getFilename())?.findVariable(token.getStr());
143838
+ return variable?.getType() instanceof core_1.BasicTypes.TableType;
142186
143839
  }
142187
143840
  }
142188
143841
  exports.Validation = Validation;