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

Unified Diff: utils/template/parser.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/parser.dart
diff --git a/utils/template/parser.dart b/utils/template/parser.dart
index e0f426c3befb9e30b27dad6938265b2d008d1f5f..9f23d8a9931de613cc27821de51af3e6b7a1a66e 100644
--- a/utils/template/parser.dart
+++ b/utils/template/parser.dart
@@ -672,7 +672,7 @@ class Parser {
_next(false);
} else if (_peek() != TokenKind.RBRACE) {
// Yes, grab the chars after the >
- stringValue.add(_previousToken.source.text.substring(
+ stringValue.write(_previousToken.source.text.substring(
this._previousToken.end, this._peekToken.start));
}
}
@@ -706,7 +706,7 @@ class Parser {
start = _peekToken.start;
} else if (tok.kind != TokenKind.START_EXPRESSION) {
// Only save the the contents between ${ and }
- stringValue.add(tok.text);
+ stringValue.write(tok.text);
}
}

Powered by Google App Engine
This is Rietveld 408576698