@abaplint/transpiler-cli 2.11.2 → 2.11.3
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/bundle.js +9 -1
- package/package.json +2 -2
package/build/bundle.js
CHANGED
|
@@ -87164,7 +87164,7 @@ class SetHandlerTranspiler {
|
|
|
87164
87164
|
def = traversal.findClassDefinition(def.getSuperClass(), scope);
|
|
87165
87165
|
}
|
|
87166
87166
|
if (def === undefined) {
|
|
87167
|
-
throw new Error(`SetHandlerTranspiler: findEventClass "${mdef.getEventClass()}" not found`);
|
|
87167
|
+
throw new Error(`SetHandlerTranspiler: findEventClass, class or interface "${mdef.getEventClass()}" not found`);
|
|
87168
87168
|
}
|
|
87169
87169
|
return traversal.buildInternalName(def.getName(), def);
|
|
87170
87170
|
}
|
|
@@ -88439,6 +88439,14 @@ class ClassImplementationTranspiler {
|
|
|
88439
88439
|
}
|
|
88440
88440
|
ret += traversal_1.Traversal.escapeNamespace(clasName) + "." + alias.getName().toLowerCase() + " = " + traversal_1.Traversal.escapeNamespace(clasName) + "." + traversal_1.Traversal.escapeNamespace(alias.getComponent().replace("~", "$")) + ";\n";
|
|
88441
88441
|
}
|
|
88442
|
+
for (const e of cdef.getEvents()) {
|
|
88443
|
+
if (e.isStatic() === false) {
|
|
88444
|
+
continue;
|
|
88445
|
+
}
|
|
88446
|
+
const fname = traversal_1.Traversal.escapeNamespace(e.getName().toLowerCase());
|
|
88447
|
+
const name = traversal.buildInternalName(clasName, cdef);
|
|
88448
|
+
ret += traversal_1.Traversal.escapeNamespace(clasName) + "." + fname + " = {\"EVENT_NAME\": \"" + e.getName().toUpperCase() + "\", \"EVENT_CLASS\": \"" + name + "\"};\n";
|
|
88449
|
+
}
|
|
88442
88450
|
// this is not correct, ABAP does not invocate the class constructor at require time,
|
|
88443
88451
|
// but this will probably work
|
|
88444
88452
|
if (traversal.getCurrentObject().getType() === "CLAS") {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler-cli",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.3",
|
|
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.151",
|
|
31
|
-
"@abaplint/transpiler": "^2.11.
|
|
31
|
+
"@abaplint/transpiler": "^2.11.3",
|
|
32
32
|
"@types/glob": "^8.1.0",
|
|
33
33
|
"@types/node": "^22.17.0",
|
|
34
34
|
"@types/progress": "^2.0.7",
|