| OLD | NEW |
| 1 part of dart.collection; | 1 part of dart.collection; |
| 2 abstract class Queue<E> implements Iterable<E>, EfficientLength {factory Queue(
) = ListQueue<E>; | 2 abstract class Queue<E> implements Iterable<E>, EfficientLength {factory Queue(
) = ListQueue<E>; |
| 3 factory Queue.from(Iterable elements) = ListQueue<E>.from; | 3 factory Queue.from(Iterable elements) = ListQueue<E>.from; |
| 4 E removeFirst(); | 4 E removeFirst(); |
| 5 E removeLast(); | 5 E removeLast(); |
| 6 void addFirst(E value); | 6 void addFirst(E value); |
| 7 void addLast(E value); | 7 void addLast(E value); |
| 8 void add(E value); | 8 void add(E value); |
| 9 bool remove(Object object); | 9 bool remove(Object object); |
| 10 void addAll(Iterable<E> iterable); | 10 void addAll(Iterable<E> iterable); |
| (...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 487 int _position; | 487 int _position; |
| 488 E _current; | 488 E _current; |
| 489 _ListQueueIterator(ListQueue queue) : _queue = queue, _end = queue._tail, _modi
ficationCount = queue._modificationCount, _position = queue._head; | 489 _ListQueueIterator(ListQueue queue) : _queue = queue, _end = queue._tail, _modi
ficationCount = queue._modificationCount, _position = queue._head; |
| 490 E get current => _current; | 490 E get current => _current; |
| 491 bool moveNext() { | 491 bool moveNext() { |
| 492 _queue._checkModification(_modificationCount); | 492 _queue._checkModification(_modificationCount); |
| 493 if (_position == _end) { | 493 if (_position == _end) { |
| 494 _current = null; | 494 _current = null; |
| 495 return false; | 495 return false; |
| 496 } | 496 } |
| 497 _current = ((__x17) => DEVC$RT.cast(__x17, dynamic, E, "CompositeCast", """line
738, column 16 of dart:collection/queue.dart: """, __x17 is E, false))(_queue._
table[_position]); | 497 _current = ((__x11) => DEVC$RT.cast(__x11, dynamic, E, "CompositeCast", """line
738, column 16 of dart:collection/queue.dart: """, __x11 is E, false))(_queue._
table[_position]); |
| 498 _position = (_position + 1) & (_queue._table.length - 1); | 498 _position = (_position + 1) & (_queue._table.length - 1); |
| 499 return true; | 499 return true; |
| 500 } | 500 } |
| 501 } | 501 } |
| OLD | NEW |