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

Unified Diff: dart/sdk/lib/_internal/compiler/implementation/ssa/nodes.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/ssa/nodes.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/ssa/nodes.dart b/dart/sdk/lib/_internal/compiler/implementation/ssa/nodes.dart
index d8b3f08c0f8e25bd810d280a4003c7e238a10532..b6714b80dadf1cc440a00953b0ea12d5db3acc4b 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/ssa/nodes.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/ssa/nodes.dart
@@ -894,17 +894,17 @@ abstract class HInstruction implements Spannable {
String inputsToString() {
void addAsCommaSeparated(StringBuffer buffer, List<HInstruction> list) {
for (int i = 0; i < list.length; i++) {
- if (i != 0) buffer.add(', ');
- buffer.add("@${list[i].id}");
+ if (i != 0) buffer.write(', ');
+ buffer.write("@${list[i].id}");
}
}
StringBuffer buffer = new StringBuffer();
- buffer.add('(');
+ buffer.write('(');
addAsCommaSeparated(buffer, inputs);
- buffer.add(') - used at [');
+ buffer.write(') - used at [');
addAsCommaSeparated(buffer, usedBy);
- buffer.add(']');
+ buffer.write(']');
return buffer.toString();
}

Powered by Google App Engine
This is Rietveld 408576698