@abaplint/cli 2.113.117 → 2.113.118

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/cli.js +27 -27
  2. package/package.json +2 -2
package/build/cli.js CHANGED
@@ -19839,9 +19839,10 @@ exports.ProcessAfterInput = void 0;
19839
19839
  const Statements = __webpack_require__(/*! ../../2_statements/statements */ "./node_modules/@abaplint/core/build/src/abap/2_statements/statements/index.js");
19840
19840
  const _combi_1 = __webpack_require__(/*! ./_combi */ "./node_modules/@abaplint/core/build/src/abap/3_structures/structures/_combi.js");
19841
19841
  const chain_1 = __webpack_require__(/*! ./chain */ "./node_modules/@abaplint/core/build/src/abap/3_structures/structures/chain.js");
19842
+ const loop_1 = __webpack_require__(/*! ./loop */ "./node_modules/@abaplint/core/build/src/abap/3_structures/structures/loop.js");
19842
19843
  class ProcessAfterInput {
19843
19844
  getMatcher() {
19844
- const pai = (0, _combi_1.star)((0, _combi_1.alt)((0, _combi_1.sta)(Statements.Module), (0, _combi_1.sta)(Statements.Field), (0, _combi_1.sta)(Statements.CallSubscreen), (0, _combi_1.sub)(chain_1.Chain)));
19845
+ const pai = (0, _combi_1.star)((0, _combi_1.alt)((0, _combi_1.sta)(Statements.Module), (0, _combi_1.sta)(Statements.Field), (0, _combi_1.sta)(Statements.CallSubscreen), (0, _combi_1.sub)(chain_1.Chain), (0, _combi_1.sub)(loop_1.Loop)));
19845
19846
  return (0, _combi_1.seq)((0, _combi_1.sta)(Statements.ProcessAfterInput), pai);
19846
19847
  }
19847
19848
  }
@@ -29019,11 +29020,11 @@ class FindGlobalDefinitions {
29019
29020
  candidates.push(o);
29020
29021
  }
29021
29022
  else if (o instanceof objects_1.DataElement
29022
- || o instanceof objects_1.View
29023
+ || o instanceof objects_1.Table
29023
29024
  || o instanceof objects_1.TableType
29025
+ || o instanceof objects_1.View
29024
29026
  || o instanceof objects_1.LockObject
29025
- || o instanceof objects_1.AuthorizationCheckField
29026
- || o instanceof objects_1.Table) {
29027
+ || o instanceof objects_1.AuthorizationCheckField) {
29027
29028
  o.parseType(this.reg); // make sure the references are set after parsing finishes
29028
29029
  }
29029
29030
  }
@@ -32877,6 +32878,7 @@ const source_1 = __webpack_require__(/*! ../expressions/source */ "./node_module
32877
32878
  const target_1 = __webpack_require__(/*! ../expressions/target */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/expressions/target.js");
32878
32879
  const _syntax_input_1 = __webpack_require__(/*! ../_syntax_input */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/_syntax_input.js");
32879
32880
  const assert_error_1 = __webpack_require__(/*! ../assert_error */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/assert_error.js");
32881
+ const dynamic_1 = __webpack_require__(/*! ../expressions/dynamic */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/expressions/dynamic.js");
32880
32882
  class Perform {
32881
32883
  runSyntax(node, input) {
32882
32884
  if (!(node.get() instanceof Statements.Perform)) {
@@ -32904,7 +32906,9 @@ class Perform {
32904
32906
  if (node.findFirstExpression(Expressions.IncludeName)) {
32905
32907
  return; // in external program, not checked, todo
32906
32908
  }
32907
- if (node.findFirstExpression(Expressions.Dynamic)) {
32909
+ const dynamic = node.findFirstExpression(Expressions.Dynamic);
32910
+ if (dynamic) {
32911
+ new dynamic_1.Dynamic().runSyntax(dynamic, input);
32908
32912
  return; // todo, maybe some parts can be checked
32909
32913
  }
32910
32914
  const expr = node.findFirstExpression(Expressions.FormName);
@@ -47896,6 +47900,7 @@ class DataElement extends _abstract_object_1.AbstractObject {
47896
47900
  constructor() {
47897
47901
  super(...arguments);
47898
47902
  this.parsedXML = undefined;
47903
+ this.parsedType = undefined;
47899
47904
  }
47900
47905
  getType() {
47901
47906
  return "DTEL";
@@ -47913,6 +47918,7 @@ class DataElement extends _abstract_object_1.AbstractObject {
47913
47918
  }
47914
47919
  setDirty() {
47915
47920
  this.parsedXML = undefined;
47921
+ this.parsedType = undefined;
47916
47922
  super.setDirty();
47917
47923
  }
47918
47924
  getDomainName() {
@@ -47933,6 +47939,9 @@ class DataElement extends _abstract_object_1.AbstractObject {
47933
47939
  lookup = { type: new Types.UnknownType("Data Element " + this.getName() + ", parser error") };
47934
47940
  }
47935
47941
  else {
47942
+ if (this.parsedType) {
47943
+ return this.parsedType;
47944
+ }
47936
47945
  const ddic = new ddic_1.DDIC(reg);
47937
47946
  if (this.parsedXML.refkind === "D") {
47938
47947
  if (this.parsedXML.domname === undefined || this.parsedXML.domname === "") {
@@ -47972,7 +47981,8 @@ class DataElement extends _abstract_object_1.AbstractObject {
47972
47981
  references.push({ object: lookup.object });
47973
47982
  }
47974
47983
  reg.getDDICReferences().setUsing(this, references);
47975
- return lookup.type;
47984
+ this.parsedType = lookup.type;
47985
+ return this.parsedType;
47976
47986
  }
47977
47987
  parse() {
47978
47988
  var _a, _b, _c;
@@ -52528,6 +52538,10 @@ var TableCategory;
52528
52538
  TableCategory["Append"] = "APPEND";
52529
52539
  })(TableCategory || (exports.TableCategory = TableCategory = {}));
52530
52540
  class Table extends _abstract_object_1.AbstractObject {
52541
+ constructor() {
52542
+ super(...arguments);
52543
+ this.parsedType = undefined;
52544
+ }
52531
52545
  getType() {
52532
52546
  return "TABL";
52533
52547
  }
@@ -52552,6 +52566,7 @@ class Table extends _abstract_object_1.AbstractObject {
52552
52566
  }
52553
52567
  setDirty() {
52554
52568
  this.parsedData = undefined;
52569
+ this.parsedType = undefined;
52555
52570
  super.setDirty();
52556
52571
  }
52557
52572
  listKeys(reg) {
@@ -52589,6 +52604,9 @@ class Table extends _abstract_object_1.AbstractObject {
52589
52604
  && this.parsedData.dataClass === "USER3") {
52590
52605
  return new Types.UnknownType("Data class = USER3 not allowed in cloud");
52591
52606
  }
52607
+ if (this.parsedType) {
52608
+ return this.parsedType;
52609
+ }
52592
52610
  const references = [];
52593
52611
  const components = [];
52594
52612
  const ddic = new ddic_1.DDIC(reg);
@@ -52639,25 +52657,6 @@ class Table extends _abstract_object_1.AbstractObject {
52639
52657
  else {
52640
52658
  components.push({ name: field.FIELDNAME, type: found });
52641
52659
  }
52642
- /*
52643
- } else if (comptype === "S" && field.FIELDNAME.startsWith(".INCLU-")) {
52644
- const lookup = ddic.lookupTableOrView(field.PRECFIELD);
52645
- if (lookup.object) {
52646
- references.push({object: lookup.object});
52647
- }
52648
- const found = lookup.type;
52649
- if (found instanceof Types.VoidType) {
52650
- // set the full structure to void
52651
- return found;
52652
- } else if (found instanceof Types.StructureType) {
52653
- const suffix = field.FIELDNAME.split("-")[1];
52654
- for (const c of found.getComponents()) {
52655
- components.push({name: c.name + suffix, type: c.type});
52656
- }
52657
- } else if (found instanceof Types.UnknownType) {
52658
- return found;
52659
- }
52660
- */
52661
52660
  }
52662
52661
  else if (comptype === "S") {
52663
52662
  const lookup = ddic.lookupTableOrView(field.ROLLNAME);
@@ -52752,7 +52751,8 @@ class Table extends _abstract_object_1.AbstractObject {
52752
52751
  return new Types.UnknownType("Table/Structure " + this.getName() + " does not contain any components");
52753
52752
  }
52754
52753
  reg.getDDICReferences().setUsing(this, references);
52755
- return new Types.StructureType(components, this.getName(), this.getName(), this.getDescription());
52754
+ this.parsedType = new Types.StructureType(components, this.getName(), this.getName(), this.getDescription());
52755
+ return this.parsedType;
52756
52756
  }
52757
52757
  getTableCategory() {
52758
52758
  var _a;
@@ -54157,7 +54157,7 @@ class Registry {
54157
54157
  }
54158
54158
  static abaplintVersion() {
54159
54159
  // magic, see build script "version.sh"
54160
- return "2.113.117";
54160
+ return "2.113.118";
54161
54161
  }
54162
54162
  getDDICReferences() {
54163
54163
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.113.117",
3
+ "version": "2.113.118",
4
4
  "description": "abaplint - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -38,7 +38,7 @@
38
38
  },
39
39
  "homepage": "https://abaplint.org",
40
40
  "devDependencies": {
41
- "@abaplint/core": "^2.113.117",
41
+ "@abaplint/core": "^2.113.118",
42
42
  "@types/chai": "^4.3.20",
43
43
  "@types/glob": "^8.1.0",
44
44
  "@types/minimist": "^1.2.5",