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

Unified Diff: dart/sdk/lib/_internal/compiler/implementation/code_buffer.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
« no previous file with comments | « no previous file | dart/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/sdk/lib/_internal/compiler/implementation/code_buffer.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/code_buffer.dart b/dart/sdk/lib/_internal/compiler/implementation/code_buffer.dart
index 795742d8012597715463c0bde2c5f131eb945e2e..fafc409d542fa16e0157747b5cae9e9f94446a5e 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/code_buffer.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/code_buffer.dart
@@ -33,7 +33,7 @@ class CodeBuffer implements StringBuffer {
return addBuffer(object);
}
if (mappedRangeCounter == 0) setSourceLocation(null);
- buffer.add(object.toString());
+ buffer.write(object);
return this;
}
@@ -60,7 +60,7 @@ class CodeBuffer implements StringBuffer {
}
lastBufferOffset = buffer.length + other.lastBufferOffset;
}
- buffer.add(other.getText());
+ buffer.write(other.getText());
return this;
}
@@ -73,7 +73,7 @@ class CodeBuffer implements StringBuffer {
}
CodeBuffer clear() {
- buffer.clear();
+ buffer = new StringBuffer();
markers.clear();
lastBufferOffset = 0;
return this;
« no previous file with comments | « no previous file | dart/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698