| 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 /** | |
| 6 * The dart:mirrors library provides reflective access for Dart programs. | |
| 7 * | |
| 8 * Mirrors are currently only supported by the Dart VM. | |
| 9 */ | |
| 10 #library("dart:mirrors"); | 5 #library("dart:mirrors"); |
| 11 | 6 |
| 12 #import("dart:isolate"); | 7 #import("dart:isolate"); |
| 13 | 8 |
| 14 #source("../../../mirrors/mirrors.dart"); | 9 #source("../../../mirrors/mirrors.dart"); |
| 15 | 10 |
| 16 /** | 11 /** |
| 17 * Stub class for the mirror system. | 12 * Stub class for the mirror system. |
| 18 */ | 13 */ |
| 19 class _Mirrors { | 14 class _Mirrors { |
| 20 static MirrorSystem currentMirrorSystem() { | 15 static MirrorSystem currentMirrorSystem() { |
| 21 throw new UnsupportedOperationException("MirrorSystem not implemented"); | 16 throw new UnsupportedOperationException("MirrorSystem not implemented"); |
| 22 } | 17 } |
| 23 | 18 |
| 24 static Future<MirrorSystem> mirrorSystemOf(SendPort port) { | 19 static Future<MirrorSystem> mirrorSystemOf(SendPort port) { |
| 25 throw new UnsupportedOperationException("MirrorSystem not implemented"); | 20 throw new UnsupportedOperationException("MirrorSystem not implemented"); |
| 26 } | 21 } |
| 27 | 22 |
| 28 static InstanceMirror reflect(Object reflectee) { | 23 static InstanceMirror reflect(Object reflectee) { |
| 29 throw new UnsupportedOperationException("MirrorSystem not implemented"); | 24 throw new UnsupportedOperationException("MirrorSystem not implemented"); |
| 30 } | 25 } |
| 31 } | 26 } |
| OLD | NEW |