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

Unified Diff: sdk/lib/_internal/compiler/implementation/code_buffer.dart

Issue 11602016: Emit classes using ASTs (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 12 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: sdk/lib/_internal/compiler/implementation/code_buffer.dart
diff --git a/sdk/lib/_internal/compiler/implementation/code_buffer.dart b/sdk/lib/_internal/compiler/implementation/code_buffer.dart
index 023db92c05c52105ab3e3b35a6fd52d4cdc487c5..b3b48525677f24c10eabbeb353f3d15ce944678d 100644
--- a/sdk/lib/_internal/compiler/implementation/code_buffer.dart
+++ b/sdk/lib/_internal/compiler/implementation/code_buffer.dart
@@ -45,7 +45,7 @@ class CodeBuffer implements StringBuffer {
}
lastBufferOffset = buffer.length + other.lastBufferOffset;
}
- buffer.add(other.toString());
+ buffer.add(other.getText());
}
CodeBuffer addAll(Collection<Object> objects) {
@@ -67,6 +67,10 @@ class CodeBuffer implements StringBuffer {
}
String toString() {
+ throw "Don't use CodeBuffer.toString() since it drops sourcemap data.";
+ }
+
+ String getText() {
return buffer.toString();
}

Powered by Google App Engine
This is Rietveld 408576698