Index: pkg/compiler/lib/src/js_backend/backend.dart |
diff --git a/pkg/compiler/lib/src/js_backend/backend.dart b/pkg/compiler/lib/src/js_backend/backend.dart |
index e0311003aa1ea7cc2d8f6b729899b67a1b3e0e45..9513375b7a10c75d590485f5a889fb579b394cb9 100644 |
--- a/pkg/compiler/lib/src/js_backend/backend.dart |
+++ b/pkg/compiler/lib/src/js_backend/backend.dart |
@@ -1501,16 +1501,8 @@ class JavaScriptBackend extends Backend { |
* |
* Invariant: [element] must be a declaration element. |
*/ |
- String assembleCode(Element element) { |
+ String getGeneratedCode(Element element) { |
assert(invariant(element, element.isDeclaration)); |
- var code = generatedCode[element]; |
- if (namer is jsAst.TokenFinalizer) { |
- jsAst.TokenCounter counter = new jsAst.TokenCounter(); |
- counter.countTokens(code); |
- // Avoid a warning. |
- var finalizer = namer; |
- finalizer.finalizeTokens(); |
- } |
return jsAst.prettyPrint(generatedCode[element], compiler).getText(); |
} |