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

Unified Diff: runtime/lib/mirrors_patch.dart

Issue 27226003: Do not hide membership of implementation classes in dart:core. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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 | « runtime/lib/mirrors.cc ('k') | runtime/vm/raw_object.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/mirrors_patch.dart
diff --git a/runtime/lib/mirrors_patch.dart b/runtime/lib/mirrors_patch.dart
index 2dbb6637d633c6799a702950902284c6863ce27d..93d1876f2c7a48b92004637bb8cb2453128e45ce 100644
--- a/runtime/lib/mirrors_patch.dart
+++ b/runtime/lib/mirrors_patch.dart
@@ -43,7 +43,9 @@ patch ClassMirror reflectClass(Type key) {
patch class MirrorSystem {
/* patch */ static String getName(Symbol symbol) {
- return _unmangleName(_symbol_dev.Symbol.getName(symbol));
+ String string = _symbol_dev.Symbol.getName(symbol);
+ if (string.contains(' with ')) return string;
+ return _unmangleName(string);
}
/* patch */ static Symbol getSymbol(String name, [LibraryMirror library]) {
if (library is! LibraryMirror ||
« no previous file with comments | « runtime/lib/mirrors.cc ('k') | runtime/vm/raw_object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698