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