@abaplint/transpiler 2.3.51 → 2.3.53
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
|
-
|
|
101
|
-
}
|
|
102
|
-
|
|
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/build/src/traversal.js
CHANGED
|
@@ -416,10 +416,11 @@ class Traversal {
|
|
|
416
416
|
else if (typeof val === "object") {
|
|
417
417
|
const a = val;
|
|
418
418
|
for (const v of Object.keys(val)) {
|
|
419
|
-
|
|
419
|
+
let s = a[v];
|
|
420
420
|
if (s === undefined) {
|
|
421
421
|
continue;
|
|
422
422
|
}
|
|
423
|
+
s = new expressions_1.ConstantTranspiler().escape(s);
|
|
423
424
|
ret += name + ".get()." + v + ".set(" + s + ");\n";
|
|
424
425
|
}
|
|
425
426
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.53",
|
|
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.
|
|
31
|
+
"@abaplint/core": "^2.93.93",
|
|
32
32
|
"source-map": "^0.7.4"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|