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

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

Issue 12294028: Fix warnings spotted by dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 10 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: dart/sdk/lib/_internal/compiler/implementation/tree/dartstring.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/tree/dartstring.dart b/dart/sdk/lib/_internal/compiler/implementation/tree/dartstring.dart
index 5a3494d6e906e04323a80917f984fd2baa648a82..70e2d69877e7fd66abf6cb6d75a9966a4dfebbc7 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/tree/dartstring.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/tree/dartstring.dart
@@ -100,7 +100,7 @@ class EscapedSourceDartString extends SourceBasedDartString {
StringBuffer buffer = new StringBuffer();
StringEscapeIterator it = new StringEscapeIterator(source);
while (it.moveNext()) {
- buffer.addCharCode(it.current);
+ buffer.writeCharCode(it.current);
}
toStringCache = buffer.toString();
return toStringCache;

Powered by Google App Engine
This is Rietveld 408576698