@abaplint/transpiler 2.10.63 → 2.10.64
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.
|
@@ -6,7 +6,14 @@ const chunk_1 = require("../chunk");
|
|
|
6
6
|
class CollectTranspiler {
|
|
7
7
|
transpile(node, traversal) {
|
|
8
8
|
const source = traversal.traverse(node.findDirectExpression(abaplint.Expressions.Source));
|
|
9
|
-
const
|
|
9
|
+
const targetExpression = node.findDirectExpression(abaplint.Expressions.Target);
|
|
10
|
+
if (targetExpression === undefined) {
|
|
11
|
+
return new chunk_1.Chunk()
|
|
12
|
+
.appendString("abap.statements.collect(")
|
|
13
|
+
.appendChunk(source)
|
|
14
|
+
.appendString(");");
|
|
15
|
+
}
|
|
16
|
+
const target = traversal.traverse(targetExpression);
|
|
10
17
|
const fstarget = node.findDirectExpression(abaplint.Expressions.FSTarget);
|
|
11
18
|
if (fstarget) {
|
|
12
19
|
return new chunk_1.Chunk(`throw new Error("Collect, transpiler todo");`);
|