Chromium Code Reviews| Index: sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart |
| diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart b/sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart |
| index fbb9da74b53d594c6b8a435f593e58c0ffca0ef9..311a5b57de258a4cdba884579ed4765b5e376e1c 100644 |
| --- a/sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart |
| +++ b/sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart |
| @@ -485,7 +485,7 @@ class RuntimeTypes { |
| int index = 0; |
| for (; !types.isEmpty; types = types.tail, index++) { |
| jsAst.Expression representation = |
| - _getTypeRepresentation(types.head, onVariable); |
| + getTypeRepresentation(types.head, onVariable); |
| elements.add(new jsAst.ArrayElement(index, representation)); |
| } |
| return new jsAst.ArrayInitializer(index, elements); |
| @@ -497,7 +497,7 @@ class RuntimeTypes { |
| jsAst.Expression onVariable(TypeVariableType v) { |
| return new jsAst.VariableUse(v.name.slowToString()); |
| }; |
| - jsAst.Expression encoding = _getTypeRepresentation(type, onVariable); |
| + jsAst.Expression encoding = getTypeRepresentation(type, onVariable); |
| if (contextClass == null && !alwaysGenerateFunction) { |
| return encoding; |
| } else { |
| @@ -529,17 +529,17 @@ class RuntimeTypes { |
| } |
| } |
| - String getTypeRepresentation(DartType type, OnVariableCallback onVariable) { |
| + String getTypeRepresentationWithHashes(DartType type, OnVariableCallback onVariable) { |
|
karlklose
2013/10/14 10:54:43
Long line.
zarah
2013/10/15 14:20:02
Done.
|
| // Create a type representation. For type variables call the original |
| // callback for side effects and return a template placeholder. |
| - jsAst.Expression representation = _getTypeRepresentation(type, (variable) { |
| + jsAst.Expression representation = getTypeRepresentation(type, (variable) { |
| onVariable(variable); |
| return new jsAst.LiteralString('#'); |
| }); |
| return jsAst.prettyPrint(representation, compiler).buffer.toString(); |
| } |
| - jsAst.Expression _getTypeRepresentation(DartType type, |
| + jsAst.Expression getTypeRepresentation(DartType type, |
| OnVariableCallback onVariable) { |
|
karlklose
2013/10/14 10:54:43
Indentation is off.
zarah
2013/10/15 14:20:02
Done.
|
| return representationGenerator.getTypeRepresentation(type, onVariable); |
| } |