@abaplint/core 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.
@@ -1675,6 +1675,12 @@ declare interface DomainValue {
1675
1675
  description: string;
1676
1676
  }
1677
1677
 
1678
+ declare enum Duration {
1679
+ short = "SHORT",
1680
+ medium = "MEDIUM",
1681
+ long = "LONG"
1682
+ }
1683
+
1678
1684
  declare class Dynamic extends Expression {
1679
1685
  getRunnable(): IStatementRunnable;
1680
1686
  }
@@ -3154,6 +3160,8 @@ declare namespace Info {
3154
3160
  InfoConstant,
3155
3161
  InfoAlias,
3156
3162
  InfoImplementing,
3163
+ Duration,
3164
+ RiskLevel,
3157
3165
  InfoClassDefinition,
3158
3166
  InfoClassImplementation,
3159
3167
  InfoFormDefinition,
@@ -3183,6 +3191,8 @@ declare interface InfoClassDefinition extends InfoInterfaceDefinition {
3183
3191
  isFinal: boolean;
3184
3192
  interfaces: readonly InfoImplementing[];
3185
3193
  isForTesting: boolean;
3194
+ duration: Duration | undefined;
3195
+ riskLevel: RiskLevel | undefined;
3186
3196
  isSharedMemory: boolean;
3187
3197
  }
3188
3198
 
@@ -4900,6 +4910,12 @@ declare class RFCService extends AbstractObject {
4900
4910
  getDescription(): string | undefined;
4901
4911
  }
4902
4912
 
4913
+ declare enum RiskLevel {
4914
+ harmless = "HARMLESS",
4915
+ critical = "CRITICAL",
4916
+ dangerous = "DANGEROUS"
4917
+ }
4918
+
4903
4919
  declare class Rollback implements IStatement {
4904
4920
  getMatcher(): IStatementRunnable;
4905
4921
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MethodParameterDirection = exports.AttributeLevel = void 0;
3
+ exports.RiskLevel = exports.Duration = exports.MethodParameterDirection = exports.AttributeLevel = void 0;
4
4
  // Only helper functions to get data from single file, no type information
5
5
  var AttributeLevel;
6
6
  (function (AttributeLevel) {
@@ -15,4 +15,16 @@ var MethodParameterDirection;
15
15
  MethodParameterDirection["Changing"] = "changing";
16
16
  MethodParameterDirection["Returning"] = "returning";
17
17
  })(MethodParameterDirection = exports.MethodParameterDirection || (exports.MethodParameterDirection = {}));
18
+ var Duration;
19
+ (function (Duration) {
20
+ Duration["short"] = "SHORT";
21
+ Duration["medium"] = "MEDIUM";
22
+ Duration["long"] = "LONG";
23
+ })(Duration = exports.Duration || (exports.Duration = {}));
24
+ var RiskLevel;
25
+ (function (RiskLevel) {
26
+ RiskLevel["harmless"] = "HARMLESS";
27
+ RiskLevel["critical"] = "CRITICAL";
28
+ RiskLevel["dangerous"] = "DANGEROUS";
29
+ })(RiskLevel = exports.RiskLevel || (exports.RiskLevel = {}));
18
30
  //# sourceMappingURL=_abap_file_information.js.map
@@ -135,6 +135,26 @@ class ABAPFileInformation {
135
135
  const containsGlobal = found.findFirstExpression(Expressions.ClassGlobal);
136
136
  const cdef = found.findFirstStatement(Statements.ClassDefinition);
137
137
  const concat = (cdef === null || cdef === void 0 ? void 0 : cdef.concatTokens().toUpperCase()) || "";
138
+ let riskLevel;
139
+ if (concat.includes("RISK LEVEL CRITICAL")) {
140
+ riskLevel = _abap_file_information_1.RiskLevel.critical;
141
+ }
142
+ else if (concat.includes("RISK LEVEL DANGEROUS")) {
143
+ riskLevel = _abap_file_information_1.RiskLevel.dangerous;
144
+ }
145
+ else if (concat.includes("RISK LEVEL HARMLESS")) {
146
+ riskLevel = _abap_file_information_1.RiskLevel.harmless;
147
+ }
148
+ let duration;
149
+ if (concat.includes("DURATION SHORT")) {
150
+ duration = _abap_file_information_1.Duration.short;
151
+ }
152
+ else if (concat.includes("DURATION LONG")) {
153
+ duration = _abap_file_information_1.Duration.long;
154
+ }
155
+ else if (concat.includes("DURATION MEDIUM")) {
156
+ duration = _abap_file_information_1.Duration.medium;
157
+ }
138
158
  this.classes.push({
139
159
  name: className.getStr(),
140
160
  identifier: new _identifier_1.Identifier(className, this.filename),
@@ -144,6 +164,8 @@ class ABAPFileInformation {
144
164
  superClassName,
145
165
  interfaces: this.getImplementing(found),
146
166
  isForTesting: concat.includes(" FOR TESTING"),
167
+ duration,
168
+ riskLevel,
147
169
  isAbstract: (cdef === null || cdef === void 0 ? void 0 : cdef.findDirectTokenByText("ABSTRACT")) !== undefined,
148
170
  isSharedMemory: concat.includes(" SHARED MEMORY ENABLED"),
149
171
  isFinal: found.findFirstExpression(Expressions.ClassFinal) !== undefined,
@@ -65,7 +65,7 @@ class Registry {
65
65
  }
66
66
  static abaplintVersion() {
67
67
  // magic, see build script "version.sh"
68
- return "2.101.1";
68
+ return "2.101.3";
69
69
  }
70
70
  getDDICReferences() {
71
71
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.101.1",
3
+ "version": "2.101.3",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",