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

Side by Side Diff: lib/compiler/implementation/util/link.dart

Issue 11262032: Add 'part of' in dart2js code. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 org_dartlang_compiler_util;
6
5 class Link<T> implements Iterable<T> { 7 class Link<T> implements Iterable<T> {
6 T get head => null; 8 T get head => null;
7 Link<T> get tail => null; 9 Link<T> get tail => null;
8 10
9 factory Link.fromList(List<T> list) { 11 factory Link.fromList(List<T> list) {
10 switch (list.length) { 12 switch (list.length) {
11 case 0: 13 case 0:
12 return new Link<T>(); 14 return new Link<T>();
13 case 1: 15 case 1:
14 return new LinkEntry<T>(list[0]); 16 return new LinkEntry<T>(list[0]);
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 } 61 }
60 62
61 interface LinkBuilder<T> default LinkBuilderImplementation<T> { 63 interface LinkBuilder<T> default LinkBuilderImplementation<T> {
62 LinkBuilder(); 64 LinkBuilder();
63 65
64 Link<T> toLink(); 66 Link<T> toLink();
65 void addLast(T t); 67 void addLast(T t);
66 68
67 final int length; 69 final int length;
68 } 70 }
OLDNEW
« no previous file with comments | « lib/compiler/implementation/util/characters.dart ('k') | lib/compiler/implementation/util/link_implementation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698