@abaplint/cli 2.112.16 → 2.112.17
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 +20 -19
- package/package.json +4 -4
package/build/cli.js
CHANGED
|
@@ -20102,7 +20102,6 @@ var Visibility;
|
|
|
20102
20102
|
|
|
20103
20103
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
20104
20104
|
exports.BuiltIn = exports.BuiltInMethod = void 0;
|
|
20105
|
-
/* eslint-disable max-len */
|
|
20106
20105
|
const _typed_identifier_1 = __webpack_require__(/*! ../types/_typed_identifier */ "./node_modules/@abaplint/core/build/src/abap/types/_typed_identifier.js");
|
|
20107
20106
|
const basic_1 = __webpack_require__(/*! ../types/basic */ "./node_modules/@abaplint/core/build/src/abap/types/basic/index.js");
|
|
20108
20107
|
const tokens_1 = __webpack_require__(/*! ../1_lexer/tokens */ "./node_modules/@abaplint/core/build/src/abap/1_lexer/tokens/index.js");
|
|
@@ -22951,7 +22950,6 @@ exports.AssertError = AssertError;
|
|
|
22951
22950
|
|
|
22952
22951
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
22953
22952
|
exports.BasicTypes = void 0;
|
|
22954
|
-
/* eslint-disable default-case */
|
|
22955
22953
|
const _typed_identifier_1 = __webpack_require__(/*! ../types/_typed_identifier */ "./node_modules/@abaplint/core/build/src/abap/types/_typed_identifier.js");
|
|
22956
22954
|
const Expressions = __webpack_require__(/*! ../2_statements/expressions */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/index.js");
|
|
22957
22955
|
const Statements = __webpack_require__(/*! ../2_statements/statements */ "./node_modules/@abaplint/core/build/src/abap/2_statements/statements/index.js");
|
|
@@ -35181,22 +35179,26 @@ class StatementFlow {
|
|
|
35181
35179
|
this.counter = 0;
|
|
35182
35180
|
}
|
|
35183
35181
|
build(stru) {
|
|
35184
|
-
var _a, _b;
|
|
35182
|
+
var _a, _b, _c;
|
|
35185
35183
|
const ret = [];
|
|
35186
|
-
const
|
|
35187
|
-
for (const
|
|
35188
|
-
|
|
35189
|
-
|
|
35190
|
-
|
|
35191
|
-
|
|
35192
|
-
|
|
35193
|
-
|
|
35194
|
-
|
|
35195
|
-
|
|
35196
|
-
|
|
35184
|
+
const structures = stru.findAllStructuresMulti([Structures.Form, Structures.Method, Structures.FunctionModule]);
|
|
35185
|
+
for (const s of structures) {
|
|
35186
|
+
let name = "";
|
|
35187
|
+
if (s.get() instanceof Structures.Form) {
|
|
35188
|
+
name = "FORM " + ((_a = s.findFirstExpression(Expressions.FormName)) === null || _a === void 0 ? void 0 : _a.concatTokens());
|
|
35189
|
+
}
|
|
35190
|
+
else if (s.get() instanceof Structures.Method) {
|
|
35191
|
+
name = "METHOD " + ((_b = s.findFirstExpression(Expressions.MethodName)) === null || _b === void 0 ? void 0 : _b.concatTokens());
|
|
35192
|
+
}
|
|
35193
|
+
else if (s.get() instanceof Structures.FunctionModule) {
|
|
35194
|
+
name = "FUNCTION " + ((_c = s.findFirstExpression(Expressions.Field)) === null || _c === void 0 ? void 0 : _c.concatTokens());
|
|
35195
|
+
}
|
|
35196
|
+
else {
|
|
35197
|
+
throw new Error("StatementFlow, unknown structure");
|
|
35198
|
+
}
|
|
35197
35199
|
this.counter = 1;
|
|
35198
|
-
const graph = this.traverseBody(this.findBody(
|
|
35199
|
-
graph.setLabel(
|
|
35200
|
+
const graph = this.traverseBody(this.findBody(s), { procedureEnd: "end#1" });
|
|
35201
|
+
graph.setLabel(name);
|
|
35200
35202
|
ret.push(graph);
|
|
35201
35203
|
}
|
|
35202
35204
|
return ret.map(f => f.reduce());
|
|
@@ -36647,7 +36649,7 @@ class CharacterType extends _abstract_type_1.AbstractType {
|
|
|
36647
36649
|
this.length = length;
|
|
36648
36650
|
}
|
|
36649
36651
|
cloneType(input) {
|
|
36650
|
-
const clone = Object.assign({}, this.getAbstractTypeData())
|
|
36652
|
+
const clone = Object.assign({}, this.getAbstractTypeData());
|
|
36651
36653
|
if (input.qualifiedName) {
|
|
36652
36654
|
clone.qualifiedName = input.qualifiedName;
|
|
36653
36655
|
}
|
|
@@ -52511,7 +52513,7 @@ class Registry {
|
|
|
52511
52513
|
}
|
|
52512
52514
|
static abaplintVersion() {
|
|
52513
52515
|
// magic, see build script "version.sh"
|
|
52514
|
-
return "2.112.
|
|
52516
|
+
return "2.112.17";
|
|
52515
52517
|
}
|
|
52516
52518
|
getDDICReferences() {
|
|
52517
52519
|
return this.ddicReferences;
|
|
@@ -54559,7 +54561,6 @@ class CDSLegacyView {
|
|
|
54559
54561
|
key: "cds_legacy_view",
|
|
54560
54562
|
title: "CDS Legacy View",
|
|
54561
54563
|
shortDescription: `Identify CDS Legacy Views`,
|
|
54562
|
-
// eslint-disable-next-line max-len
|
|
54563
54564
|
extendedInformation: `Use DEFINE VIEW ENTITY instead of DEFINE VIEW
|
|
54564
54565
|
|
|
54565
54566
|
https://blogs.sap.com/2021/10/16/a-new-generation-of-cds-views-how-to-migrate-your-cds-views-to-cds-view-entities/
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/cli",
|
|
3
|
-
"version": "2.112.
|
|
3
|
+
"version": "2.112.17",
|
|
4
4
|
"description": "abaplint - Command Line Interface",
|
|
5
5
|
"funding": "https://github.com/sponsors/larshp",
|
|
6
6
|
"bin": {
|
|
7
7
|
"abaplint": "abaplint"
|
|
8
8
|
},
|
|
9
9
|
"scripts": {
|
|
10
|
-
"lint": "eslint src/**/*.ts test/**/*.ts
|
|
10
|
+
"lint": "eslint src/**/*.ts test/**/*.ts",
|
|
11
11
|
"compile": "tsc",
|
|
12
12
|
"test": "npm run compile && mocha && npm run lint && npm run webpack",
|
|
13
13
|
"webpack": "webpack --progress",
|
|
@@ -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.17",
|
|
42
42
|
"@types/chai": "^4.3.17",
|
|
43
43
|
"@types/glob": "^8.1.0",
|
|
44
44
|
"@types/minimist": "^1.2.5",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@types/progress": "^2.0.7",
|
|
48
48
|
"chai": "^4.5.0",
|
|
49
49
|
"chalk": "^5.3.0",
|
|
50
|
-
"eslint": "^
|
|
50
|
+
"eslint": "^9.9.0",
|
|
51
51
|
"glob": "^7.2.3",
|
|
52
52
|
"json5": "^2.2.3",
|
|
53
53
|
"memfs": "=4.9.3",
|