We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a765067 commit 92db378Copy full SHA for 92db378
src/plugin/awsc.js
@@ -471,6 +471,7 @@ function CollectVars(ast) {
471
/**
472
* Secondly, we can convert the if-else to switch-case.
473
* A dfs search is performed to identify the key of each branch.
474
+ * After this step, the `info_choice` is not needed.
475
*
476
* 1. Generate an array of all the keys e.g., [0..7]
477
* 2. Evaluate each key with the test condition
@@ -1177,7 +1178,7 @@ module.exports = function (code) {
1177
1178
CollectVars(ast)
1179
// Convert if-else to switch
1180
FlattenIf(ast)
- // Merge switch case
1181
+ // Flatten nested switch
1182
FlattenSwitch(ast)
1183
// Convert some for to while
1184
FlattenFor(ast)
0 commit comments