@abaplint/core 2.113.238 → 2.113.240
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.
package/build/abaplint.d.ts
CHANGED
|
@@ -3927,8 +3927,12 @@ export declare interface IRegistry {
|
|
|
3927
3927
|
getObjects(): Generator<IObject, void, undefined>;
|
|
3928
3928
|
/** Get objects by type, including dependencies */
|
|
3929
3929
|
getObjectsByType(type: string): Generator<IObject, void, undefined>;
|
|
3930
|
-
/** Get number of objects in the registry
|
|
3931
|
-
getObjectCount(
|
|
3930
|
+
/** Get number of objects in the registry */
|
|
3931
|
+
getObjectCount(): {
|
|
3932
|
+
total: number;
|
|
3933
|
+
normal: number;
|
|
3934
|
+
dependencies: number;
|
|
3935
|
+
};
|
|
3932
3936
|
getFirstObject(): IObject | undefined;
|
|
3933
3937
|
getObject(type: string | undefined, name: string | undefined): IObject | undefined;
|
|
3934
3938
|
findObjectForFile(file: IFile): IObject | undefined;
|
|
@@ -5636,7 +5640,11 @@ export declare class Registry implements IRegistry {
|
|
|
5636
5640
|
getObjectsByType(type: string): Generator<IObject, void, undefined>;
|
|
5637
5641
|
getFiles(): Generator<IFile, void, undefined>;
|
|
5638
5642
|
getFirstObject(): IObject | undefined;
|
|
5639
|
-
getObjectCount(
|
|
5643
|
+
getObjectCount(): {
|
|
5644
|
+
total: number;
|
|
5645
|
+
normal: number;
|
|
5646
|
+
dependencies: number;
|
|
5647
|
+
};
|
|
5640
5648
|
getFileByName(filename: string): IFile | undefined;
|
|
5641
5649
|
getObject(type: string | undefined, name: string | undefined): IObject | undefined;
|
|
5642
5650
|
getConfig(): IConfiguration;
|
|
@@ -43,6 +43,7 @@ class DataElement extends _abstract_object_1.AbstractObject {
|
|
|
43
43
|
var _a;
|
|
44
44
|
const references = [];
|
|
45
45
|
let lookup = undefined;
|
|
46
|
+
this.parse();
|
|
46
47
|
if (this.parsedXML === undefined) {
|
|
47
48
|
lookup = { type: new Types.UnknownType("Data Element " + this.getName() + ", parser error") };
|
|
48
49
|
}
|
package/build/src/registry.js
CHANGED
|
@@ -74,7 +74,7 @@ class Registry {
|
|
|
74
74
|
}
|
|
75
75
|
static abaplintVersion() {
|
|
76
76
|
// magic, see build script "version.sh"
|
|
77
|
-
return "2.113.
|
|
77
|
+
return "2.113.240";
|
|
78
78
|
}
|
|
79
79
|
getDDICReferences() {
|
|
80
80
|
return this.ddicReferences;
|
|
@@ -112,13 +112,16 @@ class Registry {
|
|
|
112
112
|
}
|
|
113
113
|
return undefined;
|
|
114
114
|
}
|
|
115
|
-
getObjectCount(
|
|
116
|
-
|
|
115
|
+
getObjectCount() {
|
|
116
|
+
const res = { total: 0, normal: 0, dependencies: 0 };
|
|
117
117
|
for (const o of this.getObjects()) {
|
|
118
|
-
|
|
119
|
-
|
|
118
|
+
res.total++;
|
|
119
|
+
if (this.isDependency(o)) {
|
|
120
|
+
res.dependencies++;
|
|
121
|
+
}
|
|
122
|
+
else {
|
|
123
|
+
res.normal++;
|
|
120
124
|
}
|
|
121
|
-
res = res + 1;
|
|
122
125
|
}
|
|
123
126
|
return res;
|
|
124
127
|
}
|
|
@@ -285,7 +288,7 @@ class Registry {
|
|
|
285
288
|
return this;
|
|
286
289
|
}
|
|
287
290
|
ParsingPerformance.clear();
|
|
288
|
-
(_a = input === null || input === void 0 ? void 0 : input.progress) === null || _a === void 0 ? void 0 : _a.set(this.getObjectCount(
|
|
291
|
+
(_a = input === null || input === void 0 ? void 0 : input.progress) === null || _a === void 0 ? void 0 : _a.set(this.getObjectCount().normal, "Lexing and parsing");
|
|
289
292
|
for (const o of this.getObjects()) {
|
|
290
293
|
await ((_b = input === null || input === void 0 ? void 0 : input.progress) === null || _b === void 0 ? void 0 : _b.tick("Lexing and parsing(" + this.conf.getVersion() + ") - " + o.getType() + " " + o.getName()));
|
|
291
294
|
this.parsePrivate(o);
|