Index: runtime/lib/mirrors_impl.dart |
diff --git a/runtime/lib/mirrors_impl.dart b/runtime/lib/mirrors_impl.dart |
index cd8182f713c69e43510b4beb22e21adf14c6cc26..310c9f7b48b997589ce658ab2ed42fdff2009365 100644 |
--- a/runtime/lib/mirrors_impl.dart |
+++ b/runtime/lib/mirrors_impl.dart |
@@ -52,8 +52,9 @@ Map _filterMap(Map<Symbol, dynamic> old_map, bool filter(Symbol key, value)) { |
} |
Map _makeMemberMap(List mirrors) { |
- return new _UnmodifiableMapView( |
- new Map<Symbol, dynamic>.fromIterable(mirrors, key: (e) => e.simpleName)); |
+ return new _UnmodifiableMapView<Symbol, DeclarationMirror>( |
+ new Map<Symbol, DeclarationMirror>.fromIterable( |
+ mirrors, key: (e) => e.simpleName)); |
} |
String _n(Symbol symbol) => _symbol_dev.Symbol.getName(symbol); |
@@ -653,7 +654,8 @@ class _LocalClassMirror extends _LocalObjectMirror |
var constructorsList = _computeConstructors(_reflectee); |
var stringName = _n(simpleName); |
constructorsList.forEach((c) => c._patchConstructorName(stringName)); |
- _cachedConstructors = _makeMemberMap(constructorsList); |
+ _cachedConstructors = |
+ new Map.fromIterable(constructorsList, key: (e) => e.simpleName); |
} |
return _cachedConstructors; |
} |