@abaplint/core 2.113.73 → 2.113.74
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.
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Program = void 0;
|
|
4
4
|
const _abap_object_1 = require("./_abap_object");
|
|
5
5
|
const _dynpros_1 = require("./_dynpros");
|
|
6
|
+
const xml_utils_1 = require("../xml_utils");
|
|
6
7
|
class Program extends _abap_object_1.ABAPObject {
|
|
7
8
|
getType() {
|
|
8
9
|
return "PROG";
|
|
@@ -15,8 +16,9 @@ class Program extends _abap_object_1.ABAPObject {
|
|
|
15
16
|
return [main];
|
|
16
17
|
}
|
|
17
18
|
getDescription() {
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
var _a;
|
|
20
|
+
this.parseXML();
|
|
21
|
+
return (_a = this.parsedXML) === null || _a === void 0 ? void 0 : _a.description;
|
|
20
22
|
}
|
|
21
23
|
getAllowedNaming() {
|
|
22
24
|
return {
|
|
@@ -42,6 +44,7 @@ class Program extends _abap_object_1.ABAPObject {
|
|
|
42
44
|
}
|
|
43
45
|
////////////////////////////
|
|
44
46
|
parseXML() {
|
|
47
|
+
var _a, _b, _c;
|
|
45
48
|
if (this.parsedXML !== undefined) {
|
|
46
49
|
return;
|
|
47
50
|
}
|
|
@@ -51,15 +54,23 @@ class Program extends _abap_object_1.ABAPObject {
|
|
|
51
54
|
this.parsedXML = {
|
|
52
55
|
isInclude: false,
|
|
53
56
|
isModulePool: false,
|
|
57
|
+
description: undefined,
|
|
54
58
|
dynpros: [],
|
|
55
59
|
};
|
|
56
60
|
return;
|
|
57
61
|
}
|
|
62
|
+
let description = "";
|
|
63
|
+
for (const t of (0, xml_utils_1.xmlToArray)((_c = (_b = (_a = parsed.abapGit) === null || _a === void 0 ? void 0 : _a["asx:abap"]["asx:values"]) === null || _b === void 0 ? void 0 : _b.TPOOL) === null || _c === void 0 ? void 0 : _c.item)) {
|
|
64
|
+
if ((t === null || t === void 0 ? void 0 : t.ID) === "R") {
|
|
65
|
+
description = t.ENTRY ? (0, xml_utils_1.unescape)(t.ENTRY) : "";
|
|
66
|
+
}
|
|
67
|
+
}
|
|
58
68
|
const dynpros = (0, _dynpros_1.parseDynpros)(parsed);
|
|
59
69
|
this.parsedXML = {
|
|
60
70
|
isInclude: file ? file.getRaw().includes("<SUBC>I</SUBC>") : false,
|
|
61
71
|
isModulePool: file ? file.getRaw().includes("<SUBC>M</SUBC>") : false,
|
|
62
72
|
dynpros: dynpros,
|
|
73
|
+
description: description,
|
|
63
74
|
};
|
|
64
75
|
}
|
|
65
76
|
}
|
package/build/src/registry.js
CHANGED