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); |
+ } |
+} |