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

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

Issue 11776008: 2nd Retry "Emit more stuff via 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
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/compiler.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698