@abaplint/transpiler-cli 2.14.23 → 2.14.24
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/bundle.js +4 -3
- package/package.json +2 -2
package/build/bundle.js
CHANGED
|
@@ -123034,17 +123034,18 @@ class SwitchBodyTranspiler {
|
|
|
123034
123034
|
let mode = "";
|
|
123035
123035
|
for (const c of body.getChildren()) {
|
|
123036
123036
|
if (c instanceof core_1.Nodes.TokenNode) {
|
|
123037
|
-
|
|
123037
|
+
const keyword = c.concatTokens().toUpperCase();
|
|
123038
|
+
if (keyword === "WHEN") {
|
|
123038
123039
|
if (currentWhenThen.whenOr.length > 0) {
|
|
123039
123040
|
whenThenOr.push(currentWhenThen);
|
|
123040
123041
|
}
|
|
123041
123042
|
currentWhenThen = { whenOr: [], then: undefined };
|
|
123042
123043
|
mode = "WHEN";
|
|
123043
123044
|
}
|
|
123044
|
-
else if (
|
|
123045
|
+
else if (keyword === "THEN") {
|
|
123045
123046
|
mode = "THEN";
|
|
123046
123047
|
}
|
|
123047
|
-
else if (
|
|
123048
|
+
else if (keyword === "ELSE") {
|
|
123048
123049
|
mode = "";
|
|
123049
123050
|
}
|
|
123050
123051
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler-cli",
|
|
3
|
-
"version": "2.14.
|
|
3
|
+
"version": "2.14.24",
|
|
4
4
|
"description": "Transpiler - Command Line Interface",
|
|
5
5
|
"funding": "https://github.com/sponsors/larshp",
|
|
6
6
|
"bin": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@abaplint/core": "^2.120.98",
|
|
31
|
-
"@abaplint/transpiler": "^2.14.
|
|
31
|
+
"@abaplint/transpiler": "^2.14.24",
|
|
32
32
|
"@types/glob": "^9.0.0",
|
|
33
33
|
"@types/node": "^26.6.6",
|
|
34
34
|
"@types/progress": "^2.0.7",
|