@abaplint/transpiler-cli 2.3.113 → 2.3.115

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 +18 -10
  2. package/package.json +3 -3
package/build/bundle.js CHANGED
@@ -20644,6 +20644,9 @@ class BasicTypes {
20644
20644
  else if (ddic.type instanceof basic_1.VoidType) {
20645
20645
  this.scope.addReference(typeName.getFirstToken(), undefined, _reference_1.ReferenceType.VoidType, this.filename);
20646
20646
  }
20647
+ if (ddic.type instanceof basic_1.CharacterType && qualifiedName) {
20648
+ ddic.type = ddic.type.cloneType(qualifiedName);
20649
+ }
20647
20650
  return ddic.type;
20648
20651
  }
20649
20652
  return undefined;
@@ -32345,9 +32348,14 @@ class CharacterType extends _abstract_type_1.AbstractType {
32345
32348
  }
32346
32349
  this.length = length;
32347
32350
  }
32348
- cloneType(qualifiedName) {
32351
+ cloneType(qualifiedName, ddicName) {
32349
32352
  const clone = Object.assign({}, this.getAbstractTypeData()) || {};
32350
- clone.qualifiedName = qualifiedName;
32353
+ if (qualifiedName) {
32354
+ clone.qualifiedName = qualifiedName;
32355
+ }
32356
+ if (ddicName) {
32357
+ clone.ddicName = ddicName;
32358
+ }
32351
32359
  return new CharacterType(this.length, clone);
32352
32360
  }
32353
32361
  getLength() {
@@ -41055,7 +41063,7 @@ class DataElement extends _abstract_object_1.AbstractObject {
41055
41063
  lookup = { type: new Types.UnknownType("DATATYPE unexpectely empty in " + this.getName()) };
41056
41064
  }
41057
41065
  else {
41058
- lookup = { type: ddic.textToType(this.parsedXML.datatype, this.parsedXML.leng, this.parsedXML.decimals, this.getName(), this.getName()) };
41066
+ lookup = { type: ddic.textToType(this.parsedXML.datatype, this.parsedXML.leng, this.parsedXML.decimals, this.getName(), this.getName(), undefined, this.getName()) };
41059
41067
  }
41060
41068
  }
41061
41069
  }
@@ -41190,19 +41198,19 @@ class Domain extends _abstract_object_1.AbstractObject {
41190
41198
  }
41191
41199
  setDirty() {
41192
41200
  this.parsedXML = undefined;
41193
- this.parsedType = undefined;
41194
41201
  super.setDirty();
41195
41202
  }
41196
41203
  parseType(reg, dataElement) {
41197
- if (this.parsedType) {
41198
- return this.parsedType;
41204
+ // dont cache the DOMA parsed type, they are cached on DTEL level
41205
+ // also note that the type carries the name of the DTEL
41206
+ if (this.parsedXML === undefined) {
41207
+ this.parse();
41199
41208
  }
41200
- else if (this.parsedXML === undefined) {
41209
+ if (this.parsedXML === undefined) {
41201
41210
  return new Types.UnknownType("Domain " + this.getName() + " parser error", this.getName());
41202
41211
  }
41203
41212
  const ddic = new ddic_1.DDIC(reg);
41204
- this.parsedType = ddic.textToType(this.parsedXML.datatype, this.parsedXML.length, this.parsedXML.decimals, this.getName(), dataElement, this.parsedXML.conversionExit, dataElement);
41205
- return this.parsedType;
41213
+ return ddic.textToType(this.parsedXML.datatype, this.parsedXML.length, this.parsedXML.decimals, this.getName(), dataElement, this.parsedXML.conversionExit, dataElement);
41206
41214
  }
41207
41215
  parse() {
41208
41216
  var _a, _b, _c, _d, _e, _f, _g;
@@ -45817,7 +45825,7 @@ class Registry {
45817
45825
  }
45818
45826
  static abaplintVersion() {
45819
45827
  // magic, see build script "version.sh"
45820
- return "2.95.3";
45828
+ return "2.95.5";
45821
45829
  }
45822
45830
  getDDICReferences() {
45823
45831
  return this.references;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler-cli",
3
- "version": "2.3.113",
3
+ "version": "2.3.115",
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.113",
28
+ "@abaplint/transpiler": "^2.3.115",
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.3",
32
+ "@abaplint/core": "^2.95.5",
33
33
  "progress": "^2.0.3",
34
34
  "webpack": "^5.75.0",
35
35
  "webpack-cli": "^5.0.1",