@abaplint/transpiler-cli 2.7.125 → 2.7.126

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 +9 -0
  2. package/package.json +2 -2
package/build/bundle.js CHANGED
@@ -78667,6 +78667,15 @@ class MethodImplementationTranspiler {
78667
78667
  after += `if (${varName}.getQualifiedName === undefined || ${varName}.getQualifiedName() !== "${(_a = identifier.getType().getQualifiedName()) === null || _a === void 0 ? void 0 : _a.toUpperCase()}") { ${varName} = undefined; }\n`;
78668
78668
  }
78669
78669
  after += `if (${varName} === undefined) { ${varName} = ${new transpile_types_1.TranspileTypes().toType(identifier.getType())}.set(${unique}.${varName}); }\n`;
78670
+ }
78671
+ else if (identifier.getMeta().includes("importing" /* abaplint.IdentifierMeta.MethodImporting */)
78672
+ && type.isGeneric() === true) {
78673
+ if (isOptional === true) {
78674
+ after += `let ${varName} = ${unique}?.${varName} || ${new transpile_types_1.TranspileTypes().toType(identifier.getType())};\n`;
78675
+ }
78676
+ else {
78677
+ after += `let ${varName} = ${unique}?.${varName};\n`;
78678
+ }
78670
78679
  // end new
78671
78680
  }
78672
78681
  else if (identifier.getMeta().includes("importing" /* abaplint.IdentifierMeta.MethodImporting */)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler-cli",
3
- "version": "2.7.125",
3
+ "version": "2.7.126",
4
4
  "description": "Transpiler - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -26,7 +26,7 @@
26
26
  "author": "abaplint",
27
27
  "license": "MIT",
28
28
  "devDependencies": {
29
- "@abaplint/transpiler": "^2.7.125",
29
+ "@abaplint/transpiler": "^2.7.126",
30
30
  "@types/glob": "^7.2.0",
31
31
  "glob": "=7.2.0",
32
32
  "@types/progress": "^2.0.6",