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

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

Issue 11624011: Mirrors implemented via patches. 2nd try. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased 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
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/lib/mirrors.dart ('k') | sdk/lib/_internal/libraries.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 {
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/lib/mirrors.dart ('k') | sdk/lib/_internal/libraries.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698