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

Unified Diff: utils/peg/pegparser.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/peg/pegparser.dart
diff --git a/utils/peg/pegparser.dart b/utils/peg/pegparser.dart
index bd329c71f8120dd8beb16e3818aa2d5ed4181dd5..ba1526b958a2eb9eb5c9b037e0e290279426f310 100644
--- a/utils/peg/pegparser.dart
+++ b/utils/peg/pegparser.dart
@@ -600,14 +600,14 @@ _Rule _compileMultiRule(List rules,
String _formatMultiRule(String functor, List rules) {
var sb = new StringBuffer(functor);
- sb.add('(');
+ sb.write('(');
var separator = '';
for (var rule in rules) {
- sb.add(separator);
- sb.add(rule);
+ sb.write(separator);
+ sb.write(rule);
separator = ',';
}
- sb.add(')');
+ sb.write(')');
return sb.toString();
}

Powered by Google App Engine
This is Rietveld 408576698