@abaplint/transpiler-cli 2.7.8 → 2.7.9

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/bundle.js +23 -6
  2. package/package.json +3 -3
package/build/bundle.js CHANGED
@@ -17971,7 +17971,7 @@ class ABAPFileInformation {
17971
17971
  }
17972
17972
  }
17973
17973
  parseClasses(structure) {
17974
- var _a, _b, _c;
17974
+ var _a;
17975
17975
  for (const found of structure.findAllStructures(Structures.ClassDefinition)) {
17976
17976
  const className = found.findFirstStatement(Statements.ClassDefinition).findFirstExpression(Expressions.ClassName).getFirstToken();
17977
17977
  const methods = this.parseMethodDefinition(found.findFirstStructure(Structures.PublicSection), visibility_1.Visibility.Public);
@@ -17990,8 +17990,26 @@ class ABAPFileInformation {
17990
17990
  const containsGlobal = found.findFirstExpression(Expressions.ClassGlobal);
17991
17991
  const cdef = found.findFirstStatement(Statements.ClassDefinition);
17992
17992
  const concat = (cdef === null || cdef === void 0 ? void 0 : cdef.concatTokens().toUpperCase()) || "";
17993
- const duration = (_b = cdef === null || cdef === void 0 ? void 0 : cdef.findExpressionAfterToken("DURATION")) === null || _b === void 0 ? void 0 : _b.concatTokens().toUpperCase();
17994
- const riskLevel = (_c = cdef === null || cdef === void 0 ? void 0 : cdef.findExpressionAfterToken("LEVEL")) === null || _c === void 0 ? void 0 : _c.concatTokens().toUpperCase();
17993
+ let riskLevel;
17994
+ if (concat.includes("RISK LEVEL CRITICAL")) {
17995
+ riskLevel = _abap_file_information_1.RiskLevel.critical;
17996
+ }
17997
+ else if (concat.includes("RISK LEVEL DANGEROUS")) {
17998
+ riskLevel = _abap_file_information_1.RiskLevel.dangerous;
17999
+ }
18000
+ else if (concat.includes("RISK LEVEL HARMLESS")) {
18001
+ riskLevel = _abap_file_information_1.RiskLevel.harmless;
18002
+ }
18003
+ let duration;
18004
+ if (concat.includes("DURATION SHORT")) {
18005
+ duration = _abap_file_information_1.Duration.short;
18006
+ }
18007
+ else if (concat.includes("DURATION LONG")) {
18008
+ duration = _abap_file_information_1.Duration.long;
18009
+ }
18010
+ else if (concat.includes("DURATION MEDIUM")) {
18011
+ duration = _abap_file_information_1.Duration.medium;
18012
+ }
17995
18013
  this.classes.push({
17996
18014
  name: className.getStr(),
17997
18015
  identifier: new _identifier_1.Identifier(className, this.filename),
@@ -47045,7 +47063,7 @@ class Registry {
47045
47063
  }
47046
47064
  static abaplintVersion() {
47047
47065
  // magic, see build script "version.sh"
47048
- return "2.101.2";
47066
+ return "2.101.3";
47049
47067
  }
47050
47068
  getDDICReferences() {
47051
47069
  return this.ddicReferences;
@@ -79751,10 +79769,9 @@ run().then(() => {
79751
79769
  if (a.obj.getName() < b.obj.getName()) {
79752
79770
  ret = -1;
79753
79771
  }
79754
- if (a.obj.getName() > b.obj.getName()) {
79772
+ else if (a.obj.getName() > b.obj.getName()) {
79755
79773
  ret = 1;
79756
79774
  }
79757
- ret = 0;
79758
79775
  }
79759
79776
  return ret;
79760
79777
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler-cli",
3
- "version": "2.7.8",
3
+ "version": "2.7.9",
4
4
  "description": "Transpiler - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -26,12 +26,12 @@
26
26
  "author": "abaplint",
27
27
  "license": "MIT",
28
28
  "devDependencies": {
29
- "@abaplint/transpiler": "^2.7.8",
29
+ "@abaplint/transpiler": "^2.7.9",
30
30
  "@types/glob": "^7.2.0",
31
31
  "glob": "=7.2.0",
32
32
  "@types/progress": "^2.0.5",
33
33
  "@types/node": "^20.2.3",
34
- "@abaplint/core": "^2.101.2",
34
+ "@abaplint/core": "^2.101.3",
35
35
  "progress": "^2.0.3",
36
36
  "webpack": "^5.83.1",
37
37
  "webpack-cli": "^5.1.1",