| Index: sdk/lib/html/dart2js/html_dart2js.dart
|
| diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart
|
| index f30166d3df040eae664e38cee1a30582e16d7d73..1e0009da387e7fc61f2f9e03dc3b7880f8ab9a84 100644
|
| --- a/sdk/lib/html/dart2js/html_dart2js.dart
|
| +++ b/sdk/lib/html/dart2js/html_dart2js.dart
|
| @@ -6842,11 +6842,12 @@ class DomMimeTypeArray implements JavaScriptIndexingBehavior, List<DomMimeType>
|
| return new FixedSizeListIterator<DomMimeType>(this);
|
| }
|
|
|
| - dynamic reduce(dynamic initialValue, dynamic combine(dynamic, DomMimeType)) {
|
| - return IterableMixinWorkaround.reduce(this, initialValue, combine);
|
| + DomMimeType reduce(DomMimeType combine(DomMimeType value, DomMimeType element)) {
|
| + return IterableMixinWorkaround.reduce(this, combine);
|
| }
|
|
|
| - dynamic fold(dynamic initialValue, dynamic combine(dynamic, DomMimeType)) {
|
| + dynamic fold(dynamic initialValue,
|
| + dynamic combine(dynamic previousValue, DomMimeType element)) {
|
| return IterableMixinWorkaround.fold(this, initialValue, combine);
|
| }
|
|
|
| @@ -6956,12 +6957,6 @@ class DomMimeTypeArray implements JavaScriptIndexingBehavior, List<DomMimeType>
|
| throw new StateError("More than one element");
|
| }
|
|
|
| - DomMimeType min([int compare(DomMimeType a, DomMimeType b)]) =>
|
| - IterableMixinWorkaround.min(this, compare);
|
| -
|
| - DomMimeType max([int compare(DomMimeType a, DomMimeType b)]) =>
|
| - IterableMixinWorkaround.max(this, compare);
|
| -
|
| void insert(int index, DomMimeType element) {
|
| throw new UnsupportedError("Cannot add to immutable List.");
|
| }
|
| @@ -7117,11 +7112,12 @@ class DomPluginArray implements JavaScriptIndexingBehavior, List<DomPlugin> nati
|
| return new FixedSizeListIterator<DomPlugin>(this);
|
| }
|
|
|
| - dynamic reduce(dynamic initialValue, dynamic combine(dynamic, DomPlugin)) {
|
| - return IterableMixinWorkaround.reduce(this, initialValue, combine);
|
| + DomPlugin reduce(DomPlugin combine(DomPlugin value, DomPlugin element)) {
|
| + return IterableMixinWorkaround.reduce(this, combine);
|
| }
|
|
|
| - dynamic fold(dynamic initialValue, dynamic combine(dynamic, DomPlugin)) {
|
| + dynamic fold(dynamic initialValue,
|
| + dynamic combine(dynamic previousValue, DomPlugin element)) {
|
| return IterableMixinWorkaround.fold(this, initialValue, combine);
|
| }
|
|
|
| @@ -7231,12 +7227,6 @@ class DomPluginArray implements JavaScriptIndexingBehavior, List<DomPlugin> nati
|
| throw new StateError("More than one element");
|
| }
|
|
|
| - DomPlugin min([int compare(DomPlugin a, DomPlugin b)]) =>
|
| - IterableMixinWorkaround.min(this, compare);
|
| -
|
| - DomPlugin max([int compare(DomPlugin a, DomPlugin b)]) =>
|
| - IterableMixinWorkaround.max(this, compare);
|
| -
|
| void insert(int index, DomPlugin element) {
|
| throw new UnsupportedError("Cannot add to immutable List.");
|
| }
|
| @@ -7540,11 +7530,12 @@ class DomStringList implements JavaScriptIndexingBehavior, List<String> native "
|
| return new FixedSizeListIterator<String>(this);
|
| }
|
|
|
| - dynamic reduce(dynamic initialValue, dynamic combine(dynamic, String)) {
|
| - return IterableMixinWorkaround.reduce(this, initialValue, combine);
|
| + String reduce(String combine(String value, String element)) {
|
| + return IterableMixinWorkaround.reduce(this, combine);
|
| }
|
|
|
| - dynamic fold(dynamic initialValue, dynamic combine(dynamic, String)) {
|
| + dynamic fold(dynamic initialValue,
|
| + dynamic combine(dynamic previousValue, String element)) {
|
| return IterableMixinWorkaround.fold(this, initialValue, combine);
|
| }
|
|
|
| @@ -7654,12 +7645,6 @@ class DomStringList implements JavaScriptIndexingBehavior, List<String> native "
|
| throw new StateError("More than one element");
|
| }
|
|
|
| - String min([int compare(String a, String b)]) =>
|
| - IterableMixinWorkaround.min(this, compare);
|
| -
|
| - String max([int compare(String a, String b)]) =>
|
| - IterableMixinWorkaround.max(this, compare);
|
| -
|
| void insert(int index, String element) {
|
| throw new UnsupportedError("Cannot add to immutable List.");
|
| }
|
| @@ -7927,9 +7912,8 @@ class _ChildrenElementList extends ListBase<Element> {
|
| throw new UnsupportedError('TODO(jacobr): should we impl?');
|
| }
|
|
|
| - dynamic reduce(dynamic initialValue,
|
| - dynamic combine(dynamic previousValue, Element element)) {
|
| - return _childElements.reduce(initialValue, combine);
|
| + Element reduce(Element combine(Element value, Element element)) {
|
| + return _childElements.reduce(combine);
|
| }
|
|
|
| dynamic fold(dynamic initialValue,
|
| @@ -8042,14 +8026,6 @@ class _ChildrenElementList extends ListBase<Element> {
|
| return first;
|
| }
|
|
|
| - Element min([int compare(Element a, Element b)]) {
|
| - return _childElements.min(compare);
|
| - }
|
| -
|
| - Element max([int compare(Element a, Element b)]) {
|
| - return _childElements.max(compare);
|
| - }
|
| -
|
| Map<int, Element> asMap() {
|
| return _childElements.asMap();
|
| }
|
| @@ -10301,11 +10277,12 @@ class FileList implements JavaScriptIndexingBehavior, List<File> native "*FileLi
|
| return new FixedSizeListIterator<File>(this);
|
| }
|
|
|
| - dynamic reduce(dynamic initialValue, dynamic combine(dynamic, File)) {
|
| - return IterableMixinWorkaround.reduce(this, initialValue, combine);
|
| + File reduce(File combine(File value, File element)) {
|
| + return IterableMixinWorkaround.reduce(this, combine);
|
| }
|
|
|
| - dynamic fold(dynamic initialValue, dynamic combine(dynamic, File)) {
|
| + dynamic fold(dynamic initialValue,
|
| + dynamic combine(dynamic previousValue, File element)) {
|
| return IterableMixinWorkaround.fold(this, initialValue, combine);
|
| }
|
|
|
| @@ -10415,12 +10392,6 @@ class FileList implements JavaScriptIndexingBehavior, List<File> native "*FileLi
|
| throw new StateError("More than one element");
|
| }
|
|
|
| - File min([int compare(File a, File b)]) =>
|
| - IterableMixinWorkaround.min(this, compare);
|
| -
|
| - File max([int compare(File a, File b)]) =>
|
| - IterableMixinWorkaround.max(this, compare);
|
| -
|
| void insert(int index, File element) {
|
| throw new UnsupportedError("Cannot add to immutable List.");
|
| }
|
| @@ -10798,11 +10769,12 @@ class Float32Array extends ArrayBufferView implements JavaScriptIndexingBehavior
|
| return new FixedSizeListIterator<num>(this);
|
| }
|
|
|
| - dynamic reduce(dynamic initialValue, dynamic combine(dynamic, num)) {
|
| - return IterableMixinWorkaround.reduce(this, initialValue, combine);
|
| + num reduce(num combine(num value, num element)) {
|
| + return IterableMixinWorkaround.reduce(this, combine);
|
| }
|
|
|
| - dynamic fold(dynamic initialValue, dynamic combine(dynamic, num)) {
|
| + dynamic fold(dynamic initialValue,
|
| + dynamic combine(dynamic previousValue, num element)) {
|
| return IterableMixinWorkaround.fold(this, initialValue, combine);
|
| }
|
|
|
| @@ -10912,12 +10884,6 @@ class Float32Array extends ArrayBufferView implements JavaScriptIndexingBehavior
|
| throw new StateError("More than one element");
|
| }
|
|
|
| - num min([int compare(num a, num b)]) =>
|
| - IterableMixinWorkaround.min(this, compare);
|
| -
|
| - num max([int compare(num a, num b)]) =>
|
| - IterableMixinWorkaround.max(this, compare);
|
| -
|
| void insert(int index, num element) {
|
| throw new UnsupportedError("Cannot add to immutable List.");
|
| }
|
| @@ -11037,11 +11003,12 @@ class Float64Array extends ArrayBufferView implements JavaScriptIndexingBehavior
|
| return new FixedSizeListIterator<num>(this);
|
| }
|
|
|
| - dynamic reduce(dynamic initialValue, dynamic combine(dynamic, num)) {
|
| - return IterableMixinWorkaround.reduce(this, initialValue, combine);
|
| + num reduce(num combine(num value, num element)) {
|
| + return IterableMixinWorkaround.reduce(this, combine);
|
| }
|
|
|
| - dynamic fold(dynamic initialValue, dynamic combine(dynamic, num)) {
|
| + dynamic fold(dynamic initialValue,
|
| + dynamic combine(dynamic previousValue, num element)) {
|
| return IterableMixinWorkaround.fold(this, initialValue, combine);
|
| }
|
|
|
| @@ -11151,12 +11118,6 @@ class Float64Array extends ArrayBufferView implements JavaScriptIndexingBehavior
|
| throw new StateError("More than one element");
|
| }
|
|
|
| - num min([int compare(num a, num b)]) =>
|
| - IterableMixinWorkaround.min(this, compare);
|
| -
|
| - num max([int compare(num a, num b)]) =>
|
| - IterableMixinWorkaround.max(this, compare);
|
| -
|
| void insert(int index, num element) {
|
| throw new UnsupportedError("Cannot add to immutable List.");
|
| }
|
| @@ -11696,11 +11657,12 @@ class HtmlAllCollection implements JavaScriptIndexingBehavior, List<Node> native
|
| return new FixedSizeListIterator<Node>(this);
|
| }
|
|
|
| - dynamic reduce(dynamic initialValue, dynamic combine(dynamic, Node)) {
|
| - return IterableMixinWorkaround.reduce(this, initialValue, combine);
|
| + Node reduce(Node combine(Node value, Node element)) {
|
| + return IterableMixinWorkaround.reduce(this, combine);
|
| }
|
|
|
| - dynamic fold(dynamic initialValue, dynamic combine(dynamic, Node)) {
|
| + dynamic fold(dynamic initialValue,
|
| + dynamic combine(dynamic previousValue, Node element)) {
|
| return IterableMixinWorkaround.fold(this, initialValue, combine);
|
| }
|
|
|
| @@ -11810,12 +11772,6 @@ class HtmlAllCollection implements JavaScriptIndexingBehavior, List<Node> native
|
| throw new StateError("More than one element");
|
| }
|
|
|
| - Node min([int compare(Node a, Node b)]) =>
|
| - IterableMixinWorkaround.min(this, compare);
|
| -
|
| - Node max([int compare(Node a, Node b)]) =>
|
| - IterableMixinWorkaround.max(this, compare);
|
| -
|
| void insert(int index, Node element) {
|
| throw new UnsupportedError("Cannot add to immutable List.");
|
| }
|
| @@ -11924,11 +11880,12 @@ class HtmlCollection implements JavaScriptIndexingBehavior, List<Node> native "*
|
| return new FixedSizeListIterator<Node>(this);
|
| }
|
|
|
| - dynamic reduce(dynamic initialValue, dynamic combine(dynamic, Node)) {
|
| - return IterableMixinWorkaround.reduce(this, initialValue, combine);
|
| + Node reduce(Node combine(Node value, Node element)) {
|
| + return IterableMixinWorkaround.reduce(this, combine);
|
| }
|
|
|
| - dynamic fold(dynamic initialValue, dynamic combine(dynamic, Node)) {
|
| + dynamic fold(dynamic initialValue,
|
| + dynamic combine(dynamic previousValue, Node element)) {
|
| return IterableMixinWorkaround.fold(this, initialValue, combine);
|
| }
|
|
|
| @@ -12038,12 +11995,6 @@ class HtmlCollection implements JavaScriptIndexingBehavior, List<Node> native "*
|
| throw new StateError("More than one element");
|
| }
|
|
|
| - Node min([int compare(Node a, Node b)]) =>
|
| - IterableMixinWorkaround.min(this, compare);
|
| -
|
| - Node max([int compare(Node a, Node b)]) =>
|
| - IterableMixinWorkaround.max(this, compare);
|
| -
|
| void insert(int index, Node element) {
|
| throw new UnsupportedError("Cannot add to immutable List.");
|
| }
|
| @@ -13975,11 +13926,12 @@ class Int16Array extends ArrayBufferView implements JavaScriptIndexingBehavior,
|
| return new FixedSizeListIterator<int>(this);
|
| }
|
|
|
| - dynamic reduce(dynamic initialValue, dynamic combine(dynamic, int)) {
|
| - return IterableMixinWorkaround.reduce(this, initialValue, combine);
|
| + int reduce(int combine(int value, int element)) {
|
| + return IterableMixinWorkaround.reduce(this, combine);
|
| }
|
|
|
| - dynamic fold(dynamic initialValue, dynamic combine(dynamic, int)) {
|
| + dynamic fold(dynamic initialValue,
|
| + dynamic combine(dynamic previousValue, int element)) {
|
| return IterableMixinWorkaround.fold(this, initialValue, combine);
|
| }
|
|
|
| @@ -14089,12 +14041,6 @@ class Int16Array extends ArrayBufferView implements JavaScriptIndexingBehavior,
|
| throw new StateError("More than one element");
|
| }
|
|
|
| - int min([int compare(int a, int b)]) =>
|
| - IterableMixinWorkaround.min(this, compare);
|
| -
|
| - int max([int compare(int a, int b)]) =>
|
| - IterableMixinWorkaround.max(this, compare);
|
| -
|
| void insert(int index, int element) {
|
| throw new UnsupportedError("Cannot add to immutable List.");
|
| }
|
| @@ -14214,11 +14160,12 @@ class Int32Array extends ArrayBufferView implements JavaScriptIndexingBehavior,
|
| return new FixedSizeListIterator<int>(this);
|
| }
|
|
|
| - dynamic reduce(dynamic initialValue, dynamic combine(dynamic, int)) {
|
| - return IterableMixinWorkaround.reduce(this, initialValue, combine);
|
| + int reduce(int combine(int value, int element)) {
|
| + return IterableMixinWorkaround.reduce(this, combine);
|
| }
|
|
|
| - dynamic fold(dynamic initialValue, dynamic combine(dynamic, int)) {
|
| + dynamic fold(dynamic initialValue,
|
| + dynamic combine(dynamic previousValue, int element)) {
|
| return IterableMixinWorkaround.fold(this, initialValue, combine);
|
| }
|
|
|
| @@ -14328,12 +14275,6 @@ class Int32Array extends ArrayBufferView implements JavaScriptIndexingBehavior,
|
| throw new StateError("More than one element");
|
| }
|
|
|
| - int min([int compare(int a, int b)]) =>
|
| - IterableMixinWorkaround.min(this, compare);
|
| -
|
| - int max([int compare(int a, int b)]) =>
|
| - IterableMixinWorkaround.max(this, compare);
|
| -
|
| void insert(int index, int element) {
|
| throw new UnsupportedError("Cannot add to immutable List.");
|
| }
|
| @@ -14453,11 +14394,12 @@ class Int8Array extends ArrayBufferView implements JavaScriptIndexingBehavior, L
|
| return new FixedSizeListIterator<int>(this);
|
| }
|
|
|
| - dynamic reduce(dynamic initialValue, dynamic combine(dynamic, int)) {
|
| - return IterableMixinWorkaround.reduce(this, initialValue, combine);
|
| + int reduce(int combine(int value, int element)) {
|
| + return IterableMixinWorkaround.reduce(this, combine);
|
| }
|
|
|
| - dynamic fold(dynamic initialValue, dynamic combine(dynamic, int)) {
|
| + dynamic fold(dynamic initialValue,
|
| + dynamic combine(dynamic previousValue, int element)) {
|
| return IterableMixinWorkaround.fold(this, initialValue, combine);
|
| }
|
|
|
| @@ -14567,12 +14509,6 @@ class Int8Array extends ArrayBufferView implements JavaScriptIndexingBehavior, L
|
| throw new StateError("More than one element");
|
| }
|
|
|
| - int min([int compare(int a, int b)]) =>
|
| - IterableMixinWorkaround.min(this, compare);
|
| -
|
| - int max([int compare(int a, int b)]) =>
|
| - IterableMixinWorkaround.max(this, compare);
|
| -
|
| void insert(int index, int element) {
|
| throw new UnsupportedError("Cannot add to immutable List.");
|
| }
|
| @@ -17487,11 +17423,12 @@ class NodeList implements JavaScriptIndexingBehavior, List<Node> native "*NodeLi
|
| return new FixedSizeListIterator<Node>(this);
|
| }
|
|
|
| - dynamic reduce(dynamic initialValue, dynamic combine(dynamic, Node)) {
|
| - return IterableMixinWorkaround.reduce(this, initialValue, combine);
|
| + Node reduce(Node combine(Node value, Node element)) {
|
| + return IterableMixinWorkaround.reduce(this, combine);
|
| }
|
|
|
| - dynamic fold(dynamic initialValue, dynamic combine(dynamic, Node)) {
|
| + dynamic fold(dynamic initialValue,
|
| + dynamic combine(dynamic previousValue, Node element)) {
|
| return IterableMixinWorkaround.fold(this, initialValue, combine);
|
| }
|
|
|
| @@ -17601,12 +17538,6 @@ class NodeList implements JavaScriptIndexingBehavior, List<Node> native "*NodeLi
|
| throw new StateError("More than one element");
|
| }
|
|
|
| - Node min([int compare(Node a, Node b)]) =>
|
| - IterableMixinWorkaround.min(this, compare);
|
| -
|
| - Node max([int compare(Node a, Node b)]) =>
|
| - IterableMixinWorkaround.max(this, compare);
|
| -
|
| void insert(int index, Node element) {
|
| throw new UnsupportedError("Cannot add to immutable List.");
|
| }
|
| @@ -19844,11 +19775,12 @@ class SourceBufferList extends EventTarget implements JavaScriptIndexingBehavior
|
| return new FixedSizeListIterator<SourceBuffer>(this);
|
| }
|
|
|
| - dynamic reduce(dynamic initialValue, dynamic combine(dynamic, SourceBuffer)) {
|
| - return IterableMixinWorkaround.reduce(this, initialValue, combine);
|
| + SourceBuffer reduce(SourceBuffer combine(SourceBuffer value, SourceBuffer element)) {
|
| + return IterableMixinWorkaround.reduce(this, combine);
|
| }
|
|
|
| - dynamic fold(dynamic initialValue, dynamic combine(dynamic, SourceBuffer)) {
|
| + dynamic fold(dynamic initialValue,
|
| + dynamic combine(dynamic previousValue, SourceBuffer element)) {
|
| return IterableMixinWorkaround.fold(this, initialValue, combine);
|
| }
|
|
|
| @@ -19958,12 +19890,6 @@ class SourceBufferList extends EventTarget implements JavaScriptIndexingBehavior
|
| throw new StateError("More than one element");
|
| }
|
|
|
| - SourceBuffer min([int compare(SourceBuffer a, SourceBuffer b)]) =>
|
| - IterableMixinWorkaround.min(this, compare);
|
| -
|
| - SourceBuffer max([int compare(SourceBuffer a, SourceBuffer b)]) =>
|
| - IterableMixinWorkaround.max(this, compare);
|
| -
|
| void insert(int index, SourceBuffer element) {
|
| throw new UnsupportedError("Cannot add to immutable List.");
|
| }
|
| @@ -20145,11 +20071,12 @@ class SpeechGrammarList implements JavaScriptIndexingBehavior, List<SpeechGramma
|
| return new FixedSizeListIterator<SpeechGrammar>(this);
|
| }
|
|
|
| - dynamic reduce(dynamic initialValue, dynamic combine(dynamic, SpeechGrammar)) {
|
| - return IterableMixinWorkaround.reduce(this, initialValue, combine);
|
| + SpeechGrammar reduce(SpeechGrammar combine(SpeechGrammar value, SpeechGrammar element)) {
|
| + return IterableMixinWorkaround.reduce(this, combine);
|
| }
|
|
|
| - dynamic fold(dynamic initialValue, dynamic combine(dynamic, SpeechGrammar)) {
|
| + dynamic fold(dynamic initialValue,
|
| + dynamic combine(dynamic previousValue, SpeechGrammar element)) {
|
| return IterableMixinWorkaround.fold(this, initialValue, combine);
|
| }
|
|
|
| @@ -20259,12 +20186,6 @@ class SpeechGrammarList implements JavaScriptIndexingBehavior, List<SpeechGramma
|
| throw new StateError("More than one element");
|
| }
|
|
|
| - SpeechGrammar min([int compare(SpeechGrammar a, SpeechGrammar b)]) =>
|
| - IterableMixinWorkaround.min(this, compare);
|
| -
|
| - SpeechGrammar max([int compare(SpeechGrammar a, SpeechGrammar b)]) =>
|
| - IterableMixinWorkaround.max(this, compare);
|
| -
|
| void insert(int index, SpeechGrammar element) {
|
| throw new UnsupportedError("Cannot add to immutable List.");
|
| }
|
| @@ -21609,11 +21530,12 @@ class TextTrackCueList implements List<TextTrackCue>, JavaScriptIndexingBehavior
|
| return new FixedSizeListIterator<TextTrackCue>(this);
|
| }
|
|
|
| - dynamic reduce(dynamic initialValue, dynamic combine(dynamic, TextTrackCue)) {
|
| - return IterableMixinWorkaround.reduce(this, initialValue, combine);
|
| + TextTrackCue reduce(TextTrackCue combine(TextTrackCue value, TextTrackCue element)) {
|
| + return IterableMixinWorkaround.reduce(this, combine);
|
| }
|
|
|
| - dynamic fold(dynamic initialValue, dynamic combine(dynamic, TextTrackCue)) {
|
| + dynamic fold(dynamic initialValue,
|
| + dynamic combine(dynamic previousValue, TextTrackCue element)) {
|
| return IterableMixinWorkaround.fold(this, initialValue, combine);
|
| }
|
|
|
| @@ -21723,12 +21645,6 @@ class TextTrackCueList implements List<TextTrackCue>, JavaScriptIndexingBehavior
|
| throw new StateError("More than one element");
|
| }
|
|
|
| - TextTrackCue min([int compare(TextTrackCue a, TextTrackCue b)]) =>
|
| - IterableMixinWorkaround.min(this, compare);
|
| -
|
| - TextTrackCue max([int compare(TextTrackCue a, TextTrackCue b)]) =>
|
| - IterableMixinWorkaround.max(this, compare);
|
| -
|
| void insert(int index, TextTrackCue element) {
|
| throw new UnsupportedError("Cannot add to immutable List.");
|
| }
|
| @@ -21835,11 +21751,12 @@ class TextTrackList extends EventTarget implements JavaScriptIndexingBehavior, L
|
| return new FixedSizeListIterator<TextTrack>(this);
|
| }
|
|
|
| - dynamic reduce(dynamic initialValue, dynamic combine(dynamic, TextTrack)) {
|
| - return IterableMixinWorkaround.reduce(this, initialValue, combine);
|
| + TextTrack reduce(TextTrack combine(TextTrack value, TextTrack element)) {
|
| + return IterableMixinWorkaround.reduce(this, combine);
|
| }
|
|
|
| - dynamic fold(dynamic initialValue, dynamic combine(dynamic, TextTrack)) {
|
| + dynamic fold(dynamic initialValue,
|
| + dynamic combine(dynamic previousValue, TextTrack element)) {
|
| return IterableMixinWorkaround.fold(this, initialValue, combine);
|
| }
|
|
|
| @@ -21949,12 +21866,6 @@ class TextTrackList extends EventTarget implements JavaScriptIndexingBehavior, L
|
| throw new StateError("More than one element");
|
| }
|
|
|
| - TextTrack min([int compare(TextTrack a, TextTrack b)]) =>
|
| - IterableMixinWorkaround.min(this, compare);
|
| -
|
| - TextTrack max([int compare(TextTrack a, TextTrack b)]) =>
|
| - IterableMixinWorkaround.max(this, compare);
|
| -
|
| void insert(int index, TextTrack element) {
|
| throw new UnsupportedError("Cannot add to immutable List.");
|
| }
|
| @@ -22287,11 +22198,12 @@ class TouchList implements JavaScriptIndexingBehavior, List<Touch> native "*Touc
|
| return new FixedSizeListIterator<Touch>(this);
|
| }
|
|
|
| - dynamic reduce(dynamic initialValue, dynamic combine(dynamic, Touch)) {
|
| - return IterableMixinWorkaround.reduce(this, initialValue, combine);
|
| + Touch reduce(Touch combine(Touch value, Touch element)) {
|
| + return IterableMixinWorkaround.reduce(this, combine);
|
| }
|
|
|
| - dynamic fold(dynamic initialValue, dynamic combine(dynamic, Touch)) {
|
| + dynamic fold(dynamic initialValue,
|
| + dynamic combine(dynamic previousValue, Touch element)) {
|
| return IterableMixinWorkaround.fold(this, initialValue, combine);
|
| }
|
|
|
| @@ -22401,12 +22313,6 @@ class TouchList implements JavaScriptIndexingBehavior, List<Touch> native "*Touc
|
| throw new StateError("More than one element");
|
| }
|
|
|
| - Touch min([int compare(Touch a, Touch b)]) =>
|
| - IterableMixinWorkaround.min(this, compare);
|
| -
|
| - Touch max([int compare(Touch a, Touch b)]) =>
|
| - IterableMixinWorkaround.max(this, compare);
|
| -
|
| void insert(int index, Touch element) {
|
| throw new UnsupportedError("Cannot add to immutable List.");
|
| }
|
| @@ -22776,11 +22682,12 @@ class Uint16Array extends ArrayBufferView implements JavaScriptIndexingBehavior,
|
| return new FixedSizeListIterator<int>(this);
|
| }
|
|
|
| - dynamic reduce(dynamic initialValue, dynamic combine(dynamic, int)) {
|
| - return IterableMixinWorkaround.reduce(this, initialValue, combine);
|
| + int reduce(int combine(int value, int element)) {
|
| + return IterableMixinWorkaround.reduce(this, combine);
|
| }
|
|
|
| - dynamic fold(dynamic initialValue, dynamic combine(dynamic, int)) {
|
| + dynamic fold(dynamic initialValue,
|
| + dynamic combine(dynamic previousValue, int element)) {
|
| return IterableMixinWorkaround.fold(this, initialValue, combine);
|
| }
|
|
|
| @@ -22890,12 +22797,6 @@ class Uint16Array extends ArrayBufferView implements JavaScriptIndexingBehavior,
|
| throw new StateError("More than one element");
|
| }
|
|
|
| - int min([int compare(int a, int b)]) =>
|
| - IterableMixinWorkaround.min(this, compare);
|
| -
|
| - int max([int compare(int a, int b)]) =>
|
| - IterableMixinWorkaround.max(this, compare);
|
| -
|
| void insert(int index, int element) {
|
| throw new UnsupportedError("Cannot add to immutable List.");
|
| }
|
| @@ -23015,11 +22916,12 @@ class Uint32Array extends ArrayBufferView implements JavaScriptIndexingBehavior,
|
| return new FixedSizeListIterator<int>(this);
|
| }
|
|
|
| - dynamic reduce(dynamic initialValue, dynamic combine(dynamic, int)) {
|
| - return IterableMixinWorkaround.reduce(this, initialValue, combine);
|
| + int reduce(int combine(int value, int element)) {
|
| + return IterableMixinWorkaround.reduce(this, combine);
|
| }
|
|
|
| - dynamic fold(dynamic initialValue, dynamic combine(dynamic, int)) {
|
| + dynamic fold(dynamic initialValue,
|
| + dynamic combine(dynamic previousValue, int element)) {
|
| return IterableMixinWorkaround.fold(this, initialValue, combine);
|
| }
|
|
|
| @@ -23129,12 +23031,6 @@ class Uint32Array extends ArrayBufferView implements JavaScriptIndexingBehavior,
|
| throw new StateError("More than one element");
|
| }
|
|
|
| - int min([int compare(int a, int b)]) =>
|
| - IterableMixinWorkaround.min(this, compare);
|
| -
|
| - int max([int compare(int a, int b)]) =>
|
| - IterableMixinWorkaround.max(this, compare);
|
| -
|
| void insert(int index, int element) {
|
| throw new UnsupportedError("Cannot add to immutable List.");
|
| }
|
| @@ -23254,11 +23150,12 @@ class Uint8Array extends ArrayBufferView implements JavaScriptIndexingBehavior,
|
| return new FixedSizeListIterator<int>(this);
|
| }
|
|
|
| - dynamic reduce(dynamic initialValue, dynamic combine(dynamic, int)) {
|
| - return IterableMixinWorkaround.reduce(this, initialValue, combine);
|
| + int reduce(int combine(int value, int element)) {
|
| + return IterableMixinWorkaround.reduce(this, combine);
|
| }
|
|
|
| - dynamic fold(dynamic initialValue, dynamic combine(dynamic, int)) {
|
| + dynamic fold(dynamic initialValue,
|
| + dynamic combine(dynamic previousValue, int element)) {
|
| return IterableMixinWorkaround.fold(this, initialValue, combine);
|
| }
|
|
|
| @@ -23368,12 +23265,6 @@ class Uint8Array extends ArrayBufferView implements JavaScriptIndexingBehavior,
|
| throw new StateError("More than one element");
|
| }
|
|
|
| - int min([int compare(int a, int b)]) =>
|
| - IterableMixinWorkaround.min(this, compare);
|
| -
|
| - int max([int compare(int a, int b)]) =>
|
| - IterableMixinWorkaround.max(this, compare);
|
| -
|
| void insert(int index, int element) {
|
| throw new UnsupportedError("Cannot add to immutable List.");
|
| }
|
| @@ -23490,11 +23381,12 @@ class Uint8ClampedArray extends Uint8Array implements JavaScriptIndexingBehavior
|
| return new FixedSizeListIterator<int>(this);
|
| }
|
|
|
| - dynamic reduce(dynamic initialValue, dynamic combine(dynamic, int)) {
|
| - return IterableMixinWorkaround.reduce(this, initialValue, combine);
|
| + int reduce(int combine(int value, int element)) {
|
| + return IterableMixinWorkaround.reduce(this, combine);
|
| }
|
|
|
| - dynamic fold(dynamic initialValue, dynamic combine(dynamic, int)) {
|
| + dynamic fold(dynamic initialValue,
|
| + dynamic combine(dynamic previousValue, int element)) {
|
| return IterableMixinWorkaround.fold(this, initialValue, combine);
|
| }
|
|
|
| @@ -23604,12 +23496,6 @@ class Uint8ClampedArray extends Uint8Array implements JavaScriptIndexingBehavior
|
| throw new StateError("More than one element");
|
| }
|
|
|
| - int min([int compare(int a, int b)]) =>
|
| - IterableMixinWorkaround.min(this, compare);
|
| -
|
| - int max([int compare(int a, int b)]) =>
|
| - IterableMixinWorkaround.max(this, compare);
|
| -
|
| void insert(int index, int element) {
|
| throw new UnsupportedError("Cannot add to immutable List.");
|
| }
|
| @@ -25777,11 +25663,12 @@ class _ClientRectList implements JavaScriptIndexingBehavior, List<Rect> native "
|
| return new FixedSizeListIterator<Rect>(this);
|
| }
|
|
|
| - dynamic reduce(dynamic initialValue, dynamic combine(dynamic, Rect)) {
|
| - return IterableMixinWorkaround.reduce(this, initialValue, combine);
|
| + Rect reduce(Rect combine(Rect value, Rect element)) {
|
| + return IterableMixinWorkaround.reduce(this, combine);
|
| }
|
|
|
| - dynamic fold(dynamic initialValue, dynamic combine(dynamic, Rect)) {
|
| + dynamic fold(dynamic initialValue,
|
| + dynamic combine(dynamic previousValue, Rect element)) {
|
| return IterableMixinWorkaround.fold(this, initialValue, combine);
|
| }
|
|
|
| @@ -25891,12 +25778,6 @@ class _ClientRectList implements JavaScriptIndexingBehavior, List<Rect> native "
|
| throw new StateError("More than one element");
|
| }
|
|
|
| - Rect min([int compare(Rect a, Rect b)]) =>
|
| - IterableMixinWorkaround.min(this, compare);
|
| -
|
| - Rect max([int compare(Rect a, Rect b)]) =>
|
| - IterableMixinWorkaround.max(this, compare);
|
| -
|
| void insert(int index, Rect element) {
|
| throw new UnsupportedError("Cannot add to immutable List.");
|
| }
|
| @@ -26004,11 +25885,12 @@ class _CssRuleList implements JavaScriptIndexingBehavior, List<CssRule> native "
|
| return new FixedSizeListIterator<CssRule>(this);
|
| }
|
|
|
| - dynamic reduce(dynamic initialValue, dynamic combine(dynamic, CssRule)) {
|
| - return IterableMixinWorkaround.reduce(this, initialValue, combine);
|
| + CssRule reduce(CssRule combine(CssRule value, CssRule element)) {
|
| + return IterableMixinWorkaround.reduce(this, combine);
|
| }
|
|
|
| - dynamic fold(dynamic initialValue, dynamic combine(dynamic, CssRule)) {
|
| + dynamic fold(dynamic initialValue,
|
| + dynamic combine(dynamic previousValue, CssRule element)) {
|
| return IterableMixinWorkaround.fold(this, initialValue, combine);
|
| }
|
|
|
| @@ -26118,12 +26000,6 @@ class _CssRuleList implements JavaScriptIndexingBehavior, List<CssRule> native "
|
| throw new StateError("More than one element");
|
| }
|
|
|
| - CssRule min([int compare(CssRule a, CssRule b)]) =>
|
| - IterableMixinWorkaround.min(this, compare);
|
| -
|
| - CssRule max([int compare(CssRule a, CssRule b)]) =>
|
| - IterableMixinWorkaround.max(this, compare);
|
| -
|
| void insert(int index, CssRule element) {
|
| throw new UnsupportedError("Cannot add to immutable List.");
|
| }
|
| @@ -26222,11 +26098,12 @@ class _CssValueList extends _CSSValue implements JavaScriptIndexingBehavior, Lis
|
| return new FixedSizeListIterator<_CSSValue>(this);
|
| }
|
|
|
| - dynamic reduce(dynamic initialValue, dynamic combine(dynamic, _CSSValue)) {
|
| - return IterableMixinWorkaround.reduce(this, initialValue, combine);
|
| + _CSSValue reduce(_CSSValue combine(_CSSValue value, _CSSValue element)) {
|
| + return IterableMixinWorkaround.reduce(this, combine);
|
| }
|
|
|
| - dynamic fold(dynamic initialValue, dynamic combine(dynamic, _CSSValue)) {
|
| + dynamic fold(dynamic initialValue,
|
| + dynamic combine(dynamic previousValue, _CSSValue element)) {
|
| return IterableMixinWorkaround.fold(this, initialValue, combine);
|
| }
|
|
|
| @@ -26336,12 +26213,6 @@ class _CssValueList extends _CSSValue implements JavaScriptIndexingBehavior, Lis
|
| throw new StateError("More than one element");
|
| }
|
|
|
| - _CSSValue min([int compare(_CSSValue a, _CSSValue b)]) =>
|
| - IterableMixinWorkaround.min(this, compare);
|
| -
|
| - _CSSValue max([int compare(_CSSValue a, _CSSValue b)]) =>
|
| - IterableMixinWorkaround.max(this, compare);
|
| -
|
| void insert(int index, _CSSValue element) {
|
| throw new UnsupportedError("Cannot add to immutable List.");
|
| }
|
| @@ -26508,11 +26379,12 @@ class _EntryArray implements JavaScriptIndexingBehavior, List<Entry> native "*En
|
| return new FixedSizeListIterator<Entry>(this);
|
| }
|
|
|
| - dynamic reduce(dynamic initialValue, dynamic combine(dynamic, Entry)) {
|
| - return IterableMixinWorkaround.reduce(this, initialValue, combine);
|
| + Entry reduce(Entry combine(Entry value, Entry element)) {
|
| + return IterableMixinWorkaround.reduce(this, combine);
|
| }
|
|
|
| - dynamic fold(dynamic initialValue, dynamic combine(dynamic, Entry)) {
|
| + dynamic fold(dynamic initialValue,
|
| + dynamic combine(dynamic previousValue, Entry element)) {
|
| return IterableMixinWorkaround.fold(this, initialValue, combine);
|
| }
|
|
|
| @@ -26622,12 +26494,6 @@ class _EntryArray implements JavaScriptIndexingBehavior, List<Entry> native "*En
|
| throw new StateError("More than one element");
|
| }
|
|
|
| - Entry min([int compare(Entry a, Entry b)]) =>
|
| - IterableMixinWorkaround.min(this, compare);
|
| -
|
| - Entry max([int compare(Entry a, Entry b)]) =>
|
| - IterableMixinWorkaround.max(this, compare);
|
| -
|
| void insert(int index, Entry element) {
|
| throw new UnsupportedError("Cannot add to immutable List.");
|
| }
|
| @@ -26726,11 +26592,12 @@ class _EntryArraySync implements JavaScriptIndexingBehavior, List<_EntrySync> na
|
| return new FixedSizeListIterator<_EntrySync>(this);
|
| }
|
|
|
| - dynamic reduce(dynamic initialValue, dynamic combine(dynamic, _EntrySync)) {
|
| - return IterableMixinWorkaround.reduce(this, initialValue, combine);
|
| + _EntrySync reduce(_EntrySync combine(_EntrySync value, _EntrySync element)) {
|
| + return IterableMixinWorkaround.reduce(this, combine);
|
| }
|
|
|
| - dynamic fold(dynamic initialValue, dynamic combine(dynamic, _EntrySync)) {
|
| + dynamic fold(dynamic initialValue,
|
| + dynamic combine(dynamic previousValue, _EntrySync element)) {
|
| return IterableMixinWorkaround.fold(this, initialValue, combine);
|
| }
|
|
|
| @@ -26840,12 +26707,6 @@ class _EntryArraySync implements JavaScriptIndexingBehavior, List<_EntrySync> na
|
| throw new StateError("More than one element");
|
| }
|
|
|
| - _EntrySync min([int compare(_EntrySync a, _EntrySync b)]) =>
|
| - IterableMixinWorkaround.min(this, compare);
|
| -
|
| - _EntrySync max([int compare(_EntrySync a, _EntrySync b)]) =>
|
| - IterableMixinWorkaround.max(this, compare);
|
| -
|
| void insert(int index, _EntrySync element) {
|
| throw new UnsupportedError("Cannot add to immutable List.");
|
| }
|
| @@ -26987,11 +26848,12 @@ class _GamepadList implements JavaScriptIndexingBehavior, List<Gamepad> native "
|
| return new FixedSizeListIterator<Gamepad>(this);
|
| }
|
|
|
| - dynamic reduce(dynamic initialValue, dynamic combine(dynamic, Gamepad)) {
|
| - return IterableMixinWorkaround.reduce(this, initialValue, combine);
|
| + Gamepad reduce(Gamepad combine(Gamepad value, Gamepad element)) {
|
| + return IterableMixinWorkaround.reduce(this, combine);
|
| }
|
|
|
| - dynamic fold(dynamic initialValue, dynamic combine(dynamic, Gamepad)) {
|
| + dynamic fold(dynamic initialValue,
|
| + dynamic combine(dynamic previousValue, Gamepad element)) {
|
| return IterableMixinWorkaround.fold(this, initialValue, combine);
|
| }
|
|
|
| @@ -27101,12 +26963,6 @@ class _GamepadList implements JavaScriptIndexingBehavior, List<Gamepad> native "
|
| throw new StateError("More than one element");
|
| }
|
|
|
| - Gamepad min([int compare(Gamepad a, Gamepad b)]) =>
|
| - IterableMixinWorkaround.min(this, compare);
|
| -
|
| - Gamepad max([int compare(Gamepad a, Gamepad b)]) =>
|
| - IterableMixinWorkaround.max(this, compare);
|
| -
|
| void insert(int index, Gamepad element) {
|
| throw new UnsupportedError("Cannot add to immutable List.");
|
| }
|
| @@ -27268,11 +27124,12 @@ class _NamedNodeMap implements JavaScriptIndexingBehavior, List<Node> native "*N
|
| return new FixedSizeListIterator<Node>(this);
|
| }
|
|
|
| - dynamic reduce(dynamic initialValue, dynamic combine(dynamic, Node)) {
|
| - return IterableMixinWorkaround.reduce(this, initialValue, combine);
|
| + Node reduce(Node combine(Node value, Node element)) {
|
| + return IterableMixinWorkaround.reduce(this, combine);
|
| }
|
|
|
| - dynamic fold(dynamic initialValue, dynamic combine(dynamic, Node)) {
|
| + dynamic fold(dynamic initialValue,
|
| + dynamic combine(dynamic previousValue, Node element)) {
|
| return IterableMixinWorkaround.fold(this, initialValue, combine);
|
| }
|
|
|
| @@ -27382,12 +27239,6 @@ class _NamedNodeMap implements JavaScriptIndexingBehavior, List<Node> native "*N
|
| throw new StateError("More than one element");
|
| }
|
|
|
| - Node min([int compare(Node a, Node b)]) =>
|
| - IterableMixinWorkaround.min(this, compare);
|
| -
|
| - Node max([int compare(Node a, Node b)]) =>
|
| - IterableMixinWorkaround.max(this, compare);
|
| -
|
| void insert(int index, Node element) {
|
| throw new UnsupportedError("Cannot add to immutable List.");
|
| }
|
| @@ -27557,11 +27408,12 @@ class _SpeechInputResultList implements JavaScriptIndexingBehavior, List<SpeechI
|
| return new FixedSizeListIterator<SpeechInputResult>(this);
|
| }
|
|
|
| - dynamic reduce(dynamic initialValue, dynamic combine(dynamic, SpeechInputResult)) {
|
| - return IterableMixinWorkaround.reduce(this, initialValue, combine);
|
| + SpeechInputResult reduce(SpeechInputResult combine(SpeechInputResult value, SpeechInputResult element)) {
|
| + return IterableMixinWorkaround.reduce(this, combine);
|
| }
|
|
|
| - dynamic fold(dynamic initialValue, dynamic combine(dynamic, SpeechInputResult)) {
|
| + dynamic fold(dynamic initialValue,
|
| + dynamic combine(dynamic previousValue, SpeechInputResult element)) {
|
| return IterableMixinWorkaround.fold(this, initialValue, combine);
|
| }
|
|
|
| @@ -27671,12 +27523,6 @@ class _SpeechInputResultList implements JavaScriptIndexingBehavior, List<SpeechI
|
| throw new StateError("More than one element");
|
| }
|
|
|
| - SpeechInputResult min([int compare(SpeechInputResult a, SpeechInputResult b)]) =>
|
| - IterableMixinWorkaround.min(this, compare);
|
| -
|
| - SpeechInputResult max([int compare(SpeechInputResult a, SpeechInputResult b)]) =>
|
| - IterableMixinWorkaround.max(this, compare);
|
| -
|
| void insert(int index, SpeechInputResult element) {
|
| throw new UnsupportedError("Cannot add to immutable List.");
|
| }
|
| @@ -27775,11 +27621,12 @@ class _SpeechRecognitionResultList implements JavaScriptIndexingBehavior, List<S
|
| return new FixedSizeListIterator<SpeechRecognitionResult>(this);
|
| }
|
|
|
| - dynamic reduce(dynamic initialValue, dynamic combine(dynamic, SpeechRecognitionResult)) {
|
| - return IterableMixinWorkaround.reduce(this, initialValue, combine);
|
| + SpeechRecognitionResult reduce(SpeechRecognitionResult combine(SpeechRecognitionResult value, SpeechRecognitionResult element)) {
|
| + return IterableMixinWorkaround.reduce(this, combine);
|
| }
|
|
|
| - dynamic fold(dynamic initialValue, dynamic combine(dynamic, SpeechRecognitionResult)) {
|
| + dynamic fold(dynamic initialValue,
|
| + dynamic combine(dynamic previousValue, SpeechRecognitionResult element)) {
|
| return IterableMixinWorkaround.fold(this, initialValue, combine);
|
| }
|
|
|
| @@ -27889,12 +27736,6 @@ class _SpeechRecognitionResultList implements JavaScriptIndexingBehavior, List<S
|
| throw new StateError("More than one element");
|
| }
|
|
|
| - SpeechRecognitionResult min([int compare(SpeechRecognitionResult a, SpeechRecognitionResult b)]) =>
|
| - IterableMixinWorkaround.min(this, compare);
|
| -
|
| - SpeechRecognitionResult max([int compare(SpeechRecognitionResult a, SpeechRecognitionResult b)]) =>
|
| - IterableMixinWorkaround.max(this, compare);
|
| -
|
| void insert(int index, SpeechRecognitionResult element) {
|
| throw new UnsupportedError("Cannot add to immutable List.");
|
| }
|
| @@ -27993,11 +27834,12 @@ class _StyleSheetList implements JavaScriptIndexingBehavior, List<StyleSheet> na
|
| return new FixedSizeListIterator<StyleSheet>(this);
|
| }
|
|
|
| - dynamic reduce(dynamic initialValue, dynamic combine(dynamic, StyleSheet)) {
|
| - return IterableMixinWorkaround.reduce(this, initialValue, combine);
|
| + StyleSheet reduce(StyleSheet combine(StyleSheet value, StyleSheet element)) {
|
| + return IterableMixinWorkaround.reduce(this, combine);
|
| }
|
|
|
| - dynamic fold(dynamic initialValue, dynamic combine(dynamic, StyleSheet)) {
|
| + dynamic fold(dynamic initialValue,
|
| + dynamic combine(dynamic previousValue, StyleSheet element)) {
|
| return IterableMixinWorkaround.fold(this, initialValue, combine);
|
| }
|
|
|
| @@ -28107,12 +27949,6 @@ class _StyleSheetList implements JavaScriptIndexingBehavior, List<StyleSheet> na
|
| throw new StateError("More than one element");
|
| }
|
|
|
| - StyleSheet min([int compare(StyleSheet a, StyleSheet b)]) =>
|
| - IterableMixinWorkaround.min(this, compare);
|
| -
|
| - StyleSheet max([int compare(StyleSheet a, StyleSheet b)]) =>
|
| - IterableMixinWorkaround.max(this, compare);
|
| -
|
| void insert(int index, StyleSheet element) {
|
| throw new UnsupportedError("Cannot add to immutable List.");
|
| }
|
| @@ -28723,9 +28559,8 @@ abstract class CssClassSet implements Set<String> {
|
|
|
| int get length => readClasses().length;
|
|
|
| - dynamic reduce(dynamic initialValue,
|
| - dynamic combine(dynamic previousValue, String element)) {
|
| - return readClasses().reduce(initialValue, combine);
|
| + String reduce(String combine(String value, String element)) {
|
| + return readClasses().reduce(combine);
|
| }
|
|
|
| dynamic fold(dynamic initialValue,
|
| @@ -28835,10 +28670,6 @@ abstract class CssClassSet implements Set<String> {
|
| List<String> toList({ bool growable: true }) =>
|
| readClasses().toList(growable: growable);
|
| Set<String> toSet() => readClasses().toSet();
|
| - String min([int compare(String a, String b)]) =>
|
| - readClasses().min(compare);
|
| - String max([int compare(String a, String b)]) =>
|
| - readClasses().max(compare);
|
| Iterable<String> take(int n) => readClasses().take(n);
|
| Iterable<String> takeWhile(bool test(String value)) =>
|
| readClasses().takeWhile(test);
|
| @@ -31205,8 +31036,8 @@ class _WrappedList<E> implements List<E> {
|
|
|
| void forEach(void f(E element)) { _list.forEach(f); }
|
|
|
| - dynamic reduce(initialValue, combine(previousValue, E element)) =>
|
| - _list.reduce(initialValue, combine);
|
| + E reduce(E combine(E value, E element)) =>
|
| + _list.reduce(combine);
|
|
|
| dynamic fold(initialValue, combine(previousValue, E element)) =>
|
| _list.fold(initialValue, combine);
|
| @@ -31224,10 +31055,6 @@ class _WrappedList<E> implements List<E> {
|
|
|
| int get length => _list.length;
|
|
|
| - E min([int compare(E a, E b)]) => _list.min(compare);
|
| -
|
| - E max([int compare(E a, E b)]) => _list.max(compare);
|
| -
|
| bool get isEmpty => _list.isEmpty;
|
|
|
| Iterable<E> take(int n) => _list.take(n);
|
|
|