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

Side by Side Diff: pkg/dartdoc/lib/mirrors_util.dart

Issue 11238035: Make isEmpty a getter. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status file with co19 issue number. Created 8 years, 2 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
« no previous file with comments | « pkg/dartdoc/lib/dartdoc.dart ('k') | pkg/dartdoc/lib/src/client/dropdown.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) 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 #library('mirrors.util'); 5 #library('mirrors.util');
6 6
7 // TODO(rnystrom): Use "package:" URL (#4968). 7 // TODO(rnystrom): Use "package:" URL (#4968).
8 #import('mirrors.dart'); 8 #import('mirrors.dart');
9 #import('../../../lib/compiler/implementation/util/characters.dart'); 9 #import('../../../lib/compiler/implementation/util/characters.dart');
10 10
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 } else { 112 } else {
113 queue.addFirst(type.superclass); 113 queue.addFirst(type.superclass);
114 } 114 }
115 } 115 }
116 queue.addAll(type.interfaces); 116 queue.addAll(type.interfaces);
117 return type; 117 return type;
118 } 118 }
119 119
120 InterfaceMirror next() { 120 InterfaceMirror next() {
121 InterfaceMirror type; 121 InterfaceMirror type;
122 if (queue.isEmpty()) { 122 if (queue.isEmpty) {
123 if (object === null) { 123 if (object === null) {
124 throw new NoMoreElementsException(); 124 throw new NoMoreElementsException();
125 } 125 }
126 type = object; 126 type = object;
127 object = null; 127 object = null;
128 return type; 128 return type;
129 } else { 129 } else {
130 return push(queue.removeFirst()); 130 return push(queue.removeFirst());
131 } 131 }
132 } 132 }
133 133
134 bool get hasNext => !queue.isEmpty() || object !== null; 134 bool get hasNext => !queue.isEmpty || object !== null;
135 } 135 }
OLDNEW
« no previous file with comments | « pkg/dartdoc/lib/dartdoc.dart ('k') | pkg/dartdoc/lib/src/client/dropdown.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698