| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // VM-specific implementation of the dart:mirrors library. | 5 // VM-specific implementation of the dart:mirrors library. |
| 6 | 6 |
| 7 import "dart:collection" show UnmodifiableListView, UnmodifiableMapView; |
| 8 import "dart:async" show Future; |
| 9 |
| 7 var dirty = false; | 10 var dirty = false; |
| 8 final emptyList = new UnmodifiableListView([]); | 11 final emptyList = new UnmodifiableListView([]); |
| 9 final emptyMap = new UnmodifiableMapView({}); | 12 final emptyMap = new UnmodifiableMapView({}); |
| 10 | 13 |
| 11 class _InternalMirrorError { | 14 class _InternalMirrorError { |
| 12 final String _msg; | 15 final String _msg; |
| 13 const _InternalMirrorError(String this._msg); | 16 const _InternalMirrorError(String this._msg); |
| 14 String toString() => _msg; | 17 String toString() => _msg; |
| 15 } | 18 } |
| 16 | 19 |
| (...skipping 1650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1667 if (typeMirror == null) { | 1670 if (typeMirror == null) { |
| 1668 typeMirror = makeLocalTypeMirror(key); | 1671 typeMirror = makeLocalTypeMirror(key); |
| 1669 _instantiationCache[key] = typeMirror; | 1672 _instantiationCache[key] = typeMirror; |
| 1670 if (typeMirror is ClassMirror && !typeMirror._isGeneric) { | 1673 if (typeMirror is ClassMirror && !typeMirror._isGeneric) { |
| 1671 _declarationCache[key] = typeMirror; | 1674 _declarationCache[key] = typeMirror; |
| 1672 } | 1675 } |
| 1673 } | 1676 } |
| 1674 return typeMirror; | 1677 return typeMirror; |
| 1675 } | 1678 } |
| 1676 } | 1679 } |
| OLD | NEW |