| Index: lib/html/dartium/html_dartium.dart
|
| diff --git a/lib/html/dartium/html_dartium.dart b/lib/html/dartium/html_dartium.dart
|
| index da34f00d1cce81eaf6aa721e1b7631da20adc64a..9330d16b2ba3d558bbfbf7e384c29bf53a710ed2 100644
|
| --- a/lib/html/dartium/html_dartium.dart
|
| +++ b/lib/html/dartium/html_dartium.dart
|
| @@ -12925,7 +12925,7 @@ class _FrozenElementListIterator implements Iterator<Element> {
|
| * [NoMoreElementsException] if no element is left.
|
| */
|
| Element next() {
|
| - if (!hasNext()) {
|
| + if (!hasNext) {
|
| throw const NoMoreElementsException();
|
| }
|
|
|
| @@ -12935,7 +12935,7 @@ class _FrozenElementListIterator implements Iterator<Element> {
|
| /**
|
| * Returns whether the [Iterator] has elements left.
|
| */
|
| - bool hasNext() => _index < _list.length;
|
| + bool get hasNext => _index < _list.length;
|
| }
|
|
|
| class _ElementAttributeMap implements AttributeMap {
|
| @@ -42962,7 +42962,7 @@ class _Collections {
|
| }
|
|
|
| static bool isEmpty(Iterable<Object> iterable) {
|
| - return !iterable.iterator().hasNext();
|
| + return !iterable.iterator().hasNext;
|
| }
|
| }
|
| // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| @@ -43907,7 +43907,7 @@ class _FixedSizeListIterator<T> extends _VariableSizeListIterator<T> {
|
| : super(array),
|
| _length = array.length;
|
|
|
| - bool hasNext() => _length > _pos;
|
| + bool get hasNext => _length > _pos;
|
|
|
| final int _length; // Cache array length for faster access.
|
| }
|
| @@ -43918,10 +43918,10 @@ class _VariableSizeListIterator<T> implements Iterator<T> {
|
| : _array = array,
|
| _pos = 0;
|
|
|
| - bool hasNext() => _array.length > _pos;
|
| + bool get hasNext => _array.length > _pos;
|
|
|
| T next() {
|
| - if (!hasNext()) {
|
| + if (!hasNext) {
|
| throw const NoMoreElementsException();
|
| }
|
| return _array[_pos++];
|
|
|