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

Unified Diff: dart/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart

Issue 12294028: Fix warnings spotted by dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 10 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: dart/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart b/dart/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart
index 45a65238414319514c4cbc59ea51fc06c5414173..d4007083bef6c5c6c568e55e7b0fac9baddbf7d7 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart
@@ -440,7 +440,7 @@ class DartBackend extends Backend {
// TODO(antonm): Ideally XML should be a separate backend.
// TODO(antonm): obey renames and minification, at least as an option.
StringBuffer sb = new StringBuffer();
- outputElement(element) { sb.add(parse(element).toDebugString()); }
+ outputElement(element) { sb.write(parse(element).toDebugString()); }
// Emit XML for AST instead of the program.
for (final topLevel in sortedTopLevels) {
@@ -502,7 +502,7 @@ class EmitterUnparser extends Unparser {
visit(Node node) {
if (node != null && renames.containsKey(node)) {
- sb.add(renames[node]);
+ sb.write(renames[node]);
} else {
super.visit(node);
}
@@ -516,7 +516,7 @@ class EmitterUnparser extends Unparser {
unparseFunctionName(Node name) {
if (name != null && renames.containsKey(name)) {
- sb.add(renames[name]);
+ sb.write(renames[name]);
} else {
super.unparseFunctionName(name);
}

Powered by Google App Engine
This is Rietveld 408576698