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

Unified Diff: utils/template/htmltree.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: utils/template/htmltree.dart
diff --git a/utils/template/htmltree.dart b/utils/template/htmltree.dart
index 16db0a9f22ebcff6b9b29851ebd014a569dead0d..0b642c6644b21f38ac59ca977c2f9cc203b899c1 100644
--- a/utils/template/htmltree.dart
+++ b/utils/template/htmltree.dart
@@ -63,13 +63,13 @@ class TemplateSignature extends ASTNode {
bool first = true;
for (final param in params) {
if (!first) {
- buff.add(", ");
+ buff.write(", ");
}
if (param['type'] != null) {
- buff.add(param['type']);
- buff.add(' ');
+ buff.write(param['type']);
+ buff.write(' ');
}
- buff.add(param['name']);
+ buff.write(param['name']);
first = false;
}
@@ -102,7 +102,7 @@ class TemplateChildren extends ASTNode {
StringBuffer buff = new StringBuffer();
if (children != null) {
for (final child in children) {
- buff.add(child.toString());
+ buff.write(child.toString());
}
}
@@ -125,13 +125,13 @@ class TemplateGetter extends ASTNode {
bool first = true;
for (final param in params) {
if (!first) {
- buff.add(", ");
+ buff.write(", ");
}
if (param['type'] != null && param['type'].length > 0) {
- buff.add(param['type']);
- buff.add(' ');
+ buff.write(param['type']);
+ buff.write(' ');
}
- buff.add(param['name']);
+ buff.write(param['name']);
first = false;
}
@@ -182,7 +182,7 @@ class TemplateElement extends TemplateChildren {
if (attributes != null) {
for (final attr in attributes) {
- buff.add(' ${attr.toString()}');
+ buff.write(' ${attr.toString()}');
}
}
@@ -203,10 +203,10 @@ class TemplateElement extends TemplateChildren {
if (children != null) {
for (final child in children) {
- buff.add(child.toString());
+ buff.write(child.toString());
}
- buff.add(tagEndToString());
+ buff.write(tagEndToString());
}
return buff.toString();

Powered by Google App Engine
This is Rietveld 408576698