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 import "dart:async" show Future; |
| 6 import "dart:collection" show UnmodifiableListView, UnmodifiableMapView; |
5 import "dart:_internal" as internal; | 7 import "dart:_internal" as internal; |
6 | 8 |
7 /** | 9 /** |
8 * Returns a [MirrorSystem] for the current isolate. | 10 * Returns a [MirrorSystem] for the current isolate. |
9 */ | 11 */ |
10 @patch MirrorSystem currentMirrorSystem() { | 12 @patch MirrorSystem currentMirrorSystem() { |
11 return _Mirrors.currentMirrorSystem(); | 13 return _Mirrors.currentMirrorSystem(); |
12 } | 14 } |
13 | 15 |
14 /** | 16 /** |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 ((name.length > 0) && (name[0] == '_') && (library == null))) { | 61 ((name.length > 0) && (name[0] == '_') && (library == null))) { |
60 throw new ArgumentError(library); | 62 throw new ArgumentError(library); |
61 } | 63 } |
62 if (library != null) name = _mangleName(name, library._reflectee); | 64 if (library != null) name = _mangleName(name, library._reflectee); |
63 return new internal.Symbol.unvalidated(name); | 65 return new internal.Symbol.unvalidated(name); |
64 } | 66 } |
65 | 67 |
66 static _mangleName(String name, _MirrorReference lib) | 68 static _mangleName(String name, _MirrorReference lib) |
67 native "Mirrors_mangleName"; | 69 native "Mirrors_mangleName"; |
68 } | 70 } |
OLD | NEW |