@abaplint/core 2.101.0 → 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.
@@ -250,6 +250,33 @@ declare class At_3 extends Token {
250
250
  static railroad(): string;
251
251
  }
252
252
 
253
+ declare class ATCCheckCategory extends AbstractObject {
254
+ getType(): string;
255
+ getAllowedNaming(): {
256
+ maxLength: number;
257
+ allowNamespace: boolean;
258
+ };
259
+ getDescription(): string | undefined;
260
+ }
261
+
262
+ declare class ATCCheckObject extends AbstractObject {
263
+ getType(): string;
264
+ getAllowedNaming(): {
265
+ maxLength: number;
266
+ allowNamespace: boolean;
267
+ };
268
+ getDescription(): string | undefined;
269
+ }
270
+
271
+ declare class ATCCheckVariant extends AbstractObject {
272
+ getType(): string;
273
+ getAllowedNaming(): {
274
+ maxLength: number;
275
+ allowNamespace: boolean;
276
+ };
277
+ getDescription(): string | undefined;
278
+ }
279
+
253
280
  declare class AtFirst implements IStructure {
254
281
  getMatcher(): IStructureRunnable;
255
282
  }
@@ -1648,6 +1675,12 @@ declare interface DomainValue {
1648
1675
  description: string;
1649
1676
  }
1650
1677
 
1678
+ declare enum Duration {
1679
+ short = "SHORT",
1680
+ medium = "MEDIUM",
1681
+ long = "LONG"
1682
+ }
1683
+
1651
1684
  declare class Dynamic extends Expression {
1652
1685
  getRunnable(): IStatementRunnable;
1653
1686
  }
@@ -3127,6 +3160,8 @@ declare namespace Info {
3127
3160
  InfoConstant,
3128
3161
  InfoAlias,
3129
3162
  InfoImplementing,
3163
+ Duration,
3164
+ RiskLevel,
3130
3165
  InfoClassDefinition,
3131
3166
  InfoClassImplementation,
3132
3167
  InfoFormDefinition,
@@ -3156,6 +3191,8 @@ declare interface InfoClassDefinition extends InfoInterfaceDefinition {
3156
3191
  isFinal: boolean;
3157
3192
  interfaces: readonly InfoImplementing[];
3158
3193
  isForTesting: boolean;
3194
+ duration: Duration | undefined;
3195
+ riskLevel: RiskLevel | undefined;
3159
3196
  isSharedMemory: boolean;
3160
3197
  }
3161
3198
 
@@ -4232,6 +4269,9 @@ declare namespace Objects {
4232
4269
  ActivationVariant,
4233
4270
  APIReleaseState,
4234
4271
  AssignmentServiceToAuthorizationGroup,
4272
+ ATCCheckCategory,
4273
+ ATCCheckObject,
4274
+ ATCCheckVariant,
4235
4275
  AuthorizationCheckField,
4236
4276
  AuthorizationGroup,
4237
4277
  AuthorizationObjectClass,
@@ -4870,6 +4910,12 @@ declare class RFCService extends AbstractObject {
4870
4910
  getDescription(): string | undefined;
4871
4911
  }
4872
4912
 
4913
+ declare enum RiskLevel {
4914
+ harmless = "HARMLESS",
4915
+ critical = "CRITICAL",
4916
+ dangerous = "DANGEROUS"
4917
+ }
4918
+
4873
4919
  declare class Rollback implements IStatement {
4874
4920
  getMatcher(): IStatementRunnable;
4875
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
@@ -116,7 +116,7 @@ class ABAPFileInformation {
116
116
  }
117
117
  }
118
118
  parseClasses(structure) {
119
- var _a;
119
+ var _a, _b, _c;
120
120
  for (const found of structure.findAllStructures(Structures.ClassDefinition)) {
121
121
  const className = found.findFirstStatement(Statements.ClassDefinition).findFirstExpression(Expressions.ClassName).getFirstToken();
122
122
  const methods = this.parseMethodDefinition(found.findFirstStructure(Structures.PublicSection), visibility_1.Visibility.Public);
@@ -135,6 +135,8 @@ 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
+ const duration = (_b = cdef === null || cdef === void 0 ? void 0 : cdef.findExpressionAfterToken("DURATION")) === null || _b === void 0 ? void 0 : _b.concatTokens().toUpperCase();
139
+ const riskLevel = (_c = cdef === null || cdef === void 0 ? void 0 : cdef.findExpressionAfterToken("LEVEL")) === null || _c === void 0 ? void 0 : _c.concatTokens().toUpperCase();
138
140
  this.classes.push({
139
141
  name: className.getStr(),
140
142
  identifier: new _identifier_1.Identifier(className, this.filename),
@@ -144,6 +146,8 @@ class ABAPFileInformation {
144
146
  superClassName,
145
147
  interfaces: this.getImplementing(found),
146
148
  isForTesting: concat.includes(" FOR TESTING"),
149
+ duration,
150
+ riskLevel,
147
151
  isAbstract: (cdef === null || cdef === void 0 ? void 0 : cdef.findDirectTokenByText("ABSTRACT")) !== undefined,
148
152
  isSharedMemory: concat.includes(" SHARED MEMORY ENABLED"),
149
153
  isFinal: found.findFirstExpression(Expressions.ClassFinal) !== undefined,
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ATCCheckCategory = void 0;
4
+ const _abstract_object_1 = require("./_abstract_object");
5
+ class ATCCheckCategory extends _abstract_object_1.AbstractObject {
6
+ getType() {
7
+ return "CHKC";
8
+ }
9
+ getAllowedNaming() {
10
+ return {
11
+ maxLength: 30,
12
+ allowNamespace: true,
13
+ };
14
+ }
15
+ getDescription() {
16
+ // todo
17
+ return undefined;
18
+ }
19
+ }
20
+ exports.ATCCheckCategory = ATCCheckCategory;
21
+ //# sourceMappingURL=atc_check_category.js.map
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ATCCheckObject = void 0;
4
+ const _abstract_object_1 = require("./_abstract_object");
5
+ class ATCCheckObject extends _abstract_object_1.AbstractObject {
6
+ getType() {
7
+ return "CHKO";
8
+ }
9
+ getAllowedNaming() {
10
+ return {
11
+ maxLength: 30,
12
+ allowNamespace: true,
13
+ };
14
+ }
15
+ getDescription() {
16
+ // todo
17
+ return undefined;
18
+ }
19
+ }
20
+ exports.ATCCheckObject = ATCCheckObject;
21
+ //# sourceMappingURL=atc_check_object.js.map
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ATCCheckVariant = void 0;
4
+ const _abstract_object_1 = require("./_abstract_object");
5
+ class ATCCheckVariant extends _abstract_object_1.AbstractObject {
6
+ getType() {
7
+ return "CHKV";
8
+ }
9
+ getAllowedNaming() {
10
+ return {
11
+ maxLength: 30,
12
+ allowNamespace: true,
13
+ };
14
+ }
15
+ getDescription() {
16
+ // todo
17
+ return undefined;
18
+ }
19
+ }
20
+ exports.ATCCheckVariant = ATCCheckVariant;
21
+ //# sourceMappingURL=atc_check_variant.js.map
@@ -17,6 +17,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./activation_variant"), exports);
18
18
  __exportStar(require("./api_release_state"), exports);
19
19
  __exportStar(require("./assignment_service_to_authorization_group"), exports);
20
+ __exportStar(require("./atc_check_category"), exports);
21
+ __exportStar(require("./atc_check_object"), exports);
22
+ __exportStar(require("./atc_check_variant"), exports);
20
23
  __exportStar(require("./authorization_check_field"), exports);
21
24
  __exportStar(require("./authorization_group"), exports);
22
25
  __exportStar(require("./authorization_object_class"), exports);
@@ -65,7 +65,7 @@ class Registry {
65
65
  }
66
66
  static abaplintVersion() {
67
67
  // magic, see build script "version.sh"
68
- return "2.101.0";
68
+ return "2.101.2";
69
69
  }
70
70
  getDDICReferences() {
71
71
  return this.ddicReferences;
@@ -58,6 +58,9 @@ class CloudTypes {
58
58
  || obj instanceof Objects.InboundService
59
59
  || obj instanceof Objects.Interface
60
60
  || obj instanceof Objects.LockObject
61
+ || obj instanceof Objects.ATCCheckCategory
62
+ || obj instanceof Objects.ATCCheckObject
63
+ || obj instanceof Objects.ATCCheckVariant
61
64
  || obj instanceof Objects.MessageClass
62
65
  || obj instanceof Objects.Package
63
66
  || obj instanceof Objects.RestrictionType
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.101.0",
3
+ "version": "2.101.2",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",
@@ -48,12 +48,12 @@
48
48
  },
49
49
  "homepage": "https://abaplint.org",
50
50
  "devDependencies": {
51
- "@microsoft/api-extractor": "^7.34.9",
51
+ "@microsoft/api-extractor": "^7.35.0",
52
52
  "@types/chai": "^4.3.5",
53
53
  "@types/mocha": "^10.0.1",
54
- "@types/node": "^20.2.1",
54
+ "@types/node": "^20.2.3",
55
55
  "chai": "^4.3.7",
56
- "eslint": "^8.40.0",
56
+ "eslint": "^8.41.0",
57
57
  "mocha": "^10.2.0",
58
58
  "c8": "^7.13.0",
59
59
  "source-map-support": "^0.5.21",