Chromium Code Reviews| Index: runtime/vm/object.h |
| =================================================================== |
| --- runtime/vm/object.h (revision 348) |
| +++ runtime/vm/object.h (working copy) |
| @@ -1139,11 +1139,15 @@ |
| return TestType(kIsAssignableTo, dst); |
| } |
| - // Returns true if this function represents a closure function. |
| + // Returns true if this function represents a (possibly implicit) closure |
| + // function. |
| bool IsClosureFunction() const { |
| return kind() == RawFunction::kClosureFunction; |
| } |
| + // Returns true if this function represents an implicit closure function. |
| + bool IsImplicitClosureFunction() const; |
|
siva
2011/10/11 21:00:46
I am wondering if it would be more readable if we
regis
2011/10/11 23:40:19
I'd like to keep IsClosureFunction() to return tru
|
| + |
| // Returns true if this function represents a local function. |
| bool IsLocalFunction() const { |
| return parent_function() != Function::null(); |