@abaplint/cli 2.112.14 → 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/cli.js +30 -3
- package/package.json +2 -2
package/build/cli.js
CHANGED
|
@@ -35022,6 +35022,9 @@ class FlowGraph {
|
|
|
35022
35022
|
getStart() {
|
|
35023
35023
|
return this.startNode;
|
|
35024
35024
|
}
|
|
35025
|
+
getLabel() {
|
|
35026
|
+
return this.label;
|
|
35027
|
+
}
|
|
35025
35028
|
getEnd() {
|
|
35026
35029
|
return this.endNode;
|
|
35027
35030
|
}
|
|
@@ -35320,6 +35323,7 @@ class StatementFlow {
|
|
|
35320
35323
|
|| type instanceof Structures.With
|
|
35321
35324
|
|| type instanceof Structures.Provide
|
|
35322
35325
|
|| type instanceof Structures.Select
|
|
35326
|
+
|| type instanceof Structures.LoopAtScreen
|
|
35323
35327
|
|| type instanceof Structures.Do) {
|
|
35324
35328
|
const loopName = this.buildName(n.getFirstStatement());
|
|
35325
35329
|
const sub = this.traverseBody(this.findBody(n), Object.assign(Object.assign({}, context), { loopStart: loopName, loopEnd: graph.getEnd() }));
|
|
@@ -35328,6 +35332,25 @@ class StatementFlow {
|
|
|
35328
35332
|
graph.addEdge(sub.getEnd(), loopName);
|
|
35329
35333
|
graph.addEdge(loopName, graph.getEnd());
|
|
35330
35334
|
}
|
|
35335
|
+
else if (type instanceof Structures.Data
|
|
35336
|
+
|| type instanceof Structures.Types) {
|
|
35337
|
+
// these doesnt affect control flow, so just take the first statement
|
|
35338
|
+
const statement = n.getFirstStatement();
|
|
35339
|
+
const name = this.buildName(statement);
|
|
35340
|
+
graph.addEdge(current, name);
|
|
35341
|
+
graph.addEdge(name, graph.getEnd());
|
|
35342
|
+
}
|
|
35343
|
+
else if (type instanceof Structures.AtFirst
|
|
35344
|
+
|| type instanceof Structures.AtLast
|
|
35345
|
+
|| type instanceof Structures.At
|
|
35346
|
+
|| type instanceof Structures.OnChange) {
|
|
35347
|
+
const name = this.buildName(n.getFirstStatement());
|
|
35348
|
+
const body = this.traverseBody(this.findBody(n), context);
|
|
35349
|
+
graph.addEdge(current, name);
|
|
35350
|
+
graph.addGraph(name, body);
|
|
35351
|
+
graph.addEdge(body.getEnd(), graph.getEnd());
|
|
35352
|
+
graph.addEdge(current, graph.getEnd());
|
|
35353
|
+
}
|
|
35331
35354
|
else if (type instanceof Structures.Try) {
|
|
35332
35355
|
const tryName = this.buildName(n.getFirstStatement());
|
|
35333
35356
|
const body = this.traverseBody(this.findBody(n), context);
|
|
@@ -41972,8 +41995,8 @@ exports.MemoryFile = MemoryFile;
|
|
|
41972
41995
|
"use strict";
|
|
41973
41996
|
|
|
41974
41997
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
41975
|
-
exports.
|
|
41976
|
-
exports.LSPEdit = exports.RuleTag = exports.Severity = exports.Visibility = exports.Info = exports.Diagnostics = exports.Rename = void 0;
|
|
41998
|
+
exports.CurrentScope = exports.ABAPFile = exports.RulesRunner = exports.SpaghettiScope = exports.SyntaxLogic = exports.ABAPObject = exports.Tokens = exports.ExpressionsCDS = exports.CDSParser = exports.LanguageServerTypes = exports.DDLParser = exports.FlowGraph = exports.StatementFlow = exports.NativeSQL = exports.MacroContent = exports.MacroCall = exports.applyEditList = exports.applyEditSingle = exports.SpaghettiScopeNode = exports.AbstractFile = exports.Token = exports.ScopeType = exports.BasicTypes = exports.TypedIdentifier = exports.AbstractType = exports.VirtualPosition = exports.Comment = exports.Unknown = exports.Empty = exports.Identifier = exports.Nodes = exports.Types = exports.Expressions = exports.Statements = exports.Structures = exports.SkipLogic = exports.Objects = exports.ArtifactsRules = exports.ArtifactsObjects = exports.ArtifactsABAP = exports.BuiltIn = exports.MethodLengthStats = exports.LanguageServer = exports.Registry = exports.CyclomaticComplexityStats = exports.ReferenceType = exports.Version = exports.Config = exports.Issue = exports.MemoryFile = void 0;
|
|
41999
|
+
exports.LSPEdit = exports.RuleTag = exports.Severity = exports.Visibility = exports.Info = exports.Diagnostics = exports.Rename = exports.PrettyPrinter = exports.Position = void 0;
|
|
41977
42000
|
const issue_1 = __webpack_require__(/*! ./issue */ "./node_modules/@abaplint/core/build/src/issue.js");
|
|
41978
42001
|
Object.defineProperty(exports, "Issue", ({ enumerable: true, get: function () { return issue_1.Issue; } }));
|
|
41979
42002
|
const config_1 = __webpack_require__(/*! ./config */ "./node_modules/@abaplint/core/build/src/config.js");
|
|
@@ -42081,6 +42104,10 @@ const diagnostics_1 = __webpack_require__(/*! ./lsp/diagnostics */ "./node_modul
|
|
|
42081
42104
|
Object.defineProperty(exports, "Diagnostics", ({ enumerable: true, get: function () { return diagnostics_1.Diagnostics; } }));
|
|
42082
42105
|
const _edit_1 = __webpack_require__(/*! ./lsp/_edit */ "./node_modules/@abaplint/core/build/src/lsp/_edit.js");
|
|
42083
42106
|
Object.defineProperty(exports, "LSPEdit", ({ enumerable: true, get: function () { return _edit_1.LSPEdit; } }));
|
|
42107
|
+
const statement_flow_1 = __webpack_require__(/*! ./abap/flow/statement_flow */ "./node_modules/@abaplint/core/build/src/abap/flow/statement_flow.js");
|
|
42108
|
+
Object.defineProperty(exports, "StatementFlow", ({ enumerable: true, get: function () { return statement_flow_1.StatementFlow; } }));
|
|
42109
|
+
const flow_graph_1 = __webpack_require__(/*! ./abap/flow/flow_graph */ "./node_modules/@abaplint/core/build/src/abap/flow/flow_graph.js");
|
|
42110
|
+
Object.defineProperty(exports, "FlowGraph", ({ enumerable: true, get: function () { return flow_graph_1.FlowGraph; } }));
|
|
42084
42111
|
//# sourceMappingURL=index.js.map
|
|
42085
42112
|
|
|
42086
42113
|
/***/ }),
|
|
@@ -52484,7 +52511,7 @@ class Registry {
|
|
|
52484
52511
|
}
|
|
52485
52512
|
static abaplintVersion() {
|
|
52486
52513
|
// magic, see build script "version.sh"
|
|
52487
|
-
return "2.112.
|
|
52514
|
+
return "2.112.16";
|
|
52488
52515
|
}
|
|
52489
52516
|
getDDICReferences() {
|
|
52490
52517
|
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.16",
|
|
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.16",
|
|
42
42
|
"@types/chai": "^4.3.17",
|
|
43
43
|
"@types/glob": "^8.1.0",
|
|
44
44
|
"@types/minimist": "^1.2.5",
|