1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
function* f() { let x = 1; // Flow in yield x; // ^ defined: 2 // Flow out yield y = 1; /**/ y; // ^ defined: 11 // Flow around /**/ x; // ^ defined: 2 }