File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
src/main/scala/scala/async/internal Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,11 @@ trait LiveVariables {
9
9
/**
10
10
* Returns for a given state a list of fields (as trees) that should be nulled out
11
11
* upon resuming that state (at the beginning of `resume`).
12
+ *
13
+ * @param asyncStates the states of an `async` block
14
+ * @param liftables the lifted fields
15
+ * @return a map mapping a state to the fields that should be nulled out
16
+ * upon resuming that state
12
17
*/
13
18
def fieldsToNullOut (asyncStates : List [AsyncState ], liftables : List [Tree ]): Map [Int , List [Tree ]] = {
14
19
// live variables analysis:
@@ -38,7 +43,9 @@ trait LiveVariables {
38
43
* (possible through loops), the corresponding field should be nulled out (at the beginning of
39
44
* `resume`).
40
45
*
41
- * @return a map which indicates for a given field (the key) the states in which it should be nulled out
46
+ * @param asyncStates the states of an `async` block
47
+ * @param liftables the lifted fields
48
+ * @return a map which indicates for a given field (the key) the states in which it should be nulled out
42
49
*/
43
50
def liveVars (asyncStates : List [AsyncState ], liftables : List [Tree ]): Map [Tree , Set [Int ]] = {
44
51
val liftedSyms : Set [Symbol ] = // include only vars
You can’t perform that action at this time.
0 commit comments