@abaplint/transpiler 2.0.38 → 2.0.39
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.
|
@@ -9,10 +9,21 @@ class WriteTranspiler {
|
|
|
9
9
|
const extra = [];
|
|
10
10
|
let source;
|
|
11
11
|
const newLine = ((_a = node.findFirstExpression(abaplint.Expressions.WriteOffsetLength)) === null || _a === void 0 ? void 0 : _a.findDirectTokenByText("/")) !== undefined;
|
|
12
|
+
const concat = node.concatTokens().toUpperCase();
|
|
12
13
|
const target = node.findDirectExpression(abaplint.Expressions.Target);
|
|
13
14
|
if (target) {
|
|
14
15
|
extra.push("target: " + traversal.traverse(target).getCode());
|
|
15
16
|
}
|
|
17
|
+
const exponent = node.findExpressionAfterToken("EXPONENT");
|
|
18
|
+
if (exponent) {
|
|
19
|
+
extra.push("exponent: " + traversal.traverse(exponent).getCode());
|
|
20
|
+
}
|
|
21
|
+
if (concat.includes("NO-GROUPING")) {
|
|
22
|
+
extra.push("noGrouping: true");
|
|
23
|
+
}
|
|
24
|
+
if (concat.includes("NO-SIGN")) {
|
|
25
|
+
extra.push("noSign: true");
|
|
26
|
+
}
|
|
16
27
|
const expr = node.findDirectExpression(abaplint.Expressions.Source);
|
|
17
28
|
if (expr === undefined) {
|
|
18
29
|
source = new chunk_1.Chunk().append("''", node, traversal);
|