@abaplint/transpiler-cli 2.3.113 → 2.3.114

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 +14 -9
  2. package/package.json +3 -3
package/build/bundle.js CHANGED
@@ -32345,9 +32345,14 @@ class CharacterType extends _abstract_type_1.AbstractType {
32345
32345
  }
32346
32346
  this.length = length;
32347
32347
  }
32348
- cloneType(qualifiedName) {
32348
+ cloneType(qualifiedName, ddicName) {
32349
32349
  const clone = Object.assign({}, this.getAbstractTypeData()) || {};
32350
- clone.qualifiedName = qualifiedName;
32350
+ if (qualifiedName) {
32351
+ clone.qualifiedName = qualifiedName;
32352
+ }
32353
+ if (ddicName) {
32354
+ clone.ddicName = ddicName;
32355
+ }
32351
32356
  return new CharacterType(this.length, clone);
32352
32357
  }
32353
32358
  getLength() {
@@ -41190,19 +41195,19 @@ class Domain extends _abstract_object_1.AbstractObject {
41190
41195
  }
41191
41196
  setDirty() {
41192
41197
  this.parsedXML = undefined;
41193
- this.parsedType = undefined;
41194
41198
  super.setDirty();
41195
41199
  }
41196
41200
  parseType(reg, dataElement) {
41197
- if (this.parsedType) {
41198
- return this.parsedType;
41201
+ // dont cache the DOMA parsed type, they are cached on DTEL level
41202
+ // also note that the type carries the name of the DTEL
41203
+ if (this.parsedXML === undefined) {
41204
+ this.parse();
41199
41205
  }
41200
- else if (this.parsedXML === undefined) {
41206
+ if (this.parsedXML === undefined) {
41201
41207
  return new Types.UnknownType("Domain " + this.getName() + " parser error", this.getName());
41202
41208
  }
41203
41209
  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;
41210
+ return ddic.textToType(this.parsedXML.datatype, this.parsedXML.length, this.parsedXML.decimals, this.getName(), dataElement, this.parsedXML.conversionExit, dataElement);
41206
41211
  }
41207
41212
  parse() {
41208
41213
  var _a, _b, _c, _d, _e, _f, _g;
@@ -45817,7 +45822,7 @@ class Registry {
45817
45822
  }
45818
45823
  static abaplintVersion() {
45819
45824
  // magic, see build script "version.sh"
45820
- return "2.95.3";
45825
+ return "2.95.4";
45821
45826
  }
45822
45827
  getDDICReferences() {
45823
45828
  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.114",
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.114",
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.4",
33
33
  "progress": "^2.0.3",
34
34
  "webpack": "^5.75.0",
35
35
  "webpack-cli": "^5.0.1",