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

Unified Diff: runtime/lib/mirrors.cc

Issue 128933003: Add ClassMirror.isAbstract to the API and VM implementation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 11 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 | « no previous file | runtime/lib/mirrors_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/mirrors.cc
diff --git a/runtime/lib/mirrors.cc b/runtime/lib/mirrors.cc
index 3d228cdf4bb0eb05627855a8ff2437639644284d..55115899e69f1a57d43ec7d8e9ea87ae783e2c74 100644
--- a/runtime/lib/mirrors.cc
+++ b/runtime/lib/mirrors.cc
@@ -335,7 +335,7 @@ static RawInstance* CreateClassMirror(const Class& cls,
const Bool& is_generic = Bool::Get(cls.NumTypeParameters() != 0);
const Bool& is_mixin_app_alias = Bool::Get(cls.is_mixin_app_alias());
- const Array& args = Array::Handle(Array::New(7));
+ const Array& args = Array::Handle(Array::New(8));
args.SetAt(0, MirrorReference::Handle(MirrorReference::New(cls)));
args.SetAt(1, type);
// We do not set the names of anonymous mixin applications because the mirrors
@@ -345,9 +345,10 @@ static RawInstance* CreateClassMirror(const Class& cls,
args.SetAt(2, String::Handle(cls.Name()));
}
args.SetAt(3, owner_mirror);
- args.SetAt(4, is_generic);
- args.SetAt(5, is_mixin_app_alias);
- args.SetAt(6, cls.NumTypeParameters() == 0 ? Bool::False() : is_declaration);
+ args.SetAt(4, Bool::Get(cls.is_abstract()));
+ args.SetAt(5, is_generic);
+ args.SetAt(6, is_mixin_app_alias);
+ args.SetAt(7, cls.NumTypeParameters() == 0 ? Bool::False() : is_declaration);
return CreateMirror(Symbols::_LocalClassMirror(), args);
}
« no previous file with comments | « no previous file | runtime/lib/mirrors_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698