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

Unified Diff: dart/pkg/observe/lib/src/path_observer.dart

Issue 23455028: Mirrors overhaul. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Merged with r29550. Created 7 years, 2 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 | dart/pkg/path/lib/path.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/pkg/observe/lib/src/path_observer.dart
diff --git a/dart/pkg/observe/lib/src/path_observer.dart b/dart/pkg/observe/lib/src/path_observer.dart
index 6384f6ee4735851af401ca70b290b348f9a9b7d0..963f31f53783a5bdb8e89f4200724ee1d09a3423 100644
--- a/dart/pkg/observe/lib/src/path_observer.dart
+++ b/dart/pkg/observe/lib/src/path_observer.dart
@@ -283,7 +283,7 @@ bool _setObjectProperty(object, property, value) {
bool _maybeHasGetter(ClassMirror type, Symbol name) {
while (type != objectType) {
- final members = type.members;
+ final members = type.declarations;
if (members.containsKey(name)) return true;
if (members.containsKey(#noSuchMethod)) return true;
type = _safeSuperclass(type);
@@ -299,7 +299,7 @@ Symbol _setterName(Symbol getter) =>
bool _maybeHasSetter(ClassMirror type, Symbol name) {
var setterName = _setterName(name);
while (type != objectType) {
- final members = type.members;
+ final members = type.declarations;
if (members[name] is VariableMirror) return true;
if (members.containsKey(setterName)) return true;
if (members.containsKey(#noSuchMethod)) return true;
@@ -314,7 +314,7 @@ bool _maybeHasSetter(ClassMirror type, Symbol name) {
*/
bool _hasMethod(ClassMirror type, Symbol name) {
while (type != objectType) {
- final member = type.members[name];
+ final member = type.declarations[name];
if (member is MethodMirror && member.isRegularMethod) return true;
type = _safeSuperclass(type);
}
« no previous file with comments | « no previous file | dart/pkg/path/lib/path.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698