@abaplint/transpiler 2.5.73 → 2.5.74
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/src/traversal.js +4 -3
- package/package.json +2 -2
package/build/src/traversal.js
CHANGED
|
@@ -289,6 +289,7 @@ class Traversal {
|
|
|
289
289
|
return undefined;
|
|
290
290
|
}
|
|
291
291
|
buildConstructorContents(scope, def) {
|
|
292
|
+
var _a, _b, _c;
|
|
292
293
|
let ret = "";
|
|
293
294
|
if (def.getSuperClass() !== undefined
|
|
294
295
|
&& def.getMethodDefinitions().getByName("CONSTRUCTOR") === undefined) {
|
|
@@ -297,7 +298,7 @@ class Traversal {
|
|
|
297
298
|
const cName = Traversal.escapeNamespace(def.getName().toLowerCase());
|
|
298
299
|
ret += "this.me = new abap.types.ABAPObject();\n";
|
|
299
300
|
ret += "this.me.set(this);\n";
|
|
300
|
-
for (const a of def.getAttributes().getAll()) {
|
|
301
|
+
for (const a of ((_a = def.getAttributes()) === null || _a === void 0 ? void 0 : _a.getAll()) || []) {
|
|
301
302
|
if (a.getMeta().includes("static" /* abaplint.IdentifierMeta.Static */) === true) {
|
|
302
303
|
continue;
|
|
303
304
|
}
|
|
@@ -310,11 +311,11 @@ class Traversal {
|
|
|
310
311
|
ret += this.dataFromInterfaces(i.name, scope);
|
|
311
312
|
}
|
|
312
313
|
// handle aliases after initialization of carrier variables
|
|
313
|
-
for (const a of def.getAliases().getAll()) {
|
|
314
|
+
for (const a of ((_b = def.getAliases()) === null || _b === void 0 ? void 0 : _b.getAll()) || []) {
|
|
314
315
|
ret += "this." + a.getName().toLowerCase() + " = this." + Traversal.escapeNamespace(a.getComponent().replace("~", "$").toLowerCase()) + ";\n";
|
|
315
316
|
}
|
|
316
317
|
// constants can be accessed both statically and via reference
|
|
317
|
-
for (const c of def.getAttributes().getConstants()) {
|
|
318
|
+
for (const c of ((_c = def.getAttributes()) === null || _c === void 0 ? void 0 : _c.getConstants()) || []) {
|
|
318
319
|
ret += "this." + Traversal.escapeNamespace(c.getName().toLowerCase()) + " = " + cName + "." + Traversal.escapeNamespace(c.getName().toLowerCase()) + ";\n";
|
|
319
320
|
}
|
|
320
321
|
return ret;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.74",
|
|
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.97.
|
|
31
|
+
"@abaplint/core": "^2.97.2",
|
|
32
32
|
"source-map": "^0.7.4"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|