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

Unified Diff: sdk/lib/mirrors/mirrors.dart

Issue 938513002: Add ClassMirror.isEnum. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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: sdk/lib/mirrors/mirrors.dart
diff --git a/sdk/lib/mirrors/mirrors.dart b/sdk/lib/mirrors/mirrors.dart
index 1c30bdcac10aef4611976d0eb120074a73416a3e..db7594d829ae1db9b396c5802470c22edd369251 100644
--- a/sdk/lib/mirrors/mirrors.dart
+++ b/sdk/lib/mirrors/mirrors.dart
@@ -744,6 +744,11 @@ abstract class ClassMirror implements TypeMirror, ObjectMirror {
bool get isAbstract;
/**
+ * Is the reflectee an enum?
+ */
+ bool get isEnum;
+
+ /**
* Returns an immutable map of the declarations actually given in the class
* declaration.
*

Powered by Google App Engine
This is Rietveld 408576698