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

Unified Diff: pkg/compiler/lib/src/js_backend/constant_emitter.dart

Issue 2809203003: Remove Compiler/JavaScriptBackend from metadata_collector (Closed)
Patch Set: Created 3 years, 8 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_backend/constant_emitter.dart
diff --git a/pkg/compiler/lib/src/js_backend/constant_emitter.dart b/pkg/compiler/lib/src/js_backend/constant_emitter.dart
index 0a47aac51bb5daa6d68f71c656613b8af4760ea4..f4a7110df7d55abc59785260c1865f8fc8dc4ccd 100644
--- a/pkg/compiler/lib/src/js_backend/constant_emitter.dart
+++ b/pkg/compiler/lib/src/js_backend/constant_emitter.dart
@@ -346,7 +346,8 @@ class ConstantEmitter implements ConstantValueVisitor<jsAst.Expression, Null> {
List<jsAst.Expression> arguments = <jsAst.Expression>[];
RuntimeTypesEncoder rtiEncoder = backend.rtiEncoder;
for (ResolutionDartType argument in type.typeArguments) {
- arguments.add(rtiEncoder.getTypeRepresentation(argument, unexpected));
+ arguments.add(rtiEncoder.getTypeRepresentation(
+ backend.emitter.emitter, argument, unexpected));
}
return new jsAst.ArrayInitializer(arguments);
}

Powered by Google App Engine
This is Rietveld 408576698