Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(758)

Unified Diff: sdk/lib/_internal/compiler/implementation/lib/mirrors.dart

Issue 11595007: Revert "Mirrors implemented via patches." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 {

Powered by Google App Engine
This is Rietveld 408576698