@abaplint/transpiler-cli 2.11.51 → 2.11.53

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 +3 -6
  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
@@ -85964,13 +85964,10 @@ class GetReferenceTranspiler {
85964
85964
  }
85965
85965
  const source = traversal.traverse(s);
85966
85966
  const target = traversal.traverse(t);
85967
- if (s.getFirstToken().getStr().startsWith("<")) {
85968
- // its a field symbol
85969
- source.appendString(".getPointer()");
85970
- }
85971
85967
  return new chunk_1.Chunk()
85968
+ .appendString("abap.statements.getReference(")
85972
85969
  .appendChunk(target)
85973
- .appendString(".assign(")
85970
+ .appendString(", ")
85974
85971
  .appendChunk(source)
85975
85972
  .append(");", node.getLastToken(), traversal);
85976
85973
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler-cli",
3
- "version": "2.11.51",
3
+ "version": "2.11.53",
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.51",
31
+ "@abaplint/transpiler": "^2.11.53",
32
32
  "@types/glob": "^8.1.0",
33
33
  "@types/node": "^24.3.0",
34
34
  "@types/progress": "^2.0.7",