@abaplint/transpiler 2.7.69 → 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.
@@ -94,6 +94,7 @@ class ConstantTranspiler {
94
94
  || str.includes("\r")
95
95
  || str.includes("\r")
96
96
  || str.includes("\t")
97
+ || str.includes("\f")
97
98
  || str.includes("\v")
98
99
  || str.includes("\b")) {
99
100
  str = JSON.stringify(str);
@@ -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 renamingSuffix = {};
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
- renamingSuffix[c.name.toLowerCase()] = c.suffix;
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(renamingSuffix);
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler",
3
- "version": "2.7.69",
3
+ "version": "2.7.71",
4
4
  "description": "Transpiler",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",