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

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: Also use _symbol_dev.Symbol.getName in dart2js 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
« no previous file with comments | « dart/runtime/lib/mirrors_impl.dart ('k') | dart/runtime/lib/symbol_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..1c2e015aeada25367de0ce5078d17f13821a5cb8 100644
--- a/dart/runtime/lib/mirrors_patch.dart
+++ b/dart/runtime/lib/mirrors_patch.dart
@@ -3,6 +3,8 @@
// BSD-style license that can be found in the LICENSE file.
import "dart:nativewrappers";
+// TODO(ahe): Move _symbol_dev.Symbol to its own "private" library?
+import "dart:_collection-dev" as _symbol_dev;
/**
* Returns a [MirrorSystem] for the current isolate.
@@ -28,3 +30,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 _symbol_dev.Symbol.getName(symbol);
+ }
+}
« no previous file with comments | « dart/runtime/lib/mirrors_impl.dart ('k') | dart/runtime/lib/symbol_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698