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

Side by Side Diff: lib/src/utils.dart

Issue 10916294: switch html5lib to new pkg layout (Closed) Base URL: https://github.com/dart-lang/html5lib.git@master
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 unified diff | Download patch
« no previous file with comments | « lib/src/treebuilder.dart ('k') | lib/token.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 /** Misc things that were useful when porting the code from Python. */ 1 /** Misc things that were useful when porting the code from Python. */
2 #library('utils'); 2 #library('utils');
3 3
4 #import('dart:math'); 4 #import('dart:math');
5 #import('package:unittest/unittest.dart'); 5 #import('package:unittest/unittest.dart');
6 #import('constants.dart'); 6 #import('constants.dart');
7 7
8 typedef bool Predicate(); 8 typedef bool Predicate();
9 9
10 class Pair<F extends Hashable, S extends Hashable> implements Hashable { 10 class Pair<F extends Hashable, S extends Hashable> implements Hashable {
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 return new _ReverseIterable(_list).iterator(); 181 return new _ReverseIterable(_list).iterator();
182 } 182 }
183 } 183 }
184 184
185 bool hasNext() => _index > 0; 185 bool hasNext() => _index > 0;
186 next() { 186 next() {
187 if (_index == 0) throw const NoMoreElementsException(); 187 if (_index == 0) throw const NoMoreElementsException();
188 return _list[--_index]; 188 return _list[--_index];
189 } 189 }
190 } 190 }
OLDNEW
« no previous file with comments | « lib/src/treebuilder.dart ('k') | lib/token.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698