@abaplint/transpiler-cli 2.11.11 → 2.11.12

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 +6 -3
  2. package/package.json +3 -3
package/build/bundle.js CHANGED
@@ -27050,7 +27050,10 @@ class Source {
27050
27050
  console.dir(foundType);
27051
27051
  console.dir(s);
27052
27052
  */
27053
- if (foundType === undefined && s) {
27053
+ if (foundType && foundType.isGeneric() && s) {
27054
+ foundType = new basic_1.DataReference(s);
27055
+ }
27056
+ else if (foundType === undefined && s) {
27054
27057
  foundType = new basic_1.DataReference(s);
27055
27058
  }
27056
27059
  else if (foundType && targetType === undefined) {
@@ -53687,7 +53690,7 @@ class Registry {
53687
53690
  }
53688
53691
  static abaplintVersion() {
53689
53692
  // magic, see build script "version.sh"
53690
- return "2.113.158";
53693
+ return "2.113.159";
53691
53694
  }
53692
53695
  getDDICReferences() {
53693
53696
  return this.ddicReferences;
@@ -80071,7 +80074,7 @@ class SourceTranspiler {
80071
80074
  const scope = traversal.findCurrentScopeByToken(infer.getFirstToken());
80072
80075
  const inferType = traversal.lookupInferred(infer, scope);
80073
80076
  if (inferType === undefined) {
80074
- throw new Error("transpiler: REF # todo, lookupInferred");
80077
+ throw new Error("transpiler: REF # todo, lookupInferred, " + node.concatTokens());
80075
80078
  }
80076
80079
  const typ = new transpile_types_1.TranspileTypes().toType(inferType);
80077
80080
  if (typ.startsWith("new abap.types.DataReference(") === false) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler-cli",
3
- "version": "2.11.11",
3
+ "version": "2.11.12",
4
4
  "description": "Transpiler - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -27,8 +27,8 @@
27
27
  "author": "abaplint",
28
28
  "license": "MIT",
29
29
  "devDependencies": {
30
- "@abaplint/core": "^2.113.158",
31
- "@abaplint/transpiler": "^2.11.11",
30
+ "@abaplint/core": "^2.113.159",
31
+ "@abaplint/transpiler": "^2.11.12",
32
32
  "@types/glob": "^8.1.0",
33
33
  "@types/node": "^24.2.1",
34
34
  "@types/progress": "^2.0.7",