Skip to content

Commit 9f76c8d

Browse files
committed
fix comments
1 parent 48c499c commit 9f76c8d

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
@@ -473,6 +473,7 @@ function CollectVars(ast) {
473473
/**
474474
* Secondly, we can convert the if-else to switch-case.
475475
* A dfs search is performed to identify the key of each branch.
476+
* After this step, the `info_choice` is not needed.
476477
*
477478
* 1. Generate an array of all the keys e.g., [0..7]
478479
* 2. Evaluate each key with the test condition
@@ -1179,7 +1180,7 @@ export default function (code) {
11791180
CollectVars(ast)
11801181
// Convert if-else to switch
11811182
FlattenIf(ast)
1182-
// Merge switch case
1183+
// Flatten nested switch
11831184
FlattenSwitch(ast)
11841185
// Convert some for to while
11851186
FlattenFor(ast)

0 commit comments

Comments
 (0)