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