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 48c499c commit 9f76c8dCopy full SHA for 9f76c8d
src/plugin/awsc.js
@@ -473,6 +473,7 @@ function CollectVars(ast) {
473
/**
474
* Secondly, we can convert the if-else to switch-case.
475
* A dfs search is performed to identify the key of each branch.
476
+ * After this step, the `info_choice` is not needed.
477
*
478
* 1. Generate an array of all the keys e.g., [0..7]
479
* 2. Evaluate each key with the test condition
@@ -1179,7 +1180,7 @@ export default function (code) {
1179
1180
CollectVars(ast)
1181
// Convert if-else to switch
1182
FlattenIf(ast)
- // Merge switch case
1183
+ // Flatten nested switch
1184
FlattenSwitch(ast)
1185
// Convert some for to while
1186
FlattenFor(ast)
0 commit comments