Chromium Code Reviews| 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..6f2e044c137b5fd6bbfa3810ea5c9c11f20e75eb 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, |
| + jsAst.Expression getTypeRepresentationWithHashes(DartType type, |
|
floitsch
2015/05/19 13:43:35
Name is bad now.
herhut
2015/05/19 14:08:09
How about 'WithPlaceholders'? But in essence they
|
| 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( |