@abaplint/transpiler 2.12.7 → 2.12.8
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.
|
@@ -28,7 +28,11 @@ class PerformTranspiler {
|
|
|
28
28
|
const name = t.getFirstToken().getStr();
|
|
29
29
|
params.push(`"${name}": ` + traversal.traverse(t).getCode());
|
|
30
30
|
}
|
|
31
|
-
|
|
31
|
+
let call = "await " + ref + `({${params.join(",")}});`;
|
|
32
|
+
if (node.concatTokens().toUpperCase().includes(" IF FOUND")) {
|
|
33
|
+
call = `if (${ref} !== undefined) { ${call} }`;
|
|
34
|
+
}
|
|
35
|
+
return new chunk_1.Chunk(call);
|
|
32
36
|
}
|
|
33
37
|
else {
|
|
34
38
|
// todo: most of this needs rewriting?
|