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) { |