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

Unified Diff: test/dart_codegen/expect/collection/iterator.dart

Issue 1148283010: Remove dart backend (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: test/dart_codegen/expect/collection/iterator.dart
diff --git a/test/dart_codegen/expect/collection/iterator.dart b/test/dart_codegen/expect/collection/iterator.dart
deleted file mode 100644
index 973bdcb5747c40a3ba7039cf79136ff2d1479332..0000000000000000000000000000000000000000
--- a/test/dart_codegen/expect/collection/iterator.dart
+++ /dev/null
@@ -1,26 +0,0 @@
-part of dart.collection;
- class HasNextIterator<E> {static const int _HAS_NEXT_AND_NEXT_IN_CURRENT = 0;
- static const int _NO_NEXT = 1;
- static const int _NOT_MOVED_YET = 2;
- Iterator _iterator;
- int _state = _NOT_MOVED_YET;
- HasNextIterator(this._iterator);
- bool get hasNext {
- if (_state == _NOT_MOVED_YET) _move();
- return _state == _HAS_NEXT_AND_NEXT_IN_CURRENT;
- }
- E next() {
- if (!hasNext) throw new StateError("No more elements");
- assert (_state == _HAS_NEXT_AND_NEXT_IN_CURRENT); E result = DEVC$RT.cast(_iterator.current, dynamic, E, "CompositeCast", """line 33, column 16 of dart:collection/iterator.dart: """, _iterator.current is E, false);
- _move();
- return result;
- }
- void _move() {
- if (_iterator.moveNext()) {
- _state = _HAS_NEXT_AND_NEXT_IN_CURRENT;
- }
- else {
- _state = _NO_NEXT;
- }
- }
-}
« no previous file with comments | « test/dart_codegen/expect/collection/iterable.dart ('k') | test/dart_codegen/expect/collection/linked_hash_map.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698