| Index: runtime/lib/mirrors_impl.dart
|
| diff --git a/runtime/lib/mirrors_impl.dart b/runtime/lib/mirrors_impl.dart
|
| index e7cc90e2fd5edbe3e092b09c982095076b0f5862..9485663fbc692bdd48f41bc2efbe2a935d3afa37 100644
|
| --- a/runtime/lib/mirrors_impl.dart
|
| +++ b/runtime/lib/mirrors_impl.dart
|
| @@ -593,6 +593,17 @@ class _LocalClassMirrorImpl extends _LocalObjectMirrorImpl
|
| return _mixin;
|
| }
|
|
|
| + Map<Symbol, DeclarationMirror> _declarations;
|
| + Map<Symbol, DeclarationMirror> get declarations {
|
| + if (_declarations != null) return _declarations;
|
| + var decls = new Map<Symbol, DeclarationMirror>();
|
| + decls.addAll(members);
|
| + decls.addAll(constructors);
|
| + typeVariables.forEach((tv) => decls[tv.simpleName] = tv);
|
| + return _declarations =
|
| + new _UnmodifiableMapView<Symbol, DeclarationMirror>(decls);
|
| + }
|
| +
|
| Map<Symbol, Mirror> _members;
|
| Map<Symbol, Mirror> get members {
|
| if (_members == null) {
|
| @@ -912,6 +923,7 @@ class _LocalTypeVariableMirrorImpl extends _LocalDeclarationMirrorImpl
|
| }
|
|
|
| bool get isPrivate => false;
|
| + bool get isStatic => false;
|
|
|
| final bool isTopLevel = false;
|
|
|
| @@ -1098,6 +1110,13 @@ class _LocalLibraryMirrorImpl extends _LocalObjectMirrorImpl
|
|
|
| final Uri uri;
|
|
|
| + Map<Symbol, DeclarationMirror> _declarations;
|
| + Map<Symbol, DeclarationMirror> get declarations {
|
| + if (_declarations != null) return _declarations;
|
| + return _declarations =
|
| + new _UnmodifiableMapView<Symbol, DeclarationMirror>(members);
|
| + }
|
| +
|
| Map<Symbol, Mirror> _members;
|
| Map<Symbol, Mirror> get members {
|
| if (_members == null) {
|
| @@ -1263,7 +1282,7 @@ class _LocalMethodMirrorImpl extends _LocalDeclarationMirrorImpl
|
| if (!isConstructor) {
|
| _constructorName = _s('');
|
| } else {
|
| - var parts = _n(simpleName).split('.');
|
| + var parts = MirrorSystem.getName(simpleName).split('.');
|
| if (parts.length > 2) {
|
| throw new MirrorException(
|
| 'Internal error in MethodMirror.constructorName: '
|
|
|