@abaplint/cli 2.101.1 → 2.101.3
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 +36 -2
- package/package.json +2 -2
package/build/cli.js
CHANGED
|
@@ -18715,7 +18715,7 @@ exports.With = With;
|
|
|
18715
18715
|
"use strict";
|
|
18716
18716
|
|
|
18717
18717
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
18718
|
-
exports.MethodParameterDirection = exports.AttributeLevel = void 0;
|
|
18718
|
+
exports.RiskLevel = exports.Duration = exports.MethodParameterDirection = exports.AttributeLevel = void 0;
|
|
18719
18719
|
// Only helper functions to get data from single file, no type information
|
|
18720
18720
|
var AttributeLevel;
|
|
18721
18721
|
(function (AttributeLevel) {
|
|
@@ -18730,6 +18730,18 @@ var MethodParameterDirection;
|
|
|
18730
18730
|
MethodParameterDirection["Changing"] = "changing";
|
|
18731
18731
|
MethodParameterDirection["Returning"] = "returning";
|
|
18732
18732
|
})(MethodParameterDirection = exports.MethodParameterDirection || (exports.MethodParameterDirection = {}));
|
|
18733
|
+
var Duration;
|
|
18734
|
+
(function (Duration) {
|
|
18735
|
+
Duration["short"] = "SHORT";
|
|
18736
|
+
Duration["medium"] = "MEDIUM";
|
|
18737
|
+
Duration["long"] = "LONG";
|
|
18738
|
+
})(Duration = exports.Duration || (exports.Duration = {}));
|
|
18739
|
+
var RiskLevel;
|
|
18740
|
+
(function (RiskLevel) {
|
|
18741
|
+
RiskLevel["harmless"] = "HARMLESS";
|
|
18742
|
+
RiskLevel["critical"] = "CRITICAL";
|
|
18743
|
+
RiskLevel["dangerous"] = "DANGEROUS";
|
|
18744
|
+
})(RiskLevel = exports.RiskLevel || (exports.RiskLevel = {}));
|
|
18733
18745
|
//# sourceMappingURL=_abap_file_information.js.map
|
|
18734
18746
|
|
|
18735
18747
|
/***/ }),
|
|
@@ -18924,6 +18936,26 @@ class ABAPFileInformation {
|
|
|
18924
18936
|
const containsGlobal = found.findFirstExpression(Expressions.ClassGlobal);
|
|
18925
18937
|
const cdef = found.findFirstStatement(Statements.ClassDefinition);
|
|
18926
18938
|
const concat = (cdef === null || cdef === void 0 ? void 0 : cdef.concatTokens().toUpperCase()) || "";
|
|
18939
|
+
let riskLevel;
|
|
18940
|
+
if (concat.includes("RISK LEVEL CRITICAL")) {
|
|
18941
|
+
riskLevel = _abap_file_information_1.RiskLevel.critical;
|
|
18942
|
+
}
|
|
18943
|
+
else if (concat.includes("RISK LEVEL DANGEROUS")) {
|
|
18944
|
+
riskLevel = _abap_file_information_1.RiskLevel.dangerous;
|
|
18945
|
+
}
|
|
18946
|
+
else if (concat.includes("RISK LEVEL HARMLESS")) {
|
|
18947
|
+
riskLevel = _abap_file_information_1.RiskLevel.harmless;
|
|
18948
|
+
}
|
|
18949
|
+
let duration;
|
|
18950
|
+
if (concat.includes("DURATION SHORT")) {
|
|
18951
|
+
duration = _abap_file_information_1.Duration.short;
|
|
18952
|
+
}
|
|
18953
|
+
else if (concat.includes("DURATION LONG")) {
|
|
18954
|
+
duration = _abap_file_information_1.Duration.long;
|
|
18955
|
+
}
|
|
18956
|
+
else if (concat.includes("DURATION MEDIUM")) {
|
|
18957
|
+
duration = _abap_file_information_1.Duration.medium;
|
|
18958
|
+
}
|
|
18927
18959
|
this.classes.push({
|
|
18928
18960
|
name: className.getStr(),
|
|
18929
18961
|
identifier: new _identifier_1.Identifier(className, this.filename),
|
|
@@ -18933,6 +18965,8 @@ class ABAPFileInformation {
|
|
|
18933
18965
|
superClassName,
|
|
18934
18966
|
interfaces: this.getImplementing(found),
|
|
18935
18967
|
isForTesting: concat.includes(" FOR TESTING"),
|
|
18968
|
+
duration,
|
|
18969
|
+
riskLevel,
|
|
18936
18970
|
isAbstract: (cdef === null || cdef === void 0 ? void 0 : cdef.findDirectTokenByText("ABSTRACT")) !== undefined,
|
|
18937
18971
|
isSharedMemory: concat.includes(" SHARED MEMORY ENABLED"),
|
|
18938
18972
|
isFinal: found.findFirstExpression(Expressions.ClassFinal) !== undefined,
|
|
@@ -47975,7 +48009,7 @@ class Registry {
|
|
|
47975
48009
|
}
|
|
47976
48010
|
static abaplintVersion() {
|
|
47977
48011
|
// magic, see build script "version.sh"
|
|
47978
|
-
return "2.101.
|
|
48012
|
+
return "2.101.3";
|
|
47979
48013
|
}
|
|
47980
48014
|
getDDICReferences() {
|
|
47981
48015
|
return this.ddicReferences;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/cli",
|
|
3
|
-
"version": "2.101.
|
|
3
|
+
"version": "2.101.3",
|
|
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.101.
|
|
41
|
+
"@abaplint/core": "^2.101.3",
|
|
42
42
|
"@types/chai": "^4.3.5",
|
|
43
43
|
"@types/glob": "^7.2.0",
|
|
44
44
|
"@types/minimist": "^1.2.2",
|