@abaplint/transpiler 2.1.35 → 2.1.38
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.
- package/build/src/transpile_types.js +14 -2
- package/package.json +2 -2
|
@@ -8,7 +8,7 @@ class TranspileTypes {
|
|
|
8
8
|
return "let " + t.getName().toLowerCase() + " = " + this.toType(type) + ";";
|
|
9
9
|
}
|
|
10
10
|
toType(type) {
|
|
11
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
11
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
12
12
|
let resolved = "";
|
|
13
13
|
let extra = "";
|
|
14
14
|
if (type instanceof abaplint.BasicTypes.ObjectReferenceType
|
|
@@ -96,9 +96,15 @@ class TranspileTypes {
|
|
|
96
96
|
}
|
|
97
97
|
else if (type instanceof abaplint.BasicTypes.NumericType) {
|
|
98
98
|
resolved = "Numc";
|
|
99
|
-
if (type.getLength() !== 1) {
|
|
99
|
+
if (type.getQualifiedName() && type.getLength() !== 1) {
|
|
100
|
+
extra = "{length: " + type.getLength() + ", qualifiedName: \"" + type.getQualifiedName() + "\"}";
|
|
101
|
+
}
|
|
102
|
+
else if (type.getLength() !== 1) {
|
|
100
103
|
extra = "{length: " + type.getLength() + "}";
|
|
101
104
|
}
|
|
105
|
+
else if (type.getQualifiedName()) {
|
|
106
|
+
extra = "{qualifiedName: \"" + type.getQualifiedName() + "\"}";
|
|
107
|
+
}
|
|
102
108
|
}
|
|
103
109
|
else if (type instanceof abaplint.BasicTypes.PackedType) {
|
|
104
110
|
resolved = "Packed";
|
|
@@ -131,9 +137,15 @@ class TranspileTypes {
|
|
|
131
137
|
}
|
|
132
138
|
else if (type instanceof abaplint.BasicTypes.FloatType) {
|
|
133
139
|
resolved = "Float";
|
|
140
|
+
if (type.getQualifiedName() !== undefined) {
|
|
141
|
+
extra = "{qualifiedName: \"" + ((_h = type.getQualifiedName()) === null || _h === void 0 ? void 0 : _h.toUpperCase()) + "\"}";
|
|
142
|
+
}
|
|
134
143
|
}
|
|
135
144
|
else if (type instanceof abaplint.BasicTypes.FloatingPointType) {
|
|
136
145
|
resolved = "Float";
|
|
146
|
+
if (type.getQualifiedName() !== undefined) {
|
|
147
|
+
extra = "{qualifiedName: \"" + ((_j = type.getQualifiedName()) === null || _j === void 0 ? void 0 : _j.toUpperCase()) + "\"}";
|
|
148
|
+
}
|
|
137
149
|
}
|
|
138
150
|
else if (type instanceof abaplint.BasicTypes.DecFloat34Type) {
|
|
139
151
|
resolved = "DecFloat34";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.38",
|
|
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.91.
|
|
31
|
+
"@abaplint/core": "^2.91.31",
|
|
32
32
|
"source-map": "^0.7.4"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|