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

Unified Diff: runtime/lib/mirrors_impl.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: runtime/lib/mirrors_impl.dart
diff --git a/runtime/lib/mirrors_impl.dart b/runtime/lib/mirrors_impl.dart
index fb43637e841f1481498e2a77e105db22edeaad9a..2cbb083de8c9753b2449fce7319ce445dae20c75 100644
--- a/runtime/lib/mirrors_impl.dart
+++ b/runtime/lib/mirrors_impl.dart
@@ -587,6 +587,7 @@ class _LocalClassMirror extends _LocalObjectMirror
final bool _isGeneric;
final bool _isMixinAlias;
final bool _isGenericDeclaration;
+ final bool isEnum;
Type _instantiator;
_LocalClassMirror(reflectee,
@@ -596,7 +597,8 @@ class _LocalClassMirror extends _LocalObjectMirror
this.isAbstract,
this._isGeneric,
this._isMixinAlias,
- this._isGenericDeclaration)
+ this._isGenericDeclaration,
+ this.isEnum)
: this._simpleName = _s(simpleName),
this._reflectedType = reflectedType,
this._instantiator = reflectedType,
@@ -969,7 +971,7 @@ class _LocalClassMirror extends _LocalObjectMirror
class _LocalFunctionTypeMirror extends _LocalClassMirror
implements FunctionTypeMirror {
_LocalFunctionTypeMirror(reflectee, reflectedType)
- : super(reflectee, reflectedType, null, null, false, false, false, false);
+ : super(reflectee, reflectedType, null, null, false, false, false, false, false);
bool get _isAnonymousMixinApplication => false;

Powered by Google App Engine
This is Rietveld 408576698