Huáng Jùnliàng 38529699d6
Refactor await/yield production parameter tracking (#10956)
* test: add test fixtures

* refactor: track AWAIT and YIELD in separate handler

* fix flow errors

* add flow type annotation to production-parameter

* address review comments

* refactor: track [Return] parameter
2020-02-09 15:31:29 +01:00

7 lines
101 B
JavaScript

function* foo() {
class C {
// here yield is an identifier reference
p = yield + 42;
}
}