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

Unified Diff: sdk/lib/_internal/dartdoc/lib/src/client/search.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/dartdoc/lib/src/client/search.dart
diff --git a/sdk/lib/_internal/dartdoc/lib/src/client/search.dart b/sdk/lib/_internal/dartdoc/lib/src/client/search.dart
index 96867551d765523937650196d21125a9fed2fb49..9c439e99d0f691e5494cf0899a7bd1a71fc3cdaf 100644
--- a/sdk/lib/_internal/dartdoc/lib/src/client/search.dart
+++ b/sdk/lib/_internal/dartdoc/lib/src/client/search.dart
@@ -112,40 +112,40 @@ class Result {
row.onClick.listen(clickHandler);
row.onMouseUp.listen((event) => hideDropDownSuspend = false);
var sb = new StringBuffer();
- sb.add('<td class="drop-down-link-td">');
- sb.add('<table class="drop-down-table"><tr><td colspan="2">');
+ sb.write('<td class="drop-down-link-td">');
+ sb.write('<table class="drop-down-table"><tr><td colspan="2">');
if (kind == GETTER) {
- sb.add('get ');
+ sb.write('get ');
} else if (kind == SETTER) {
- sb.add('set ');
+ sb.write('set ');
}
- sb.add(match.toHtml());
+ sb.write(match.toHtml());
if (kind == CLASS || kind == INTERFACE || kind == TYPEDEF) {
- sb.add(args);
+ sb.write(args);
} else if (kind == CONSTRUCTOR || kind == METHOD) {
if (noargs) {
- sb.add("()");
+ sb.write("()");
} else {
- sb.add('(...)');
+ sb.write('(...)');
}
}
- sb.add('</td></tr><tr><td class="drop-down-link-kind">');
- sb.add(kindToString(kind));
+ sb.write('</td></tr><tr><td class="drop-down-link-kind">');
+ sb.write(kindToString(kind));
if (prefix != null) {
- sb.add(' in ');
- sb.add(prefix.toHtml());
- sb.add(args);
+ sb.write(' in ');
+ sb.write(prefix.toHtml());
+ sb.write(args);
} else if (type != null) {
- sb.add(' in ');
- sb.add(type);
- sb.add(args);
+ sb.write(' in ');
+ sb.write(type);
+ sb.write(args);
}
- sb.add('</td><td class="drop-down-link-library">');
+ sb.write('</td><td class="drop-down-link-library">');
if (library != null) {
- sb.add('library $library');
+ sb.write('library $library');
}
- sb.add('</td></tr></table></td>');
+ sb.write('</td></tr></table></td>');
row.innerHtml = sb.toString();
}
}

Powered by Google App Engine
This is Rietveld 408576698