Chromium Code Reviews| Index: runtime/vm/object.h |
| =================================================================== |
| --- runtime/vm/object.h (revision 10521) |
| +++ runtime/vm/object.h (working copy) |
| @@ -1523,6 +1523,16 @@ |
| malformed_error); |
| } |
| + // Returns true if this function represents a getter. |
|
regis
2012/08/10 22:41:08
You should comment that implicit getters are not r
hausner
2012/08/10 22:51:01
Done. I just wanted to replace the "kind == kGette
|
| + bool IsGetterFunction() const { |
| + return kind() == RawFunction::kGetterFunction; |
| + } |
| + |
| + // Returns true if this function represents a setter. |
| + bool IsSetterFunction() const { |
|
regis
2012/08/10 22:41:08
You should comment that implicit setters are not r
hausner
2012/08/10 22:51:01
Done.
|
| + return kind() == RawFunction::kSetterFunction; |
| + } |
| + |
| // Returns true if this function represents a (possibly implicit) closure |
| // function. |
| bool IsClosureFunction() const { |