@abaplint/transpiler 2.4.6 → 2.4.7
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.
|
@@ -20,7 +20,7 @@ class SQLCondTranspiler {
|
|
|
20
20
|
const chain = (_a = c.findDirectExpression(abaplint.Expressions.Dynamic)) === null || _a === void 0 ? void 0 : _a.findFirstExpression(abaplint.Expressions.FieldChain);
|
|
21
21
|
if (chain) {
|
|
22
22
|
const code = new field_chain_1.FieldChainTranspiler(true).transpile(chain, traversal).getCode();
|
|
23
|
-
ret += `" + (${code}
|
|
23
|
+
ret += `" + abap.expandDynamic(${code}, (name) => {try { return eval(name);} catch {}}) + "`;
|
|
24
24
|
}
|
|
25
25
|
else {
|
|
26
26
|
throw new Error("SQL Condition, transpiler todo, dyn cond, " + c.concatTokens());
|