@abaplint/core 2.85.52 → 2.85.53
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.
package/build/src/registry.js
CHANGED
|
@@ -884,7 +884,7 @@ ${indentation} output = ${topTarget}.`;
|
|
|
884
884
|
}
|
|
885
885
|
return undefined;
|
|
886
886
|
}
|
|
887
|
-
outlineFor(forLoop, indentation) {
|
|
887
|
+
outlineFor(forLoop, indentation, lowFile, highSyntax) {
|
|
888
888
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
889
889
|
let body = "";
|
|
890
890
|
let end = "";
|
|
@@ -917,6 +917,10 @@ ${indentation} output = ${topTarget}.`;
|
|
|
917
917
|
body += indentation + `LOOP AT ${loopSource} ASSIGNING FIELD-SYMBOL(${loopTargetFieldSymbol}).\n`;
|
|
918
918
|
end = "ENDLOOP";
|
|
919
919
|
}
|
|
920
|
+
const l = forLoop.findDirectExpression(Expressions.Let);
|
|
921
|
+
if (l) {
|
|
922
|
+
body += this.outlineLet(l, indentation, highSyntax, lowFile);
|
|
923
|
+
}
|
|
920
924
|
return { body, end };
|
|
921
925
|
}
|
|
922
926
|
outlineSwitch(node, lowFile, highSyntax) {
|
|
@@ -1015,7 +1019,7 @@ ${indentation} output = ${topTarget}.`;
|
|
|
1015
1019
|
if (forLoop === undefined) {
|
|
1016
1020
|
continue;
|
|
1017
1021
|
}
|
|
1018
|
-
const outlineFor = this.outlineFor(forLoop, indentation);
|
|
1022
|
+
const outlineFor = this.outlineFor(forLoop, indentation, lowFile, highSyntax);
|
|
1019
1023
|
body += outlineFor.body;
|
|
1020
1024
|
const next = reduceBody.findDirectExpression(Expressions.ReduceNext);
|
|
1021
1025
|
if (next === undefined) {
|
|
@@ -1074,7 +1078,7 @@ ${indentation} output = ${topTarget}.`;
|
|
|
1074
1078
|
let body = "";
|
|
1075
1079
|
let end = "";
|
|
1076
1080
|
for (const forLoop of (valueBody === null || valueBody === void 0 ? void 0 : valueBody.findDirectExpressions(Expressions.For)) || []) {
|
|
1077
|
-
const outlineFor = this.outlineFor(forLoop, indentation);
|
|
1081
|
+
const outlineFor = this.outlineFor(forLoop, indentation, lowFile, highSyntax);
|
|
1078
1082
|
body += outlineFor.body;
|
|
1079
1083
|
end = outlineFor.end + `.\n` + end;
|
|
1080
1084
|
indentation += " ";
|