@abaplint/core 2.113.238 → 2.113.239

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.
@@ -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, default is skipping dependencies */
3931
- getObjectCount(skipDependencies?: boolean): number;
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(skipDependencies?: boolean): number;
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;
@@ -74,7 +74,7 @@ class Registry {
74
74
  }
75
75
  static abaplintVersion() {
76
76
  // magic, see build script "version.sh"
77
- return "2.113.238";
77
+ return "2.113.239";
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(skipDependencies = true) {
116
- let res = 0;
115
+ getObjectCount() {
116
+ const res = { total: 0, normal: 0, dependencies: 0 };
117
117
  for (const o of this.getObjects()) {
118
- if (skipDependencies === true && this.isDependency(o)) {
119
- continue;
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(false), "Lexing and parsing");
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.113.238",
3
+ "version": "2.113.239",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",