@abaplint/cli 2.101.2 → 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.
Files changed (2) hide show
  1. package/build/cli.js +22 -4
  2. package/package.json +2 -2
package/build/cli.js CHANGED
@@ -18917,7 +18917,7 @@ class ABAPFileInformation {
18917
18917
  }
18918
18918
  }
18919
18919
  parseClasses(structure) {
18920
- var _a, _b, _c;
18920
+ var _a;
18921
18921
  for (const found of structure.findAllStructures(Structures.ClassDefinition)) {
18922
18922
  const className = found.findFirstStatement(Statements.ClassDefinition).findFirstExpression(Expressions.ClassName).getFirstToken();
18923
18923
  const methods = this.parseMethodDefinition(found.findFirstStructure(Structures.PublicSection), visibility_1.Visibility.Public);
@@ -18936,8 +18936,26 @@ class ABAPFileInformation {
18936
18936
  const containsGlobal = found.findFirstExpression(Expressions.ClassGlobal);
18937
18937
  const cdef = found.findFirstStatement(Statements.ClassDefinition);
18938
18938
  const concat = (cdef === null || cdef === void 0 ? void 0 : cdef.concatTokens().toUpperCase()) || "";
18939
- const duration = (_b = cdef === null || cdef === void 0 ? void 0 : cdef.findExpressionAfterToken("DURATION")) === null || _b === void 0 ? void 0 : _b.concatTokens().toUpperCase();
18940
- const riskLevel = (_c = cdef === null || cdef === void 0 ? void 0 : cdef.findExpressionAfterToken("LEVEL")) === null || _c === void 0 ? void 0 : _c.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
+ }
18941
18959
  this.classes.push({
18942
18960
  name: className.getStr(),
18943
18961
  identifier: new _identifier_1.Identifier(className, this.filename),
@@ -47991,7 +48009,7 @@ class Registry {
47991
48009
  }
47992
48010
  static abaplintVersion() {
47993
48011
  // magic, see build script "version.sh"
47994
- return "2.101.2";
48012
+ return "2.101.3";
47995
48013
  }
47996
48014
  getDDICReferences() {
47997
48015
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.101.2",
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.2",
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",