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

Unified Diff: sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.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/js_backend/runtime_types.dart
diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart b/sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart
index a43e089975691306ac33a0696c21ecd70ae02bc7..262d16c26fe6f3c349bf55035957a926bc8001b4 100644
--- a/sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart
@@ -300,7 +300,8 @@ class TypeCheckMapping implements TypeChecks {
StringBuffer sb = new StringBuffer();
for (ClassElement holder in this) {
for (ClassElement check in [holder]) {
- sb.add('${holder.name.slowToString()}.${check.name.slowToString()}, ');
+ sb.write(
+ '${holder.name.slowToString()}.${check.name.slowToString()}, ');
}
}
return '[$sb]';

Powered by Google App Engine
This is Rietveld 408576698