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

Unified Diff: runtime/lib/mirrors_impl.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: runtime/lib/mirrors_impl.dart
diff --git a/runtime/lib/mirrors_impl.dart b/runtime/lib/mirrors_impl.dart
index d8c78e12bdbb34af710de83e3d7e8c006c528906..b4923abfb808d28698ab4df441bb01a2b18315f7 100644
--- a/runtime/lib/mirrors_impl.dart
+++ b/runtime/lib/mirrors_impl.dart
@@ -22,24 +22,24 @@ Map _filterMap(Map old_map, bool filter(key, value)) {
String _makeSignatureString(TypeMirror returnType,
List<ParameterMirror> parameters) {
StringBuffer buf = new StringBuffer();
- buf.add(returnType.qualifiedName);
- buf.add(' (');
+ buf.write(returnType.qualifiedName);
+ buf.write(' (');
bool found_optional_param = false;
for (int i = 0; i < parameters.length; i++) {
var param = parameters[i];
if (param.isOptional && !found_optional_param) {
- buf.add('[');
+ buf.write('[');
found_optional_param = true;
}
- buf.add(param.type.qualifiedName);
+ buf.write(param.type.qualifiedName);
if (i < (parameters.length - 1)) {
- buf.add(', ');
+ buf.write(', ');
}
}
if (found_optional_param) {
- buf.add(']');
+ buf.write(']');
}
- buf.add(')');
+ buf.write(')');
return buf.toString();
}
@@ -253,7 +253,7 @@ String _dartEscape(String str) {
}
break;
}
- buf.add(output);
+ buf.write(output);
}
return buf.toString();
}

Powered by Google App Engine
This is Rietveld 408576698