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

Unified Diff: pkg/compiler/lib/src/js_emitter/old_emitter/metadata_emitter.dart

Issue 830703004: Emit to StreamCodeOutput instead of CodeBuffer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments Created 5 years, 11 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: pkg/compiler/lib/src/js_emitter/old_emitter/metadata_emitter.dart
diff --git a/pkg/compiler/lib/src/js_emitter/old_emitter/metadata_emitter.dart b/pkg/compiler/lib/src/js_emitter/old_emitter/metadata_emitter.dart
index 48148890f2385811add33134972694d6eb892d4d..4366c6d7d8da10379fdf02c7ec7396cd4f0a60ec 100644
--- a/pkg/compiler/lib/src/js_emitter/old_emitter/metadata_emitter.dart
+++ b/pkg/compiler/lib/src/js_emitter/old_emitter/metadata_emitter.dart
@@ -103,21 +103,21 @@ class MetadataEmitter extends CodeEmitterHelper {
});
}
- void emitMetadata(CodeBuffer buffer) {
+ void emitMetadata(CodeOutput output) {
String metadataAccess = emitter.generateEmbeddedGlobalAccessString(
embeddedNames.METADATA);
- buffer.write('$metadataAccess$_=$_[');
+ output.add('$metadataAccess$_=$_[');
for (String metadata in globalMetadata) {
if (metadata is String) {
if (metadata != 'null') {
- buffer.write(metadata);
+ output.add(metadata);
}
} else {
throw 'Unexpected value in metadata: ${Error.safeToString(metadata)}';
}
- buffer.write(',$n');
+ output.add(',$n');
}
- buffer.write('];$n');
+ output.add('];$n');
}
List<int> computeMetadata(FunctionElement element) {
« no previous file with comments | « pkg/compiler/lib/src/js_emitter/old_emitter/interceptor_emitter.dart ('k') | pkg/compiler/lib/src/scanner/scannerlib.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698