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