@abaplint/transpiler-cli 2.11.60 → 2.11.62

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.
Files changed (2) hide show
  1. package/build/bundle.js +11 -1
  2. package/package.json +2 -2
package/build/bundle.js CHANGED
@@ -83026,8 +83026,18 @@ export async function initializeABAP() {\n`;
83026
83026
  // class constructors might make early use of eg. constants from interfaces
83027
83027
  // sub classes will import() super classes and trigger a class constructor of the super
83028
83028
  hasClassConstructor(reg, clas) {
83029
+ /*
83029
83030
  if (clas.getDefinition()?.getMethodDefinitions().getByName("CLASS_CONSTRUCTOR") !== undefined) {
83030
- return true;
83031
+ return true;
83032
+ }
83033
+ */
83034
+ // also take local class definitions into account
83035
+ for (const file of clas.getABAPFiles()) {
83036
+ for (const cdef of file.getInfo().listClassDefinitions()) {
83037
+ if (cdef.methods.some((m) => m.name.toUpperCase() === "CLASS_CONSTRUCTOR")) {
83038
+ return true;
83039
+ }
83040
+ }
83031
83041
  }
83032
83042
  const sup = clas.getDefinition()?.getSuperClass();
83033
83043
  if (sup !== undefined) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler-cli",
3
- "version": "2.11.60",
3
+ "version": "2.11.62",
4
4
  "description": "Transpiler - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -28,7 +28,7 @@
28
28
  "license": "MIT",
29
29
  "devDependencies": {
30
30
  "@abaplint/core": "^2.113.188",
31
- "@abaplint/transpiler": "^2.11.60",
31
+ "@abaplint/transpiler": "^2.11.62",
32
32
  "@types/glob": "^8.1.0",
33
33
  "@types/node": "^24.3.0",
34
34
  "@types/progress": "^2.0.7",