@abaplint/transpiler 2.4.15 → 2.4.17

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.
@@ -90,7 +90,7 @@ class SelectTranspiler {
90
90
  for await (const ${unique} of abap.statements.loop(${faeTranspiled})) {
91
91
  await abap.statements.select(${target}, {select: "${select.trim()}"${extra}}, {appending: true});
92
92
  }
93
- abap.statements.sort(${target});
93
+ abap.statements.sort(${target}, {by: Object.keys(${target}.getRowType().get()).map(k => { return {component: k}; })});
94
94
  await abap.statements.deleteInternal(${target}, {adjacent: true});
95
95
  abap.builtin.sy.get().dbcnt.set(${target}.array().length);
96
96
  }`;
@@ -336,7 +336,8 @@ class Traversal {
336
336
  continue;
337
337
  }
338
338
  const n = Traversal.escapeNamespace(name.toLowerCase()) + "$" + a.getName().toLowerCase();
339
- ret += "this." + n + " = " + new transpile_types_1.TranspileTypes().toType(a.getType()) + ";\n";
339
+ // note: interface inheritenace and super inheritance might be strange,
340
+ ret += "if (this." + n + " === undefined) this." + n + " = " + new transpile_types_1.TranspileTypes().toType(a.getType()) + ";\n";
340
341
  }
341
342
  for (const i of (intf === null || intf === void 0 ? void 0 : intf.getImplementing()) || []) {
342
343
  ret += this.dataFromInterfaces(i.name, scope);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler",
3
- "version": "2.4.15",
3
+ "version": "2.4.17",
4
4
  "description": "Transpiler",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",