@abaplint/cli 2.113.64 → 2.113.66
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 -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);
|
|
@@ -35725,10 +35726,11 @@ class StatementFlow {
|
|
|
35725
35726
|
else if (type instanceof Structures.Data
|
|
35726
35727
|
|| type instanceof Structures.Constants
|
|
35727
35728
|
|| type instanceof Structures.Statics
|
|
35729
|
+
|| type instanceof Structures.ExecSQL
|
|
35728
35730
|
|| type instanceof Structures.Types) {
|
|
35729
35731
|
// these doesnt affect control flow, so just take the first statement
|
|
35730
35732
|
const statement = n.getFirstStatement();
|
|
35731
|
-
const name =
|
|
35733
|
+
const name = StatementFlow.buildName(statement);
|
|
35732
35734
|
graph.addEdge(current, name, flow_graph_1.FLOW_EDGE_TYPE.undefined);
|
|
35733
35735
|
graph.addEdge(name, graph.getEnd(), flow_graph_1.FLOW_EDGE_TYPE.undefined);
|
|
35734
35736
|
}
|
|
@@ -35736,7 +35738,7 @@ class StatementFlow {
|
|
|
35736
35738
|
|| type instanceof Structures.AtLast
|
|
35737
35739
|
|| type instanceof Structures.At
|
|
35738
35740
|
|| type instanceof Structures.OnChange) {
|
|
35739
|
-
const name =
|
|
35741
|
+
const name = StatementFlow.buildName(n.getFirstStatement());
|
|
35740
35742
|
const body = this.traverseBody(this.findBody(n), context);
|
|
35741
35743
|
graph.addEdge(current, name, flow_graph_1.FLOW_EDGE_TYPE.undefined);
|
|
35742
35744
|
graph.addGraph(name, body, flow_graph_1.FLOW_EDGE_TYPE.undefined);
|
|
@@ -35744,13 +35746,13 @@ class StatementFlow {
|
|
|
35744
35746
|
graph.addEdge(current, graph.getEnd(), flow_graph_1.FLOW_EDGE_TYPE.undefined);
|
|
35745
35747
|
}
|
|
35746
35748
|
else if (type instanceof Structures.Try) {
|
|
35747
|
-
const tryName =
|
|
35749
|
+
const tryName = StatementFlow.buildName(n.getFirstStatement());
|
|
35748
35750
|
const body = this.traverseBody(this.findBody(n), context);
|
|
35749
35751
|
graph.addEdge(current, tryName, flow_graph_1.FLOW_EDGE_TYPE.undefined);
|
|
35750
35752
|
graph.addGraph(tryName, body, flow_graph_1.FLOW_EDGE_TYPE.undefined);
|
|
35751
35753
|
graph.addEdge(body.getEnd(), graph.getEnd(), flow_graph_1.FLOW_EDGE_TYPE.undefined);
|
|
35752
35754
|
for (const c of n.findDirectStructures(Structures.Catch)) {
|
|
35753
|
-
const catchName =
|
|
35755
|
+
const catchName = StatementFlow.buildName(c.getFirstStatement());
|
|
35754
35756
|
const catchBody = this.traverseBody(this.findBody(c), context);
|
|
35755
35757
|
// TODO: this does not take exceptions into account
|
|
35756
35758
|
graph.addEdge(body.getEnd(), catchName, flow_graph_1.FLOW_EDGE_TYPE.undefined);
|
|
@@ -35761,14 +35763,14 @@ class StatementFlow {
|
|
|
35761
35763
|
}
|
|
35762
35764
|
else if (type instanceof Structures.CatchSystemExceptions) {
|
|
35763
35765
|
// TODO: this is not completely correct
|
|
35764
|
-
const catchName =
|
|
35766
|
+
const catchName = StatementFlow.buildName(n.getFirstStatement());
|
|
35765
35767
|
const body = this.traverseBody(this.findBody(n), context);
|
|
35766
35768
|
graph.addEdge(current, catchName, flow_graph_1.FLOW_EDGE_TYPE.undefined);
|
|
35767
35769
|
graph.addGraph(catchName, body, flow_graph_1.FLOW_EDGE_TYPE.undefined);
|
|
35768
35770
|
graph.addEdge(body.getEnd(), graph.getEnd(), flow_graph_1.FLOW_EDGE_TYPE.undefined);
|
|
35769
35771
|
}
|
|
35770
35772
|
else if (type instanceof Structures.Case) {
|
|
35771
|
-
const caseName =
|
|
35773
|
+
const caseName = StatementFlow.buildName(n.getFirstStatement());
|
|
35772
35774
|
graph.addEdge(current, caseName, flow_graph_1.FLOW_EDGE_TYPE.undefined);
|
|
35773
35775
|
let othersFound = false;
|
|
35774
35776
|
for (const w of n.findDirectStructures(Structures.When)) {
|
|
@@ -35779,7 +35781,7 @@ class StatementFlow {
|
|
|
35779
35781
|
if (first.get() instanceof Statements.WhenOthers) {
|
|
35780
35782
|
othersFound = true;
|
|
35781
35783
|
}
|
|
35782
|
-
const firstName =
|
|
35784
|
+
const firstName = StatementFlow.buildName(first);
|
|
35783
35785
|
const sub = this.traverseBody(this.findBody(w), context);
|
|
35784
35786
|
graph.addEdge(caseName, firstName, flow_graph_1.FLOW_EDGE_TYPE.undefined);
|
|
35785
35787
|
graph.addGraph(firstName, sub, flow_graph_1.FLOW_EDGE_TYPE.undefined);
|
|
@@ -35790,7 +35792,7 @@ class StatementFlow {
|
|
|
35790
35792
|
}
|
|
35791
35793
|
}
|
|
35792
35794
|
else if (type instanceof Structures.CaseType) {
|
|
35793
|
-
const caseName =
|
|
35795
|
+
const caseName = StatementFlow.buildName(n.getFirstStatement());
|
|
35794
35796
|
graph.addEdge(current, caseName, flow_graph_1.FLOW_EDGE_TYPE.undefined);
|
|
35795
35797
|
let othersFound = false;
|
|
35796
35798
|
for (const w of n.findDirectStructures(Structures.WhenType)) {
|
|
@@ -35801,7 +35803,7 @@ class StatementFlow {
|
|
|
35801
35803
|
if (first.get() instanceof Statements.WhenOthers) {
|
|
35802
35804
|
othersFound = true;
|
|
35803
35805
|
}
|
|
35804
|
-
const firstName =
|
|
35806
|
+
const firstName = StatementFlow.buildName(first);
|
|
35805
35807
|
const sub = this.traverseBody(this.findBody(w), context);
|
|
35806
35808
|
graph.addEdge(caseName, firstName, flow_graph_1.FLOW_EDGE_TYPE.undefined);
|
|
35807
35809
|
graph.addGraph(firstName, sub, flow_graph_1.FLOW_EDGE_TYPE.undefined);
|
|
@@ -53216,7 +53218,7 @@ class Registry {
|
|
|
53216
53218
|
}
|
|
53217
53219
|
static abaplintVersion() {
|
|
53218
53220
|
// magic, see build script "version.sh"
|
|
53219
|
-
return "2.113.
|
|
53221
|
+
return "2.113.66";
|
|
53220
53222
|
}
|
|
53221
53223
|
getDDICReferences() {
|
|
53222
53224
|
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.66",
|
|
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.66",
|
|
42
42
|
"@types/chai": "^4.3.20",
|
|
43
43
|
"@types/glob": "^8.1.0",
|
|
44
44
|
"@types/minimist": "^1.2.5",
|