@abaplint/transpiler 2.13.44 → 2.13.45
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.
|
@@ -94,7 +94,12 @@ class SourceTranspiler {
|
|
|
94
94
|
ret = new chunk_1.Chunk().appendString("(").appendChunk(ret).appendString(").dereference()");
|
|
95
95
|
}
|
|
96
96
|
else if (c.get() instanceof core_1.Expressions.TextElement) {
|
|
97
|
-
|
|
97
|
+
const key = c.findFirstExpression(core_1.Expressions.TextElementKey)?.concatTokens().toUpperCase();
|
|
98
|
+
const textSymbol = key === undefined
|
|
99
|
+
? undefined
|
|
100
|
+
: traversal.getCurrentObject().getTextSymbols()[key]?.entry;
|
|
101
|
+
const value = textSymbol ?? c.concatTokens();
|
|
102
|
+
ret = new chunk_1.Chunk().appendString(`new abap.types.String().set(${JSON.stringify(value)})`);
|
|
98
103
|
}
|
|
99
104
|
else if (c.get() instanceof core_1.Expressions.TypeNameOrInfer) {
|
|
100
105
|
continue;
|