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

Unified Diff: runtime/lib/mirrors_impl.dart

Issue 23657002: Ensure class mirrors on non-generic classes always have their runtime type set. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebase 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/lib/mirrors_impl.dart
diff --git a/runtime/lib/mirrors_impl.dart b/runtime/lib/mirrors_impl.dart
index 4d211ec92db990fba528430ce4ae3ce70a20e5a6..e990fc7820d59aed5da6690c014f2868af82f04b 100644
--- a/runtime/lib/mirrors_impl.dart
+++ b/runtime/lib/mirrors_impl.dart
@@ -283,6 +283,7 @@ class _LocalInstanceMirrorImpl extends _LocalObjectMirrorImpl
identical(_reflectee, other._reflectee);
}
+ // TODO(rmacnak): Use the reflectee's identity hash.
siva 2013/08/28 23:12:06 Please open an issue for this and use the issue nu
int get hashCode => _reflectee.hashCode;
_invoke(reflectee, functionName, positionalArguments)
@@ -584,8 +585,7 @@ class _LocalClassMirrorImpl extends _LocalObjectMirrorImpl
bool operator ==(other) {
return this.runtimeType == other.runtimeType &&
this._reflectee == other._reflectee &&
- (isOriginalDeclaration ||
- this._reflectedType == other._reflectedType);
+ this._reflectedType == other._reflectedType;
}
int get hashCode => simpleName.hashCode;
« runtime/lib/mirrors.cc ('K') | « runtime/lib/mirrors.cc ('k') | tests/lib/lib.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698