Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(141)

Unified Diff: runtime/vm/object.h

Issue 23190035: Distinguish between malformed and malbounded types (fix issues 12552 and 12554). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698