@abaplint/cli 2.112.15 → 2.112.16

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 +24 -1
  2. package/package.json +2 -2
package/build/cli.js CHANGED
@@ -35022,6 +35022,9 @@ class FlowGraph {
35022
35022
  getStart() {
35023
35023
  return this.startNode;
35024
35024
  }
35025
+ getLabel() {
35026
+ return this.label;
35027
+ }
35025
35028
  getEnd() {
35026
35029
  return this.endNode;
35027
35030
  }
@@ -35320,6 +35323,7 @@ class StatementFlow {
35320
35323
  || type instanceof Structures.With
35321
35324
  || type instanceof Structures.Provide
35322
35325
  || type instanceof Structures.Select
35326
+ || type instanceof Structures.LoopAtScreen
35323
35327
  || type instanceof Structures.Do) {
35324
35328
  const loopName = this.buildName(n.getFirstStatement());
35325
35329
  const sub = this.traverseBody(this.findBody(n), Object.assign(Object.assign({}, context), { loopStart: loopName, loopEnd: graph.getEnd() }));
@@ -35328,6 +35332,25 @@ class StatementFlow {
35328
35332
  graph.addEdge(sub.getEnd(), loopName);
35329
35333
  graph.addEdge(loopName, graph.getEnd());
35330
35334
  }
35335
+ else if (type instanceof Structures.Data
35336
+ || type instanceof Structures.Types) {
35337
+ // these doesnt affect control flow, so just take the first statement
35338
+ const statement = n.getFirstStatement();
35339
+ const name = this.buildName(statement);
35340
+ graph.addEdge(current, name);
35341
+ graph.addEdge(name, graph.getEnd());
35342
+ }
35343
+ else if (type instanceof Structures.AtFirst
35344
+ || type instanceof Structures.AtLast
35345
+ || type instanceof Structures.At
35346
+ || type instanceof Structures.OnChange) {
35347
+ const name = this.buildName(n.getFirstStatement());
35348
+ const body = this.traverseBody(this.findBody(n), context);
35349
+ graph.addEdge(current, name);
35350
+ graph.addGraph(name, body);
35351
+ graph.addEdge(body.getEnd(), graph.getEnd());
35352
+ graph.addEdge(current, graph.getEnd());
35353
+ }
35331
35354
  else if (type instanceof Structures.Try) {
35332
35355
  const tryName = this.buildName(n.getFirstStatement());
35333
35356
  const body = this.traverseBody(this.findBody(n), context);
@@ -52488,7 +52511,7 @@ class Registry {
52488
52511
  }
52489
52512
  static abaplintVersion() {
52490
52513
  // magic, see build script "version.sh"
52491
- return "2.112.15";
52514
+ return "2.112.16";
52492
52515
  }
52493
52516
  getDDICReferences() {
52494
52517
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.112.15",
3
+ "version": "2.112.16",
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.112.15",
41
+ "@abaplint/core": "^2.112.16",
42
42
  "@types/chai": "^4.3.17",
43
43
  "@types/glob": "^8.1.0",
44
44
  "@types/minimist": "^1.2.5",