@abaplint/core 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.
@@ -2522,6 +2522,7 @@ export declare class FlowGraph {
2522
2522
  private label;
2523
2523
  constructor(counter: number);
2524
2524
  getStart(): string;
2525
+ getLabel(): string;
2525
2526
  getEnd(): string;
2526
2527
  addEdge(from: string, to: string): void;
2527
2528
  removeEdge(from: string, to: string): void;
@@ -11,6 +11,9 @@ class FlowGraph {
11
11
  getStart() {
12
12
  return this.startNode;
13
13
  }
14
+ getLabel() {
15
+ return this.label;
16
+ }
14
17
  getEnd() {
15
18
  return this.endNode;
16
19
  }
@@ -153,6 +153,7 @@ class StatementFlow {
153
153
  || type instanceof Structures.With
154
154
  || type instanceof Structures.Provide
155
155
  || type instanceof Structures.Select
156
+ || type instanceof Structures.LoopAtScreen
156
157
  || type instanceof Structures.Do) {
157
158
  const loopName = this.buildName(n.getFirstStatement());
158
159
  const sub = this.traverseBody(this.findBody(n), Object.assign(Object.assign({}, context), { loopStart: loopName, loopEnd: graph.getEnd() }));
@@ -161,6 +162,25 @@ class StatementFlow {
161
162
  graph.addEdge(sub.getEnd(), loopName);
162
163
  graph.addEdge(loopName, graph.getEnd());
163
164
  }
165
+ else if (type instanceof Structures.Data
166
+ || type instanceof Structures.Types) {
167
+ // these doesnt affect control flow, so just take the first statement
168
+ const statement = n.getFirstStatement();
169
+ const name = this.buildName(statement);
170
+ graph.addEdge(current, name);
171
+ graph.addEdge(name, graph.getEnd());
172
+ }
173
+ else if (type instanceof Structures.AtFirst
174
+ || type instanceof Structures.AtLast
175
+ || type instanceof Structures.At
176
+ || type instanceof Structures.OnChange) {
177
+ const name = this.buildName(n.getFirstStatement());
178
+ const body = this.traverseBody(this.findBody(n), context);
179
+ graph.addEdge(current, name);
180
+ graph.addGraph(name, body);
181
+ graph.addEdge(body.getEnd(), graph.getEnd());
182
+ graph.addEdge(current, graph.getEnd());
183
+ }
164
184
  else if (type instanceof Structures.Try) {
165
185
  const tryName = this.buildName(n.getFirstStatement());
166
186
  const body = this.traverseBody(this.findBody(n), context);
@@ -67,7 +67,7 @@ class Registry {
67
67
  }
68
68
  static abaplintVersion() {
69
69
  // magic, see build script "version.sh"
70
- return "2.112.15";
70
+ return "2.112.16";
71
71
  }
72
72
  getDDICReferences() {
73
73
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.112.15",
3
+ "version": "2.112.16",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",