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

Unified Diff: sdk/lib/_internal/compiler/implementation/tree/prettyprint.dart

Issue 27510003: Scanner for UTF-8 byte arrays (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fixes compiler tests 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
Index: sdk/lib/_internal/compiler/implementation/tree/prettyprint.dart
diff --git a/sdk/lib/_internal/compiler/implementation/tree/prettyprint.dart b/sdk/lib/_internal/compiler/implementation/tree/prettyprint.dart
index 4135a52ef6f5ffbba9e128b745906a3593e03d41..cc398a67a1f915d47052984fcd98c863f5915e6b 100644
--- a/sdk/lib/_internal/compiler/implementation/tree/prettyprint.dart
+++ b/sdk/lib/_internal/compiler/implementation/tree/prettyprint.dart
@@ -90,7 +90,9 @@ class PrettyPrinter implements Visitor {
params.forEach((k, v) {
String value;
if (v != null) {
- value = v
+ var str = v;
+ if (v is Token) str = v.value;
+ value = str
.replaceAll("<", "&lt;")
.replaceAll(">", "&gt;")
.replaceAll('"', "'");

Powered by Google App Engine
This is Rietveld 408576698