@abaplint/cli 2.101.1 → 2.101.2

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 +19 -3
  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
  /***/ }),
@@ -18905,7 +18917,7 @@ class ABAPFileInformation {
18905
18917
  }
18906
18918
  }
18907
18919
  parseClasses(structure) {
18908
- var _a;
18920
+ var _a, _b, _c;
18909
18921
  for (const found of structure.findAllStructures(Structures.ClassDefinition)) {
18910
18922
  const className = found.findFirstStatement(Statements.ClassDefinition).findFirstExpression(Expressions.ClassName).getFirstToken();
18911
18923
  const methods = this.parseMethodDefinition(found.findFirstStructure(Structures.PublicSection), visibility_1.Visibility.Public);
@@ -18924,6 +18936,8 @@ 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
+ 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();
18927
18941
  this.classes.push({
18928
18942
  name: className.getStr(),
18929
18943
  identifier: new _identifier_1.Identifier(className, this.filename),
@@ -18933,6 +18947,8 @@ class ABAPFileInformation {
18933
18947
  superClassName,
18934
18948
  interfaces: this.getImplementing(found),
18935
18949
  isForTesting: concat.includes(" FOR TESTING"),
18950
+ duration,
18951
+ riskLevel,
18936
18952
  isAbstract: (cdef === null || cdef === void 0 ? void 0 : cdef.findDirectTokenByText("ABSTRACT")) !== undefined,
18937
18953
  isSharedMemory: concat.includes(" SHARED MEMORY ENABLED"),
18938
18954
  isFinal: found.findFirstExpression(Expressions.ClassFinal) !== undefined,
@@ -47975,7 +47991,7 @@ class Registry {
47975
47991
  }
47976
47992
  static abaplintVersion() {
47977
47993
  // magic, see build script "version.sh"
47978
- return "2.101.1";
47994
+ return "2.101.2";
47979
47995
  }
47980
47996
  getDDICReferences() {
47981
47997
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.101.1",
3
+ "version": "2.101.2",
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.1",
41
+ "@abaplint/core": "^2.101.2",
42
42
  "@types/chai": "^4.3.5",
43
43
  "@types/glob": "^7.2.0",
44
44
  "@types/minimist": "^1.2.2",