@abaplint/cli 2.112.18 → 2.112.19
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/cli.js +19 -10
- package/package.json +2 -2
package/build/cli.js
CHANGED
|
@@ -35219,31 +35219,40 @@ class StatementFlow {
|
|
|
35219
35219
|
this.counter = 0;
|
|
35220
35220
|
}
|
|
35221
35221
|
build(stru) {
|
|
35222
|
-
var _a, _b, _c;
|
|
35222
|
+
var _a, _b, _c, _d;
|
|
35223
35223
|
const ret = [];
|
|
35224
|
-
const structures = stru.findAllStructuresMulti([Structures.Form, Structures.
|
|
35224
|
+
const structures = stru.findAllStructuresMulti([Structures.Form, Structures.ClassImplementation, Structures.FunctionModule]);
|
|
35225
35225
|
for (const s of structures) {
|
|
35226
35226
|
let name = "";
|
|
35227
35227
|
if (s.get() instanceof Structures.Form) {
|
|
35228
35228
|
name = "FORM " + ((_a = s.findFirstExpression(Expressions.FormName)) === null || _a === void 0 ? void 0 : _a.concatTokens());
|
|
35229
|
+
ret.push(this.run(s, name));
|
|
35229
35230
|
}
|
|
35230
|
-
else if (s.get() instanceof Structures.
|
|
35231
|
-
|
|
35231
|
+
else if (s.get() instanceof Structures.ClassImplementation) {
|
|
35232
|
+
const className = (_b = s.findFirstExpression(Expressions.ClassName)) === null || _b === void 0 ? void 0 : _b.concatTokens();
|
|
35233
|
+
for (const method of s.findDirectStructures(Structures.Method)) {
|
|
35234
|
+
const methodName = (_c = method.findFirstExpression(Expressions.MethodName)) === null || _c === void 0 ? void 0 : _c.concatTokens();
|
|
35235
|
+
name = "METHOD " + methodName + ", CLASS " + className;
|
|
35236
|
+
ret.push(this.run(method, name));
|
|
35237
|
+
}
|
|
35232
35238
|
}
|
|
35233
35239
|
else if (s.get() instanceof Structures.FunctionModule) {
|
|
35234
|
-
name = "FUNCTION " + ((
|
|
35240
|
+
name = "FUNCTION " + ((_d = s.findFirstExpression(Expressions.Field)) === null || _d === void 0 ? void 0 : _d.concatTokens());
|
|
35241
|
+
ret.push(this.run(s, name));
|
|
35235
35242
|
}
|
|
35236
35243
|
else {
|
|
35237
35244
|
throw new Error("StatementFlow, unknown structure");
|
|
35238
35245
|
}
|
|
35239
|
-
this.counter = 1;
|
|
35240
|
-
const graph = this.traverseBody(this.findBody(s), { procedureEnd: "end#1" });
|
|
35241
|
-
graph.setLabel(name);
|
|
35242
|
-
ret.push(graph);
|
|
35243
35246
|
}
|
|
35244
35247
|
return ret.map(f => f.reduce());
|
|
35245
35248
|
}
|
|
35246
35249
|
////////////////////
|
|
35250
|
+
run(s, name) {
|
|
35251
|
+
this.counter = 1;
|
|
35252
|
+
const graph = this.traverseBody(this.findBody(s), { procedureEnd: "end#1" });
|
|
35253
|
+
graph.setLabel(name);
|
|
35254
|
+
return graph;
|
|
35255
|
+
}
|
|
35247
35256
|
findBody(f) {
|
|
35248
35257
|
var _a;
|
|
35249
35258
|
return ((_a = f.findDirectStructure(Structures.Body)) === null || _a === void 0 ? void 0 : _a.getChildren()) || [];
|
|
@@ -52554,7 +52563,7 @@ class Registry {
|
|
|
52554
52563
|
}
|
|
52555
52564
|
static abaplintVersion() {
|
|
52556
52565
|
// magic, see build script "version.sh"
|
|
52557
|
-
return "2.112.
|
|
52566
|
+
return "2.112.19";
|
|
52558
52567
|
}
|
|
52559
52568
|
getDDICReferences() {
|
|
52560
52569
|
return this.ddicReferences;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/cli",
|
|
3
|
-
"version": "2.112.
|
|
3
|
+
"version": "2.112.19",
|
|
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.
|
|
41
|
+
"@abaplint/core": "^2.112.19",
|
|
42
42
|
"@types/chai": "^4.3.17",
|
|
43
43
|
"@types/glob": "^8.1.0",
|
|
44
44
|
"@types/minimist": "^1.2.5",
|