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

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

Issue 14173003: Remove Collection, Collections and clean up List/Set/Queue implementations of retain/remove. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of dart_backend; 5 part of dart_backend;
6 6
7 String emitCode( 7 String emitCode(
8 Unparser unparser, 8 Unparser unparser,
9 Map<LibraryElement, String> imports, 9 Map<LibraryElement, String> imports,
10 Collection<Node> topLevelNodes, 10 Iterable<Node> topLevelNodes,
11 Map<ClassNode, Collection<Node>> classMembers) { 11 Map<ClassNode, Iterable<Node>> classMembers) {
12 imports.forEach((libraryElement, prefix) { 12 imports.forEach((libraryElement, prefix) {
13 unparser.unparseImportTag('${libraryElement.canonicalUri}', prefix); 13 unparser.unparseImportTag('${libraryElement.canonicalUri}', prefix);
14 }); 14 });
15 15
16 for (final node in topLevelNodes) { 16 for (final node in topLevelNodes) {
17 if (node is ClassNode) { 17 if (node is ClassNode) {
18 // TODO(smok): Filter out default constructors here. 18 // TODO(smok): Filter out default constructors here.
19 unparser.unparseClassWithBody(node, classMembers[node]); 19 unparser.unparseClassWithBody(node, classMembers[node]);
20 } else { 20 } else {
21 unparser.unparse(node); 21 unparser.unparse(node);
22 } 22 }
23 } 23 }
24 } 24 }
OLDNEW
« no previous file with comments | « sdk/lib/_collection_dev/to_string.dart ('k') | sdk/lib/_internal/compiler/implementation/dart_backend/renamer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698