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

Side by Side Diff: lib/compiler/implementation/util/link_implementation.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
« no previous file with comments | « lib/compiler/implementation/util/link.dart ('k') | lib/compiler/implementation/util/util.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 util_implementation;
6
5 class LinkIterator<T> implements Iterator<T> { 7 class LinkIterator<T> implements Iterator<T> {
6 Link<T> current; 8 Link<T> current;
7 LinkIterator(Link<T> this.current); 9 LinkIterator(Link<T> this.current);
8 bool get hasNext => !current.isEmpty; 10 bool get hasNext => !current.isEmpty;
9 T next() { 11 T next() {
10 T result = current.head; 12 T result = current.head;
11 current = current.tail; 13 current = current.tail;
12 return result; 14 return result;
13 } 15 }
14 } 16 }
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 length++; 111 length++;
110 LinkEntry<T> entry = new LinkEntry<T>(t, null); 112 LinkEntry<T> entry = new LinkEntry<T>(t, null);
111 if (head == null) { 113 if (head == null) {
112 head = entry; 114 head = entry;
113 } else { 115 } else {
114 lastLink.tail = entry; 116 lastLink.tail = entry;
115 } 117 }
116 lastLink = entry; 118 lastLink = entry;
117 } 119 }
118 } 120 }
OLDNEW
« no previous file with comments | « lib/compiler/implementation/util/link.dart ('k') | lib/compiler/implementation/util/util.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698