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

Unified Diff: sdk/lib/_internal/compiler/implementation/mirrors/mirrors_util.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: sdk/lib/_internal/compiler/implementation/mirrors/mirrors_util.dart
diff --git a/sdk/lib/_internal/compiler/implementation/mirrors/mirrors_util.dart b/sdk/lib/_internal/compiler/implementation/mirrors/mirrors_util.dart
index d9040897b7ded34cc6ff893c6c03d7ff0d14c377..2a2c1feab86d002ebe74ade24ade1e81fa598369 100644
--- a/sdk/lib/_internal/compiler/implementation/mirrors/mirrors_util.dart
+++ b/sdk/lib/_internal/compiler/implementation/mirrors/mirrors_util.dart
@@ -138,13 +138,13 @@ String stripComment(String comment) {
for (int index = 0 ; index < lines.length ; index++) {
String line = lines[index];
if (index == 0) {
- sb.add(line); // Add the first line unprocessed.
+ sb.write(line); // Add the first line unprocessed.
continue;
}
- sb.add('\n');
+ sb.write('\n');
match = _multiLineCommentLineStart.firstMatch(line);
if (match != null) {
- sb.add(match[1]);
+ sb.write(match[1]);
} else if (index < lines.length-1 || !line.trim().isEmpty) {
// Do not add the last line if it only contains white space.
// This interprets cases like
@@ -152,7 +152,7 @@ String stripComment(String comment) {
// * Foo
// */
// as "\nFoo\n" and not as "\nFoo\n ".
- sb.add(line);
+ sb.write(line);
}
}
return sb.toString();

Powered by Google App Engine
This is Rietveld 408576698