@abaplint/transpiler 2.5.8 → 2.5.10
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.
|
@@ -35,6 +35,7 @@ class MethodImplementationTranspiler {
|
|
|
35
35
|
const varName = n.toLowerCase();
|
|
36
36
|
if (identifier.getMeta().includes("importing" /* abaplint.IdentifierMeta.MethodImporting */)
|
|
37
37
|
|| identifier.getMeta().includes("changing" /* abaplint.IdentifierMeta.MethodChanging */)
|
|
38
|
+
|| identifier.getMeta().includes("event_parameter" /* abaplint.IdentifierMeta.EventParameter */)
|
|
38
39
|
|| identifier.getMeta().includes("exporting" /* abaplint.IdentifierMeta.MethodExporting */)) {
|
|
39
40
|
if (unique === "") {
|
|
40
41
|
unique = "INPUT";
|
package/build/src/traversal.js
CHANGED
|
@@ -331,6 +331,16 @@ class Traversal {
|
|
|
331
331
|
dataFromInterfaces(name, scope) {
|
|
332
332
|
let ret = "";
|
|
333
333
|
const intf = this.findInterfaceDefinition(name, scope);
|
|
334
|
+
for (const a of (intf === null || intf === void 0 ? void 0 : intf.getAttributes().getConstants()) || []) {
|
|
335
|
+
const fname = Traversal.escapeNamespace(a.getName().toLowerCase());
|
|
336
|
+
const iname = Traversal.escapeNamespace(intf === null || intf === void 0 ? void 0 : intf.getName().toLowerCase());
|
|
337
|
+
if ((intf === null || intf === void 0 ? void 0 : intf.isGlobal()) === true) {
|
|
338
|
+
ret += "this." + iname + "$" + fname + " = abap.Classes['" + (intf === null || intf === void 0 ? void 0 : intf.getName().toUpperCase()) + "']." + iname + "$" + fname + ";\n";
|
|
339
|
+
}
|
|
340
|
+
else {
|
|
341
|
+
ret += "this." + iname + "$" + fname + " = " + iname + "." + iname + "$" + fname + ";\n";
|
|
342
|
+
}
|
|
343
|
+
}
|
|
334
344
|
for (const a of (intf === null || intf === void 0 ? void 0 : intf.getAttributes().getAll()) || []) {
|
|
335
345
|
if (a.getMeta().includes("static" /* abaplint.IdentifierMeta.Static */) === true) {
|
|
336
346
|
continue;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.10",
|
|
4
4
|
"description": "Transpiler",
|
|
5
5
|
"main": "build/src/index.js",
|
|
6
6
|
"typings": "build/src/index.d.ts",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"author": "abaplint",
|
|
29
29
|
"license": "MIT",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@abaplint/core": "^2.95.
|
|
31
|
+
"@abaplint/core": "^2.95.27",
|
|
32
32
|
"source-map": "^0.7.4"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|