@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.
package/build/abaplint.d.ts
CHANGED
|
@@ -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;
|
|
@@ -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);
|
package/build/src/registry.js
CHANGED