@abaplint/transpiler 2.7.70 → 2.7.71
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.
|
@@ -78,11 +78,15 @@ class TranspileTypes {
|
|
|
78
78
|
else if (type instanceof abaplint.BasicTypes.StructureType) {
|
|
79
79
|
resolved = "Structure";
|
|
80
80
|
const list = [];
|
|
81
|
-
const
|
|
81
|
+
const suffix = {};
|
|
82
|
+
const asInclude = {};
|
|
82
83
|
for (const c of type.getComponents()) {
|
|
83
84
|
list.push(`"` + c.name.toLowerCase() + `": ` + this.toType(c.type));
|
|
84
85
|
if (c.suffix) {
|
|
85
|
-
|
|
86
|
+
suffix[c.name.toLowerCase()] = c.suffix;
|
|
87
|
+
}
|
|
88
|
+
if (c.asInclude) {
|
|
89
|
+
asInclude[c.name.toLowerCase()] = true;
|
|
86
90
|
}
|
|
87
91
|
}
|
|
88
92
|
extra = "{" + list.join(", ") + "}";
|
|
@@ -98,7 +102,8 @@ class TranspileTypes {
|
|
|
98
102
|
else {
|
|
99
103
|
extra += ", undefined";
|
|
100
104
|
}
|
|
101
|
-
extra += ", " + JSON.stringify(
|
|
105
|
+
extra += ", " + JSON.stringify(suffix);
|
|
106
|
+
extra += ", " + JSON.stringify(asInclude);
|
|
102
107
|
}
|
|
103
108
|
else if (type instanceof abaplint.BasicTypes.CLikeType
|
|
104
109
|
|| type instanceof abaplint.BasicTypes.CGenericType
|