@abaplint/transpiler 2.3.52 → 2.3.54

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.
@@ -96,12 +96,25 @@ class TranspileTypes {
96
96
  }
97
97
  else if (type instanceof abaplint.BasicTypes.CharacterType) {
98
98
  resolved = "Character";
99
+ const e = {
100
+ length: type.getLength() || undefined,
101
+ qualifiedName: type.getQualifiedName(),
102
+ conversionExit: type.getConversionExit(),
103
+ };
104
+ if (type.getLength() === 1) {
105
+ delete e.length;
106
+ }
107
+ extra = JSON.stringify(e);
108
+ if (extra === "{}") {
109
+ extra = "";
110
+ }
111
+ /*
99
112
  if (type.getLength() !== 1) {
100
- extra = "{length: " + type.getLength() + ", qualifiedName: \"" + type.getQualifiedName() + "\"}";
101
- }
102
- else if (type.getQualifiedName() !== undefined) {
103
- extra = "{qualifiedName: \"" + type.getQualifiedName() + "\"}";
113
+ extra = "{length: " + type.getLength() + ", qualifiedName: \"" + type.getQualifiedName() + "\"}";
114
+ } else if (type.getQualifiedName() !== undefined) {
115
+ extra = "{qualifiedName: \"" + type.getQualifiedName() + "\"}";
104
116
  }
117
+ */
105
118
  }
106
119
  else if (type instanceof abaplint.BasicTypes.NumericType) {
107
120
  resolved = "Numc";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler",
3
- "version": "2.3.52",
3
+ "version": "2.3.54",
4
4
  "description": "Transpiler",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",
@@ -28,7 +28,7 @@
28
28
  "author": "abaplint",
29
29
  "license": "MIT",
30
30
  "dependencies": {
31
- "@abaplint/core": "^2.93.92",
31
+ "@abaplint/core": "^2.93.94",
32
32
  "source-map": "^0.7.4"
33
33
  },
34
34
  "devDependencies": {