| Index: runtime/vm/object.h
|
| ===================================================================
|
| --- runtime/vm/object.h (revision 43883)
|
| +++ runtime/vm/object.h (working copy)
|
| @@ -2172,6 +2172,20 @@
|
| Function::Handle(parent_function()).IsSyncGenerator();
|
| }
|
|
|
| + bool IsGeneratorClosure() const {
|
| + return is_generated_body() &&
|
| + Function::Handle(parent_function()).IsGenerator();
|
| + }
|
| +
|
| + bool IsAsyncGenerator() const {
|
| + return modifier() == RawFunction::kAsyncGen;
|
| + }
|
| +
|
| + bool IsAsyncGenClosure() const {
|
| + return is_generated_body() &&
|
| + Function::Handle(parent_function()).IsAsyncGenerator();
|
| + }
|
| +
|
| bool IsAsyncOrGenerator() const {
|
| return modifier() != RawFunction::kNoModifier;
|
| }
|
|
|