Index: pkg/compiler/lib/src/js_backend/runtime_types.dart |
diff --git a/pkg/compiler/lib/src/js_backend/runtime_types.dart b/pkg/compiler/lib/src/js_backend/runtime_types.dart |
index e14487fc3a36b13665ab1f83497fef4b3cf23228..937703692faf049174143f2f3316d143294a8521 100644 |
--- a/pkg/compiler/lib/src/js_backend/runtime_types.dart |
+++ b/pkg/compiler/lib/src/js_backend/runtime_types.dart |
@@ -550,15 +550,16 @@ class RuntimeTypes { |
} |
} |
- String getTypeRepresentationWithHashes(DartType type, |
- OnVariableCallback onVariable) { |
+ jsAst.Expression getTypeRepresentationWithPlaceholders(DartType type, |
+ OnVariableCallback onVariable) { |
// Create a type representation. For type variables call the original |
// callback for side effects and return a template placeholder. |
+ int positions = 0; |
jsAst.Expression representation = getTypeRepresentation(type, (variable) { |
onVariable(variable); |
- return new jsAst.LiteralString('#'); |
+ return new jsAst.InterpolatedExpression(positions++); |
}); |
- return jsAst.prettyPrint(representation, compiler).buffer.toString(); |
+ return representation; |
} |
jsAst.Expression getTypeRepresentation( |