Chromium Code Reviews| Index: runtime/vm/object.h |
| =================================================================== |
| --- runtime/vm/object.h (revision 26566) |
| +++ runtime/vm/object.h (working copy) |
| @@ -3761,6 +3761,7 @@ |
| virtual bool IsFinalized() const; |
| virtual bool IsBeingFinalized() const; |
| virtual bool IsMalformed() const; |
| + virtual bool IsMalbounded(Error* bound_error) const; |
|
srdjan
2013/08/23 23:47:02
I think it would be better to have tow methods:
-
regis
2013/08/26 17:44:57
Done.
|
| virtual RawError* malformed_error() const; |
| virtual void set_malformed_error(const Error& value) const; |
| virtual bool IsResolved() const; |
| @@ -3898,6 +3899,7 @@ |
| } |
| void set_is_being_finalized() const; |
| virtual bool IsMalformed() const; |
| + virtual bool IsMalbounded(Error* bound_error) const; |
| virtual RawError* malformed_error() const; |
| virtual void set_malformed_error(const Error& value) const; |
| virtual bool IsResolved() const; // Class and all arguments classes resolved. |
| @@ -4005,6 +4007,7 @@ |
| void set_is_finalized() const; |
| virtual bool IsBeingFinalized() const { return false; } |
| virtual bool IsMalformed() const { return false; } |
| + virtual bool IsMalbounded(Error* bound_error) const { return false; } |
| virtual bool IsResolved() const { return true; } |
| virtual bool HasResolvedTypeClass() const { return false; } |
| RawClass* parameterized_class() const { |
| @@ -4067,6 +4070,7 @@ |
| return AbstractType::Handle(type()).IsBeingFinalized(); |
| } |
| virtual bool IsMalformed() const; |
| + virtual bool IsMalbounded(Error* bound_error) const; |
| virtual RawError* malformed_error() const; |
| virtual bool IsResolved() const { return true; } |
| virtual bool HasResolvedTypeClass() const { |
| @@ -4134,7 +4138,9 @@ |
| public: |
| // MixinAppType objects are replaced with their actual finalized type. |
| virtual bool IsFinalized() const { return false; } |
| + // TODO(regis): Handle malformed and malbounded MixinAppType. |
| virtual bool IsMalformed() const { return false; } |
| + virtual bool IsMalbounded(Error* bound_error) const { return false; } |
| virtual bool IsResolved() const { return false; } |
| virtual bool HasResolvedTypeClass() const { return false; } |
| virtual RawString* Name() const; |