@abaplint/transpiler-cli 2.11.52 → 2.11.54

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.
Files changed (2) hide show
  1. package/build/bundle.js +4 -5
  2. package/package.json +2 -2
package/build/bundle.js CHANGED
@@ -80766,7 +80766,7 @@ class SourceTranspiler {
80766
80766
  if (typ.startsWith("new abap.types.DataReference(") === false) {
80767
80767
  throw new Error("transpiler: REF # unexpected type");
80768
80768
  }
80769
- ret.append(`${typ}.assign(`, c, traversal);
80769
+ ret.append(`abap.statements.getReference(${typ}, `, c, traversal);
80770
80770
  post.append(")", c, traversal);
80771
80771
  }
80772
80772
  else if (c instanceof core_1.Nodes.TokenNode && c.getFirstToken().getStr().toUpperCase() === "BIT") { // todo, this will not work in the general case
@@ -85966,9 +85966,9 @@ class GetReferenceTranspiler {
85966
85966
  const target = traversal.traverse(t);
85967
85967
  return new chunk_1.Chunk()
85968
85968
  .appendString("abap.statements.getReference(")
85969
- .appendChunk(source)
85970
- .appendString(", ")
85971
85969
  .appendChunk(target)
85970
+ .appendString(", ")
85971
+ .appendChunk(source)
85972
85972
  .append(");", node.getLastToken(), traversal);
85973
85973
  }
85974
85974
  }
@@ -88428,8 +88428,6 @@ class SetHandlerTranspiler {
88428
88428
  }
88429
88429
  eventName = method.def.getEventName();
88430
88430
  eventClass = this.findEventClass(method.def, traversal, scope);
88431
- // className = method.def.getEventClass();
88432
- // this.findEventClass(def, eventName, traversal, scope);
88433
88431
  }
88434
88432
  }
88435
88433
  let f = undefined;
@@ -88447,6 +88445,7 @@ class SetHandlerTranspiler {
88447
88445
  }
88448
88446
  return new chunk_1.Chunk().append(`abap.statements.setHandler({EVENT_NAME: "${eventName}", EVENT_CLASS: "${eventClass}"}, [${methods.join(",")}], ${f}${activation});`, node, traversal);
88449
88447
  }
88448
+ ///////////////////////////////////////////////////////////////////////
88450
88449
  findEventClass(mdef, traversal, scope) {
88451
88450
  let def = traversal.findClassDefinition(mdef.getEventClass(), scope);
88452
88451
  if (def === undefined) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler-cli",
3
- "version": "2.11.52",
3
+ "version": "2.11.54",
4
4
  "description": "Transpiler - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -28,7 +28,7 @@
28
28
  "license": "MIT",
29
29
  "devDependencies": {
30
30
  "@abaplint/core": "^2.113.186",
31
- "@abaplint/transpiler": "^2.11.52",
31
+ "@abaplint/transpiler": "^2.11.54",
32
32
  "@types/glob": "^8.1.0",
33
33
  "@types/node": "^24.3.0",
34
34
  "@types/progress": "^2.0.7",