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

Unified Diff: member.dart

Issue 8386036: fix strings bug (Closed) Base URL: https://dart.googlecode.com/svn/experimental/frog
Patch Set: Created 9 years, 1 month 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: member.dart
diff --git a/member.dart b/member.dart
index 22c9ff5eb2d60c05efeb8ce74d0bf28c3bb93702..7662074524be68918c79a2f270db08bd26b2b97b 100644
--- a/member.dart
+++ b/member.dart
@@ -1018,9 +1018,8 @@ class MethodMember extends Member {
val1 = val1.substring(1, val1.length - 1);
}
var value = '${val0}${val1}';
- var escapedValue = value.replaceAll('"', '\\"');
- return new EvaluatedValue(world.stringType, value, '"$escapedValue"',
- node.span);
+ value = '"' + value.replaceAll('"', '\\"') + '"';
ahe 2011/11/02 18:17:58 What happens with these strings: "\"" '\\"'
jimhug 2011/11/03 00:57:21 This does seem to fix this issue - but I share Pet
Siggi Cherem (dart-lang) 2011/11/03 17:31:28 The issue is basically how we are representing str
Jennifer Messerly 2011/11/03 17:49:40 +1 on normalizing strings in the tokenizer, rather
+ return new EvaluatedValue(world.stringType, value, value, node.span);
}
// Ensure we generate toString on the right side
« 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