| Index: sdk/lib/mirrors/mirrors_impl.dart
|
| diff --git a/sdk/lib/mirrors/mirrors.dart b/sdk/lib/mirrors/mirrors_impl.dart
|
| similarity index 96%
|
| copy from sdk/lib/mirrors/mirrors.dart
|
| copy to sdk/lib/mirrors/mirrors_impl.dart
|
| index baeb939c0816407e0683f600148962703e98926e..31effd0c92697485c06593a2de7a7633268c28d2 100644
|
| --- a/sdk/lib/mirrors/mirrors.dart
|
| +++ b/sdk/lib/mirrors/mirrors_impl.dart
|
| @@ -2,18 +2,6 @@
|
| // for details. All rights reserved. Use of this source code is governed by a
|
| // BSD-style license that can be found in the LICENSE file.
|
|
|
| -// For the purposes of the mirrors library, we adopt a naming
|
| -// convention with respect to getters and setters. Specifically, for
|
| -// some variable or field...
|
| -//
|
| -// var myField;
|
| -//
|
| -// ...the getter is named 'myField' and the setter is named
|
| -// 'myField='. This allows us to assign unique names to getters and
|
| -// setters for the purposes of member lookup.
|
| -
|
| -// library dart.mirrors;
|
| -
|
| /**
|
| * A [MirrorSystem] is the main interface used to reflect on a set of
|
| * associated libraries.
|
| @@ -53,17 +41,13 @@ abstract class MirrorSystem {
|
| /**
|
| * Returns a [MirrorSystem] for the current isolate.
|
| */
|
| -MirrorSystem currentMirrorSystem() {
|
| - return _Mirrors.currentMirrorSystem();
|
| -}
|
| +external MirrorSystem currentMirrorSystem();
|
|
|
| /**
|
| * Creates a [MirrorSystem] for the isolate which is listening on
|
| * the [SendPort].
|
| */
|
| -Future<MirrorSystem> mirrorSystemOf(SendPort port) {
|
| - return _Mirrors.mirrorSystemOf(port);
|
| -}
|
| +external Future<MirrorSystem> mirrorSystemOf(SendPort port);
|
|
|
| /**
|
| * Returns an [InstanceMirror] for some Dart language object.
|
| @@ -71,9 +55,7 @@ Future<MirrorSystem> mirrorSystemOf(SendPort port) {
|
| * This only works if this mirror system is associated with the
|
| * current running isolate.
|
| */
|
| -InstanceMirror reflect(Object reflectee) {
|
| - return _Mirrors.reflect(reflectee);
|
| -}
|
| +external InstanceMirror reflect(Object reflectee);
|
|
|
| /**
|
| * A [Mirror] reflects some Dart language entity.
|
|
|