@abaplint/core 2.108.6 → 2.108.7

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.
@@ -1968,12 +1968,19 @@ declare enum EnhancementCategory {
1968
1968
  }
1969
1969
 
1970
1970
  declare class EnhancementImplementation extends AbstractObject {
1971
+ private parsedXML;
1971
1972
  getType(): string;
1973
+ setDirty(): void;
1972
1974
  getAllowedNaming(): {
1973
1975
  maxLength: number;
1974
1976
  allowNamespace: boolean;
1975
1977
  };
1978
+ getClassName(): string | undefined;
1976
1979
  getDescription(): string | undefined;
1980
+ parse(): {
1981
+ updated: boolean;
1982
+ runtime: number;
1983
+ };
1977
1984
  }
1978
1985
 
1979
1986
  declare class EnhancementPoint implements IStatement {
@@ -6,15 +6,42 @@ class EnhancementImplementation extends _abstract_object_1.AbstractObject {
6
6
  getType() {
7
7
  return "ENHO";
8
8
  }
9
+ setDirty() {
10
+ this.parsedXML = undefined;
11
+ super.setDirty();
12
+ }
9
13
  getAllowedNaming() {
10
14
  return {
11
15
  maxLength: 30,
12
16
  allowNamespace: true,
13
17
  };
14
18
  }
19
+ getClassName() {
20
+ var _a;
21
+ this.parse();
22
+ return (_a = this.parsedXML) === null || _a === void 0 ? void 0 : _a.className;
23
+ }
15
24
  getDescription() {
16
- // todo
17
- return undefined;
25
+ var _a;
26
+ this.parse();
27
+ return (_a = this.parsedXML) === null || _a === void 0 ? void 0 : _a.description;
28
+ }
29
+ parse() {
30
+ if (this.parsedXML) {
31
+ return { updated: false, runtime: 0 };
32
+ }
33
+ const start = Date.now();
34
+ this.parsedXML = {};
35
+ const parsed = super.parseRaw2();
36
+ if (parsed === undefined
37
+ || parsed.abapGit === undefined
38
+ || parsed.abapGit["asx:abap"]["asx:values"] === undefined) {
39
+ return { updated: false, runtime: 0 };
40
+ }
41
+ this.parsedXML.className = parsed.abapGit["asx:abap"]["asx:values"].CLASS;
42
+ this.parsedXML.description = parsed.abapGit["asx:abap"]["asx:values"].SHORTTEXT;
43
+ const end = Date.now();
44
+ return { updated: true, runtime: end - start };
18
45
  }
19
46
  }
20
47
  exports.EnhancementImplementation = EnhancementImplementation;
@@ -65,7 +65,7 @@ class Registry {
65
65
  }
66
66
  static abaplintVersion() {
67
67
  // magic, see build script "version.sh"
68
- return "2.108.6";
68
+ return "2.108.7";
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.108.6",
3
+ "version": "2.108.7",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",