@abaplint/cli 2.113.64 → 2.113.65
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 +18 -17
- package/package.json +2 -2
package/build/cli.js
CHANGED
|
@@ -9480,7 +9480,8 @@ class TypeTableKey extends combi_1.Expression {
|
|
|
9480
9480
|
const emptyKey = (0, combi_1.ver)(version_1.Version.v740sp02, "EMPTY KEY");
|
|
9481
9481
|
const components = (0, combi_1.plus)((0, combi_1.alt)((0, combi_1.seq)("WITH", (0, combi_1.failStar)()), _1.FieldSub));
|
|
9482
9482
|
const further = (0, combi_1.seq)((0, combi_1.alt)("WITHOUT", "WITH"), "FURTHER SECONDARY KEYS");
|
|
9483
|
-
const
|
|
9483
|
+
const alias = (0, combi_1.seq)("ALIAS", _1.Field);
|
|
9484
|
+
const key = (0, combi_1.seq)("WITH", (0, combi_1.opt)(uniqueness), (0, combi_1.altPrio)(defaultKey, emptyKey, (0, combi_1.seq)((0, combi_1.opt)((0, combi_1.alt)("SORTED", "HASHED")), "KEY", (0, combi_1.alt)((0, combi_1.seq)(_1.Field, (0, combi_1.opt)(alias), "COMPONENTS", components), components))), (0, combi_1.optPrio)(further), (0, combi_1.optPrio)("READ-ONLY"));
|
|
9484
9485
|
return key;
|
|
9485
9486
|
}
|
|
9486
9487
|
}
|
|
@@ -35590,7 +35591,7 @@ class StatementFlow {
|
|
|
35590
35591
|
return ((_a = f.findDirectStructure(Structures.Body)) === null || _a === void 0 ? void 0 : _a.getChildren()) || [];
|
|
35591
35592
|
}
|
|
35592
35593
|
// note: it must handle macros and chained statements
|
|
35593
|
-
buildName(statement) {
|
|
35594
|
+
static buildName(statement) {
|
|
35594
35595
|
let token = undefined;
|
|
35595
35596
|
const colon = statement.getColon();
|
|
35596
35597
|
if (colon === undefined) {
|
|
@@ -35628,7 +35629,7 @@ class StatementFlow {
|
|
|
35628
35629
|
if (c.get() instanceof Structures.Normal) {
|
|
35629
35630
|
const firstChild = c.getFirstChild(); // "Normal" only has one child
|
|
35630
35631
|
if (firstChild instanceof nodes_1.StatementNode) {
|
|
35631
|
-
const name =
|
|
35632
|
+
const name = StatementFlow.buildName(firstChild);
|
|
35632
35633
|
graph.addEdge(current, name, flow_graph_1.FLOW_EDGE_TYPE.undefined);
|
|
35633
35634
|
current = name;
|
|
35634
35635
|
if (firstChild.get() instanceof Statements.Check) {
|
|
@@ -35677,7 +35678,7 @@ class StatementFlow {
|
|
|
35677
35678
|
let current = graph.getStart();
|
|
35678
35679
|
const type = n.get();
|
|
35679
35680
|
if (type instanceof Structures.If) {
|
|
35680
|
-
const ifName =
|
|
35681
|
+
const ifName = StatementFlow.buildName(n.findDirectStatement(Statements.If));
|
|
35681
35682
|
const sub = this.traverseBody(this.findBody(n), context);
|
|
35682
35683
|
graph.addEdge(current, ifName, flow_graph_1.FLOW_EDGE_TYPE.undefined);
|
|
35683
35684
|
graph.addGraph(ifName, sub, flow_graph_1.FLOW_EDGE_TYPE.true);
|
|
@@ -35688,7 +35689,7 @@ class StatementFlow {
|
|
|
35688
35689
|
if (elseifst === undefined) {
|
|
35689
35690
|
continue;
|
|
35690
35691
|
}
|
|
35691
|
-
const elseIfName =
|
|
35692
|
+
const elseIfName = StatementFlow.buildName(elseifst);
|
|
35692
35693
|
const sub = this.traverseBody(this.findBody(e), context);
|
|
35693
35694
|
graph.addEdge(current, elseIfName, flow_graph_1.FLOW_EDGE_TYPE.false);
|
|
35694
35695
|
graph.addGraph(elseIfName, sub, flow_graph_1.FLOW_EDGE_TYPE.true);
|
|
@@ -35698,7 +35699,7 @@ class StatementFlow {
|
|
|
35698
35699
|
const els = n.findDirectStructure(Structures.Else);
|
|
35699
35700
|
const elsest = els === null || els === void 0 ? void 0 : els.findDirectStatement(Statements.Else);
|
|
35700
35701
|
if (els && elsest) {
|
|
35701
|
-
const elseName =
|
|
35702
|
+
const elseName = StatementFlow.buildName(elsest);
|
|
35702
35703
|
const sub = this.traverseBody(this.findBody(els), context);
|
|
35703
35704
|
graph.addEdge(current, elseName, flow_graph_1.FLOW_EDGE_TYPE.false);
|
|
35704
35705
|
graph.addGraph(elseName, sub, flow_graph_1.FLOW_EDGE_TYPE.undefined);
|
|
@@ -35715,7 +35716,7 @@ class StatementFlow {
|
|
|
35715
35716
|
|| type instanceof Structures.Select
|
|
35716
35717
|
|| type instanceof Structures.LoopAtScreen
|
|
35717
35718
|
|| type instanceof Structures.Do) {
|
|
35718
|
-
const loopName =
|
|
35719
|
+
const loopName = StatementFlow.buildName(n.getFirstStatement());
|
|
35719
35720
|
const sub = this.traverseBody(this.findBody(n), Object.assign(Object.assign({}, context), { loopStart: loopName, loopEnd: graph.getEnd() }));
|
|
35720
35721
|
graph.addEdge(current, loopName, flow_graph_1.FLOW_EDGE_TYPE.undefined);
|
|
35721
35722
|
graph.addGraph(loopName, sub, flow_graph_1.FLOW_EDGE_TYPE.true);
|
|
@@ -35728,7 +35729,7 @@ class StatementFlow {
|
|
|
35728
35729
|
|| type instanceof Structures.Types) {
|
|
35729
35730
|
// these doesnt affect control flow, so just take the first statement
|
|
35730
35731
|
const statement = n.getFirstStatement();
|
|
35731
|
-
const name =
|
|
35732
|
+
const name = StatementFlow.buildName(statement);
|
|
35732
35733
|
graph.addEdge(current, name, flow_graph_1.FLOW_EDGE_TYPE.undefined);
|
|
35733
35734
|
graph.addEdge(name, graph.getEnd(), flow_graph_1.FLOW_EDGE_TYPE.undefined);
|
|
35734
35735
|
}
|
|
@@ -35736,7 +35737,7 @@ class StatementFlow {
|
|
|
35736
35737
|
|| type instanceof Structures.AtLast
|
|
35737
35738
|
|| type instanceof Structures.At
|
|
35738
35739
|
|| type instanceof Structures.OnChange) {
|
|
35739
|
-
const name =
|
|
35740
|
+
const name = StatementFlow.buildName(n.getFirstStatement());
|
|
35740
35741
|
const body = this.traverseBody(this.findBody(n), context);
|
|
35741
35742
|
graph.addEdge(current, name, flow_graph_1.FLOW_EDGE_TYPE.undefined);
|
|
35742
35743
|
graph.addGraph(name, body, flow_graph_1.FLOW_EDGE_TYPE.undefined);
|
|
@@ -35744,13 +35745,13 @@ class StatementFlow {
|
|
|
35744
35745
|
graph.addEdge(current, graph.getEnd(), flow_graph_1.FLOW_EDGE_TYPE.undefined);
|
|
35745
35746
|
}
|
|
35746
35747
|
else if (type instanceof Structures.Try) {
|
|
35747
|
-
const tryName =
|
|
35748
|
+
const tryName = StatementFlow.buildName(n.getFirstStatement());
|
|
35748
35749
|
const body = this.traverseBody(this.findBody(n), context);
|
|
35749
35750
|
graph.addEdge(current, tryName, flow_graph_1.FLOW_EDGE_TYPE.undefined);
|
|
35750
35751
|
graph.addGraph(tryName, body, flow_graph_1.FLOW_EDGE_TYPE.undefined);
|
|
35751
35752
|
graph.addEdge(body.getEnd(), graph.getEnd(), flow_graph_1.FLOW_EDGE_TYPE.undefined);
|
|
35752
35753
|
for (const c of n.findDirectStructures(Structures.Catch)) {
|
|
35753
|
-
const catchName =
|
|
35754
|
+
const catchName = StatementFlow.buildName(c.getFirstStatement());
|
|
35754
35755
|
const catchBody = this.traverseBody(this.findBody(c), context);
|
|
35755
35756
|
// TODO: this does not take exceptions into account
|
|
35756
35757
|
graph.addEdge(body.getEnd(), catchName, flow_graph_1.FLOW_EDGE_TYPE.undefined);
|
|
@@ -35761,14 +35762,14 @@ class StatementFlow {
|
|
|
35761
35762
|
}
|
|
35762
35763
|
else if (type instanceof Structures.CatchSystemExceptions) {
|
|
35763
35764
|
// TODO: this is not completely correct
|
|
35764
|
-
const catchName =
|
|
35765
|
+
const catchName = StatementFlow.buildName(n.getFirstStatement());
|
|
35765
35766
|
const body = this.traverseBody(this.findBody(n), context);
|
|
35766
35767
|
graph.addEdge(current, catchName, flow_graph_1.FLOW_EDGE_TYPE.undefined);
|
|
35767
35768
|
graph.addGraph(catchName, body, flow_graph_1.FLOW_EDGE_TYPE.undefined);
|
|
35768
35769
|
graph.addEdge(body.getEnd(), graph.getEnd(), flow_graph_1.FLOW_EDGE_TYPE.undefined);
|
|
35769
35770
|
}
|
|
35770
35771
|
else if (type instanceof Structures.Case) {
|
|
35771
|
-
const caseName =
|
|
35772
|
+
const caseName = StatementFlow.buildName(n.getFirstStatement());
|
|
35772
35773
|
graph.addEdge(current, caseName, flow_graph_1.FLOW_EDGE_TYPE.undefined);
|
|
35773
35774
|
let othersFound = false;
|
|
35774
35775
|
for (const w of n.findDirectStructures(Structures.When)) {
|
|
@@ -35779,7 +35780,7 @@ class StatementFlow {
|
|
|
35779
35780
|
if (first.get() instanceof Statements.WhenOthers) {
|
|
35780
35781
|
othersFound = true;
|
|
35781
35782
|
}
|
|
35782
|
-
const firstName =
|
|
35783
|
+
const firstName = StatementFlow.buildName(first);
|
|
35783
35784
|
const sub = this.traverseBody(this.findBody(w), context);
|
|
35784
35785
|
graph.addEdge(caseName, firstName, flow_graph_1.FLOW_EDGE_TYPE.undefined);
|
|
35785
35786
|
graph.addGraph(firstName, sub, flow_graph_1.FLOW_EDGE_TYPE.undefined);
|
|
@@ -35790,7 +35791,7 @@ class StatementFlow {
|
|
|
35790
35791
|
}
|
|
35791
35792
|
}
|
|
35792
35793
|
else if (type instanceof Structures.CaseType) {
|
|
35793
|
-
const caseName =
|
|
35794
|
+
const caseName = StatementFlow.buildName(n.getFirstStatement());
|
|
35794
35795
|
graph.addEdge(current, caseName, flow_graph_1.FLOW_EDGE_TYPE.undefined);
|
|
35795
35796
|
let othersFound = false;
|
|
35796
35797
|
for (const w of n.findDirectStructures(Structures.WhenType)) {
|
|
@@ -35801,7 +35802,7 @@ class StatementFlow {
|
|
|
35801
35802
|
if (first.get() instanceof Statements.WhenOthers) {
|
|
35802
35803
|
othersFound = true;
|
|
35803
35804
|
}
|
|
35804
|
-
const firstName =
|
|
35805
|
+
const firstName = StatementFlow.buildName(first);
|
|
35805
35806
|
const sub = this.traverseBody(this.findBody(w), context);
|
|
35806
35807
|
graph.addEdge(caseName, firstName, flow_graph_1.FLOW_EDGE_TYPE.undefined);
|
|
35807
35808
|
graph.addGraph(firstName, sub, flow_graph_1.FLOW_EDGE_TYPE.undefined);
|
|
@@ -53216,7 +53217,7 @@ class Registry {
|
|
|
53216
53217
|
}
|
|
53217
53218
|
static abaplintVersion() {
|
|
53218
53219
|
// magic, see build script "version.sh"
|
|
53219
|
-
return "2.113.
|
|
53220
|
+
return "2.113.65";
|
|
53220
53221
|
}
|
|
53221
53222
|
getDDICReferences() {
|
|
53222
53223
|
return this.ddicReferences;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/cli",
|
|
3
|
-
"version": "2.113.
|
|
3
|
+
"version": "2.113.65",
|
|
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.
|
|
41
|
+
"@abaplint/core": "^2.113.65",
|
|
42
42
|
"@types/chai": "^4.3.20",
|
|
43
43
|
"@types/glob": "^8.1.0",
|
|
44
44
|
"@types/minimist": "^1.2.5",
|