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

Unified Diff: pkg/yaml/lib/parser.dart

Issue 12473003: Remove deprecated StringBuffer.add, addAll and addCharCode. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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: pkg/yaml/lib/parser.dart
diff --git a/pkg/yaml/lib/parser.dart b/pkg/yaml/lib/parser.dart
index 386bb591240736300cbf0f8d1218dd1bcc7b4c53..c84f3741d94ae3c92edb6872552b336b7ca9ef3e 100644
--- a/pkg/yaml/lib/parser.dart
+++ b/pkg/yaml/lib/parser.dart
@@ -347,13 +347,13 @@ class _Parser {
capturingAs = false;
if (!truth(res)) return res;
- capturedString.add(transformation(s.substring(captureStart, pos)));
+ capturedString.write(transformation(s.substring(captureStart, pos)));
captureStart = pos;
return res;
}
void flushCapture() {
- capturedString.add(s.substring(captureStart, pos));
+ capturedString.write(s.substring(captureStart, pos));
captureStart = pos;
}

Powered by Google App Engine
This is Rietveld 408576698