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

Unified Diff: sdk/lib/_internal/compiler/implementation/dart_backend/emitter.dart

Issue 448943004: Refactor and simplify the dart2dart renamer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rely (almost) only on Entity from renamer. Improve handling of privates and constructors. Avoid sor… Created 6 years, 4 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: sdk/lib/_internal/compiler/implementation/dart_backend/emitter.dart
diff --git a/sdk/lib/_internal/compiler/implementation/dart_backend/emitter.dart b/sdk/lib/_internal/compiler/implementation/dart_backend/emitter.dart
deleted file mode 100644
index b4a12807636571af441f65683628e277d7d31da7..0000000000000000000000000000000000000000
--- a/sdk/lib/_internal/compiler/implementation/dart_backend/emitter.dart
+++ /dev/null
@@ -1,25 +0,0 @@
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-part of dart_backend;
-
-void emitCode(
- Unparser unparser,
- Map<LibraryElement, String> imports,
- Iterable<Node> topLevelNodes,
- Map<ClassNode, Iterable<Node>> classMembers) {
- imports.forEach((libraryElement, prefix) {
- unparser.unparseImportTag('${libraryElement.canonicalUri}', prefix);
- });
-
- for (final node in topLevelNodes) {
- if (node is ClassNode) {
- // TODO(smok): Filter out default constructors here.
- unparser.unparseClassWithBody(node, classMembers[node]);
- } else {
- unparser.unparse(node);
- }
- unparser.newline();
- }
-}

Powered by Google App Engine
This is Rietveld 408576698