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

Unified Diff: runtime/lib/symbol_patch.dart

Issue 385903002: Don't expose mangling/minification scheme in Symbol.toString. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/symbol_patch.dart
diff --git a/runtime/lib/symbol_patch.dart b/runtime/lib/symbol_patch.dart
index be09eaef8c985eac7d3c929c2d0665a53378a4a3..35a0d88e95bb2b470eb52e111b4ca80643ff281e 100644
--- a/runtime/lib/symbol_patch.dart
+++ b/runtime/lib/symbol_patch.dart
@@ -2,7 +2,11 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
+import 'dart:mirrors';
+
patch class Symbol {
/* patch */ const Symbol(String name)
: this._name = name;
+
+ /* patch */ toString() => 'Symbol("${MirrorSystem.getName(this)}")';
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698