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

Unified Diff: sdk/lib/_internal/compiler/implementation/lib/core_patch.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/lib/core_patch.dart
diff --git a/sdk/lib/_internal/compiler/implementation/lib/core_patch.dart b/sdk/lib/_internal/compiler/implementation/lib/core_patch.dart
index 1da20f6e90c14bd70e32cbfd216d45c2efffb1d7..350e0fc1f039f55770d82d1510d68ed64724fddf 100644
--- a/sdk/lib/_internal/compiler/implementation/lib/core_patch.dart
+++ b/sdk/lib/_internal/compiler/implementation/lib/core_patch.dart
@@ -248,19 +248,19 @@ patch class NoSuchMethodError {
if (_arguments != null) {
for (; i < _arguments.length; i++) {
if (i > 0) {
- sb.add(", ");
+ sb.write(", ");
}
- sb.add(Error.safeToString(_arguments[i]));
+ sb.write(Error.safeToString(_arguments[i]));
}
}
if (_namedArguments != null) {
_namedArguments.forEach((String key, var value) {
if (i > 0) {
- sb.add(", ");
+ sb.write(", ");
}
- sb.add(key);
- sb.add(": ");
- sb.add(Error.safeToString(value));
+ sb.write(key);
+ sb.write(": ");
+ sb.write(Error.safeToString(value));
i++;
});
}
@@ -273,9 +273,9 @@ patch class NoSuchMethodError {
sb = new StringBuffer();
for (int i = 0; i < _existingArgumentNames.length; i++) {
if (i > 0) {
- sb.add(", ");
+ sb.write(", ");
}
- sb.add(_existingArgumentNames[i]);
+ sb.write(_existingArgumentNames[i]);
}
String formalParameters = sb.toString();
return "NoSuchMethodError: incorrect number of arguments passed to "

Powered by Google App Engine
This is Rietveld 408576698