| Index: sdk/lib/_internal/compiler/implementation/lib/mirrors.dart
|
| diff --git a/sdk/lib/_internal/compiler/implementation/lib/mirrors_patch.dart b/sdk/lib/_internal/compiler/implementation/lib/mirrors.dart
|
| similarity index 82%
|
| rename from sdk/lib/_internal/compiler/implementation/lib/mirrors_patch.dart
|
| rename to sdk/lib/_internal/compiler/implementation/lib/mirrors.dart
|
| index 8a2f57c1c571ff786de8d8f67c8c65aa67085e69..6728d4790c2500b7c378412d6917e453bcd7d564 100644
|
| --- a/sdk/lib/_internal/compiler/implementation/lib/mirrors_patch.dart
|
| +++ b/sdk/lib/_internal/compiler/implementation/lib/mirrors.dart
|
| @@ -2,26 +2,30 @@
|
| // 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.
|
|
|
| -/**
|
| - * Patch library for dart:mirrors.
|
| - */
|
| +library dart_mirrors;
|
| +
|
| +import 'dart:isolate';
|
| +
|
| +part '../../../../mirrors/mirrors.dart';
|
|
|
| /**
|
| * Stub class for the mirror system.
|
| */
|
| -patch MirrorSystem currentMirrorSystem() {
|
| - _ensureEnabled();
|
| - throw new UnsupportedError("MirrorSystem not implemented");
|
| -}
|
| +class _Mirrors {
|
| + static MirrorSystem currentMirrorSystem() {
|
| + _ensureEnabled();
|
| + throw new UnsupportedError("MirrorSystem not implemented");
|
| + }
|
|
|
| -patch Future<MirrorSystem> mirrorSystemOf(SendPort port) {
|
| - _ensureEnabled();
|
| - throw new UnsupportedError("MirrorSystem not implemented");
|
| -}
|
| + static Future<MirrorSystem> mirrorSystemOf(SendPort port) {
|
| + _ensureEnabled();
|
| + throw new UnsupportedError("MirrorSystem not implemented");
|
| + }
|
|
|
| -patch InstanceMirror reflect(Object reflectee) {
|
| - _ensureEnabled();
|
| - return new _InstanceMirror(reflectee);
|
| + static InstanceMirror reflect(Object reflectee) {
|
| + _ensureEnabled();
|
| + return new _InstanceMirror(reflectee);
|
| + }
|
| }
|
|
|
| class _InstanceMirror extends InstanceMirror {
|
|
|