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

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

Issue 10913067: Simplify Unparser.unparseClassWithBody. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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: lib/compiler/implementation/dart_backend/emitter.dart
diff --git a/lib/compiler/implementation/dart_backend/emitter.dart b/lib/compiler/implementation/dart_backend/emitter.dart
index a1e1918658df8621be05f7eb19efc400509ee4dc..d3bc217a686f2b156bc214a0a7aed91bf0701f58 100644
--- a/lib/compiler/implementation/dart_backend/emitter.dart
+++ b/lib/compiler/implementation/dart_backend/emitter.dart
@@ -13,10 +13,8 @@ String emitCode(
for (final node in topLevelNodes) {
if (node is ClassNode) {
- unparser.unparseClassWithBody(node, () {
- // TODO(smok): Filter out default constructors here.
- classMembers[node].forEach(unparser.unparse);
- });
+ // TODO(smok): Filter out default constructors here.
+ unparser.unparseClassWithBody(node, classMembers[node]);
} else {
unparser.unparse(node);
}
« no previous file with comments | « no previous file | lib/compiler/implementation/tree/unparser.dart » ('j') | lib/compiler/implementation/tree/unparser.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698