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

Unified Diff: runtime/vm/object.cc

Issue 22292002: Reflection on generics. (Closed) Base URL: https://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
« no previous file with comments | « runtime/vm/object.h ('k') | tests/lib/lib.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index 0c5e7f56a7b0917c05d00beb3b4f3bbf3345af7d..29c32628347dcf0f08772df870f25fbe8f9ad408 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -14519,6 +14519,11 @@ void WeakProperty::PrintToJSONStream(JSONStream* stream, bool ref) const {
stream->CloseObject();
}
+RawAbstractType* MirrorReference::GetAbstractTypeReferent() const {
+ ASSERT(Object::Handle(referent()).IsAbstractType());
+ return AbstractType::Cast(Object::Handle(referent())).raw();
+}
+
RawClass* MirrorReference::GetClassReferent() const {
ASSERT(Object::Handle(referent()).IsClass());
« no previous file with comments | « runtime/vm/object.h ('k') | tests/lib/lib.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698