@abaplint/transpiler 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.
|
@@ -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(
|
|
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
|
|
@@ -15,13 +15,10 @@ class GetReferenceTranspiler {
|
|
|
15
15
|
}
|
|
16
16
|
const source = traversal.traverse(s);
|
|
17
17
|
const target = traversal.traverse(t);
|
|
18
|
-
if (s.getFirstToken().getStr().startsWith("<")) {
|
|
19
|
-
// its a field symbol
|
|
20
|
-
source.appendString(".getPointer()");
|
|
21
|
-
}
|
|
22
18
|
return new chunk_1.Chunk()
|
|
19
|
+
.appendString("abap.statements.getReference(")
|
|
23
20
|
.appendChunk(target)
|
|
24
|
-
.appendString("
|
|
21
|
+
.appendString(", ")
|
|
25
22
|
.appendChunk(source)
|
|
26
23
|
.append(");", node.getLastToken(), traversal);
|
|
27
24
|
}
|