@abaplint/transpiler 2.11.52 → 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.
@@ -164,7 +164,7 @@ class SourceTranspiler {
164
164
  if (typ.startsWith("new abap.types.DataReference(") === false) {
165
165
  throw new Error("transpiler: REF # unexpected type");
166
166
  }
167
- ret.append(`${typ}.assign(`, c, traversal);
167
+ ret.append(`abap.statements.getReference(${typ}, `, c, traversal);
168
168
  post.append(")", c, traversal);
169
169
  }
170
170
  else if (c instanceof core_1.Nodes.TokenNode && c.getFirstToken().getStr().toUpperCase() === "BIT") { // todo, this will not work in the general case
@@ -17,9 +17,9 @@ class GetReferenceTranspiler {
17
17
  const target = traversal.traverse(t);
18
18
  return new chunk_1.Chunk()
19
19
  .appendString("abap.statements.getReference(")
20
- .appendChunk(source)
21
- .appendString(", ")
22
20
  .appendChunk(target)
21
+ .appendString(", ")
22
+ .appendChunk(source)
23
23
  .append(");", node.getLastToken(), traversal);
24
24
  }
25
25
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler",
3
- "version": "2.11.52",
3
+ "version": "2.11.53",
4
4
  "description": "Transpiler",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",