@abaplint/transpiler 2.5.7 → 2.5.9

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.
@@ -22,6 +22,10 @@ class ReadTableTranspiler {
22
22
  const s = new expressions_1.SourceTranspiler().transpile(from, traversal).getCode();
23
23
  extra.push("from: " + s);
24
24
  }
25
+ const keyName = node.findExpressionAfterToken("KEY");
26
+ if (keyName && node.findDirectTokenByText("COMPONENTS")) {
27
+ extra.push("keyName: \"" + keyName.concatTokens() + "\"");
28
+ }
25
29
  const binary = node.findTokenSequencePosition("BINARY", "SEARCH");
26
30
  if (binary) {
27
31
  extra.push("binarySearch: true");
@@ -331,6 +331,16 @@ class Traversal {
331
331
  dataFromInterfaces(name, scope) {
332
332
  let ret = "";
333
333
  const intf = this.findInterfaceDefinition(name, scope);
334
+ for (const a of (intf === null || intf === void 0 ? void 0 : intf.getAttributes().getConstants()) || []) {
335
+ const fname = Traversal.escapeNamespace(a.getName().toLowerCase());
336
+ const iname = Traversal.escapeNamespace(intf === null || intf === void 0 ? void 0 : intf.getName().toLowerCase());
337
+ if ((intf === null || intf === void 0 ? void 0 : intf.isGlobal()) === true) {
338
+ ret += "this." + iname + "$" + fname + " = abap.Classes['" + (intf === null || intf === void 0 ? void 0 : intf.getName().toUpperCase()) + "']." + iname + "$" + fname + ";\n";
339
+ }
340
+ else {
341
+ ret += "this." + iname + "$" + fname + " = " + iname + "." + iname + "$" + fname + ";\n";
342
+ }
343
+ }
334
344
  for (const a of (intf === null || intf === void 0 ? void 0 : intf.getAttributes().getAll()) || []) {
335
345
  if (a.getMeta().includes("static" /* abaplint.IdentifierMeta.Static */) === true) {
336
346
  continue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler",
3
- "version": "2.5.7",
3
+ "version": "2.5.9",
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.95.25",
31
+ "@abaplint/core": "^2.95.27",
32
32
  "source-map": "^0.7.4"
33
33
  },
34
34
  "devDependencies": {