| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 /** |
| 6 * Returns a [MirrorSystem] for the current isolate. |
| 7 */ |
| 8 patch MirrorSystem currentMirrorSystem() { |
| 9 return _Mirrors.currentMirrorSystem(); |
| 10 } |
| 11 |
| 12 /** |
| 13 * Creates a [MirrorSystem] for the isolate which is listening on |
| 14 * the [SendPort]. |
| 15 */ |
| 16 patch Future<MirrorSystem> mirrorSystemOf(SendPort port) { |
| 17 return _Mirrors.mirrorSystemOf(port); |
| 18 } |
| 19 |
| 20 /** |
| 21 * Returns an [InstanceMirror] for some Dart language object. |
| 22 * |
| 23 * This only works if this mirror system is associated with the |
| 24 * current running isolate. |
| 25 */ |
| 26 patch InstanceMirror reflect(Object reflectee) { |
| 27 return _Mirrors.reflect(reflectee); |
| 28 } |
| OLD | NEW |