Skip to content

Commit 92db378

Browse files
committed
fix comments
1 parent a765067 commit 92db378

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/plugin/awsc.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,7 @@ function CollectVars(ast) {
471471
/**
472472
* Secondly, we can convert the if-else to switch-case.
473473
* A dfs search is performed to identify the key of each branch.
474+
* After this step, the `info_choice` is not needed.
474475
*
475476
* 1. Generate an array of all the keys e.g., [0..7]
476477
* 2. Evaluate each key with the test condition
@@ -1177,7 +1178,7 @@ module.exports = function (code) {
11771178
CollectVars(ast)
11781179
// Convert if-else to switch
11791180
FlattenIf(ast)
1180-
// Merge switch case
1181+
// Flatten nested switch
11811182
FlattenSwitch(ast)
11821183
// Convert some for to while
11831184
FlattenFor(ast)

0 commit comments

Comments
 (0)