@abaplint/core 2.85.48 → 2.85.49
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.
|
@@ -4,9 +4,11 @@ exports.ReduceNext = void 0;
|
|
|
4
4
|
const combi_1 = require("../combi");
|
|
5
5
|
const _1 = require(".");
|
|
6
6
|
const tokens_1 = require("../../1_lexer/tokens");
|
|
7
|
+
const version_1 = require("../../../version");
|
|
7
8
|
class ReduceNext extends combi_1.Expression {
|
|
8
9
|
getRunnable() {
|
|
9
|
-
const
|
|
10
|
+
const calcAssign = (0, combi_1.ver)(version_1.Version.v754, (0, combi_1.alt)((0, combi_1.seq)((0, combi_1.tok)(tokens_1.WPlus), "="), (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WDash), "="), "/=", "*=", "&&="));
|
|
11
|
+
const fields = (0, combi_1.seq)(_1.Field, (0, combi_1.altPrio)("=", calcAssign), _1.Source);
|
|
10
12
|
return (0, combi_1.seq)("NEXT", (0, combi_1.plus)(fields));
|
|
11
13
|
}
|
|
12
14
|
}
|
package/build/src/registry.js
CHANGED
|
@@ -1014,17 +1014,18 @@ ${indentation} output = ${topTarget}.`;
|
|
|
1014
1014
|
continue;
|
|
1015
1015
|
}
|
|
1016
1016
|
for (const n of next.getChildren()) {
|
|
1017
|
-
|
|
1017
|
+
const concat = n.concatTokens();
|
|
1018
|
+
if (concat.toUpperCase() === "NEXT") {
|
|
1018
1019
|
continue;
|
|
1019
1020
|
}
|
|
1020
|
-
else if (n.concatTokens() === "=") {
|
|
1021
|
-
body += " = ";
|
|
1022
|
-
}
|
|
1023
1021
|
else if (n.get() instanceof Expressions.Field) {
|
|
1024
|
-
body += indentation + " " +
|
|
1022
|
+
body += indentation + " " + concat + " ";
|
|
1025
1023
|
}
|
|
1026
1024
|
else if (n.get() instanceof Expressions.Source) {
|
|
1027
|
-
body +=
|
|
1025
|
+
body += " " + concat + ".\n";
|
|
1026
|
+
}
|
|
1027
|
+
else {
|
|
1028
|
+
body += concat;
|
|
1028
1029
|
}
|
|
1029
1030
|
}
|
|
1030
1031
|
body += indentation + outlineFor.end + `.\n`;
|