@abaplint/transpiler 2.7.64 → 2.7.66

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.
@@ -40,11 +40,12 @@ class Rearranger {
40
40
  // multiplication/division and left to right
41
41
  for (let i = arith.length - 1; i >= 0; i--) {
42
42
  const a = arith[i];
43
- if (a.concatTokens() === "*"
44
- || a.concatTokens() === "/"
45
- || a.concatTokens() === "**"
46
- || a.concatTokens() === "MOD"
47
- || a.concatTokens() === "DIV") {
43
+ const concat = a.concatTokens().toUpperCase();
44
+ if (concat === "*"
45
+ || concat === "/"
46
+ || concat === "**"
47
+ || concat === "MOD"
48
+ || concat === "DIV") {
48
49
  continue;
49
50
  }
50
51
  splitAt = a;
@@ -78,11 +78,11 @@ class TranspileTypes {
78
78
  else if (type instanceof abaplint.BasicTypes.StructureType) {
79
79
  resolved = "Structure";
80
80
  const list = [];
81
- const renamingSuffix = [];
81
+ const renamingSuffix = {};
82
82
  for (const c of type.getComponents()) {
83
83
  list.push(`"` + c.name.toLowerCase() + `": ` + this.toType(c.type));
84
84
  if (c.renamingSuffix) {
85
- renamingSuffix.push(c.renamingSuffix);
85
+ renamingSuffix[c.name.toLowerCase()] = c.renamingSuffix;
86
86
  }
87
87
  }
88
88
  extra = "{" + list.join(", ") + "}";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler",
3
- "version": "2.7.64",
3
+ "version": "2.7.66",
4
4
  "description": "Transpiler",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",