@abaplint/transpiler-cli 2.3.114 → 2.3.116

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 +15 -8
  2. package/package.json +3 -3
package/build/bundle.js CHANGED
@@ -20600,17 +20600,24 @@ class BasicTypes {
20600
20600
  }
20601
20601
  return type;
20602
20602
  }
20603
+ cloneType(type, qualifiedName) {
20604
+ // nested types(containing "-") will inherit the qualified names if possible
20605
+ // todo, this needs to be extended to all AbstractTypes instead of just CharacterType
20606
+ if (type instanceof basic_1.CharacterType
20607
+ && qualifiedName
20608
+ && qualifiedName.includes("-") === false) {
20609
+ type = type.cloneType(qualifiedName);
20610
+ }
20611
+ return type;
20612
+ }
20603
20613
  resolveTypeName(typeName, length, decimals, qualifiedName) {
20604
20614
  var _a;
20605
20615
  if (typeName === undefined) {
20606
20616
  return undefined;
20607
20617
  }
20608
- let chain = this.resolveTypeChain(typeName);
20618
+ const chain = this.resolveTypeChain(typeName);
20609
20619
  if (chain) {
20610
- if (chain instanceof basic_1.CharacterType && qualifiedName) {
20611
- chain = chain.cloneType(qualifiedName);
20612
- }
20613
- return chain;
20620
+ return this.cloneType(chain, qualifiedName);
20614
20621
  }
20615
20622
  const chainText = typeName.concatTokens().toUpperCase();
20616
20623
  const f = this.scope.getDDIC().lookupBuiltinType(chainText, length, decimals, qualifiedName);
@@ -20644,7 +20651,7 @@ class BasicTypes {
20644
20651
  else if (ddic.type instanceof basic_1.VoidType) {
20645
20652
  this.scope.addReference(typeName.getFirstToken(), undefined, _reference_1.ReferenceType.VoidType, this.filename);
20646
20653
  }
20647
- return ddic.type;
20654
+ return this.cloneType(ddic.type, qualifiedName);
20648
20655
  }
20649
20656
  return undefined;
20650
20657
  }
@@ -41060,7 +41067,7 @@ class DataElement extends _abstract_object_1.AbstractObject {
41060
41067
  lookup = { type: new Types.UnknownType("DATATYPE unexpectely empty in " + this.getName()) };
41061
41068
  }
41062
41069
  else {
41063
- lookup = { type: ddic.textToType(this.parsedXML.datatype, this.parsedXML.leng, this.parsedXML.decimals, this.getName(), this.getName()) };
41070
+ lookup = { type: ddic.textToType(this.parsedXML.datatype, this.parsedXML.leng, this.parsedXML.decimals, this.getName(), this.getName(), undefined, this.getName()) };
41064
41071
  }
41065
41072
  }
41066
41073
  }
@@ -45822,7 +45829,7 @@ class Registry {
45822
45829
  }
45823
45830
  static abaplintVersion() {
45824
45831
  // magic, see build script "version.sh"
45825
- return "2.95.4";
45832
+ return "2.95.6";
45826
45833
  }
45827
45834
  getDDICReferences() {
45828
45835
  return this.references;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler-cli",
3
- "version": "2.3.114",
3
+ "version": "2.3.116",
4
4
  "description": "Transpiler - Command Line Interface",
5
5
  "bin": {
6
6
  "abap_transpile": "./abap_transpile"
@@ -25,11 +25,11 @@
25
25
  "author": "abaplint",
26
26
  "license": "MIT",
27
27
  "devDependencies": {
28
- "@abaplint/transpiler": "^2.3.114",
28
+ "@abaplint/transpiler": "^2.3.116",
29
29
  "@types/glob": "^7.2.0",
30
30
  "glob": "=7.2.0",
31
31
  "@types/progress": "^2.0.5",
32
- "@abaplint/core": "^2.95.4",
32
+ "@abaplint/core": "^2.95.6",
33
33
  "progress": "^2.0.3",
34
34
  "webpack": "^5.75.0",
35
35
  "webpack-cli": "^5.0.1",