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

Unified Diff: dart/runtime/lib/mirrors_patch.dart

Issue 14173005: Update dart:mirrors to use Symbol. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix various issues discovered during own review. Created 7 years, 8 months 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: dart/runtime/lib/mirrors_patch.dart
diff --git a/dart/runtime/lib/mirrors_patch.dart b/dart/runtime/lib/mirrors_patch.dart
index 78bbbd6e6b2fa628333ccc3c9a415118f05075ac..0d2c0a3949f26f3b7eed87e79fc2547e646d696c 100644
--- a/dart/runtime/lib/mirrors_patch.dart
+++ b/dart/runtime/lib/mirrors_patch.dart
@@ -3,6 +3,7 @@
// BSD-style license that can be found in the LICENSE file.
import "dart:nativewrappers";
+import "dart:_collection-dev" as _collection_dev;
Søren Gjesse 2013/04/15 14:08:31 Maybe use a different "as" name (e.g. _mirror) to
ahe 2013/04/15 14:29:55 Done. (I called it _symbol_dev).
/**
* Returns a [MirrorSystem] for the current isolate.
@@ -28,3 +29,9 @@ patch Future<MirrorSystem> mirrorSystemOf(SendPort port) {
patch InstanceMirror reflect(Object reflectee) {
return _Mirrors.reflect(reflectee);
}
+
+patch class MirrorSystem {
+ /* patch */ static String getName(Symbol symbol) {
+ return _collection_dev.Symbol.getName(symbol);
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698