| Index: sdk/lib/html/dartium/html_dartium.dart
|
| diff --git a/sdk/lib/html/dartium/html_dartium.dart b/sdk/lib/html/dartium/html_dartium.dart
|
| index 3b32ec2b32f7c6a84d5a533cf77e95aade9378a2..496f6403e372ddb60a76c02c565284b45cde95ee 100644
|
| --- a/sdk/lib/html/dartium/html_dartium.dart
|
| +++ b/sdk/lib/html/dartium/html_dartium.dart
|
| @@ -7239,7 +7239,7 @@ class DomSettableTokenList extends DomTokenList {
|
|
|
| @DocsEditable
|
| @DomName('DOMStringList')
|
| -class DomStringList extends NativeFieldWrapperClass1 implements List<String> {
|
| +class DomStringList extends NativeFieldWrapperClass1 with ListMixin<String>, ImmutableListMixin<String> implements List<String> {
|
| DomStringList.internal();
|
|
|
| @DomName('DOMStringList.length')
|
| @@ -7254,196 +7254,11 @@ class DomStringList extends NativeFieldWrapperClass1 implements List<String> {
|
| // -- start List<String> mixins.
|
| // String is the element type.
|
|
|
| - // From Iterable<String>:
|
|
|
| - Iterator<String> get iterator {
|
| - // Note: NodeLists are not fixed size. And most probably length shouldn't
|
| - // be cached in both iterator _and_ forEach method. For now caching it
|
| - // for consistency.
|
| - return new FixedSizeListIterator<String>(this);
|
| - }
|
| -
|
| - String reduce(String combine(String value, String element)) {
|
| - return IterableMixinWorkaround.reduce(this, combine);
|
| - }
|
| -
|
| - dynamic fold(dynamic initialValue,
|
| - dynamic combine(dynamic previousValue, String element)) {
|
| - return IterableMixinWorkaround.fold(this, initialValue, combine);
|
| - }
|
| -
|
| - // contains() defined by IDL.
|
| -
|
| - void forEach(void f(String element)) => IterableMixinWorkaround.forEach(this, f);
|
| -
|
| - String join([String separator = ""]) =>
|
| - IterableMixinWorkaround.joinList(this, separator);
|
| -
|
| - Iterable map(f(String element)) =>
|
| - IterableMixinWorkaround.mapList(this, f);
|
| -
|
| - Iterable<String> where(bool f(String element)) =>
|
| - IterableMixinWorkaround.where(this, f);
|
| -
|
| - Iterable expand(Iterable f(String element)) =>
|
| - IterableMixinWorkaround.expand(this, f);
|
| -
|
| - bool every(bool f(String element)) => IterableMixinWorkaround.every(this, f);
|
| -
|
| - bool any(bool f(String element)) => IterableMixinWorkaround.any(this, f);
|
| -
|
| - List<String> toList({ bool growable: true }) =>
|
| - new List<String>.from(this, growable: growable);
|
| -
|
| - Set<String> toSet() => new Set<String>.from(this);
|
| -
|
| - bool get isEmpty => this.length == 0;
|
| -
|
| - Iterable<String> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
| -
|
| - Iterable<String> takeWhile(bool test(String value)) {
|
| - return IterableMixinWorkaround.takeWhile(this, test);
|
| - }
|
| -
|
| - Iterable<String> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
| -
|
| - Iterable<String> skipWhile(bool test(String value)) {
|
| - return IterableMixinWorkaround.skipWhile(this, test);
|
| - }
|
| -
|
| - String firstWhere(bool test(String value), { String orElse() }) {
|
| - return IterableMixinWorkaround.firstWhere(this, test, orElse);
|
| - }
|
| -
|
| - String lastWhere(bool test(String value), {String orElse()}) {
|
| - return IterableMixinWorkaround.lastWhereList(this, test, orElse);
|
| - }
|
| -
|
| - String singleWhere(bool test(String value)) {
|
| - return IterableMixinWorkaround.singleWhere(this, test);
|
| - }
|
| -
|
| - String elementAt(int index) {
|
| - return this[index];
|
| - }
|
| -
|
| - // From Collection<String>:
|
| -
|
| - void add(String value) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - void addAll(Iterable<String> iterable) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - // From List<String>:
|
| void set length(int value) {
|
| throw new UnsupportedError("Cannot resize immutable List.");
|
| }
|
|
|
| - void clear() {
|
| - throw new UnsupportedError("Cannot clear immutable List.");
|
| - }
|
| -
|
| - Iterable<String> get reversed {
|
| - return IterableMixinWorkaround.reversedList(this);
|
| - }
|
| -
|
| - void sort([int compare(String a, String b)]) {
|
| - throw new UnsupportedError("Cannot sort immutable List.");
|
| - }
|
| -
|
| - int indexOf(String element, [int start = 0]) =>
|
| - Lists.indexOf(this, element, start, this.length);
|
| -
|
| - int lastIndexOf(String element, [int start]) {
|
| - if (start == null) start = length - 1;
|
| - return Lists.lastIndexOf(this, element, start);
|
| - }
|
| -
|
| - String get first {
|
| - if (this.length > 0) return this[0];
|
| - throw new StateError("No elements");
|
| - }
|
| -
|
| - String get last {
|
| - if (this.length > 0) return this[this.length - 1];
|
| - throw new StateError("No elements");
|
| - }
|
| -
|
| - String get single {
|
| - if (length == 1) return this[0];
|
| - if (length == 0) throw new StateError("No elements");
|
| - throw new StateError("More than one element");
|
| - }
|
| -
|
| - void insert(int index, String element) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - void insertAll(int index, Iterable<String> iterable) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - void setAll(int index, Iterable<String> iterable) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| -
|
| - String removeAt(int pos) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - String removeLast() {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - bool remove(Object object) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - void removeWhere(bool test(String element)) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - void retainWhere(bool test(String element)) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - void setRange(int start, int end, Iterable<String> iterable, [int skipCount=0]) {
|
| - throw new UnsupportedError("Cannot setRange on immutable List.");
|
| - }
|
| -
|
| - void removeRange(int start, int end) {
|
| - throw new UnsupportedError("Cannot removeRange on immutable List.");
|
| - }
|
| -
|
| - void replaceRange(int start, int end, Iterable<String> iterable) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| -
|
| - void fillRange(int start, int end, [String fillValue]) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| -
|
| - Iterable<String> getRange(int start, int end) =>
|
| - IterableMixinWorkaround.getRangeList(this, start, end);
|
| -
|
| - List<String> sublist(int start, [int end]) {
|
| - if (end == null) end = length;
|
| - return Lists.getRange(this, start, end, <String>[]);
|
| - }
|
| -
|
| - Map<int, String> asMap() =>
|
| - IterableMixinWorkaround.asMapList(this);
|
| -
|
| - String toString() {
|
| - StringBuffer buffer = new StringBuffer('[');
|
| - buffer.writeAll(this, ', ');
|
| - buffer.write(']');
|
| - return buffer.toString();
|
| - }
|
| -
|
| // -- end List<String> mixins.
|
|
|
| @DomName('DOMStringList.contains')
|
| @@ -9711,7 +9526,7 @@ class FileException extends NativeFieldWrapperClass1 {
|
|
|
| @DocsEditable
|
| @DomName('FileList')
|
| -class FileList extends NativeFieldWrapperClass1 implements List<File> {
|
| +class FileList extends NativeFieldWrapperClass1 with ListMixin<File>, ImmutableListMixin<File> implements List<File> {
|
| FileList.internal();
|
|
|
| @DomName('FileList.length')
|
| @@ -9726,196 +9541,11 @@ class FileList extends NativeFieldWrapperClass1 implements List<File> {
|
| // -- start List<File> mixins.
|
| // File is the element type.
|
|
|
| - // From Iterable<File>:
|
| -
|
| - Iterator<File> get iterator {
|
| - // Note: NodeLists are not fixed size. And most probably length shouldn't
|
| - // be cached in both iterator _and_ forEach method. For now caching it
|
| - // for consistency.
|
| - return new FixedSizeListIterator<File>(this);
|
| - }
|
| -
|
| - File reduce(File combine(File value, File element)) {
|
| - return IterableMixinWorkaround.reduce(this, combine);
|
| - }
|
| -
|
| - dynamic fold(dynamic initialValue,
|
| - dynamic combine(dynamic previousValue, File element)) {
|
| - return IterableMixinWorkaround.fold(this, initialValue, combine);
|
| - }
|
| -
|
| - bool contains(File element) => IterableMixinWorkaround.contains(this, element);
|
| -
|
| - void forEach(void f(File element)) => IterableMixinWorkaround.forEach(this, f);
|
| -
|
| - String join([String separator = ""]) =>
|
| - IterableMixinWorkaround.joinList(this, separator);
|
| -
|
| - Iterable map(f(File element)) =>
|
| - IterableMixinWorkaround.mapList(this, f);
|
| -
|
| - Iterable<File> where(bool f(File element)) =>
|
| - IterableMixinWorkaround.where(this, f);
|
| -
|
| - Iterable expand(Iterable f(File element)) =>
|
| - IterableMixinWorkaround.expand(this, f);
|
| -
|
| - bool every(bool f(File element)) => IterableMixinWorkaround.every(this, f);
|
| -
|
| - bool any(bool f(File element)) => IterableMixinWorkaround.any(this, f);
|
| -
|
| - List<File> toList({ bool growable: true }) =>
|
| - new List<File>.from(this, growable: growable);
|
| -
|
| - Set<File> toSet() => new Set<File>.from(this);
|
| -
|
| - bool get isEmpty => this.length == 0;
|
| -
|
| - Iterable<File> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
| -
|
| - Iterable<File> takeWhile(bool test(File value)) {
|
| - return IterableMixinWorkaround.takeWhile(this, test);
|
| - }
|
| -
|
| - Iterable<File> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
| -
|
| - Iterable<File> skipWhile(bool test(File value)) {
|
| - return IterableMixinWorkaround.skipWhile(this, test);
|
| - }
|
| -
|
| - File firstWhere(bool test(File value), { File orElse() }) {
|
| - return IterableMixinWorkaround.firstWhere(this, test, orElse);
|
| - }
|
| -
|
| - File lastWhere(bool test(File value), {File orElse()}) {
|
| - return IterableMixinWorkaround.lastWhereList(this, test, orElse);
|
| - }
|
| -
|
| - File singleWhere(bool test(File value)) {
|
| - return IterableMixinWorkaround.singleWhere(this, test);
|
| - }
|
| -
|
| - File elementAt(int index) {
|
| - return this[index];
|
| - }
|
| -
|
| - // From Collection<File>:
|
| -
|
| - void add(File value) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - void addAll(Iterable<File> iterable) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
|
|
| - // From List<File>:
|
| void set length(int value) {
|
| throw new UnsupportedError("Cannot resize immutable List.");
|
| }
|
|
|
| - void clear() {
|
| - throw new UnsupportedError("Cannot clear immutable List.");
|
| - }
|
| -
|
| - Iterable<File> get reversed {
|
| - return IterableMixinWorkaround.reversedList(this);
|
| - }
|
| -
|
| - void sort([int compare(File a, File b)]) {
|
| - throw new UnsupportedError("Cannot sort immutable List.");
|
| - }
|
| -
|
| - int indexOf(File element, [int start = 0]) =>
|
| - Lists.indexOf(this, element, start, this.length);
|
| -
|
| - int lastIndexOf(File element, [int start]) {
|
| - if (start == null) start = length - 1;
|
| - return Lists.lastIndexOf(this, element, start);
|
| - }
|
| -
|
| - File get first {
|
| - if (this.length > 0) return this[0];
|
| - throw new StateError("No elements");
|
| - }
|
| -
|
| - File get last {
|
| - if (this.length > 0) return this[this.length - 1];
|
| - throw new StateError("No elements");
|
| - }
|
| -
|
| - File get single {
|
| - if (length == 1) return this[0];
|
| - if (length == 0) throw new StateError("No elements");
|
| - throw new StateError("More than one element");
|
| - }
|
| -
|
| - void insert(int index, File element) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - void insertAll(int index, Iterable<File> iterable) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - void setAll(int index, Iterable<File> iterable) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| -
|
| - File removeAt(int pos) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - File removeLast() {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - bool remove(Object object) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - void removeWhere(bool test(File element)) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - void retainWhere(bool test(File element)) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - void setRange(int start, int end, Iterable<File> iterable, [int skipCount=0]) {
|
| - throw new UnsupportedError("Cannot setRange on immutable List.");
|
| - }
|
| -
|
| - void removeRange(int start, int end) {
|
| - throw new UnsupportedError("Cannot removeRange on immutable List.");
|
| - }
|
| -
|
| - void replaceRange(int start, int end, Iterable<File> iterable) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| -
|
| - void fillRange(int start, int end, [File fillValue]) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| -
|
| - Iterable<File> getRange(int start, int end) =>
|
| - IterableMixinWorkaround.getRangeList(this, start, end);
|
| -
|
| - List<File> sublist(int start, [int end]) {
|
| - if (end == null) end = length;
|
| - return Lists.getRange(this, start, end, <File>[]);
|
| - }
|
| -
|
| - Map<int, File> asMap() =>
|
| - IterableMixinWorkaround.asMapList(this);
|
| -
|
| - String toString() {
|
| - StringBuffer buffer = new StringBuffer('[');
|
| - buffer.writeAll(this, ', ');
|
| - buffer.write(']');
|
| - return buffer.toString();
|
| - }
|
| -
|
| // -- end List<File> mixins.
|
|
|
| @DomName('FileList.item')
|
| @@ -10742,7 +10372,7 @@ class History extends NativeFieldWrapperClass1 implements HistoryBase {
|
|
|
| @DocsEditable
|
| @DomName('HTMLAllCollection')
|
| -class HtmlAllCollection extends NativeFieldWrapperClass1 implements List<Node> {
|
| +class HtmlAllCollection extends NativeFieldWrapperClass1 with ListMixin<Node>, ImmutableListMixin<Node> implements List<Node> {
|
| HtmlAllCollection.internal();
|
|
|
| @DomName('HTMLAllCollection.length')
|
| @@ -10757,434 +10387,64 @@ class HtmlAllCollection extends NativeFieldWrapperClass1 implements List<Node> {
|
| // -- start List<Node> mixins.
|
| // Node is the element type.
|
|
|
| - // From Iterable<Node>:
|
| -
|
| - Iterator<Node> get iterator {
|
| - // Note: NodeLists are not fixed size. And most probably length shouldn't
|
| - // be cached in both iterator _and_ forEach method. For now caching it
|
| - // for consistency.
|
| - return new FixedSizeListIterator<Node>(this);
|
| - }
|
| -
|
| - Node reduce(Node combine(Node value, Node element)) {
|
| - return IterableMixinWorkaround.reduce(this, combine);
|
| - }
|
|
|
| - dynamic fold(dynamic initialValue,
|
| - dynamic combine(dynamic previousValue, Node element)) {
|
| - return IterableMixinWorkaround.fold(this, initialValue, combine);
|
| + void set length(int value) {
|
| + throw new UnsupportedError("Cannot resize immutable List.");
|
| }
|
|
|
| - bool contains(Node element) => IterableMixinWorkaround.contains(this, element);
|
| -
|
| - void forEach(void f(Node element)) => IterableMixinWorkaround.forEach(this, f);
|
| -
|
| - String join([String separator = ""]) =>
|
| - IterableMixinWorkaround.joinList(this, separator);
|
| + // -- end List<Node> mixins.
|
|
|
| - Iterable map(f(Node element)) =>
|
| - IterableMixinWorkaround.mapList(this, f);
|
| + @DomName('HTMLAllCollection.item')
|
| + @DocsEditable
|
| + Node item(int index) native "HTMLAllCollection_item_Callback";
|
|
|
| - Iterable<Node> where(bool f(Node element)) =>
|
| - IterableMixinWorkaround.where(this, f);
|
| + @DomName('HTMLAllCollection.namedItem')
|
| + @DocsEditable
|
| + Node namedItem(String name) native "HTMLAllCollection_namedItem_Callback";
|
|
|
| - Iterable expand(Iterable f(Node element)) =>
|
| - IterableMixinWorkaround.expand(this, f);
|
| + @DomName('HTMLAllCollection.tags')
|
| + @DocsEditable
|
| + List<Node> tags(String name) native "HTMLAllCollection_tags_Callback";
|
|
|
| - bool every(bool f(Node element)) => IterableMixinWorkaround.every(this, f);
|
| +}
|
| +// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
|
|
| - bool any(bool f(Node element)) => IterableMixinWorkaround.any(this, f);
|
| +// WARNING: Do not edit - generated code.
|
|
|
| - List<Node> toList({ bool growable: true }) =>
|
| - new List<Node>.from(this, growable: growable);
|
|
|
| - Set<Node> toSet() => new Set<Node>.from(this);
|
| +@DocsEditable
|
| +@DomName('HTMLCollection')
|
| +class HtmlCollection extends NativeFieldWrapperClass1 with ListMixin<Node>, ImmutableListMixin<Node> implements List<Node> {
|
| + HtmlCollection.internal();
|
|
|
| - bool get isEmpty => this.length == 0;
|
| + @DomName('HTMLCollection.length')
|
| + @DocsEditable
|
| + int get length native "HTMLCollection_length_Getter";
|
|
|
| - Iterable<Node> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
| + Node operator[](int index) native "HTMLCollection_item_Callback";
|
|
|
| - Iterable<Node> takeWhile(bool test(Node value)) {
|
| - return IterableMixinWorkaround.takeWhile(this, test);
|
| + void operator[]=(int index, Node value) {
|
| + throw new UnsupportedError("Cannot assign element of immutable List.");
|
| }
|
| + // -- start List<Node> mixins.
|
| + // Node is the element type.
|
|
|
| - Iterable<Node> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
|
|
| - Iterable<Node> skipWhile(bool test(Node value)) {
|
| - return IterableMixinWorkaround.skipWhile(this, test);
|
| + void set length(int value) {
|
| + throw new UnsupportedError("Cannot resize immutable List.");
|
| }
|
|
|
| - Node firstWhere(bool test(Node value), { Node orElse() }) {
|
| - return IterableMixinWorkaround.firstWhere(this, test, orElse);
|
| - }
|
| + // -- end List<Node> mixins.
|
|
|
| - Node lastWhere(bool test(Node value), {Node orElse()}) {
|
| - return IterableMixinWorkaround.lastWhereList(this, test, orElse);
|
| - }
|
| + @DomName('HTMLCollection.item')
|
| + @DocsEditable
|
| + Node item(int index) native "HTMLCollection_item_Callback";
|
|
|
| - Node singleWhere(bool test(Node value)) {
|
| - return IterableMixinWorkaround.singleWhere(this, test);
|
| - }
|
| -
|
| - Node elementAt(int index) {
|
| - return this[index];
|
| - }
|
| -
|
| - // From Collection<Node>:
|
| -
|
| - void add(Node value) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - void addAll(Iterable<Node> iterable) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - // From List<Node>:
|
| - void set length(int value) {
|
| - throw new UnsupportedError("Cannot resize immutable List.");
|
| - }
|
| -
|
| - void clear() {
|
| - throw new UnsupportedError("Cannot clear immutable List.");
|
| - }
|
| -
|
| - Iterable<Node> get reversed {
|
| - return IterableMixinWorkaround.reversedList(this);
|
| - }
|
| -
|
| - void sort([int compare(Node a, Node b)]) {
|
| - throw new UnsupportedError("Cannot sort immutable List.");
|
| - }
|
| -
|
| - int indexOf(Node element, [int start = 0]) =>
|
| - Lists.indexOf(this, element, start, this.length);
|
| -
|
| - int lastIndexOf(Node element, [int start]) {
|
| - if (start == null) start = length - 1;
|
| - return Lists.lastIndexOf(this, element, start);
|
| - }
|
| -
|
| - Node get first {
|
| - if (this.length > 0) return this[0];
|
| - throw new StateError("No elements");
|
| - }
|
| -
|
| - Node get last {
|
| - if (this.length > 0) return this[this.length - 1];
|
| - throw new StateError("No elements");
|
| - }
|
| -
|
| - Node get single {
|
| - if (length == 1) return this[0];
|
| - if (length == 0) throw new StateError("No elements");
|
| - throw new StateError("More than one element");
|
| - }
|
| -
|
| - void insert(int index, Node element) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - void insertAll(int index, Iterable<Node> iterable) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - void setAll(int index, Iterable<Node> iterable) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| -
|
| - Node removeAt(int pos) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - Node removeLast() {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - bool remove(Object object) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - void removeWhere(bool test(Node element)) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - void retainWhere(bool test(Node element)) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - void setRange(int start, int end, Iterable<Node> iterable, [int skipCount=0]) {
|
| - throw new UnsupportedError("Cannot setRange on immutable List.");
|
| - }
|
| -
|
| - void removeRange(int start, int end) {
|
| - throw new UnsupportedError("Cannot removeRange on immutable List.");
|
| - }
|
| -
|
| - void replaceRange(int start, int end, Iterable<Node> iterable) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| -
|
| - void fillRange(int start, int end, [Node fillValue]) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| -
|
| - Iterable<Node> getRange(int start, int end) =>
|
| - IterableMixinWorkaround.getRangeList(this, start, end);
|
| -
|
| - List<Node> sublist(int start, [int end]) {
|
| - if (end == null) end = length;
|
| - return Lists.getRange(this, start, end, <Node>[]);
|
| - }
|
| -
|
| - Map<int, Node> asMap() =>
|
| - IterableMixinWorkaround.asMapList(this);
|
| -
|
| - String toString() {
|
| - StringBuffer buffer = new StringBuffer('[');
|
| - buffer.writeAll(this, ', ');
|
| - buffer.write(']');
|
| - return buffer.toString();
|
| - }
|
| -
|
| - // -- end List<Node> mixins.
|
| -
|
| - @DomName('HTMLAllCollection.item')
|
| - @DocsEditable
|
| - Node item(int index) native "HTMLAllCollection_item_Callback";
|
| -
|
| - @DomName('HTMLAllCollection.namedItem')
|
| - @DocsEditable
|
| - Node namedItem(String name) native "HTMLAllCollection_namedItem_Callback";
|
| -
|
| - @DomName('HTMLAllCollection.tags')
|
| - @DocsEditable
|
| - List<Node> tags(String name) native "HTMLAllCollection_tags_Callback";
|
| -
|
| -}
|
| -// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| -// for details. All rights reserved. Use of this source code is governed by a
|
| -// BSD-style license that can be found in the LICENSE file.
|
| -
|
| -// WARNING: Do not edit - generated code.
|
| -
|
| -
|
| -@DocsEditable
|
| -@DomName('HTMLCollection')
|
| -class HtmlCollection extends NativeFieldWrapperClass1 implements List<Node> {
|
| - HtmlCollection.internal();
|
| -
|
| - @DomName('HTMLCollection.length')
|
| - @DocsEditable
|
| - int get length native "HTMLCollection_length_Getter";
|
| -
|
| - Node operator[](int index) native "HTMLCollection_item_Callback";
|
| -
|
| - void operator[]=(int index, Node value) {
|
| - throw new UnsupportedError("Cannot assign element of immutable List.");
|
| - }
|
| - // -- start List<Node> mixins.
|
| - // Node is the element type.
|
| -
|
| - // From Iterable<Node>:
|
| -
|
| - Iterator<Node> get iterator {
|
| - // Note: NodeLists are not fixed size. And most probably length shouldn't
|
| - // be cached in both iterator _and_ forEach method. For now caching it
|
| - // for consistency.
|
| - return new FixedSizeListIterator<Node>(this);
|
| - }
|
| -
|
| - Node reduce(Node combine(Node value, Node element)) {
|
| - return IterableMixinWorkaround.reduce(this, combine);
|
| - }
|
| -
|
| - dynamic fold(dynamic initialValue,
|
| - dynamic combine(dynamic previousValue, Node element)) {
|
| - return IterableMixinWorkaround.fold(this, initialValue, combine);
|
| - }
|
| -
|
| - bool contains(Node element) => IterableMixinWorkaround.contains(this, element);
|
| -
|
| - void forEach(void f(Node element)) => IterableMixinWorkaround.forEach(this, f);
|
| -
|
| - String join([String separator = ""]) =>
|
| - IterableMixinWorkaround.joinList(this, separator);
|
| -
|
| - Iterable map(f(Node element)) =>
|
| - IterableMixinWorkaround.mapList(this, f);
|
| -
|
| - Iterable<Node> where(bool f(Node element)) =>
|
| - IterableMixinWorkaround.where(this, f);
|
| -
|
| - Iterable expand(Iterable f(Node element)) =>
|
| - IterableMixinWorkaround.expand(this, f);
|
| -
|
| - bool every(bool f(Node element)) => IterableMixinWorkaround.every(this, f);
|
| -
|
| - bool any(bool f(Node element)) => IterableMixinWorkaround.any(this, f);
|
| -
|
| - List<Node> toList({ bool growable: true }) =>
|
| - new List<Node>.from(this, growable: growable);
|
| -
|
| - Set<Node> toSet() => new Set<Node>.from(this);
|
| -
|
| - bool get isEmpty => this.length == 0;
|
| -
|
| - Iterable<Node> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
| -
|
| - Iterable<Node> takeWhile(bool test(Node value)) {
|
| - return IterableMixinWorkaround.takeWhile(this, test);
|
| - }
|
| -
|
| - Iterable<Node> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
| -
|
| - Iterable<Node> skipWhile(bool test(Node value)) {
|
| - return IterableMixinWorkaround.skipWhile(this, test);
|
| - }
|
| -
|
| - Node firstWhere(bool test(Node value), { Node orElse() }) {
|
| - return IterableMixinWorkaround.firstWhere(this, test, orElse);
|
| - }
|
| -
|
| - Node lastWhere(bool test(Node value), {Node orElse()}) {
|
| - return IterableMixinWorkaround.lastWhereList(this, test, orElse);
|
| - }
|
| -
|
| - Node singleWhere(bool test(Node value)) {
|
| - return IterableMixinWorkaround.singleWhere(this, test);
|
| - }
|
| -
|
| - Node elementAt(int index) {
|
| - return this[index];
|
| - }
|
| -
|
| - // From Collection<Node>:
|
| -
|
| - void add(Node value) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - void addAll(Iterable<Node> iterable) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - // From List<Node>:
|
| - void set length(int value) {
|
| - throw new UnsupportedError("Cannot resize immutable List.");
|
| - }
|
| -
|
| - void clear() {
|
| - throw new UnsupportedError("Cannot clear immutable List.");
|
| - }
|
| -
|
| - Iterable<Node> get reversed {
|
| - return IterableMixinWorkaround.reversedList(this);
|
| - }
|
| -
|
| - void sort([int compare(Node a, Node b)]) {
|
| - throw new UnsupportedError("Cannot sort immutable List.");
|
| - }
|
| -
|
| - int indexOf(Node element, [int start = 0]) =>
|
| - Lists.indexOf(this, element, start, this.length);
|
| -
|
| - int lastIndexOf(Node element, [int start]) {
|
| - if (start == null) start = length - 1;
|
| - return Lists.lastIndexOf(this, element, start);
|
| - }
|
| -
|
| - Node get first {
|
| - if (this.length > 0) return this[0];
|
| - throw new StateError("No elements");
|
| - }
|
| -
|
| - Node get last {
|
| - if (this.length > 0) return this[this.length - 1];
|
| - throw new StateError("No elements");
|
| - }
|
| -
|
| - Node get single {
|
| - if (length == 1) return this[0];
|
| - if (length == 0) throw new StateError("No elements");
|
| - throw new StateError("More than one element");
|
| - }
|
| -
|
| - void insert(int index, Node element) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - void insertAll(int index, Iterable<Node> iterable) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - void setAll(int index, Iterable<Node> iterable) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| -
|
| - Node removeAt(int pos) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - Node removeLast() {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - bool remove(Object object) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - void removeWhere(bool test(Node element)) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - void retainWhere(bool test(Node element)) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - void setRange(int start, int end, Iterable<Node> iterable, [int skipCount=0]) {
|
| - throw new UnsupportedError("Cannot setRange on immutable List.");
|
| - }
|
| -
|
| - void removeRange(int start, int end) {
|
| - throw new UnsupportedError("Cannot removeRange on immutable List.");
|
| - }
|
| -
|
| - void replaceRange(int start, int end, Iterable<Node> iterable) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| -
|
| - void fillRange(int start, int end, [Node fillValue]) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| -
|
| - Iterable<Node> getRange(int start, int end) =>
|
| - IterableMixinWorkaround.getRangeList(this, start, end);
|
| -
|
| - List<Node> sublist(int start, [int end]) {
|
| - if (end == null) end = length;
|
| - return Lists.getRange(this, start, end, <Node>[]);
|
| - }
|
| -
|
| - Map<int, Node> asMap() =>
|
| - IterableMixinWorkaround.asMapList(this);
|
| -
|
| - String toString() {
|
| - StringBuffer buffer = new StringBuffer('[');
|
| - buffer.writeAll(this, ', ');
|
| - buffer.write(']');
|
| - return buffer.toString();
|
| - }
|
| -
|
| - // -- end List<Node> mixins.
|
| -
|
| - @DomName('HTMLCollection.item')
|
| - @DocsEditable
|
| - Node item(int index) native "HTMLCollection_item_Callback";
|
| -
|
| - @DomName('HTMLCollection.namedItem')
|
| - @DocsEditable
|
| - Node namedItem(String name) native "HTMLCollection_namedItem_Callback";
|
| + @DomName('HTMLCollection.namedItem')
|
| + @DocsEditable
|
| + Node namedItem(String name) native "HTMLCollection_namedItem_Callback";
|
|
|
| }
|
| // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| @@ -15233,7 +14493,7 @@ class MimeType extends NativeFieldWrapperClass1 {
|
|
|
| @DocsEditable
|
| @DomName('MimeTypeArray')
|
| -class MimeTypeArray extends NativeFieldWrapperClass1 implements List<MimeType> {
|
| +class MimeTypeArray extends NativeFieldWrapperClass1 with ListMixin<MimeType>, ImmutableListMixin<MimeType> implements List<MimeType> {
|
| MimeTypeArray.internal();
|
|
|
| @DomName('DOMMimeTypeArray.length')
|
| @@ -15248,197 +14508,12 @@ class MimeTypeArray extends NativeFieldWrapperClass1 implements List<MimeType> {
|
| // -- start List<MimeType> mixins.
|
| // MimeType is the element type.
|
|
|
| - // From Iterable<MimeType>:
|
|
|
| - Iterator<MimeType> get iterator {
|
| - // Note: NodeLists are not fixed size. And most probably length shouldn't
|
| - // be cached in both iterator _and_ forEach method. For now caching it
|
| - // for consistency.
|
| - return new FixedSizeListIterator<MimeType>(this);
|
| + void set length(int value) {
|
| + throw new UnsupportedError("Cannot resize immutable List.");
|
| }
|
|
|
| - MimeType reduce(MimeType combine(MimeType value, MimeType element)) {
|
| - return IterableMixinWorkaround.reduce(this, combine);
|
| - }
|
| -
|
| - dynamic fold(dynamic initialValue,
|
| - dynamic combine(dynamic previousValue, MimeType element)) {
|
| - return IterableMixinWorkaround.fold(this, initialValue, combine);
|
| - }
|
| -
|
| - bool contains(MimeType element) => IterableMixinWorkaround.contains(this, element);
|
| -
|
| - void forEach(void f(MimeType element)) => IterableMixinWorkaround.forEach(this, f);
|
| -
|
| - String join([String separator = ""]) =>
|
| - IterableMixinWorkaround.joinList(this, separator);
|
| -
|
| - Iterable map(f(MimeType element)) =>
|
| - IterableMixinWorkaround.mapList(this, f);
|
| -
|
| - Iterable<MimeType> where(bool f(MimeType element)) =>
|
| - IterableMixinWorkaround.where(this, f);
|
| -
|
| - Iterable expand(Iterable f(MimeType element)) =>
|
| - IterableMixinWorkaround.expand(this, f);
|
| -
|
| - bool every(bool f(MimeType element)) => IterableMixinWorkaround.every(this, f);
|
| -
|
| - bool any(bool f(MimeType element)) => IterableMixinWorkaround.any(this, f);
|
| -
|
| - List<MimeType> toList({ bool growable: true }) =>
|
| - new List<MimeType>.from(this, growable: growable);
|
| -
|
| - Set<MimeType> toSet() => new Set<MimeType>.from(this);
|
| -
|
| - bool get isEmpty => this.length == 0;
|
| -
|
| - Iterable<MimeType> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
| -
|
| - Iterable<MimeType> takeWhile(bool test(MimeType value)) {
|
| - return IterableMixinWorkaround.takeWhile(this, test);
|
| - }
|
| -
|
| - Iterable<MimeType> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
| -
|
| - Iterable<MimeType> skipWhile(bool test(MimeType value)) {
|
| - return IterableMixinWorkaround.skipWhile(this, test);
|
| - }
|
| -
|
| - MimeType firstWhere(bool test(MimeType value), { MimeType orElse() }) {
|
| - return IterableMixinWorkaround.firstWhere(this, test, orElse);
|
| - }
|
| -
|
| - MimeType lastWhere(bool test(MimeType value), {MimeType orElse()}) {
|
| - return IterableMixinWorkaround.lastWhereList(this, test, orElse);
|
| - }
|
| -
|
| - MimeType singleWhere(bool test(MimeType value)) {
|
| - return IterableMixinWorkaround.singleWhere(this, test);
|
| - }
|
| -
|
| - MimeType elementAt(int index) {
|
| - return this[index];
|
| - }
|
| -
|
| - // From Collection<MimeType>:
|
| -
|
| - void add(MimeType value) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - void addAll(Iterable<MimeType> iterable) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - // From List<MimeType>:
|
| - void set length(int value) {
|
| - throw new UnsupportedError("Cannot resize immutable List.");
|
| - }
|
| -
|
| - void clear() {
|
| - throw new UnsupportedError("Cannot clear immutable List.");
|
| - }
|
| -
|
| - Iterable<MimeType> get reversed {
|
| - return IterableMixinWorkaround.reversedList(this);
|
| - }
|
| -
|
| - void sort([int compare(MimeType a, MimeType b)]) {
|
| - throw new UnsupportedError("Cannot sort immutable List.");
|
| - }
|
| -
|
| - int indexOf(MimeType element, [int start = 0]) =>
|
| - Lists.indexOf(this, element, start, this.length);
|
| -
|
| - int lastIndexOf(MimeType element, [int start]) {
|
| - if (start == null) start = length - 1;
|
| - return Lists.lastIndexOf(this, element, start);
|
| - }
|
| -
|
| - MimeType get first {
|
| - if (this.length > 0) return this[0];
|
| - throw new StateError("No elements");
|
| - }
|
| -
|
| - MimeType get last {
|
| - if (this.length > 0) return this[this.length - 1];
|
| - throw new StateError("No elements");
|
| - }
|
| -
|
| - MimeType get single {
|
| - if (length == 1) return this[0];
|
| - if (length == 0) throw new StateError("No elements");
|
| - throw new StateError("More than one element");
|
| - }
|
| -
|
| - void insert(int index, MimeType element) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - void insertAll(int index, Iterable<MimeType> iterable) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - void setAll(int index, Iterable<MimeType> iterable) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| -
|
| - MimeType removeAt(int pos) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - MimeType removeLast() {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - bool remove(Object object) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - void removeWhere(bool test(MimeType element)) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - void retainWhere(bool test(MimeType element)) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - void setRange(int start, int end, Iterable<MimeType> iterable, [int skipCount=0]) {
|
| - throw new UnsupportedError("Cannot setRange on immutable List.");
|
| - }
|
| -
|
| - void removeRange(int start, int end) {
|
| - throw new UnsupportedError("Cannot removeRange on immutable List.");
|
| - }
|
| -
|
| - void replaceRange(int start, int end, Iterable<MimeType> iterable) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| -
|
| - void fillRange(int start, int end, [MimeType fillValue]) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| -
|
| - Iterable<MimeType> getRange(int start, int end) =>
|
| - IterableMixinWorkaround.getRangeList(this, start, end);
|
| -
|
| - List<MimeType> sublist(int start, [int end]) {
|
| - if (end == null) end = length;
|
| - return Lists.getRange(this, start, end, <MimeType>[]);
|
| - }
|
| -
|
| - Map<int, MimeType> asMap() =>
|
| - IterableMixinWorkaround.asMapList(this);
|
| -
|
| - String toString() {
|
| - StringBuffer buffer = new StringBuffer('[');
|
| - buffer.writeAll(this, ', ');
|
| - buffer.write(']');
|
| - return buffer.toString();
|
| - }
|
| -
|
| - // -- end List<MimeType> mixins.
|
| + // -- end List<MimeType> mixins.
|
|
|
| @DomName('DOMMimeTypeArray.item')
|
| @DocsEditable
|
| @@ -16635,7 +15710,7 @@ class NodeIterator extends NativeFieldWrapperClass1 {
|
|
|
| @DocsEditable
|
| @DomName('NodeList')
|
| -class NodeList extends NativeFieldWrapperClass1 implements List<Node> {
|
| +class NodeList extends NativeFieldWrapperClass1 with ListMixin<Node>, ImmutableListMixin<Node> implements List<Node> {
|
| NodeList.internal();
|
|
|
| @DomName('NodeList.length')
|
| @@ -16650,196 +15725,11 @@ class NodeList extends NativeFieldWrapperClass1 implements List<Node> {
|
| // -- start List<Node> mixins.
|
| // Node is the element type.
|
|
|
| - // From Iterable<Node>:
|
| -
|
| - Iterator<Node> get iterator {
|
| - // Note: NodeLists are not fixed size. And most probably length shouldn't
|
| - // be cached in both iterator _and_ forEach method. For now caching it
|
| - // for consistency.
|
| - return new FixedSizeListIterator<Node>(this);
|
| - }
|
| -
|
| - Node reduce(Node combine(Node value, Node element)) {
|
| - return IterableMixinWorkaround.reduce(this, combine);
|
| - }
|
| -
|
| - dynamic fold(dynamic initialValue,
|
| - dynamic combine(dynamic previousValue, Node element)) {
|
| - return IterableMixinWorkaround.fold(this, initialValue, combine);
|
| - }
|
| -
|
| - bool contains(Node element) => IterableMixinWorkaround.contains(this, element);
|
| -
|
| - void forEach(void f(Node element)) => IterableMixinWorkaround.forEach(this, f);
|
| -
|
| - String join([String separator = ""]) =>
|
| - IterableMixinWorkaround.joinList(this, separator);
|
| -
|
| - Iterable map(f(Node element)) =>
|
| - IterableMixinWorkaround.mapList(this, f);
|
| -
|
| - Iterable<Node> where(bool f(Node element)) =>
|
| - IterableMixinWorkaround.where(this, f);
|
| -
|
| - Iterable expand(Iterable f(Node element)) =>
|
| - IterableMixinWorkaround.expand(this, f);
|
| -
|
| - bool every(bool f(Node element)) => IterableMixinWorkaround.every(this, f);
|
| -
|
| - bool any(bool f(Node element)) => IterableMixinWorkaround.any(this, f);
|
| -
|
| - List<Node> toList({ bool growable: true }) =>
|
| - new List<Node>.from(this, growable: growable);
|
| -
|
| - Set<Node> toSet() => new Set<Node>.from(this);
|
| -
|
| - bool get isEmpty => this.length == 0;
|
| -
|
| - Iterable<Node> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
| -
|
| - Iterable<Node> takeWhile(bool test(Node value)) {
|
| - return IterableMixinWorkaround.takeWhile(this, test);
|
| - }
|
| -
|
| - Iterable<Node> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
| -
|
| - Iterable<Node> skipWhile(bool test(Node value)) {
|
| - return IterableMixinWorkaround.skipWhile(this, test);
|
| - }
|
| -
|
| - Node firstWhere(bool test(Node value), { Node orElse() }) {
|
| - return IterableMixinWorkaround.firstWhere(this, test, orElse);
|
| - }
|
| -
|
| - Node lastWhere(bool test(Node value), {Node orElse()}) {
|
| - return IterableMixinWorkaround.lastWhereList(this, test, orElse);
|
| - }
|
| -
|
| - Node singleWhere(bool test(Node value)) {
|
| - return IterableMixinWorkaround.singleWhere(this, test);
|
| - }
|
| -
|
| - Node elementAt(int index) {
|
| - return this[index];
|
| - }
|
| -
|
| - // From Collection<Node>:
|
| -
|
| - void add(Node value) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - void addAll(Iterable<Node> iterable) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
|
|
| - // From List<Node>:
|
| void set length(int value) {
|
| throw new UnsupportedError("Cannot resize immutable List.");
|
| }
|
|
|
| - void clear() {
|
| - throw new UnsupportedError("Cannot clear immutable List.");
|
| - }
|
| -
|
| - Iterable<Node> get reversed {
|
| - return IterableMixinWorkaround.reversedList(this);
|
| - }
|
| -
|
| - void sort([int compare(Node a, Node b)]) {
|
| - throw new UnsupportedError("Cannot sort immutable List.");
|
| - }
|
| -
|
| - int indexOf(Node element, [int start = 0]) =>
|
| - Lists.indexOf(this, element, start, this.length);
|
| -
|
| - int lastIndexOf(Node element, [int start]) {
|
| - if (start == null) start = length - 1;
|
| - return Lists.lastIndexOf(this, element, start);
|
| - }
|
| -
|
| - Node get first {
|
| - if (this.length > 0) return this[0];
|
| - throw new StateError("No elements");
|
| - }
|
| -
|
| - Node get last {
|
| - if (this.length > 0) return this[this.length - 1];
|
| - throw new StateError("No elements");
|
| - }
|
| -
|
| - Node get single {
|
| - if (length == 1) return this[0];
|
| - if (length == 0) throw new StateError("No elements");
|
| - throw new StateError("More than one element");
|
| - }
|
| -
|
| - void insert(int index, Node element) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - void insertAll(int index, Iterable<Node> iterable) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - void setAll(int index, Iterable<Node> iterable) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| -
|
| - Node removeAt(int pos) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - Node removeLast() {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - bool remove(Object object) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - void removeWhere(bool test(Node element)) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - void retainWhere(bool test(Node element)) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - void setRange(int start, int end, Iterable<Node> iterable, [int skipCount=0]) {
|
| - throw new UnsupportedError("Cannot setRange on immutable List.");
|
| - }
|
| -
|
| - void removeRange(int start, int end) {
|
| - throw new UnsupportedError("Cannot removeRange on immutable List.");
|
| - }
|
| -
|
| - void replaceRange(int start, int end, Iterable<Node> iterable) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| -
|
| - void fillRange(int start, int end, [Node fillValue]) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| -
|
| - Iterable<Node> getRange(int start, int end) =>
|
| - IterableMixinWorkaround.getRangeList(this, start, end);
|
| -
|
| - List<Node> sublist(int start, [int end]) {
|
| - if (end == null) end = length;
|
| - return Lists.getRange(this, start, end, <Node>[]);
|
| - }
|
| -
|
| - Map<int, Node> asMap() =>
|
| - IterableMixinWorkaround.asMapList(this);
|
| -
|
| - String toString() {
|
| - StringBuffer buffer = new StringBuffer('[');
|
| - buffer.writeAll(this, ', ');
|
| - buffer.write(']');
|
| - return buffer.toString();
|
| - }
|
| -
|
| // -- end List<Node> mixins.
|
|
|
| @DomName('NodeList.item')
|
| @@ -17957,7 +16847,7 @@ class Plugin extends NativeFieldWrapperClass1 {
|
|
|
| @DocsEditable
|
| @DomName('PluginArray')
|
| -class PluginArray extends NativeFieldWrapperClass1 implements List<Plugin> {
|
| +class PluginArray extends NativeFieldWrapperClass1 with ListMixin<Plugin>, ImmutableListMixin<Plugin> implements List<Plugin> {
|
| PluginArray.internal();
|
|
|
| @DomName('DOMPluginArray.length')
|
| @@ -17972,245 +16862,60 @@ class PluginArray extends NativeFieldWrapperClass1 implements List<Plugin> {
|
| // -- start List<Plugin> mixins.
|
| // Plugin is the element type.
|
|
|
| - // From Iterable<Plugin>:
|
|
|
| - Iterator<Plugin> get iterator {
|
| - // Note: NodeLists are not fixed size. And most probably length shouldn't
|
| - // be cached in both iterator _and_ forEach method. For now caching it
|
| - // for consistency.
|
| - return new FixedSizeListIterator<Plugin>(this);
|
| + void set length(int value) {
|
| + throw new UnsupportedError("Cannot resize immutable List.");
|
| }
|
|
|
| - Plugin reduce(Plugin combine(Plugin value, Plugin element)) {
|
| - return IterableMixinWorkaround.reduce(this, combine);
|
| - }
|
| + // -- end List<Plugin> mixins.
|
|
|
| - dynamic fold(dynamic initialValue,
|
| - dynamic combine(dynamic previousValue, Plugin element)) {
|
| - return IterableMixinWorkaround.fold(this, initialValue, combine);
|
| - }
|
| + @DomName('DOMPluginArray.item')
|
| + @DocsEditable
|
| + Plugin item(int index) native "DOMPluginArray_item_Callback";
|
|
|
| - bool contains(Plugin element) => IterableMixinWorkaround.contains(this, element);
|
| + @DomName('DOMPluginArray.namedItem')
|
| + @DocsEditable
|
| + Plugin namedItem(String name) native "DOMPluginArray_namedItem_Callback";
|
|
|
| - void forEach(void f(Plugin element)) => IterableMixinWorkaround.forEach(this, f);
|
| + @DomName('DOMPluginArray.refresh')
|
| + @DocsEditable
|
| + void refresh(bool reload) native "DOMPluginArray_refresh_Callback";
|
|
|
| - String join([String separator = ""]) =>
|
| - IterableMixinWorkaround.joinList(this, separator);
|
| +}
|
| +// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
|
|
| - Iterable map(f(Plugin element)) =>
|
| - IterableMixinWorkaround.mapList(this, f);
|
| +// WARNING: Do not edit - generated code.
|
|
|
| - Iterable<Plugin> where(bool f(Plugin element)) =>
|
| - IterableMixinWorkaround.where(this, f);
|
|
|
| - Iterable expand(Iterable f(Plugin element)) =>
|
| - IterableMixinWorkaround.expand(this, f);
|
| +@DocsEditable
|
| +@DomName('PopStateEvent')
|
| +@SupportedBrowser(SupportedBrowser.CHROME)
|
| +@SupportedBrowser(SupportedBrowser.FIREFOX)
|
| +@SupportedBrowser(SupportedBrowser.IE, '10')
|
| +@SupportedBrowser(SupportedBrowser.SAFARI)
|
| +class PopStateEvent extends Event {
|
| + PopStateEvent.internal() : super.internal();
|
|
|
| - bool every(bool f(Plugin element)) => IterableMixinWorkaround.every(this, f);
|
| + @DomName('PopStateEvent.state')
|
| + @DocsEditable
|
| + Object get state native "PopStateEvent_state_Getter";
|
|
|
| - bool any(bool f(Plugin element)) => IterableMixinWorkaround.any(this, f);
|
| +}
|
| +// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
|
|
| - List<Plugin> toList({ bool growable: true }) =>
|
| - new List<Plugin>.from(this, growable: growable);
|
| +// WARNING: Do not edit - generated code.
|
|
|
| - Set<Plugin> toSet() => new Set<Plugin>.from(this);
|
|
|
| - bool get isEmpty => this.length == 0;
|
| +typedef void _PositionCallback(Geoposition position);
|
| +// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
|
|
| - Iterable<Plugin> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
| -
|
| - Iterable<Plugin> takeWhile(bool test(Plugin value)) {
|
| - return IterableMixinWorkaround.takeWhile(this, test);
|
| - }
|
| -
|
| - Iterable<Plugin> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
| -
|
| - Iterable<Plugin> skipWhile(bool test(Plugin value)) {
|
| - return IterableMixinWorkaround.skipWhile(this, test);
|
| - }
|
| -
|
| - Plugin firstWhere(bool test(Plugin value), { Plugin orElse() }) {
|
| - return IterableMixinWorkaround.firstWhere(this, test, orElse);
|
| - }
|
| -
|
| - Plugin lastWhere(bool test(Plugin value), {Plugin orElse()}) {
|
| - return IterableMixinWorkaround.lastWhereList(this, test, orElse);
|
| - }
|
| -
|
| - Plugin singleWhere(bool test(Plugin value)) {
|
| - return IterableMixinWorkaround.singleWhere(this, test);
|
| - }
|
| -
|
| - Plugin elementAt(int index) {
|
| - return this[index];
|
| - }
|
| -
|
| - // From Collection<Plugin>:
|
| -
|
| - void add(Plugin value) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - void addAll(Iterable<Plugin> iterable) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - // From List<Plugin>:
|
| - void set length(int value) {
|
| - throw new UnsupportedError("Cannot resize immutable List.");
|
| - }
|
| -
|
| - void clear() {
|
| - throw new UnsupportedError("Cannot clear immutable List.");
|
| - }
|
| -
|
| - Iterable<Plugin> get reversed {
|
| - return IterableMixinWorkaround.reversedList(this);
|
| - }
|
| -
|
| - void sort([int compare(Plugin a, Plugin b)]) {
|
| - throw new UnsupportedError("Cannot sort immutable List.");
|
| - }
|
| -
|
| - int indexOf(Plugin element, [int start = 0]) =>
|
| - Lists.indexOf(this, element, start, this.length);
|
| -
|
| - int lastIndexOf(Plugin element, [int start]) {
|
| - if (start == null) start = length - 1;
|
| - return Lists.lastIndexOf(this, element, start);
|
| - }
|
| -
|
| - Plugin get first {
|
| - if (this.length > 0) return this[0];
|
| - throw new StateError("No elements");
|
| - }
|
| -
|
| - Plugin get last {
|
| - if (this.length > 0) return this[this.length - 1];
|
| - throw new StateError("No elements");
|
| - }
|
| -
|
| - Plugin get single {
|
| - if (length == 1) return this[0];
|
| - if (length == 0) throw new StateError("No elements");
|
| - throw new StateError("More than one element");
|
| - }
|
| -
|
| - void insert(int index, Plugin element) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - void insertAll(int index, Iterable<Plugin> iterable) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - void setAll(int index, Iterable<Plugin> iterable) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| -
|
| - Plugin removeAt(int pos) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - Plugin removeLast() {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - bool remove(Object object) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - void removeWhere(bool test(Plugin element)) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - void retainWhere(bool test(Plugin element)) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - void setRange(int start, int end, Iterable<Plugin> iterable, [int skipCount=0]) {
|
| - throw new UnsupportedError("Cannot setRange on immutable List.");
|
| - }
|
| -
|
| - void removeRange(int start, int end) {
|
| - throw new UnsupportedError("Cannot removeRange on immutable List.");
|
| - }
|
| -
|
| - void replaceRange(int start, int end, Iterable<Plugin> iterable) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| -
|
| - void fillRange(int start, int end, [Plugin fillValue]) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| -
|
| - Iterable<Plugin> getRange(int start, int end) =>
|
| - IterableMixinWorkaround.getRangeList(this, start, end);
|
| -
|
| - List<Plugin> sublist(int start, [int end]) {
|
| - if (end == null) end = length;
|
| - return Lists.getRange(this, start, end, <Plugin>[]);
|
| - }
|
| -
|
| - Map<int, Plugin> asMap() =>
|
| - IterableMixinWorkaround.asMapList(this);
|
| -
|
| - String toString() {
|
| - StringBuffer buffer = new StringBuffer('[');
|
| - buffer.writeAll(this, ', ');
|
| - buffer.write(']');
|
| - return buffer.toString();
|
| - }
|
| -
|
| - // -- end List<Plugin> mixins.
|
| -
|
| - @DomName('DOMPluginArray.item')
|
| - @DocsEditable
|
| - Plugin item(int index) native "DOMPluginArray_item_Callback";
|
| -
|
| - @DomName('DOMPluginArray.namedItem')
|
| - @DocsEditable
|
| - Plugin namedItem(String name) native "DOMPluginArray_namedItem_Callback";
|
| -
|
| - @DomName('DOMPluginArray.refresh')
|
| - @DocsEditable
|
| - void refresh(bool reload) native "DOMPluginArray_refresh_Callback";
|
| -
|
| -}
|
| -// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| -// for details. All rights reserved. Use of this source code is governed by a
|
| -// BSD-style license that can be found in the LICENSE file.
|
| -
|
| -// WARNING: Do not edit - generated code.
|
| -
|
| -
|
| -@DocsEditable
|
| -@DomName('PopStateEvent')
|
| -@SupportedBrowser(SupportedBrowser.CHROME)
|
| -@SupportedBrowser(SupportedBrowser.FIREFOX)
|
| -@SupportedBrowser(SupportedBrowser.IE, '10')
|
| -@SupportedBrowser(SupportedBrowser.SAFARI)
|
| -class PopStateEvent extends Event {
|
| - PopStateEvent.internal() : super.internal();
|
| -
|
| - @DomName('PopStateEvent.state')
|
| - @DocsEditable
|
| - Object get state native "PopStateEvent_state_Getter";
|
| -
|
| -}
|
| -// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| -// for details. All rights reserved. Use of this source code is governed by a
|
| -// BSD-style license that can be found in the LICENSE file.
|
| -
|
| -// WARNING: Do not edit - generated code.
|
| -
|
| -
|
| -typedef void _PositionCallback(Geoposition position);
|
| -// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| -// for details. All rights reserved. Use of this source code is governed by a
|
| -// BSD-style license that can be found in the LICENSE file.
|
| -
|
| -// WARNING: Do not edit - generated code.
|
| +// WARNING: Do not edit - generated code.
|
|
|
|
|
| @DocsEditable
|
| @@ -19932,7 +18637,7 @@ class SourceBuffer extends NativeFieldWrapperClass1 {
|
|
|
| @DocsEditable
|
| @DomName('SourceBufferList')
|
| -class SourceBufferList extends EventTarget implements List<SourceBuffer> {
|
| +class SourceBufferList extends EventTarget with ListMixin<SourceBuffer>, ImmutableListMixin<SourceBuffer> implements List<SourceBuffer> {
|
| SourceBufferList.internal() : super.internal();
|
|
|
| @DomName('SourceBufferList.length')
|
| @@ -19947,196 +18652,11 @@ class SourceBufferList extends EventTarget implements List<SourceBuffer> {
|
| // -- start List<SourceBuffer> mixins.
|
| // SourceBuffer is the element type.
|
|
|
| - // From Iterable<SourceBuffer>:
|
| -
|
| - Iterator<SourceBuffer> get iterator {
|
| - // Note: NodeLists are not fixed size. And most probably length shouldn't
|
| - // be cached in both iterator _and_ forEach method. For now caching it
|
| - // for consistency.
|
| - return new FixedSizeListIterator<SourceBuffer>(this);
|
| - }
|
| -
|
| - SourceBuffer reduce(SourceBuffer combine(SourceBuffer value, SourceBuffer element)) {
|
| - return IterableMixinWorkaround.reduce(this, combine);
|
| - }
|
| -
|
| - dynamic fold(dynamic initialValue,
|
| - dynamic combine(dynamic previousValue, SourceBuffer element)) {
|
| - return IterableMixinWorkaround.fold(this, initialValue, combine);
|
| - }
|
| -
|
| - bool contains(SourceBuffer element) => IterableMixinWorkaround.contains(this, element);
|
| -
|
| - void forEach(void f(SourceBuffer element)) => IterableMixinWorkaround.forEach(this, f);
|
| -
|
| - String join([String separator = ""]) =>
|
| - IterableMixinWorkaround.joinList(this, separator);
|
| -
|
| - Iterable map(f(SourceBuffer element)) =>
|
| - IterableMixinWorkaround.mapList(this, f);
|
| -
|
| - Iterable<SourceBuffer> where(bool f(SourceBuffer element)) =>
|
| - IterableMixinWorkaround.where(this, f);
|
| -
|
| - Iterable expand(Iterable f(SourceBuffer element)) =>
|
| - IterableMixinWorkaround.expand(this, f);
|
| -
|
| - bool every(bool f(SourceBuffer element)) => IterableMixinWorkaround.every(this, f);
|
| -
|
| - bool any(bool f(SourceBuffer element)) => IterableMixinWorkaround.any(this, f);
|
| -
|
| - List<SourceBuffer> toList({ bool growable: true }) =>
|
| - new List<SourceBuffer>.from(this, growable: growable);
|
| -
|
| - Set<SourceBuffer> toSet() => new Set<SourceBuffer>.from(this);
|
| -
|
| - bool get isEmpty => this.length == 0;
|
| -
|
| - Iterable<SourceBuffer> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
| -
|
| - Iterable<SourceBuffer> takeWhile(bool test(SourceBuffer value)) {
|
| - return IterableMixinWorkaround.takeWhile(this, test);
|
| - }
|
| -
|
| - Iterable<SourceBuffer> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
|
|
| - Iterable<SourceBuffer> skipWhile(bool test(SourceBuffer value)) {
|
| - return IterableMixinWorkaround.skipWhile(this, test);
|
| - }
|
| -
|
| - SourceBuffer firstWhere(bool test(SourceBuffer value), { SourceBuffer orElse() }) {
|
| - return IterableMixinWorkaround.firstWhere(this, test, orElse);
|
| - }
|
| -
|
| - SourceBuffer lastWhere(bool test(SourceBuffer value), {SourceBuffer orElse()}) {
|
| - return IterableMixinWorkaround.lastWhereList(this, test, orElse);
|
| - }
|
| -
|
| - SourceBuffer singleWhere(bool test(SourceBuffer value)) {
|
| - return IterableMixinWorkaround.singleWhere(this, test);
|
| - }
|
| -
|
| - SourceBuffer elementAt(int index) {
|
| - return this[index];
|
| - }
|
| -
|
| - // From Collection<SourceBuffer>:
|
| -
|
| - void add(SourceBuffer value) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - void addAll(Iterable<SourceBuffer> iterable) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - // From List<SourceBuffer>:
|
| void set length(int value) {
|
| throw new UnsupportedError("Cannot resize immutable List.");
|
| }
|
|
|
| - void clear() {
|
| - throw new UnsupportedError("Cannot clear immutable List.");
|
| - }
|
| -
|
| - Iterable<SourceBuffer> get reversed {
|
| - return IterableMixinWorkaround.reversedList(this);
|
| - }
|
| -
|
| - void sort([int compare(SourceBuffer a, SourceBuffer b)]) {
|
| - throw new UnsupportedError("Cannot sort immutable List.");
|
| - }
|
| -
|
| - int indexOf(SourceBuffer element, [int start = 0]) =>
|
| - Lists.indexOf(this, element, start, this.length);
|
| -
|
| - int lastIndexOf(SourceBuffer element, [int start]) {
|
| - if (start == null) start = length - 1;
|
| - return Lists.lastIndexOf(this, element, start);
|
| - }
|
| -
|
| - SourceBuffer get first {
|
| - if (this.length > 0) return this[0];
|
| - throw new StateError("No elements");
|
| - }
|
| -
|
| - SourceBuffer get last {
|
| - if (this.length > 0) return this[this.length - 1];
|
| - throw new StateError("No elements");
|
| - }
|
| -
|
| - SourceBuffer get single {
|
| - if (length == 1) return this[0];
|
| - if (length == 0) throw new StateError("No elements");
|
| - throw new StateError("More than one element");
|
| - }
|
| -
|
| - void insert(int index, SourceBuffer element) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - void insertAll(int index, Iterable<SourceBuffer> iterable) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - void setAll(int index, Iterable<SourceBuffer> iterable) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| -
|
| - SourceBuffer removeAt(int pos) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - SourceBuffer removeLast() {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - bool remove(Object object) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - void removeWhere(bool test(SourceBuffer element)) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - void retainWhere(bool test(SourceBuffer element)) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - void setRange(int start, int end, Iterable<SourceBuffer> iterable, [int skipCount=0]) {
|
| - throw new UnsupportedError("Cannot setRange on immutable List.");
|
| - }
|
| -
|
| - void removeRange(int start, int end) {
|
| - throw new UnsupportedError("Cannot removeRange on immutable List.");
|
| - }
|
| -
|
| - void replaceRange(int start, int end, Iterable<SourceBuffer> iterable) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| -
|
| - void fillRange(int start, int end, [SourceBuffer fillValue]) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| -
|
| - Iterable<SourceBuffer> getRange(int start, int end) =>
|
| - IterableMixinWorkaround.getRangeList(this, start, end);
|
| -
|
| - List<SourceBuffer> sublist(int start, [int end]) {
|
| - if (end == null) end = length;
|
| - return Lists.getRange(this, start, end, <SourceBuffer>[]);
|
| - }
|
| -
|
| - Map<int, SourceBuffer> asMap() =>
|
| - IterableMixinWorkaround.asMapList(this);
|
| -
|
| - String toString() {
|
| - StringBuffer buffer = new StringBuffer('[');
|
| - buffer.writeAll(this, ', ');
|
| - buffer.write(']');
|
| - return buffer.toString();
|
| - }
|
| -
|
| // -- end List<SourceBuffer> mixins.
|
|
|
| @DomName('SourceBufferList.addEventListener')
|
| @@ -20261,7 +18781,7 @@ class SpeechGrammar extends NativeFieldWrapperClass1 {
|
|
|
| @DocsEditable
|
| @DomName('SpeechGrammarList')
|
| -class SpeechGrammarList extends NativeFieldWrapperClass1 implements List<SpeechGrammar> {
|
| +class SpeechGrammarList extends NativeFieldWrapperClass1 with ListMixin<SpeechGrammar>, ImmutableListMixin<SpeechGrammar> implements List<SpeechGrammar> {
|
| SpeechGrammarList.internal();
|
|
|
| @DomName('SpeechGrammarList.SpeechGrammarList')
|
| @@ -20285,210 +18805,25 @@ class SpeechGrammarList extends NativeFieldWrapperClass1 implements List<SpeechG
|
| // -- start List<SpeechGrammar> mixins.
|
| // SpeechGrammar is the element type.
|
|
|
| - // From Iterable<SpeechGrammar>:
|
|
|
| - Iterator<SpeechGrammar> get iterator {
|
| - // Note: NodeLists are not fixed size. And most probably length shouldn't
|
| - // be cached in both iterator _and_ forEach method. For now caching it
|
| - // for consistency.
|
| - return new FixedSizeListIterator<SpeechGrammar>(this);
|
| + void set length(int value) {
|
| + throw new UnsupportedError("Cannot resize immutable List.");
|
| }
|
|
|
| - SpeechGrammar reduce(SpeechGrammar combine(SpeechGrammar value, SpeechGrammar element)) {
|
| - return IterableMixinWorkaround.reduce(this, combine);
|
| - }
|
| + // -- end List<SpeechGrammar> mixins.
|
|
|
| - dynamic fold(dynamic initialValue,
|
| - dynamic combine(dynamic previousValue, SpeechGrammar element)) {
|
| - return IterableMixinWorkaround.fold(this, initialValue, combine);
|
| + void addFromString(String string, [num weight]) {
|
| + if (?weight) {
|
| + _addFromString_1(string, weight);
|
| + return;
|
| + }
|
| + _addFromString_2(string);
|
| + return;
|
| }
|
|
|
| - bool contains(SpeechGrammar element) => IterableMixinWorkaround.contains(this, element);
|
| -
|
| - void forEach(void f(SpeechGrammar element)) => IterableMixinWorkaround.forEach(this, f);
|
| + void _addFromString_1(string, weight) native "SpeechGrammarList__addFromString_1_Callback";
|
|
|
| - String join([String separator = ""]) =>
|
| - IterableMixinWorkaround.joinList(this, separator);
|
| -
|
| - Iterable map(f(SpeechGrammar element)) =>
|
| - IterableMixinWorkaround.mapList(this, f);
|
| -
|
| - Iterable<SpeechGrammar> where(bool f(SpeechGrammar element)) =>
|
| - IterableMixinWorkaround.where(this, f);
|
| -
|
| - Iterable expand(Iterable f(SpeechGrammar element)) =>
|
| - IterableMixinWorkaround.expand(this, f);
|
| -
|
| - bool every(bool f(SpeechGrammar element)) => IterableMixinWorkaround.every(this, f);
|
| -
|
| - bool any(bool f(SpeechGrammar element)) => IterableMixinWorkaround.any(this, f);
|
| -
|
| - List<SpeechGrammar> toList({ bool growable: true }) =>
|
| - new List<SpeechGrammar>.from(this, growable: growable);
|
| -
|
| - Set<SpeechGrammar> toSet() => new Set<SpeechGrammar>.from(this);
|
| -
|
| - bool get isEmpty => this.length == 0;
|
| -
|
| - Iterable<SpeechGrammar> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
| -
|
| - Iterable<SpeechGrammar> takeWhile(bool test(SpeechGrammar value)) {
|
| - return IterableMixinWorkaround.takeWhile(this, test);
|
| - }
|
| -
|
| - Iterable<SpeechGrammar> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
| -
|
| - Iterable<SpeechGrammar> skipWhile(bool test(SpeechGrammar value)) {
|
| - return IterableMixinWorkaround.skipWhile(this, test);
|
| - }
|
| -
|
| - SpeechGrammar firstWhere(bool test(SpeechGrammar value), { SpeechGrammar orElse() }) {
|
| - return IterableMixinWorkaround.firstWhere(this, test, orElse);
|
| - }
|
| -
|
| - SpeechGrammar lastWhere(bool test(SpeechGrammar value), {SpeechGrammar orElse()}) {
|
| - return IterableMixinWorkaround.lastWhereList(this, test, orElse);
|
| - }
|
| -
|
| - SpeechGrammar singleWhere(bool test(SpeechGrammar value)) {
|
| - return IterableMixinWorkaround.singleWhere(this, test);
|
| - }
|
| -
|
| - SpeechGrammar elementAt(int index) {
|
| - return this[index];
|
| - }
|
| -
|
| - // From Collection<SpeechGrammar>:
|
| -
|
| - void add(SpeechGrammar value) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - void addAll(Iterable<SpeechGrammar> iterable) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - // From List<SpeechGrammar>:
|
| - void set length(int value) {
|
| - throw new UnsupportedError("Cannot resize immutable List.");
|
| - }
|
| -
|
| - void clear() {
|
| - throw new UnsupportedError("Cannot clear immutable List.");
|
| - }
|
| -
|
| - Iterable<SpeechGrammar> get reversed {
|
| - return IterableMixinWorkaround.reversedList(this);
|
| - }
|
| -
|
| - void sort([int compare(SpeechGrammar a, SpeechGrammar b)]) {
|
| - throw new UnsupportedError("Cannot sort immutable List.");
|
| - }
|
| -
|
| - int indexOf(SpeechGrammar element, [int start = 0]) =>
|
| - Lists.indexOf(this, element, start, this.length);
|
| -
|
| - int lastIndexOf(SpeechGrammar element, [int start]) {
|
| - if (start == null) start = length - 1;
|
| - return Lists.lastIndexOf(this, element, start);
|
| - }
|
| -
|
| - SpeechGrammar get first {
|
| - if (this.length > 0) return this[0];
|
| - throw new StateError("No elements");
|
| - }
|
| -
|
| - SpeechGrammar get last {
|
| - if (this.length > 0) return this[this.length - 1];
|
| - throw new StateError("No elements");
|
| - }
|
| -
|
| - SpeechGrammar get single {
|
| - if (length == 1) return this[0];
|
| - if (length == 0) throw new StateError("No elements");
|
| - throw new StateError("More than one element");
|
| - }
|
| -
|
| - void insert(int index, SpeechGrammar element) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - void insertAll(int index, Iterable<SpeechGrammar> iterable) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - void setAll(int index, Iterable<SpeechGrammar> iterable) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| -
|
| - SpeechGrammar removeAt(int pos) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - SpeechGrammar removeLast() {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - bool remove(Object object) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - void removeWhere(bool test(SpeechGrammar element)) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - void retainWhere(bool test(SpeechGrammar element)) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - void setRange(int start, int end, Iterable<SpeechGrammar> iterable, [int skipCount=0]) {
|
| - throw new UnsupportedError("Cannot setRange on immutable List.");
|
| - }
|
| -
|
| - void removeRange(int start, int end) {
|
| - throw new UnsupportedError("Cannot removeRange on immutable List.");
|
| - }
|
| -
|
| - void replaceRange(int start, int end, Iterable<SpeechGrammar> iterable) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| -
|
| - void fillRange(int start, int end, [SpeechGrammar fillValue]) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| -
|
| - Iterable<SpeechGrammar> getRange(int start, int end) =>
|
| - IterableMixinWorkaround.getRangeList(this, start, end);
|
| -
|
| - List<SpeechGrammar> sublist(int start, [int end]) {
|
| - if (end == null) end = length;
|
| - return Lists.getRange(this, start, end, <SpeechGrammar>[]);
|
| - }
|
| -
|
| - Map<int, SpeechGrammar> asMap() =>
|
| - IterableMixinWorkaround.asMapList(this);
|
| -
|
| - String toString() {
|
| - StringBuffer buffer = new StringBuffer('[');
|
| - buffer.writeAll(this, ', ');
|
| - buffer.write(']');
|
| - return buffer.toString();
|
| - }
|
| -
|
| - // -- end List<SpeechGrammar> mixins.
|
| -
|
| - void addFromString(String string, [num weight]) {
|
| - if (?weight) {
|
| - _addFromString_1(string, weight);
|
| - return;
|
| - }
|
| - _addFromString_2(string);
|
| - return;
|
| - }
|
| -
|
| - void _addFromString_1(string, weight) native "SpeechGrammarList__addFromString_1_Callback";
|
| -
|
| - void _addFromString_2(string) native "SpeechGrammarList__addFromString_2_Callback";
|
| + void _addFromString_2(string) native "SpeechGrammarList__addFromString_2_Callback";
|
|
|
| void addFromUri(String src, [num weight]) {
|
| if (?weight) {
|
| @@ -22011,7 +20346,7 @@ class TextTrackCue extends EventTarget {
|
|
|
| @DocsEditable
|
| @DomName('TextTrackCueList')
|
| -class TextTrackCueList extends NativeFieldWrapperClass1 implements List<TextTrackCue> {
|
| +class TextTrackCueList extends NativeFieldWrapperClass1 with ListMixin<TextTrackCue>, ImmutableListMixin<TextTrackCue> implements List<TextTrackCue> {
|
| TextTrackCueList.internal();
|
|
|
| @DomName('TextTrackCueList.length')
|
| @@ -22026,196 +20361,11 @@ class TextTrackCueList extends NativeFieldWrapperClass1 implements List<TextTrac
|
| // -- start List<TextTrackCue> mixins.
|
| // TextTrackCue is the element type.
|
|
|
| - // From Iterable<TextTrackCue>:
|
| -
|
| - Iterator<TextTrackCue> get iterator {
|
| - // Note: NodeLists are not fixed size. And most probably length shouldn't
|
| - // be cached in both iterator _and_ forEach method. For now caching it
|
| - // for consistency.
|
| - return new FixedSizeListIterator<TextTrackCue>(this);
|
| - }
|
| -
|
| - TextTrackCue reduce(TextTrackCue combine(TextTrackCue value, TextTrackCue element)) {
|
| - return IterableMixinWorkaround.reduce(this, combine);
|
| - }
|
| -
|
| - dynamic fold(dynamic initialValue,
|
| - dynamic combine(dynamic previousValue, TextTrackCue element)) {
|
| - return IterableMixinWorkaround.fold(this, initialValue, combine);
|
| - }
|
| -
|
| - bool contains(TextTrackCue element) => IterableMixinWorkaround.contains(this, element);
|
| -
|
| - void forEach(void f(TextTrackCue element)) => IterableMixinWorkaround.forEach(this, f);
|
| -
|
| - String join([String separator = ""]) =>
|
| - IterableMixinWorkaround.joinList(this, separator);
|
| -
|
| - Iterable map(f(TextTrackCue element)) =>
|
| - IterableMixinWorkaround.mapList(this, f);
|
| -
|
| - Iterable<TextTrackCue> where(bool f(TextTrackCue element)) =>
|
| - IterableMixinWorkaround.where(this, f);
|
| -
|
| - Iterable expand(Iterable f(TextTrackCue element)) =>
|
| - IterableMixinWorkaround.expand(this, f);
|
| -
|
| - bool every(bool f(TextTrackCue element)) => IterableMixinWorkaround.every(this, f);
|
| -
|
| - bool any(bool f(TextTrackCue element)) => IterableMixinWorkaround.any(this, f);
|
| -
|
| - List<TextTrackCue> toList({ bool growable: true }) =>
|
| - new List<TextTrackCue>.from(this, growable: growable);
|
|
|
| - Set<TextTrackCue> toSet() => new Set<TextTrackCue>.from(this);
|
| -
|
| - bool get isEmpty => this.length == 0;
|
| -
|
| - Iterable<TextTrackCue> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
| -
|
| - Iterable<TextTrackCue> takeWhile(bool test(TextTrackCue value)) {
|
| - return IterableMixinWorkaround.takeWhile(this, test);
|
| - }
|
| -
|
| - Iterable<TextTrackCue> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
| -
|
| - Iterable<TextTrackCue> skipWhile(bool test(TextTrackCue value)) {
|
| - return IterableMixinWorkaround.skipWhile(this, test);
|
| - }
|
| -
|
| - TextTrackCue firstWhere(bool test(TextTrackCue value), { TextTrackCue orElse() }) {
|
| - return IterableMixinWorkaround.firstWhere(this, test, orElse);
|
| - }
|
| -
|
| - TextTrackCue lastWhere(bool test(TextTrackCue value), {TextTrackCue orElse()}) {
|
| - return IterableMixinWorkaround.lastWhereList(this, test, orElse);
|
| - }
|
| -
|
| - TextTrackCue singleWhere(bool test(TextTrackCue value)) {
|
| - return IterableMixinWorkaround.singleWhere(this, test);
|
| - }
|
| -
|
| - TextTrackCue elementAt(int index) {
|
| - return this[index];
|
| - }
|
| -
|
| - // From Collection<TextTrackCue>:
|
| -
|
| - void add(TextTrackCue value) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - void addAll(Iterable<TextTrackCue> iterable) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - // From List<TextTrackCue>:
|
| void set length(int value) {
|
| throw new UnsupportedError("Cannot resize immutable List.");
|
| }
|
|
|
| - void clear() {
|
| - throw new UnsupportedError("Cannot clear immutable List.");
|
| - }
|
| -
|
| - Iterable<TextTrackCue> get reversed {
|
| - return IterableMixinWorkaround.reversedList(this);
|
| - }
|
| -
|
| - void sort([int compare(TextTrackCue a, TextTrackCue b)]) {
|
| - throw new UnsupportedError("Cannot sort immutable List.");
|
| - }
|
| -
|
| - int indexOf(TextTrackCue element, [int start = 0]) =>
|
| - Lists.indexOf(this, element, start, this.length);
|
| -
|
| - int lastIndexOf(TextTrackCue element, [int start]) {
|
| - if (start == null) start = length - 1;
|
| - return Lists.lastIndexOf(this, element, start);
|
| - }
|
| -
|
| - TextTrackCue get first {
|
| - if (this.length > 0) return this[0];
|
| - throw new StateError("No elements");
|
| - }
|
| -
|
| - TextTrackCue get last {
|
| - if (this.length > 0) return this[this.length - 1];
|
| - throw new StateError("No elements");
|
| - }
|
| -
|
| - TextTrackCue get single {
|
| - if (length == 1) return this[0];
|
| - if (length == 0) throw new StateError("No elements");
|
| - throw new StateError("More than one element");
|
| - }
|
| -
|
| - void insert(int index, TextTrackCue element) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - void insertAll(int index, Iterable<TextTrackCue> iterable) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - void setAll(int index, Iterable<TextTrackCue> iterable) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| -
|
| - TextTrackCue removeAt(int pos) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - TextTrackCue removeLast() {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - bool remove(Object object) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - void removeWhere(bool test(TextTrackCue element)) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - void retainWhere(bool test(TextTrackCue element)) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - void setRange(int start, int end, Iterable<TextTrackCue> iterable, [int skipCount=0]) {
|
| - throw new UnsupportedError("Cannot setRange on immutable List.");
|
| - }
|
| -
|
| - void removeRange(int start, int end) {
|
| - throw new UnsupportedError("Cannot removeRange on immutable List.");
|
| - }
|
| -
|
| - void replaceRange(int start, int end, Iterable<TextTrackCue> iterable) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| -
|
| - void fillRange(int start, int end, [TextTrackCue fillValue]) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| -
|
| - Iterable<TextTrackCue> getRange(int start, int end) =>
|
| - IterableMixinWorkaround.getRangeList(this, start, end);
|
| -
|
| - List<TextTrackCue> sublist(int start, [int end]) {
|
| - if (end == null) end = length;
|
| - return Lists.getRange(this, start, end, <TextTrackCue>[]);
|
| - }
|
| -
|
| - Map<int, TextTrackCue> asMap() =>
|
| - IterableMixinWorkaround.asMapList(this);
|
| -
|
| - String toString() {
|
| - StringBuffer buffer = new StringBuffer('[');
|
| - buffer.writeAll(this, ', ');
|
| - buffer.write(']');
|
| - return buffer.toString();
|
| - }
|
| -
|
| // -- end List<TextTrackCue> mixins.
|
|
|
| @DomName('TextTrackCueList.getCueById')
|
| @@ -22236,7 +20386,7 @@ class TextTrackCueList extends NativeFieldWrapperClass1 implements List<TextTrac
|
|
|
| @DocsEditable
|
| @DomName('TextTrackList')
|
| -class TextTrackList extends EventTarget implements List<TextTrack> {
|
| +class TextTrackList extends EventTarget with ListMixin<TextTrack>, ImmutableListMixin<TextTrack> implements List<TextTrack> {
|
| TextTrackList.internal() : super.internal();
|
|
|
| @DomName('TextTrackList.addtrackEvent')
|
| @@ -22255,242 +20405,57 @@ class TextTrackList extends EventTarget implements List<TextTrack> {
|
| // -- start List<TextTrack> mixins.
|
| // TextTrack is the element type.
|
|
|
| - // From Iterable<TextTrack>:
|
| -
|
| - Iterator<TextTrack> get iterator {
|
| - // Note: NodeLists are not fixed size. And most probably length shouldn't
|
| - // be cached in both iterator _and_ forEach method. For now caching it
|
| - // for consistency.
|
| - return new FixedSizeListIterator<TextTrack>(this);
|
| - }
|
|
|
| - TextTrack reduce(TextTrack combine(TextTrack value, TextTrack element)) {
|
| - return IterableMixinWorkaround.reduce(this, combine);
|
| + void set length(int value) {
|
| + throw new UnsupportedError("Cannot resize immutable List.");
|
| }
|
|
|
| - dynamic fold(dynamic initialValue,
|
| - dynamic combine(dynamic previousValue, TextTrack element)) {
|
| - return IterableMixinWorkaround.fold(this, initialValue, combine);
|
| - }
|
| + // -- end List<TextTrack> mixins.
|
|
|
| - bool contains(TextTrack element) => IterableMixinWorkaround.contains(this, element);
|
| + @DomName('TextTrackList.addEventListener')
|
| + @DocsEditable
|
| + void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "TextTrackList_addEventListener_Callback";
|
|
|
| - void forEach(void f(TextTrack element)) => IterableMixinWorkaround.forEach(this, f);
|
| + @DomName('TextTrackList.dispatchEvent')
|
| + @DocsEditable
|
| + bool dispatchEvent(Event evt) native "TextTrackList_dispatchEvent_Callback";
|
|
|
| - String join([String separator = ""]) =>
|
| - IterableMixinWorkaround.joinList(this, separator);
|
| + @DomName('TextTrackList.item')
|
| + @DocsEditable
|
| + TextTrack item(int index) native "TextTrackList_item_Callback";
|
|
|
| - Iterable map(f(TextTrack element)) =>
|
| - IterableMixinWorkaround.mapList(this, f);
|
| + @DomName('TextTrackList.removeEventListener')
|
| + @DocsEditable
|
| + void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "TextTrackList_removeEventListener_Callback";
|
|
|
| - Iterable<TextTrack> where(bool f(TextTrack element)) =>
|
| - IterableMixinWorkaround.where(this, f);
|
| + @DomName('TextTrackList.onaddtrack')
|
| + @DocsEditable
|
| + Stream<TrackEvent> get onAddTrack => addTrackEvent.forTarget(this);
|
|
|
| - Iterable expand(Iterable f(TextTrack element)) =>
|
| - IterableMixinWorkaround.expand(this, f);
|
| +}
|
| +// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
|
|
| - bool every(bool f(TextTrack element)) => IterableMixinWorkaround.every(this, f);
|
| +// WARNING: Do not edit - generated code.
|
|
|
| - bool any(bool f(TextTrack element)) => IterableMixinWorkaround.any(this, f);
|
|
|
| - List<TextTrack> toList({ bool growable: true }) =>
|
| - new List<TextTrack>.from(this, growable: growable);
|
| +@DocsEditable
|
| +@DomName('TimeRanges')
|
| +class TimeRanges extends NativeFieldWrapperClass1 {
|
| + TimeRanges.internal();
|
|
|
| - Set<TextTrack> toSet() => new Set<TextTrack>.from(this);
|
| + @DomName('TimeRanges.length')
|
| + @DocsEditable
|
| + int get length native "TimeRanges_length_Getter";
|
|
|
| - bool get isEmpty => this.length == 0;
|
| + @DomName('TimeRanges.end')
|
| + @DocsEditable
|
| + num end(int index) native "TimeRanges_end_Callback";
|
|
|
| - Iterable<TextTrack> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
| -
|
| - Iterable<TextTrack> takeWhile(bool test(TextTrack value)) {
|
| - return IterableMixinWorkaround.takeWhile(this, test);
|
| - }
|
| -
|
| - Iterable<TextTrack> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
| -
|
| - Iterable<TextTrack> skipWhile(bool test(TextTrack value)) {
|
| - return IterableMixinWorkaround.skipWhile(this, test);
|
| - }
|
| -
|
| - TextTrack firstWhere(bool test(TextTrack value), { TextTrack orElse() }) {
|
| - return IterableMixinWorkaround.firstWhere(this, test, orElse);
|
| - }
|
| -
|
| - TextTrack lastWhere(bool test(TextTrack value), {TextTrack orElse()}) {
|
| - return IterableMixinWorkaround.lastWhereList(this, test, orElse);
|
| - }
|
| -
|
| - TextTrack singleWhere(bool test(TextTrack value)) {
|
| - return IterableMixinWorkaround.singleWhere(this, test);
|
| - }
|
| -
|
| - TextTrack elementAt(int index) {
|
| - return this[index];
|
| - }
|
| -
|
| - // From Collection<TextTrack>:
|
| -
|
| - void add(TextTrack value) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - void addAll(Iterable<TextTrack> iterable) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - // From List<TextTrack>:
|
| - void set length(int value) {
|
| - throw new UnsupportedError("Cannot resize immutable List.");
|
| - }
|
| -
|
| - void clear() {
|
| - throw new UnsupportedError("Cannot clear immutable List.");
|
| - }
|
| -
|
| - Iterable<TextTrack> get reversed {
|
| - return IterableMixinWorkaround.reversedList(this);
|
| - }
|
| -
|
| - void sort([int compare(TextTrack a, TextTrack b)]) {
|
| - throw new UnsupportedError("Cannot sort immutable List.");
|
| - }
|
| -
|
| - int indexOf(TextTrack element, [int start = 0]) =>
|
| - Lists.indexOf(this, element, start, this.length);
|
| -
|
| - int lastIndexOf(TextTrack element, [int start]) {
|
| - if (start == null) start = length - 1;
|
| - return Lists.lastIndexOf(this, element, start);
|
| - }
|
| -
|
| - TextTrack get first {
|
| - if (this.length > 0) return this[0];
|
| - throw new StateError("No elements");
|
| - }
|
| -
|
| - TextTrack get last {
|
| - if (this.length > 0) return this[this.length - 1];
|
| - throw new StateError("No elements");
|
| - }
|
| -
|
| - TextTrack get single {
|
| - if (length == 1) return this[0];
|
| - if (length == 0) throw new StateError("No elements");
|
| - throw new StateError("More than one element");
|
| - }
|
| -
|
| - void insert(int index, TextTrack element) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - void insertAll(int index, Iterable<TextTrack> iterable) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - void setAll(int index, Iterable<TextTrack> iterable) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| -
|
| - TextTrack removeAt(int pos) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - TextTrack removeLast() {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - bool remove(Object object) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - void removeWhere(bool test(TextTrack element)) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - void retainWhere(bool test(TextTrack element)) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - void setRange(int start, int end, Iterable<TextTrack> iterable, [int skipCount=0]) {
|
| - throw new UnsupportedError("Cannot setRange on immutable List.");
|
| - }
|
| -
|
| - void removeRange(int start, int end) {
|
| - throw new UnsupportedError("Cannot removeRange on immutable List.");
|
| - }
|
| -
|
| - void replaceRange(int start, int end, Iterable<TextTrack> iterable) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| -
|
| - void fillRange(int start, int end, [TextTrack fillValue]) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| -
|
| - Iterable<TextTrack> getRange(int start, int end) =>
|
| - IterableMixinWorkaround.getRangeList(this, start, end);
|
| -
|
| - List<TextTrack> sublist(int start, [int end]) {
|
| - if (end == null) end = length;
|
| - return Lists.getRange(this, start, end, <TextTrack>[]);
|
| - }
|
| -
|
| - Map<int, TextTrack> asMap() =>
|
| - IterableMixinWorkaround.asMapList(this);
|
| -
|
| - String toString() {
|
| - StringBuffer buffer = new StringBuffer('[');
|
| - buffer.writeAll(this, ', ');
|
| - buffer.write(']');
|
| - return buffer.toString();
|
| - }
|
| -
|
| - // -- end List<TextTrack> mixins.
|
| -
|
| - @DomName('TextTrackList.addEventListener')
|
| - @DocsEditable
|
| - void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "TextTrackList_addEventListener_Callback";
|
| -
|
| - @DomName('TextTrackList.dispatchEvent')
|
| - @DocsEditable
|
| - bool dispatchEvent(Event evt) native "TextTrackList_dispatchEvent_Callback";
|
| -
|
| - @DomName('TextTrackList.item')
|
| - @DocsEditable
|
| - TextTrack item(int index) native "TextTrackList_item_Callback";
|
| -
|
| - @DomName('TextTrackList.removeEventListener')
|
| - @DocsEditable
|
| - void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "TextTrackList_removeEventListener_Callback";
|
| -
|
| - @DomName('TextTrackList.onaddtrack')
|
| - @DocsEditable
|
| - Stream<TrackEvent> get onAddTrack => addTrackEvent.forTarget(this);
|
| -
|
| -}
|
| -// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| -// for details. All rights reserved. Use of this source code is governed by a
|
| -// BSD-style license that can be found in the LICENSE file.
|
| -
|
| -// WARNING: Do not edit - generated code.
|
| -
|
| -
|
| -@DocsEditable
|
| -@DomName('TimeRanges')
|
| -class TimeRanges extends NativeFieldWrapperClass1 {
|
| - TimeRanges.internal();
|
| -
|
| - @DomName('TimeRanges.length')
|
| - @DocsEditable
|
| - int get length native "TimeRanges_length_Getter";
|
| -
|
| - @DomName('TimeRanges.end')
|
| - @DocsEditable
|
| - num end(int index) native "TimeRanges_end_Callback";
|
| -
|
| - @DomName('TimeRanges.start')
|
| - @DocsEditable
|
| - num start(int index) native "TimeRanges_start_Callback";
|
| + @DomName('TimeRanges.start')
|
| + @DocsEditable
|
| + num start(int index) native "TimeRanges_start_Callback";
|
|
|
| }
|
| // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| @@ -22679,7 +20644,7 @@ class TouchEvent extends UIEvent {
|
|
|
|
|
| @DomName('TouchList')
|
| -class TouchList extends NativeFieldWrapperClass1 implements List<Touch> {
|
| +class TouchList extends NativeFieldWrapperClass1 with ListMixin<Touch>, ImmutableListMixin<Touch> implements List<Touch> {
|
| /// NB: This constructor likely does not work as you might expect it to! This
|
| /// constructor will simply fail (returning null) if you are not on a device
|
| /// with touch enabled. See dartbug.com/8314.
|
| @@ -22701,196 +20666,11 @@ class TouchList extends NativeFieldWrapperClass1 implements List<Touch> {
|
| // -- start List<Touch> mixins.
|
| // Touch is the element type.
|
|
|
| - // From Iterable<Touch>:
|
| -
|
| - Iterator<Touch> get iterator {
|
| - // Note: NodeLists are not fixed size. And most probably length shouldn't
|
| - // be cached in both iterator _and_ forEach method. For now caching it
|
| - // for consistency.
|
| - return new FixedSizeListIterator<Touch>(this);
|
| - }
|
| -
|
| - Touch reduce(Touch combine(Touch value, Touch element)) {
|
| - return IterableMixinWorkaround.reduce(this, combine);
|
| - }
|
| -
|
| - dynamic fold(dynamic initialValue,
|
| - dynamic combine(dynamic previousValue, Touch element)) {
|
| - return IterableMixinWorkaround.fold(this, initialValue, combine);
|
| - }
|
| -
|
| - bool contains(Touch element) => IterableMixinWorkaround.contains(this, element);
|
| -
|
| - void forEach(void f(Touch element)) => IterableMixinWorkaround.forEach(this, f);
|
| -
|
| - String join([String separator = ""]) =>
|
| - IterableMixinWorkaround.joinList(this, separator);
|
| -
|
| - Iterable map(f(Touch element)) =>
|
| - IterableMixinWorkaround.mapList(this, f);
|
| -
|
| - Iterable<Touch> where(bool f(Touch element)) =>
|
| - IterableMixinWorkaround.where(this, f);
|
| -
|
| - Iterable expand(Iterable f(Touch element)) =>
|
| - IterableMixinWorkaround.expand(this, f);
|
| -
|
| - bool every(bool f(Touch element)) => IterableMixinWorkaround.every(this, f);
|
| -
|
| - bool any(bool f(Touch element)) => IterableMixinWorkaround.any(this, f);
|
| -
|
| - List<Touch> toList({ bool growable: true }) =>
|
| - new List<Touch>.from(this, growable: growable);
|
| -
|
| - Set<Touch> toSet() => new Set<Touch>.from(this);
|
| -
|
| - bool get isEmpty => this.length == 0;
|
| -
|
| - Iterable<Touch> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
| -
|
| - Iterable<Touch> takeWhile(bool test(Touch value)) {
|
| - return IterableMixinWorkaround.takeWhile(this, test);
|
| - }
|
| -
|
| - Iterable<Touch> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
| -
|
| - Iterable<Touch> skipWhile(bool test(Touch value)) {
|
| - return IterableMixinWorkaround.skipWhile(this, test);
|
| - }
|
| -
|
| - Touch firstWhere(bool test(Touch value), { Touch orElse() }) {
|
| - return IterableMixinWorkaround.firstWhere(this, test, orElse);
|
| - }
|
| -
|
| - Touch lastWhere(bool test(Touch value), {Touch orElse()}) {
|
| - return IterableMixinWorkaround.lastWhereList(this, test, orElse);
|
| - }
|
| -
|
| - Touch singleWhere(bool test(Touch value)) {
|
| - return IterableMixinWorkaround.singleWhere(this, test);
|
| - }
|
| -
|
| - Touch elementAt(int index) {
|
| - return this[index];
|
| - }
|
| -
|
| - // From Collection<Touch>:
|
| -
|
| - void add(Touch value) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - void addAll(Iterable<Touch> iterable) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
|
|
| - // From List<Touch>:
|
| void set length(int value) {
|
| throw new UnsupportedError("Cannot resize immutable List.");
|
| }
|
|
|
| - void clear() {
|
| - throw new UnsupportedError("Cannot clear immutable List.");
|
| - }
|
| -
|
| - Iterable<Touch> get reversed {
|
| - return IterableMixinWorkaround.reversedList(this);
|
| - }
|
| -
|
| - void sort([int compare(Touch a, Touch b)]) {
|
| - throw new UnsupportedError("Cannot sort immutable List.");
|
| - }
|
| -
|
| - int indexOf(Touch element, [int start = 0]) =>
|
| - Lists.indexOf(this, element, start, this.length);
|
| -
|
| - int lastIndexOf(Touch element, [int start]) {
|
| - if (start == null) start = length - 1;
|
| - return Lists.lastIndexOf(this, element, start);
|
| - }
|
| -
|
| - Touch get first {
|
| - if (this.length > 0) return this[0];
|
| - throw new StateError("No elements");
|
| - }
|
| -
|
| - Touch get last {
|
| - if (this.length > 0) return this[this.length - 1];
|
| - throw new StateError("No elements");
|
| - }
|
| -
|
| - Touch get single {
|
| - if (length == 1) return this[0];
|
| - if (length == 0) throw new StateError("No elements");
|
| - throw new StateError("More than one element");
|
| - }
|
| -
|
| - void insert(int index, Touch element) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - void insertAll(int index, Iterable<Touch> iterable) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - void setAll(int index, Iterable<Touch> iterable) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| -
|
| - Touch removeAt(int pos) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - Touch removeLast() {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - bool remove(Object object) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - void removeWhere(bool test(Touch element)) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - void retainWhere(bool test(Touch element)) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - void setRange(int start, int end, Iterable<Touch> iterable, [int skipCount=0]) {
|
| - throw new UnsupportedError("Cannot setRange on immutable List.");
|
| - }
|
| -
|
| - void removeRange(int start, int end) {
|
| - throw new UnsupportedError("Cannot removeRange on immutable List.");
|
| - }
|
| -
|
| - void replaceRange(int start, int end, Iterable<Touch> iterable) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| -
|
| - void fillRange(int start, int end, [Touch fillValue]) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| -
|
| - Iterable<Touch> getRange(int start, int end) =>
|
| - IterableMixinWorkaround.getRangeList(this, start, end);
|
| -
|
| - List<Touch> sublist(int start, [int end]) {
|
| - if (end == null) end = length;
|
| - return Lists.getRange(this, start, end, <Touch>[]);
|
| - }
|
| -
|
| - Map<int, Touch> asMap() =>
|
| - IterableMixinWorkaround.asMapList(this);
|
| -
|
| - String toString() {
|
| - StringBuffer buffer = new StringBuffer('[');
|
| - buffer.writeAll(this, ', ');
|
| - buffer.write(']');
|
| - return buffer.toString();
|
| - }
|
| -
|
| // -- end List<Touch> mixins.
|
|
|
| @DomName('TouchList.item')
|
| @@ -25000,7 +22780,7 @@ class _ClientRect extends NativeFieldWrapperClass1 implements Rect {
|
|
|
| @DocsEditable
|
| @DomName('ClientRectList')
|
| -class _ClientRectList extends NativeFieldWrapperClass1 implements List<Rect> {
|
| +class _ClientRectList extends NativeFieldWrapperClass1 with ListMixin<Rect>, ImmutableListMixin<Rect> implements List<Rect> {
|
| _ClientRectList.internal();
|
|
|
| @DomName('ClientRectList.length')
|
| @@ -25015,201 +22795,158 @@ class _ClientRectList extends NativeFieldWrapperClass1 implements List<Rect> {
|
| // -- start List<Rect> mixins.
|
| // Rect is the element type.
|
|
|
| - // From Iterable<Rect>:
|
| -
|
| - Iterator<Rect> get iterator {
|
| - // Note: NodeLists are not fixed size. And most probably length shouldn't
|
| - // be cached in both iterator _and_ forEach method. For now caching it
|
| - // for consistency.
|
| - return new FixedSizeListIterator<Rect>(this);
|
| - }
|
|
|
| - Rect reduce(Rect combine(Rect value, Rect element)) {
|
| - return IterableMixinWorkaround.reduce(this, combine);
|
| + void set length(int value) {
|
| + throw new UnsupportedError("Cannot resize immutable List.");
|
| }
|
|
|
| - dynamic fold(dynamic initialValue,
|
| - dynamic combine(dynamic previousValue, Rect element)) {
|
| - return IterableMixinWorkaround.fold(this, initialValue, combine);
|
| - }
|
| + // -- end List<Rect> mixins.
|
|
|
| - bool contains(Rect element) => IterableMixinWorkaround.contains(this, element);
|
| + @DomName('ClientRectList.item')
|
| + @DocsEditable
|
| + Rect item(int index) native "ClientRectList_item_Callback";
|
|
|
| - void forEach(void f(Rect element)) => IterableMixinWorkaround.forEach(this, f);
|
| +}
|
| +// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
|
|
| - String join([String separator = ""]) =>
|
| - IterableMixinWorkaround.joinList(this, separator);
|
| +// WARNING: Do not edit - generated code.
|
|
|
| - Iterable map(f(Rect element)) =>
|
| - IterableMixinWorkaround.mapList(this, f);
|
|
|
| - Iterable<Rect> where(bool f(Rect element)) =>
|
| - IterableMixinWorkaround.where(this, f);
|
| +@DocsEditable
|
| +@DomName('Counter')
|
| +abstract class _Counter extends NativeFieldWrapperClass1 {
|
| + _Counter.internal();
|
|
|
| - Iterable expand(Iterable f(Rect element)) =>
|
| - IterableMixinWorkaround.expand(this, f);
|
| -
|
| - bool every(bool f(Rect element)) => IterableMixinWorkaround.every(this, f);
|
| -
|
| - bool any(bool f(Rect element)) => IterableMixinWorkaround.any(this, f);
|
| -
|
| - List<Rect> toList({ bool growable: true }) =>
|
| - new List<Rect>.from(this, growable: growable);
|
| -
|
| - Set<Rect> toSet() => new Set<Rect>.from(this);
|
| -
|
| - bool get isEmpty => this.length == 0;
|
| +}
|
| +// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
|
|
| - Iterable<Rect> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
| +// WARNING: Do not edit - generated code.
|
|
|
| - Iterable<Rect> takeWhile(bool test(Rect value)) {
|
| - return IterableMixinWorkaround.takeWhile(this, test);
|
| - }
|
|
|
| - Iterable<Rect> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
| +@DocsEditable
|
| +@DomName('CSSRuleList')
|
| +class _CssRuleList extends NativeFieldWrapperClass1 with ListMixin<CssRule>, ImmutableListMixin<CssRule> implements List<CssRule> {
|
| + _CssRuleList.internal();
|
|
|
| - Iterable<Rect> skipWhile(bool test(Rect value)) {
|
| - return IterableMixinWorkaround.skipWhile(this, test);
|
| - }
|
| + @DomName('CSSRuleList.length')
|
| + @DocsEditable
|
| + int get length native "CSSRuleList_length_Getter";
|
|
|
| - Rect firstWhere(bool test(Rect value), { Rect orElse() }) {
|
| - return IterableMixinWorkaround.firstWhere(this, test, orElse);
|
| - }
|
| + CssRule operator[](int index) native "CSSRuleList_item_Callback";
|
|
|
| - Rect lastWhere(bool test(Rect value), {Rect orElse()}) {
|
| - return IterableMixinWorkaround.lastWhereList(this, test, orElse);
|
| + void operator[]=(int index, CssRule value) {
|
| + throw new UnsupportedError("Cannot assign element of immutable List.");
|
| }
|
| + // -- start List<CssRule> mixins.
|
| + // CssRule is the element type.
|
|
|
| - Rect singleWhere(bool test(Rect value)) {
|
| - return IterableMixinWorkaround.singleWhere(this, test);
|
| - }
|
|
|
| - Rect elementAt(int index) {
|
| - return this[index];
|
| + void set length(int value) {
|
| + throw new UnsupportedError("Cannot resize immutable List.");
|
| }
|
|
|
| - // From Collection<Rect>:
|
| -
|
| - void add(Rect value) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| + // -- end List<CssRule> mixins.
|
|
|
| - void addAll(Iterable<Rect> iterable) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| + @DomName('CSSRuleList.item')
|
| + @DocsEditable
|
| + CssRule item(int index) native "CSSRuleList_item_Callback";
|
|
|
| - // From List<Rect>:
|
| - void set length(int value) {
|
| - throw new UnsupportedError("Cannot resize immutable List.");
|
| - }
|
| +}
|
| +// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
|
|
| - void clear() {
|
| - throw new UnsupportedError("Cannot clear immutable List.");
|
| - }
|
| +// WARNING: Do not edit - generated code.
|
|
|
| - Iterable<Rect> get reversed {
|
| - return IterableMixinWorkaround.reversedList(this);
|
| - }
|
|
|
| - void sort([int compare(Rect a, Rect b)]) {
|
| - throw new UnsupportedError("Cannot sort immutable List.");
|
| - }
|
| +@DocsEditable
|
| +@DomName('CSSValueList')
|
| +class _CssValueList extends _CSSValue with ListMixin<_CSSValue>, ImmutableListMixin<_CSSValue> implements List<_CSSValue> {
|
| + _CssValueList.internal() : super.internal();
|
|
|
| - int indexOf(Rect element, [int start = 0]) =>
|
| - Lists.indexOf(this, element, start, this.length);
|
| + @DomName('CSSValueList.length')
|
| + @DocsEditable
|
| + int get length native "CSSValueList_length_Getter";
|
|
|
| - int lastIndexOf(Rect element, [int start]) {
|
| - if (start == null) start = length - 1;
|
| - return Lists.lastIndexOf(this, element, start);
|
| - }
|
| + _CSSValue operator[](int index) native "CSSValueList_item_Callback";
|
|
|
| - Rect get first {
|
| - if (this.length > 0) return this[0];
|
| - throw new StateError("No elements");
|
| + void operator[]=(int index, _CSSValue value) {
|
| + throw new UnsupportedError("Cannot assign element of immutable List.");
|
| }
|
| + // -- start List<_CSSValue> mixins.
|
| + // _CSSValue is the element type.
|
|
|
| - Rect get last {
|
| - if (this.length > 0) return this[this.length - 1];
|
| - throw new StateError("No elements");
|
| - }
|
|
|
| - Rect get single {
|
| - if (length == 1) return this[0];
|
| - if (length == 0) throw new StateError("No elements");
|
| - throw new StateError("More than one element");
|
| + void set length(int value) {
|
| + throw new UnsupportedError("Cannot resize immutable List.");
|
| }
|
|
|
| - void insert(int index, Rect element) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| + // -- end List<_CSSValue> mixins.
|
|
|
| - void insertAll(int index, Iterable<Rect> iterable) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| + @DomName('CSSValueList.item')
|
| + @DocsEditable
|
| + _CSSValue item(int index) native "CSSValueList_item_Callback";
|
|
|
| - void setAll(int index, Iterable<Rect> iterable) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| +}
|
| +// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
|
|
| - Rect removeAt(int pos) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| +// WARNING: Do not edit - generated code.
|
|
|
| - Rect removeLast() {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
|
|
| - bool remove(Object object) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| +@DocsEditable
|
| +@DomName('DOMFileSystemSync')
|
| +@SupportedBrowser(SupportedBrowser.CHROME)
|
| +@Experimental
|
| +abstract class _DOMFileSystemSync extends NativeFieldWrapperClass1 {
|
| + _DOMFileSystemSync.internal();
|
|
|
| - void removeWhere(bool test(Rect element)) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| +}
|
| +// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
|
|
| - void retainWhere(bool test(Rect element)) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| +// WARNING: Do not edit - generated code.
|
|
|
| - void setRange(int start, int end, Iterable<Rect> iterable, [int skipCount=0]) {
|
| - throw new UnsupportedError("Cannot setRange on immutable List.");
|
| - }
|
|
|
| - void removeRange(int start, int end) {
|
| - throw new UnsupportedError("Cannot removeRange on immutable List.");
|
| - }
|
| +@DocsEditable
|
| +@DomName('DatabaseSync')
|
| +@SupportedBrowser(SupportedBrowser.CHROME)
|
| +@SupportedBrowser(SupportedBrowser.SAFARI)
|
| +@Experimental
|
| +abstract class _DatabaseSync extends NativeFieldWrapperClass1 {
|
| + _DatabaseSync.internal();
|
|
|
| - void replaceRange(int start, int end, Iterable<Rect> iterable) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| +}
|
| +// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
|
|
| - void fillRange(int start, int end, [Rect fillValue]) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| +// WARNING: Do not edit - generated code.
|
|
|
| - Iterable<Rect> getRange(int start, int end) =>
|
| - IterableMixinWorkaround.getRangeList(this, start, end);
|
|
|
| - List<Rect> sublist(int start, [int end]) {
|
| - if (end == null) end = length;
|
| - return Lists.getRange(this, start, end, <Rect>[]);
|
| - }
|
| +@DocsEditable
|
| +@DomName('DedicatedWorkerContext')
|
| +abstract class _DedicatedWorkerContext extends _WorkerContext {
|
| + _DedicatedWorkerContext.internal() : super.internal();
|
|
|
| - Map<int, Rect> asMap() =>
|
| - IterableMixinWorkaround.asMapList(this);
|
| +}
|
| +// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
|
|
| - String toString() {
|
| - StringBuffer buffer = new StringBuffer('[');
|
| - buffer.writeAll(this, ', ');
|
| - buffer.write(']');
|
| - return buffer.toString();
|
| - }
|
| +// WARNING: Do not edit - generated code.
|
|
|
| - // -- end List<Rect> mixins.
|
|
|
| - @DomName('ClientRectList.item')
|
| - @DocsEditable
|
| - Rect item(int index) native "ClientRectList_item_Callback";
|
| +@DocsEditable
|
| +@DomName('DirectoryEntrySync')
|
| +abstract class _DirectoryEntrySync extends _EntrySync {
|
| + _DirectoryEntrySync.internal() : super.internal();
|
|
|
| }
|
| // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| @@ -25220,9 +22957,9 @@ class _ClientRectList extends NativeFieldWrapperClass1 implements List<Rect> {
|
|
|
|
|
| @DocsEditable
|
| -@DomName('Counter')
|
| -abstract class _Counter extends NativeFieldWrapperClass1 {
|
| - _Counter.internal();
|
| +@DomName('DirectoryReaderSync')
|
| +abstract class _DirectoryReaderSync extends NativeFieldWrapperClass1 {
|
| + _DirectoryReaderSync.internal();
|
|
|
| }
|
| // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| @@ -25233,217 +22970,230 @@ abstract class _Counter extends NativeFieldWrapperClass1 {
|
|
|
|
|
| @DocsEditable
|
| -@DomName('CSSRuleList')
|
| -class _CssRuleList extends NativeFieldWrapperClass1 implements List<CssRule> {
|
| - _CssRuleList.internal();
|
| +@DomName('WebKitPoint')
|
| +@SupportedBrowser(SupportedBrowser.CHROME)
|
| +@SupportedBrowser(SupportedBrowser.SAFARI)
|
| +@Experimental
|
| +@SupportedBrowser(SupportedBrowser.CHROME)
|
| +@SupportedBrowser(SupportedBrowser.SAFARI)
|
| +@Experimental
|
| +class _DomPoint extends NativeFieldWrapperClass1 {
|
| + _DomPoint.internal();
|
| + factory _DomPoint(num x, num y) => _create(x, y);
|
|
|
| - @DomName('CSSRuleList.length')
|
| @DocsEditable
|
| - int get length native "CSSRuleList_length_Getter";
|
| + static _DomPoint _create(x, y) native "DOMPoint_constructorCallback";
|
|
|
| - CssRule operator[](int index) native "CSSRuleList_item_Callback";
|
| + /// Checks if this type is supported on the current platform.
|
| + static bool get supported => true;
|
|
|
| - void operator[]=(int index, CssRule value) {
|
| - throw new UnsupportedError("Cannot assign element of immutable List.");
|
| - }
|
| - // -- start List<CssRule> mixins.
|
| - // CssRule is the element type.
|
| + @DomName('DOMPoint.x')
|
| + @DocsEditable
|
| + num get x native "DOMPoint_x_Getter";
|
|
|
| - // From Iterable<CssRule>:
|
| + @DomName('DOMPoint.x')
|
| + @DocsEditable
|
| + void set x(num value) native "DOMPoint_x_Setter";
|
|
|
| - Iterator<CssRule> get iterator {
|
| - // Note: NodeLists are not fixed size. And most probably length shouldn't
|
| - // be cached in both iterator _and_ forEach method. For now caching it
|
| - // for consistency.
|
| - return new FixedSizeListIterator<CssRule>(this);
|
| - }
|
| + @DomName('DOMPoint.y')
|
| + @DocsEditable
|
| + num get y native "DOMPoint_y_Getter";
|
|
|
| - CssRule reduce(CssRule combine(CssRule value, CssRule element)) {
|
| - return IterableMixinWorkaround.reduce(this, combine);
|
| - }
|
| + @DomName('DOMPoint.y')
|
| + @DocsEditable
|
| + void set y(num value) native "DOMPoint_y_Setter";
|
|
|
| - dynamic fold(dynamic initialValue,
|
| - dynamic combine(dynamic previousValue, CssRule element)) {
|
| - return IterableMixinWorkaround.fold(this, initialValue, combine);
|
| - }
|
| +}
|
| +// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
|
|
| - bool contains(CssRule element) => IterableMixinWorkaround.contains(this, element);
|
| +// WARNING: Do not edit - generated code.
|
|
|
| - void forEach(void f(CssRule element)) => IterableMixinWorkaround.forEach(this, f);
|
|
|
| - String join([String separator = ""]) =>
|
| - IterableMixinWorkaround.joinList(this, separator);
|
| +@DocsEditable
|
| +@DomName('HTMLElement')
|
| +class _Element_Merged extends Element {
|
| + _Element_Merged.internal() : super.internal();
|
|
|
| - Iterable map(f(CssRule element)) =>
|
| - IterableMixinWorkaround.mapList(this, f);
|
| + @DomName('HTMLElement.children')
|
| + @DocsEditable
|
| + HtmlCollection get $dom_children native "HTMLElement_children_Getter";
|
|
|
| - Iterable<CssRule> where(bool f(CssRule element)) =>
|
| - IterableMixinWorkaround.where(this, f);
|
| + @DomName('HTMLElement.contentEditable')
|
| + @DocsEditable
|
| + String get contentEditable native "HTMLElement_contentEditable_Getter";
|
|
|
| - Iterable expand(Iterable f(CssRule element)) =>
|
| - IterableMixinWorkaround.expand(this, f);
|
| + @DomName('HTMLElement.contentEditable')
|
| + @DocsEditable
|
| + void set contentEditable(String value) native "HTMLElement_contentEditable_Setter";
|
|
|
| - bool every(bool f(CssRule element)) => IterableMixinWorkaround.every(this, f);
|
| + @DomName('HTMLElement.dir')
|
| + @DocsEditable
|
| + String get dir native "HTMLElement_dir_Getter";
|
|
|
| - bool any(bool f(CssRule element)) => IterableMixinWorkaround.any(this, f);
|
| + @DomName('HTMLElement.dir')
|
| + @DocsEditable
|
| + void set dir(String value) native "HTMLElement_dir_Setter";
|
|
|
| - List<CssRule> toList({ bool growable: true }) =>
|
| - new List<CssRule>.from(this, growable: growable);
|
| + @DomName('HTMLElement.draggable')
|
| + @DocsEditable
|
| + bool get draggable native "HTMLElement_draggable_Getter";
|
|
|
| - Set<CssRule> toSet() => new Set<CssRule>.from(this);
|
| + @DomName('HTMLElement.draggable')
|
| + @DocsEditable
|
| + void set draggable(bool value) native "HTMLElement_draggable_Setter";
|
|
|
| - bool get isEmpty => this.length == 0;
|
| + @DomName('HTMLElement.hidden')
|
| + @DocsEditable
|
| + bool get hidden native "HTMLElement_hidden_Getter";
|
|
|
| - Iterable<CssRule> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
| + @DomName('HTMLElement.hidden')
|
| + @DocsEditable
|
| + void set hidden(bool value) native "HTMLElement_hidden_Setter";
|
|
|
| - Iterable<CssRule> takeWhile(bool test(CssRule value)) {
|
| - return IterableMixinWorkaround.takeWhile(this, test);
|
| - }
|
| + @DomName('HTMLElement.id')
|
| + @DocsEditable
|
| + String get id native "HTMLElement_id_Getter";
|
|
|
| - Iterable<CssRule> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
| + @DomName('HTMLElement.id')
|
| + @DocsEditable
|
| + void set id(String value) native "HTMLElement_id_Setter";
|
|
|
| - Iterable<CssRule> skipWhile(bool test(CssRule value)) {
|
| - return IterableMixinWorkaround.skipWhile(this, test);
|
| - }
|
| + @DomName('HTMLElement.innerHTML')
|
| + @DocsEditable
|
| + String get innerHtml native "HTMLElement_innerHTML_Getter";
|
|
|
| - CssRule firstWhere(bool test(CssRule value), { CssRule orElse() }) {
|
| - return IterableMixinWorkaround.firstWhere(this, test, orElse);
|
| - }
|
| + @DomName('HTMLElement.innerHTML')
|
| + @DocsEditable
|
| + void set innerHtml(String value) native "HTMLElement_innerHTML_Setter";
|
|
|
| - CssRule lastWhere(bool test(CssRule value), {CssRule orElse()}) {
|
| - return IterableMixinWorkaround.lastWhereList(this, test, orElse);
|
| - }
|
| + @DomName('HTMLElement.isContentEditable')
|
| + @DocsEditable
|
| + bool get isContentEditable native "HTMLElement_isContentEditable_Getter";
|
|
|
| - CssRule singleWhere(bool test(CssRule value)) {
|
| - return IterableMixinWorkaround.singleWhere(this, test);
|
| - }
|
| + @DomName('HTMLElement.lang')
|
| + @DocsEditable
|
| + String get lang native "HTMLElement_lang_Getter";
|
|
|
| - CssRule elementAt(int index) {
|
| - return this[index];
|
| - }
|
| + @DomName('HTMLElement.lang')
|
| + @DocsEditable
|
| + void set lang(String value) native "HTMLElement_lang_Setter";
|
|
|
| - // From Collection<CssRule>:
|
| + @DomName('HTMLElement.outerHTML')
|
| + @DocsEditable
|
| + String get outerHtml native "HTMLElement_outerHTML_Getter";
|
|
|
| - void add(CssRule value) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| + @DomName('HTMLElement.spellcheck')
|
| + @DocsEditable
|
| + bool get spellcheck native "HTMLElement_spellcheck_Getter";
|
|
|
| - void addAll(Iterable<CssRule> iterable) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| + @DomName('HTMLElement.spellcheck')
|
| + @DocsEditable
|
| + void set spellcheck(bool value) native "HTMLElement_spellcheck_Setter";
|
|
|
| - // From List<CssRule>:
|
| - void set length(int value) {
|
| - throw new UnsupportedError("Cannot resize immutable List.");
|
| - }
|
| + @DomName('HTMLElement.tabIndex')
|
| + @DocsEditable
|
| + int get tabIndex native "HTMLElement_tabIndex_Getter";
|
|
|
| - void clear() {
|
| - throw new UnsupportedError("Cannot clear immutable List.");
|
| - }
|
| + @DomName('HTMLElement.tabIndex')
|
| + @DocsEditable
|
| + void set tabIndex(int value) native "HTMLElement_tabIndex_Setter";
|
|
|
| - Iterable<CssRule> get reversed {
|
| - return IterableMixinWorkaround.reversedList(this);
|
| - }
|
| + @DomName('HTMLElement.title')
|
| + @DocsEditable
|
| + String get title native "HTMLElement_title_Getter";
|
|
|
| - void sort([int compare(CssRule a, CssRule b)]) {
|
| - throw new UnsupportedError("Cannot sort immutable List.");
|
| - }
|
| + @DomName('HTMLElement.title')
|
| + @DocsEditable
|
| + void set title(String value) native "HTMLElement_title_Setter";
|
|
|
| - int indexOf(CssRule element, [int start = 0]) =>
|
| - Lists.indexOf(this, element, start, this.length);
|
| + @DomName('HTMLElement.translate')
|
| + @DocsEditable
|
| + bool get translate native "HTMLElement_translate_Getter";
|
|
|
| - int lastIndexOf(CssRule element, [int start]) {
|
| - if (start == null) start = length - 1;
|
| - return Lists.lastIndexOf(this, element, start);
|
| - }
|
| + @DomName('HTMLElement.translate')
|
| + @DocsEditable
|
| + void set translate(bool value) native "HTMLElement_translate_Setter";
|
|
|
| - CssRule get first {
|
| - if (this.length > 0) return this[0];
|
| - throw new StateError("No elements");
|
| - }
|
| + @DomName('HTMLElement.webkitdropzone')
|
| + @DocsEditable
|
| + @SupportedBrowser(SupportedBrowser.CHROME)
|
| + @SupportedBrowser(SupportedBrowser.SAFARI)
|
| + @Experimental
|
| + String get dropzone native "HTMLElement_webkitdropzone_Getter";
|
|
|
| - CssRule get last {
|
| - if (this.length > 0) return this[this.length - 1];
|
| - throw new StateError("No elements");
|
| - }
|
| + @DomName('HTMLElement.webkitdropzone')
|
| + @DocsEditable
|
| + @SupportedBrowser(SupportedBrowser.CHROME)
|
| + @SupportedBrowser(SupportedBrowser.SAFARI)
|
| + @Experimental
|
| + void set dropzone(String value) native "HTMLElement_webkitdropzone_Setter";
|
|
|
| - CssRule get single {
|
| - if (length == 1) return this[0];
|
| - if (length == 0) throw new StateError("No elements");
|
| - throw new StateError("More than one element");
|
| - }
|
| + @DomName('HTMLElement.click')
|
| + @DocsEditable
|
| + void click() native "HTMLElement_click_Callback";
|
|
|
| - void insert(int index, CssRule element) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| + @DomName('HTMLElement.insertAdjacentElement')
|
| + @DocsEditable
|
| + Element insertAdjacentElement(String where, Element element) native "HTMLElement_insertAdjacentElement_Callback";
|
|
|
| - void insertAll(int index, Iterable<CssRule> iterable) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| + @DomName('HTMLElement.insertAdjacentHTML')
|
| + @DocsEditable
|
| + void insertAdjacentHtml(String where, String html) native "HTMLElement_insertAdjacentHTML_Callback";
|
|
|
| - void setAll(int index, Iterable<CssRule> iterable) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| + @DomName('HTMLElement.insertAdjacentText')
|
| + @DocsEditable
|
| + void insertAdjacentText(String where, String text) native "HTMLElement_insertAdjacentText_Callback";
|
|
|
| - CssRule removeAt(int pos) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| +}
|
| +// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
|
|
| - CssRule removeLast() {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| +// WARNING: Do not edit - generated code.
|
|
|
| - bool remove(Object object) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
|
|
| - void removeWhere(bool test(CssRule element)) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| +@DocsEditable
|
| +@DomName('EntityReference')
|
| +abstract class _EntityReference extends Node {
|
| + _EntityReference.internal() : super.internal();
|
|
|
| - void retainWhere(bool test(CssRule element)) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| +}
|
| +// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
|
|
| - void setRange(int start, int end, Iterable<CssRule> iterable, [int skipCount=0]) {
|
| - throw new UnsupportedError("Cannot setRange on immutable List.");
|
| - }
|
| +// WARNING: Do not edit - generated code.
|
|
|
| - void removeRange(int start, int end) {
|
| - throw new UnsupportedError("Cannot removeRange on immutable List.");
|
| - }
|
|
|
| - void replaceRange(int start, int end, Iterable<CssRule> iterable) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| +@DocsEditable
|
| +@DomName('EntryArray')
|
| +class _EntryArray extends NativeFieldWrapperClass1 with ListMixin<Entry>, ImmutableListMixin<Entry> implements List<Entry> {
|
| + _EntryArray.internal();
|
|
|
| - void fillRange(int start, int end, [CssRule fillValue]) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| + @DomName('EntryArray.length')
|
| + @DocsEditable
|
| + int get length native "EntryArray_length_Getter";
|
|
|
| - Iterable<CssRule> getRange(int start, int end) =>
|
| - IterableMixinWorkaround.getRangeList(this, start, end);
|
| + Entry operator[](int index) native "EntryArray_item_Callback";
|
|
|
| - List<CssRule> sublist(int start, [int end]) {
|
| - if (end == null) end = length;
|
| - return Lists.getRange(this, start, end, <CssRule>[]);
|
| + void operator[]=(int index, Entry value) {
|
| + throw new UnsupportedError("Cannot assign element of immutable List.");
|
| }
|
| + // -- start List<Entry> mixins.
|
| + // Entry is the element type.
|
|
|
| - Map<int, CssRule> asMap() =>
|
| - IterableMixinWorkaround.asMapList(this);
|
|
|
| - String toString() {
|
| - StringBuffer buffer = new StringBuffer('[');
|
| - buffer.writeAll(this, ', ');
|
| - buffer.write(']');
|
| - return buffer.toString();
|
| + void set length(int value) {
|
| + throw new UnsupportedError("Cannot resize immutable List.");
|
| }
|
|
|
| - // -- end List<CssRule> mixins.
|
| + // -- end List<Entry> mixins.
|
|
|
| - @DomName('CSSRuleList.item')
|
| + @DomName('EntryArray.item')
|
| @DocsEditable
|
| - CssRule item(int index) native "CSSRuleList_item_Callback";
|
| + Entry item(int index) native "EntryArray_item_Callback";
|
|
|
| }
|
| // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| @@ -25454,232 +23204,155 @@ class _CssRuleList extends NativeFieldWrapperClass1 implements List<CssRule> {
|
|
|
|
|
| @DocsEditable
|
| -@DomName('CSSValueList')
|
| -class _CssValueList extends _CSSValue implements List<_CSSValue> {
|
| - _CssValueList.internal() : super.internal();
|
| +@DomName('EntryArraySync')
|
| +class _EntryArraySync extends NativeFieldWrapperClass1 with ListMixin<_EntrySync>, ImmutableListMixin<_EntrySync> implements List<_EntrySync> {
|
| + _EntryArraySync.internal();
|
|
|
| - @DomName('CSSValueList.length')
|
| + @DomName('EntryArraySync.length')
|
| @DocsEditable
|
| - int get length native "CSSValueList_length_Getter";
|
| + int get length native "EntryArraySync_length_Getter";
|
|
|
| - _CSSValue operator[](int index) native "CSSValueList_item_Callback";
|
| + _EntrySync operator[](int index) native "EntryArraySync_item_Callback";
|
|
|
| - void operator[]=(int index, _CSSValue value) {
|
| + void operator[]=(int index, _EntrySync value) {
|
| throw new UnsupportedError("Cannot assign element of immutable List.");
|
| }
|
| - // -- start List<_CSSValue> mixins.
|
| - // _CSSValue is the element type.
|
| + // -- start List<_EntrySync> mixins.
|
| + // _EntrySync is the element type.
|
|
|
| - // From Iterable<_CSSValue>:
|
|
|
| - Iterator<_CSSValue> get iterator {
|
| - // Note: NodeLists are not fixed size. And most probably length shouldn't
|
| - // be cached in both iterator _and_ forEach method. For now caching it
|
| - // for consistency.
|
| - return new FixedSizeListIterator<_CSSValue>(this);
|
| + void set length(int value) {
|
| + throw new UnsupportedError("Cannot resize immutable List.");
|
| }
|
|
|
| - _CSSValue reduce(_CSSValue combine(_CSSValue value, _CSSValue element)) {
|
| - return IterableMixinWorkaround.reduce(this, combine);
|
| - }
|
| + // -- end List<_EntrySync> mixins.
|
|
|
| - dynamic fold(dynamic initialValue,
|
| - dynamic combine(dynamic previousValue, _CSSValue element)) {
|
| - return IterableMixinWorkaround.fold(this, initialValue, combine);
|
| - }
|
| + @DomName('EntryArraySync.item')
|
| + @DocsEditable
|
| + _EntrySync item(int index) native "EntryArraySync_item_Callback";
|
|
|
| - bool contains(_CSSValue element) => IterableMixinWorkaround.contains(this, element);
|
| +}
|
| +// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
|
|
| - void forEach(void f(_CSSValue element)) => IterableMixinWorkaround.forEach(this, f);
|
| +// WARNING: Do not edit - generated code.
|
|
|
| - String join([String separator = ""]) =>
|
| - IterableMixinWorkaround.joinList(this, separator);
|
|
|
| - Iterable map(f(_CSSValue element)) =>
|
| - IterableMixinWorkaround.mapList(this, f);
|
| +@DocsEditable
|
| +@DomName('EntrySync')
|
| +abstract class _EntrySync extends NativeFieldWrapperClass1 {
|
| + _EntrySync.internal();
|
|
|
| - Iterable<_CSSValue> where(bool f(_CSSValue element)) =>
|
| - IterableMixinWorkaround.where(this, f);
|
| +}
|
| +// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
|
|
| - Iterable expand(Iterable f(_CSSValue element)) =>
|
| - IterableMixinWorkaround.expand(this, f);
|
| +// WARNING: Do not edit - generated code.
|
|
|
| - bool every(bool f(_CSSValue element)) => IterableMixinWorkaround.every(this, f);
|
|
|
| - bool any(bool f(_CSSValue element)) => IterableMixinWorkaround.any(this, f);
|
| +@DocsEditable
|
| +@DomName('FileEntrySync')
|
| +abstract class _FileEntrySync extends _EntrySync {
|
| + _FileEntrySync.internal() : super.internal();
|
|
|
| - List<_CSSValue> toList({ bool growable: true }) =>
|
| - new List<_CSSValue>.from(this, growable: growable);
|
| +}
|
| +// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
|
|
| - Set<_CSSValue> toSet() => new Set<_CSSValue>.from(this);
|
| +// WARNING: Do not edit - generated code.
|
|
|
| - bool get isEmpty => this.length == 0;
|
|
|
| - Iterable<_CSSValue> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
| +@DocsEditable
|
| +@DomName('FileReaderSync')
|
| +abstract class _FileReaderSync extends NativeFieldWrapperClass1 {
|
| + _FileReaderSync.internal();
|
|
|
| - Iterable<_CSSValue> takeWhile(bool test(_CSSValue value)) {
|
| - return IterableMixinWorkaround.takeWhile(this, test);
|
| + @DomName('FileReaderSync.FileReaderSync')
|
| + @DocsEditable
|
| + factory _FileReaderSync() {
|
| + return _FileReaderSync._create_1();
|
| }
|
|
|
| - Iterable<_CSSValue> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
| + @DocsEditable
|
| + static _FileReaderSync _create_1() native "FileReaderSync__create_1constructorCallback";
|
|
|
| - Iterable<_CSSValue> skipWhile(bool test(_CSSValue value)) {
|
| - return IterableMixinWorkaround.skipWhile(this, test);
|
| - }
|
| +}
|
| +// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
|
|
| - _CSSValue firstWhere(bool test(_CSSValue value), { _CSSValue orElse() }) {
|
| - return IterableMixinWorkaround.firstWhere(this, test, orElse);
|
| - }
|
| +// WARNING: Do not edit - generated code.
|
|
|
| - _CSSValue lastWhere(bool test(_CSSValue value), {_CSSValue orElse()}) {
|
| - return IterableMixinWorkaround.lastWhereList(this, test, orElse);
|
| - }
|
|
|
| - _CSSValue singleWhere(bool test(_CSSValue value)) {
|
| - return IterableMixinWorkaround.singleWhere(this, test);
|
| - }
|
| +@DocsEditable
|
| +@DomName('FileWriterSync')
|
| +abstract class _FileWriterSync extends NativeFieldWrapperClass1 {
|
| + _FileWriterSync.internal();
|
|
|
| - _CSSValue elementAt(int index) {
|
| - return this[index];
|
| - }
|
| +}
|
| +// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
|
|
| - // From Collection<_CSSValue>:
|
| +// WARNING: Do not edit - generated code.
|
|
|
| - void add(_CSSValue value) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
|
|
| - void addAll(Iterable<_CSSValue> iterable) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| +@DocsEditable
|
| +@DomName('GamepadList')
|
| +class _GamepadList extends NativeFieldWrapperClass1 with ListMixin<Gamepad>, ImmutableListMixin<Gamepad> implements List<Gamepad> {
|
| + _GamepadList.internal();
|
|
|
| - // From List<_CSSValue>:
|
| - void set length(int value) {
|
| - throw new UnsupportedError("Cannot resize immutable List.");
|
| - }
|
| + @DomName('GamepadList.length')
|
| + @DocsEditable
|
| + int get length native "GamepadList_length_Getter";
|
|
|
| - void clear() {
|
| - throw new UnsupportedError("Cannot clear immutable List.");
|
| - }
|
| + Gamepad operator[](int index) native "GamepadList_item_Callback";
|
|
|
| - Iterable<_CSSValue> get reversed {
|
| - return IterableMixinWorkaround.reversedList(this);
|
| + void operator[]=(int index, Gamepad value) {
|
| + throw new UnsupportedError("Cannot assign element of immutable List.");
|
| }
|
| + // -- start List<Gamepad> mixins.
|
| + // Gamepad is the element type.
|
|
|
| - void sort([int compare(_CSSValue a, _CSSValue b)]) {
|
| - throw new UnsupportedError("Cannot sort immutable List.");
|
| +
|
| + void set length(int value) {
|
| + throw new UnsupportedError("Cannot resize immutable List.");
|
| }
|
|
|
| - int indexOf(_CSSValue element, [int start = 0]) =>
|
| - Lists.indexOf(this, element, start, this.length);
|
| + // -- end List<Gamepad> mixins.
|
|
|
| - int lastIndexOf(_CSSValue element, [int start]) {
|
| - if (start == null) start = length - 1;
|
| - return Lists.lastIndexOf(this, element, start);
|
| - }
|
| + @DomName('GamepadList.item')
|
| + @DocsEditable
|
| + Gamepad item(int index) native "GamepadList_item_Callback";
|
|
|
| - _CSSValue get first {
|
| - if (this.length > 0) return this[0];
|
| - throw new StateError("No elements");
|
| - }
|
| +}
|
| +// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
|
|
| - _CSSValue get last {
|
| - if (this.length > 0) return this[this.length - 1];
|
| - throw new StateError("No elements");
|
| - }
|
| +// WARNING: Do not edit - generated code.
|
|
|
| - _CSSValue get single {
|
| - if (length == 1) return this[0];
|
| - if (length == 0) throw new StateError("No elements");
|
| - throw new StateError("More than one element");
|
| - }
|
|
|
| - void insert(int index, _CSSValue element) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| +@DocsEditable
|
| +@DomName('HTMLAppletElement')
|
| +abstract class _HTMLAppletElement extends _Element_Merged {
|
| + _HTMLAppletElement.internal() : super.internal();
|
|
|
| - void insertAll(int index, Iterable<_CSSValue> iterable) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| +}
|
| +// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
|
|
| - void setAll(int index, Iterable<_CSSValue> iterable) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| -
|
| - _CSSValue removeAt(int pos) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - _CSSValue removeLast() {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - bool remove(Object object) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - void removeWhere(bool test(_CSSValue element)) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - void retainWhere(bool test(_CSSValue element)) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - void setRange(int start, int end, Iterable<_CSSValue> iterable, [int skipCount=0]) {
|
| - throw new UnsupportedError("Cannot setRange on immutable List.");
|
| - }
|
| -
|
| - void removeRange(int start, int end) {
|
| - throw new UnsupportedError("Cannot removeRange on immutable List.");
|
| - }
|
| -
|
| - void replaceRange(int start, int end, Iterable<_CSSValue> iterable) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| -
|
| - void fillRange(int start, int end, [_CSSValue fillValue]) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| -
|
| - Iterable<_CSSValue> getRange(int start, int end) =>
|
| - IterableMixinWorkaround.getRangeList(this, start, end);
|
| -
|
| - List<_CSSValue> sublist(int start, [int end]) {
|
| - if (end == null) end = length;
|
| - return Lists.getRange(this, start, end, <_CSSValue>[]);
|
| - }
|
| -
|
| - Map<int, _CSSValue> asMap() =>
|
| - IterableMixinWorkaround.asMapList(this);
|
| -
|
| - String toString() {
|
| - StringBuffer buffer = new StringBuffer('[');
|
| - buffer.writeAll(this, ', ');
|
| - buffer.write(']');
|
| - return buffer.toString();
|
| - }
|
| -
|
| - // -- end List<_CSSValue> mixins.
|
| -
|
| - @DomName('CSSValueList.item')
|
| - @DocsEditable
|
| - _CSSValue item(int index) native "CSSValueList_item_Callback";
|
| -
|
| -}
|
| -// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| -// for details. All rights reserved. Use of this source code is governed by a
|
| -// BSD-style license that can be found in the LICENSE file.
|
| -
|
| -// WARNING: Do not edit - generated code.
|
| +// WARNING: Do not edit - generated code.
|
|
|
|
|
| @DocsEditable
|
| -@DomName('DOMFileSystemSync')
|
| -@SupportedBrowser(SupportedBrowser.CHROME)
|
| -@Experimental
|
| -abstract class _DOMFileSystemSync extends NativeFieldWrapperClass1 {
|
| - _DOMFileSystemSync.internal();
|
| +@DomName('HTMLBaseFontElement')
|
| +abstract class _HTMLBaseFontElement extends _Element_Merged {
|
| + _HTMLBaseFontElement.internal() : super.internal();
|
|
|
| }
|
| // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| @@ -25690,12 +23363,9 @@ abstract class _DOMFileSystemSync extends NativeFieldWrapperClass1 {
|
|
|
|
|
| @DocsEditable
|
| -@DomName('DatabaseSync')
|
| -@SupportedBrowser(SupportedBrowser.CHROME)
|
| -@SupportedBrowser(SupportedBrowser.SAFARI)
|
| -@Experimental
|
| -abstract class _DatabaseSync extends NativeFieldWrapperClass1 {
|
| - _DatabaseSync.internal();
|
| +@DomName('HTMLDirectoryElement')
|
| +abstract class _HTMLDirectoryElement extends _Element_Merged {
|
| + _HTMLDirectoryElement.internal() : super.internal();
|
|
|
| }
|
| // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| @@ -25706,9 +23376,9 @@ abstract class _DatabaseSync extends NativeFieldWrapperClass1 {
|
|
|
|
|
| @DocsEditable
|
| -@DomName('DedicatedWorkerContext')
|
| -abstract class _DedicatedWorkerContext extends _WorkerContext {
|
| - _DedicatedWorkerContext.internal() : super.internal();
|
| +@DomName('HTMLFontElement')
|
| +abstract class _HTMLFontElement extends _Element_Merged {
|
| + _HTMLFontElement.internal() : super.internal();
|
|
|
| }
|
| // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| @@ -25719,9 +23389,9 @@ abstract class _DedicatedWorkerContext extends _WorkerContext {
|
|
|
|
|
| @DocsEditable
|
| -@DomName('DirectoryEntrySync')
|
| -abstract class _DirectoryEntrySync extends _EntrySync {
|
| - _DirectoryEntrySync.internal() : super.internal();
|
| +@DomName('HTMLFrameElement')
|
| +abstract class _HTMLFrameElement extends _Element_Merged {
|
| + _HTMLFrameElement.internal() : super.internal();
|
|
|
| }
|
| // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| @@ -25732,9 +23402,9 @@ abstract class _DirectoryEntrySync extends _EntrySync {
|
|
|
|
|
| @DocsEditable
|
| -@DomName('DirectoryReaderSync')
|
| -abstract class _DirectoryReaderSync extends NativeFieldWrapperClass1 {
|
| - _DirectoryReaderSync.internal();
|
| +@DomName('HTMLFrameSetElement')
|
| +abstract class _HTMLFrameSetElement extends _Element_Merged {
|
| + _HTMLFrameSetElement.internal() : super.internal();
|
|
|
| }
|
| // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| @@ -25745,38 +23415,9 @@ abstract class _DirectoryReaderSync extends NativeFieldWrapperClass1 {
|
|
|
|
|
| @DocsEditable
|
| -@DomName('WebKitPoint')
|
| -@SupportedBrowser(SupportedBrowser.CHROME)
|
| -@SupportedBrowser(SupportedBrowser.SAFARI)
|
| -@Experimental
|
| -@SupportedBrowser(SupportedBrowser.CHROME)
|
| -@SupportedBrowser(SupportedBrowser.SAFARI)
|
| -@Experimental
|
| -class _DomPoint extends NativeFieldWrapperClass1 {
|
| - _DomPoint.internal();
|
| - factory _DomPoint(num x, num y) => _create(x, y);
|
| -
|
| - @DocsEditable
|
| - static _DomPoint _create(x, y) native "DOMPoint_constructorCallback";
|
| -
|
| - /// Checks if this type is supported on the current platform.
|
| - static bool get supported => true;
|
| -
|
| - @DomName('DOMPoint.x')
|
| - @DocsEditable
|
| - num get x native "DOMPoint_x_Getter";
|
| -
|
| - @DomName('DOMPoint.x')
|
| - @DocsEditable
|
| - void set x(num value) native "DOMPoint_x_Setter";
|
| -
|
| - @DomName('DOMPoint.y')
|
| - @DocsEditable
|
| - num get y native "DOMPoint_y_Getter";
|
| -
|
| - @DomName('DOMPoint.y')
|
| - @DocsEditable
|
| - void set y(num value) native "DOMPoint_y_Setter";
|
| +@DomName('HTMLMarqueeElement')
|
| +abstract class _HTMLMarqueeElement extends _Element_Merged {
|
| + _HTMLMarqueeElement.internal() : super.internal();
|
|
|
| }
|
| // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| @@ -25787,1738 +23428,56 @@ class _DomPoint extends NativeFieldWrapperClass1 {
|
|
|
|
|
| @DocsEditable
|
| -@DomName('HTMLElement')
|
| -class _Element_Merged extends Element {
|
| - _Element_Merged.internal() : super.internal();
|
| -
|
| - @DomName('HTMLElement.children')
|
| - @DocsEditable
|
| - HtmlCollection get $dom_children native "HTMLElement_children_Getter";
|
| -
|
| - @DomName('HTMLElement.contentEditable')
|
| - @DocsEditable
|
| - String get contentEditable native "HTMLElement_contentEditable_Getter";
|
| -
|
| - @DomName('HTMLElement.contentEditable')
|
| - @DocsEditable
|
| - void set contentEditable(String value) native "HTMLElement_contentEditable_Setter";
|
| -
|
| - @DomName('HTMLElement.dir')
|
| - @DocsEditable
|
| - String get dir native "HTMLElement_dir_Getter";
|
| -
|
| - @DomName('HTMLElement.dir')
|
| - @DocsEditable
|
| - void set dir(String value) native "HTMLElement_dir_Setter";
|
| -
|
| - @DomName('HTMLElement.draggable')
|
| - @DocsEditable
|
| - bool get draggable native "HTMLElement_draggable_Getter";
|
| -
|
| - @DomName('HTMLElement.draggable')
|
| - @DocsEditable
|
| - void set draggable(bool value) native "HTMLElement_draggable_Setter";
|
| -
|
| - @DomName('HTMLElement.hidden')
|
| - @DocsEditable
|
| - bool get hidden native "HTMLElement_hidden_Getter";
|
| -
|
| - @DomName('HTMLElement.hidden')
|
| - @DocsEditable
|
| - void set hidden(bool value) native "HTMLElement_hidden_Setter";
|
| -
|
| - @DomName('HTMLElement.id')
|
| - @DocsEditable
|
| - String get id native "HTMLElement_id_Getter";
|
| -
|
| - @DomName('HTMLElement.id')
|
| - @DocsEditable
|
| - void set id(String value) native "HTMLElement_id_Setter";
|
| -
|
| - @DomName('HTMLElement.innerHTML')
|
| - @DocsEditable
|
| - String get innerHtml native "HTMLElement_innerHTML_Getter";
|
| -
|
| - @DomName('HTMLElement.innerHTML')
|
| - @DocsEditable
|
| - void set innerHtml(String value) native "HTMLElement_innerHTML_Setter";
|
| -
|
| - @DomName('HTMLElement.isContentEditable')
|
| - @DocsEditable
|
| - bool get isContentEditable native "HTMLElement_isContentEditable_Getter";
|
| -
|
| - @DomName('HTMLElement.lang')
|
| - @DocsEditable
|
| - String get lang native "HTMLElement_lang_Getter";
|
| -
|
| - @DomName('HTMLElement.lang')
|
| - @DocsEditable
|
| - void set lang(String value) native "HTMLElement_lang_Setter";
|
| -
|
| - @DomName('HTMLElement.outerHTML')
|
| - @DocsEditable
|
| - String get outerHtml native "HTMLElement_outerHTML_Getter";
|
| -
|
| - @DomName('HTMLElement.spellcheck')
|
| - @DocsEditable
|
| - bool get spellcheck native "HTMLElement_spellcheck_Getter";
|
| -
|
| - @DomName('HTMLElement.spellcheck')
|
| - @DocsEditable
|
| - void set spellcheck(bool value) native "HTMLElement_spellcheck_Setter";
|
| -
|
| - @DomName('HTMLElement.tabIndex')
|
| - @DocsEditable
|
| - int get tabIndex native "HTMLElement_tabIndex_Getter";
|
| -
|
| - @DomName('HTMLElement.tabIndex')
|
| - @DocsEditable
|
| - void set tabIndex(int value) native "HTMLElement_tabIndex_Setter";
|
| -
|
| - @DomName('HTMLElement.title')
|
| - @DocsEditable
|
| - String get title native "HTMLElement_title_Getter";
|
| -
|
| - @DomName('HTMLElement.title')
|
| - @DocsEditable
|
| - void set title(String value) native "HTMLElement_title_Setter";
|
| -
|
| - @DomName('HTMLElement.translate')
|
| - @DocsEditable
|
| - bool get translate native "HTMLElement_translate_Getter";
|
| +@DomName('NamedNodeMap')
|
| +class _NamedNodeMap extends NativeFieldWrapperClass1 with ListMixin<Node>, ImmutableListMixin<Node> implements List<Node> {
|
| + _NamedNodeMap.internal();
|
|
|
| - @DomName('HTMLElement.translate')
|
| + @DomName('NamedNodeMap.length')
|
| @DocsEditable
|
| - void set translate(bool value) native "HTMLElement_translate_Setter";
|
| + int get length native "NamedNodeMap_length_Getter";
|
|
|
| - @DomName('HTMLElement.webkitdropzone')
|
| - @DocsEditable
|
| - @SupportedBrowser(SupportedBrowser.CHROME)
|
| - @SupportedBrowser(SupportedBrowser.SAFARI)
|
| - @Experimental
|
| - String get dropzone native "HTMLElement_webkitdropzone_Getter";
|
| + Node operator[](int index) native "NamedNodeMap_item_Callback";
|
|
|
| - @DomName('HTMLElement.webkitdropzone')
|
| - @DocsEditable
|
| - @SupportedBrowser(SupportedBrowser.CHROME)
|
| - @SupportedBrowser(SupportedBrowser.SAFARI)
|
| - @Experimental
|
| - void set dropzone(String value) native "HTMLElement_webkitdropzone_Setter";
|
| + void operator[]=(int index, Node value) {
|
| + throw new UnsupportedError("Cannot assign element of immutable List.");
|
| + }
|
| + // -- start List<Node> mixins.
|
| + // Node is the element type.
|
|
|
| - @DomName('HTMLElement.click')
|
| - @DocsEditable
|
| - void click() native "HTMLElement_click_Callback";
|
|
|
| - @DomName('HTMLElement.insertAdjacentElement')
|
| - @DocsEditable
|
| - Element insertAdjacentElement(String where, Element element) native "HTMLElement_insertAdjacentElement_Callback";
|
| + void set length(int value) {
|
| + throw new UnsupportedError("Cannot resize immutable List.");
|
| + }
|
|
|
| - @DomName('HTMLElement.insertAdjacentHTML')
|
| - @DocsEditable
|
| - void insertAdjacentHtml(String where, String html) native "HTMLElement_insertAdjacentHTML_Callback";
|
| + // -- end List<Node> mixins.
|
|
|
| - @DomName('HTMLElement.insertAdjacentText')
|
| + @DomName('NamedNodeMap.getNamedItem')
|
| @DocsEditable
|
| - void insertAdjacentText(String where, String text) native "HTMLElement_insertAdjacentText_Callback";
|
| -
|
| -}
|
| -// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| -// for details. All rights reserved. Use of this source code is governed by a
|
| -// BSD-style license that can be found in the LICENSE file.
|
| -
|
| -// WARNING: Do not edit - generated code.
|
| -
|
| -
|
| -@DocsEditable
|
| -@DomName('EntityReference')
|
| -abstract class _EntityReference extends Node {
|
| - _EntityReference.internal() : super.internal();
|
| -
|
| -}
|
| -// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| -// for details. All rights reserved. Use of this source code is governed by a
|
| -// BSD-style license that can be found in the LICENSE file.
|
| -
|
| -// WARNING: Do not edit - generated code.
|
| -
|
| -
|
| -@DocsEditable
|
| -@DomName('EntryArray')
|
| -class _EntryArray extends NativeFieldWrapperClass1 implements List<Entry> {
|
| - _EntryArray.internal();
|
| -
|
| - @DomName('EntryArray.length')
|
| - @DocsEditable
|
| - int get length native "EntryArray_length_Getter";
|
| -
|
| - Entry operator[](int index) native "EntryArray_item_Callback";
|
| -
|
| - void operator[]=(int index, Entry value) {
|
| - throw new UnsupportedError("Cannot assign element of immutable List.");
|
| - }
|
| - // -- start List<Entry> mixins.
|
| - // Entry is the element type.
|
| -
|
| - // From Iterable<Entry>:
|
| -
|
| - Iterator<Entry> get iterator {
|
| - // Note: NodeLists are not fixed size. And most probably length shouldn't
|
| - // be cached in both iterator _and_ forEach method. For now caching it
|
| - // for consistency.
|
| - return new FixedSizeListIterator<Entry>(this);
|
| - }
|
| -
|
| - Entry reduce(Entry combine(Entry value, Entry element)) {
|
| - return IterableMixinWorkaround.reduce(this, combine);
|
| - }
|
| -
|
| - dynamic fold(dynamic initialValue,
|
| - dynamic combine(dynamic previousValue, Entry element)) {
|
| - return IterableMixinWorkaround.fold(this, initialValue, combine);
|
| - }
|
| -
|
| - bool contains(Entry element) => IterableMixinWorkaround.contains(this, element);
|
| -
|
| - void forEach(void f(Entry element)) => IterableMixinWorkaround.forEach(this, f);
|
| -
|
| - String join([String separator = ""]) =>
|
| - IterableMixinWorkaround.joinList(this, separator);
|
| -
|
| - Iterable map(f(Entry element)) =>
|
| - IterableMixinWorkaround.mapList(this, f);
|
| -
|
| - Iterable<Entry> where(bool f(Entry element)) =>
|
| - IterableMixinWorkaround.where(this, f);
|
| -
|
| - Iterable expand(Iterable f(Entry element)) =>
|
| - IterableMixinWorkaround.expand(this, f);
|
| -
|
| - bool every(bool f(Entry element)) => IterableMixinWorkaround.every(this, f);
|
| -
|
| - bool any(bool f(Entry element)) => IterableMixinWorkaround.any(this, f);
|
| -
|
| - List<Entry> toList({ bool growable: true }) =>
|
| - new List<Entry>.from(this, growable: growable);
|
| -
|
| - Set<Entry> toSet() => new Set<Entry>.from(this);
|
| -
|
| - bool get isEmpty => this.length == 0;
|
| -
|
| - Iterable<Entry> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
| -
|
| - Iterable<Entry> takeWhile(bool test(Entry value)) {
|
| - return IterableMixinWorkaround.takeWhile(this, test);
|
| - }
|
| -
|
| - Iterable<Entry> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
| -
|
| - Iterable<Entry> skipWhile(bool test(Entry value)) {
|
| - return IterableMixinWorkaround.skipWhile(this, test);
|
| - }
|
| -
|
| - Entry firstWhere(bool test(Entry value), { Entry orElse() }) {
|
| - return IterableMixinWorkaround.firstWhere(this, test, orElse);
|
| - }
|
| -
|
| - Entry lastWhere(bool test(Entry value), {Entry orElse()}) {
|
| - return IterableMixinWorkaround.lastWhereList(this, test, orElse);
|
| - }
|
| -
|
| - Entry singleWhere(bool test(Entry value)) {
|
| - return IterableMixinWorkaround.singleWhere(this, test);
|
| - }
|
| -
|
| - Entry elementAt(int index) {
|
| - return this[index];
|
| - }
|
| -
|
| - // From Collection<Entry>:
|
| -
|
| - void add(Entry value) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - void addAll(Iterable<Entry> iterable) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - // From List<Entry>:
|
| - void set length(int value) {
|
| - throw new UnsupportedError("Cannot resize immutable List.");
|
| - }
|
| -
|
| - void clear() {
|
| - throw new UnsupportedError("Cannot clear immutable List.");
|
| - }
|
| -
|
| - Iterable<Entry> get reversed {
|
| - return IterableMixinWorkaround.reversedList(this);
|
| - }
|
| -
|
| - void sort([int compare(Entry a, Entry b)]) {
|
| - throw new UnsupportedError("Cannot sort immutable List.");
|
| - }
|
| -
|
| - int indexOf(Entry element, [int start = 0]) =>
|
| - Lists.indexOf(this, element, start, this.length);
|
| -
|
| - int lastIndexOf(Entry element, [int start]) {
|
| - if (start == null) start = length - 1;
|
| - return Lists.lastIndexOf(this, element, start);
|
| - }
|
| -
|
| - Entry get first {
|
| - if (this.length > 0) return this[0];
|
| - throw new StateError("No elements");
|
| - }
|
| -
|
| - Entry get last {
|
| - if (this.length > 0) return this[this.length - 1];
|
| - throw new StateError("No elements");
|
| - }
|
| -
|
| - Entry get single {
|
| - if (length == 1) return this[0];
|
| - if (length == 0) throw new StateError("No elements");
|
| - throw new StateError("More than one element");
|
| - }
|
| -
|
| - void insert(int index, Entry element) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - void insertAll(int index, Iterable<Entry> iterable) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - void setAll(int index, Iterable<Entry> iterable) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| -
|
| - Entry removeAt(int pos) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - Entry removeLast() {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - bool remove(Object object) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - void removeWhere(bool test(Entry element)) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - void retainWhere(bool test(Entry element)) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - void setRange(int start, int end, Iterable<Entry> iterable, [int skipCount=0]) {
|
| - throw new UnsupportedError("Cannot setRange on immutable List.");
|
| - }
|
| -
|
| - void removeRange(int start, int end) {
|
| - throw new UnsupportedError("Cannot removeRange on immutable List.");
|
| - }
|
| -
|
| - void replaceRange(int start, int end, Iterable<Entry> iterable) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| -
|
| - void fillRange(int start, int end, [Entry fillValue]) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| -
|
| - Iterable<Entry> getRange(int start, int end) =>
|
| - IterableMixinWorkaround.getRangeList(this, start, end);
|
| -
|
| - List<Entry> sublist(int start, [int end]) {
|
| - if (end == null) end = length;
|
| - return Lists.getRange(this, start, end, <Entry>[]);
|
| - }
|
| -
|
| - Map<int, Entry> asMap() =>
|
| - IterableMixinWorkaround.asMapList(this);
|
| -
|
| - String toString() {
|
| - StringBuffer buffer = new StringBuffer('[');
|
| - buffer.writeAll(this, ', ');
|
| - buffer.write(']');
|
| - return buffer.toString();
|
| - }
|
| -
|
| - // -- end List<Entry> mixins.
|
| -
|
| - @DomName('EntryArray.item')
|
| - @DocsEditable
|
| - Entry item(int index) native "EntryArray_item_Callback";
|
| -
|
| -}
|
| -// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| -// for details. All rights reserved. Use of this source code is governed by a
|
| -// BSD-style license that can be found in the LICENSE file.
|
| -
|
| -// WARNING: Do not edit - generated code.
|
| -
|
| -
|
| -@DocsEditable
|
| -@DomName('EntryArraySync')
|
| -class _EntryArraySync extends NativeFieldWrapperClass1 implements List<_EntrySync> {
|
| - _EntryArraySync.internal();
|
| -
|
| - @DomName('EntryArraySync.length')
|
| - @DocsEditable
|
| - int get length native "EntryArraySync_length_Getter";
|
| -
|
| - _EntrySync operator[](int index) native "EntryArraySync_item_Callback";
|
| -
|
| - void operator[]=(int index, _EntrySync value) {
|
| - throw new UnsupportedError("Cannot assign element of immutable List.");
|
| - }
|
| - // -- start List<_EntrySync> mixins.
|
| - // _EntrySync is the element type.
|
| -
|
| - // From Iterable<_EntrySync>:
|
| -
|
| - Iterator<_EntrySync> get iterator {
|
| - // Note: NodeLists are not fixed size. And most probably length shouldn't
|
| - // be cached in both iterator _and_ forEach method. For now caching it
|
| - // for consistency.
|
| - return new FixedSizeListIterator<_EntrySync>(this);
|
| - }
|
| -
|
| - _EntrySync reduce(_EntrySync combine(_EntrySync value, _EntrySync element)) {
|
| - return IterableMixinWorkaround.reduce(this, combine);
|
| - }
|
| -
|
| - dynamic fold(dynamic initialValue,
|
| - dynamic combine(dynamic previousValue, _EntrySync element)) {
|
| - return IterableMixinWorkaround.fold(this, initialValue, combine);
|
| - }
|
| -
|
| - bool contains(_EntrySync element) => IterableMixinWorkaround.contains(this, element);
|
| -
|
| - void forEach(void f(_EntrySync element)) => IterableMixinWorkaround.forEach(this, f);
|
| -
|
| - String join([String separator = ""]) =>
|
| - IterableMixinWorkaround.joinList(this, separator);
|
| -
|
| - Iterable map(f(_EntrySync element)) =>
|
| - IterableMixinWorkaround.mapList(this, f);
|
| -
|
| - Iterable<_EntrySync> where(bool f(_EntrySync element)) =>
|
| - IterableMixinWorkaround.where(this, f);
|
| -
|
| - Iterable expand(Iterable f(_EntrySync element)) =>
|
| - IterableMixinWorkaround.expand(this, f);
|
| -
|
| - bool every(bool f(_EntrySync element)) => IterableMixinWorkaround.every(this, f);
|
| -
|
| - bool any(bool f(_EntrySync element)) => IterableMixinWorkaround.any(this, f);
|
| -
|
| - List<_EntrySync> toList({ bool growable: true }) =>
|
| - new List<_EntrySync>.from(this, growable: growable);
|
| -
|
| - Set<_EntrySync> toSet() => new Set<_EntrySync>.from(this);
|
| -
|
| - bool get isEmpty => this.length == 0;
|
| -
|
| - Iterable<_EntrySync> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
| -
|
| - Iterable<_EntrySync> takeWhile(bool test(_EntrySync value)) {
|
| - return IterableMixinWorkaround.takeWhile(this, test);
|
| - }
|
| -
|
| - Iterable<_EntrySync> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
| -
|
| - Iterable<_EntrySync> skipWhile(bool test(_EntrySync value)) {
|
| - return IterableMixinWorkaround.skipWhile(this, test);
|
| - }
|
| -
|
| - _EntrySync firstWhere(bool test(_EntrySync value), { _EntrySync orElse() }) {
|
| - return IterableMixinWorkaround.firstWhere(this, test, orElse);
|
| - }
|
| -
|
| - _EntrySync lastWhere(bool test(_EntrySync value), {_EntrySync orElse()}) {
|
| - return IterableMixinWorkaround.lastWhereList(this, test, orElse);
|
| - }
|
| -
|
| - _EntrySync singleWhere(bool test(_EntrySync value)) {
|
| - return IterableMixinWorkaround.singleWhere(this, test);
|
| - }
|
| -
|
| - _EntrySync elementAt(int index) {
|
| - return this[index];
|
| - }
|
| -
|
| - // From Collection<_EntrySync>:
|
| -
|
| - void add(_EntrySync value) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - void addAll(Iterable<_EntrySync> iterable) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - // From List<_EntrySync>:
|
| - void set length(int value) {
|
| - throw new UnsupportedError("Cannot resize immutable List.");
|
| - }
|
| -
|
| - void clear() {
|
| - throw new UnsupportedError("Cannot clear immutable List.");
|
| - }
|
| -
|
| - Iterable<_EntrySync> get reversed {
|
| - return IterableMixinWorkaround.reversedList(this);
|
| - }
|
| -
|
| - void sort([int compare(_EntrySync a, _EntrySync b)]) {
|
| - throw new UnsupportedError("Cannot sort immutable List.");
|
| - }
|
| -
|
| - int indexOf(_EntrySync element, [int start = 0]) =>
|
| - Lists.indexOf(this, element, start, this.length);
|
| -
|
| - int lastIndexOf(_EntrySync element, [int start]) {
|
| - if (start == null) start = length - 1;
|
| - return Lists.lastIndexOf(this, element, start);
|
| - }
|
| -
|
| - _EntrySync get first {
|
| - if (this.length > 0) return this[0];
|
| - throw new StateError("No elements");
|
| - }
|
| -
|
| - _EntrySync get last {
|
| - if (this.length > 0) return this[this.length - 1];
|
| - throw new StateError("No elements");
|
| - }
|
| -
|
| - _EntrySync get single {
|
| - if (length == 1) return this[0];
|
| - if (length == 0) throw new StateError("No elements");
|
| - throw new StateError("More than one element");
|
| - }
|
| -
|
| - void insert(int index, _EntrySync element) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - void insertAll(int index, Iterable<_EntrySync> iterable) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - void setAll(int index, Iterable<_EntrySync> iterable) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| -
|
| - _EntrySync removeAt(int pos) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - _EntrySync removeLast() {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - bool remove(Object object) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - void removeWhere(bool test(_EntrySync element)) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - void retainWhere(bool test(_EntrySync element)) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - void setRange(int start, int end, Iterable<_EntrySync> iterable, [int skipCount=0]) {
|
| - throw new UnsupportedError("Cannot setRange on immutable List.");
|
| - }
|
| -
|
| - void removeRange(int start, int end) {
|
| - throw new UnsupportedError("Cannot removeRange on immutable List.");
|
| - }
|
| -
|
| - void replaceRange(int start, int end, Iterable<_EntrySync> iterable) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| -
|
| - void fillRange(int start, int end, [_EntrySync fillValue]) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| -
|
| - Iterable<_EntrySync> getRange(int start, int end) =>
|
| - IterableMixinWorkaround.getRangeList(this, start, end);
|
| -
|
| - List<_EntrySync> sublist(int start, [int end]) {
|
| - if (end == null) end = length;
|
| - return Lists.getRange(this, start, end, <_EntrySync>[]);
|
| - }
|
| -
|
| - Map<int, _EntrySync> asMap() =>
|
| - IterableMixinWorkaround.asMapList(this);
|
| -
|
| - String toString() {
|
| - StringBuffer buffer = new StringBuffer('[');
|
| - buffer.writeAll(this, ', ');
|
| - buffer.write(']');
|
| - return buffer.toString();
|
| - }
|
| -
|
| - // -- end List<_EntrySync> mixins.
|
| -
|
| - @DomName('EntryArraySync.item')
|
| - @DocsEditable
|
| - _EntrySync item(int index) native "EntryArraySync_item_Callback";
|
| -
|
| -}
|
| -// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| -// for details. All rights reserved. Use of this source code is governed by a
|
| -// BSD-style license that can be found in the LICENSE file.
|
| -
|
| -// WARNING: Do not edit - generated code.
|
| -
|
| -
|
| -@DocsEditable
|
| -@DomName('EntrySync')
|
| -abstract class _EntrySync extends NativeFieldWrapperClass1 {
|
| - _EntrySync.internal();
|
| -
|
| -}
|
| -// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| -// for details. All rights reserved. Use of this source code is governed by a
|
| -// BSD-style license that can be found in the LICENSE file.
|
| -
|
| -// WARNING: Do not edit - generated code.
|
| -
|
| -
|
| -@DocsEditable
|
| -@DomName('FileEntrySync')
|
| -abstract class _FileEntrySync extends _EntrySync {
|
| - _FileEntrySync.internal() : super.internal();
|
| -
|
| -}
|
| -// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| -// for details. All rights reserved. Use of this source code is governed by a
|
| -// BSD-style license that can be found in the LICENSE file.
|
| -
|
| -// WARNING: Do not edit - generated code.
|
| -
|
| -
|
| -@DocsEditable
|
| -@DomName('FileReaderSync')
|
| -abstract class _FileReaderSync extends NativeFieldWrapperClass1 {
|
| - _FileReaderSync.internal();
|
| -
|
| - @DomName('FileReaderSync.FileReaderSync')
|
| - @DocsEditable
|
| - factory _FileReaderSync() {
|
| - return _FileReaderSync._create_1();
|
| - }
|
| -
|
| - @DocsEditable
|
| - static _FileReaderSync _create_1() native "FileReaderSync__create_1constructorCallback";
|
| -
|
| -}
|
| -// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| -// for details. All rights reserved. Use of this source code is governed by a
|
| -// BSD-style license that can be found in the LICENSE file.
|
| -
|
| -// WARNING: Do not edit - generated code.
|
| -
|
| -
|
| -@DocsEditable
|
| -@DomName('FileWriterSync')
|
| -abstract class _FileWriterSync extends NativeFieldWrapperClass1 {
|
| - _FileWriterSync.internal();
|
| -
|
| -}
|
| -// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| -// for details. All rights reserved. Use of this source code is governed by a
|
| -// BSD-style license that can be found in the LICENSE file.
|
| -
|
| -// WARNING: Do not edit - generated code.
|
| -
|
| -
|
| -@DocsEditable
|
| -@DomName('GamepadList')
|
| -class _GamepadList extends NativeFieldWrapperClass1 implements List<Gamepad> {
|
| - _GamepadList.internal();
|
| -
|
| - @DomName('GamepadList.length')
|
| - @DocsEditable
|
| - int get length native "GamepadList_length_Getter";
|
| -
|
| - Gamepad operator[](int index) native "GamepadList_item_Callback";
|
| -
|
| - void operator[]=(int index, Gamepad value) {
|
| - throw new UnsupportedError("Cannot assign element of immutable List.");
|
| - }
|
| - // -- start List<Gamepad> mixins.
|
| - // Gamepad is the element type.
|
| -
|
| - // From Iterable<Gamepad>:
|
| -
|
| - Iterator<Gamepad> get iterator {
|
| - // Note: NodeLists are not fixed size. And most probably length shouldn't
|
| - // be cached in both iterator _and_ forEach method. For now caching it
|
| - // for consistency.
|
| - return new FixedSizeListIterator<Gamepad>(this);
|
| - }
|
| -
|
| - Gamepad reduce(Gamepad combine(Gamepad value, Gamepad element)) {
|
| - return IterableMixinWorkaround.reduce(this, combine);
|
| - }
|
| -
|
| - dynamic fold(dynamic initialValue,
|
| - dynamic combine(dynamic previousValue, Gamepad element)) {
|
| - return IterableMixinWorkaround.fold(this, initialValue, combine);
|
| - }
|
| -
|
| - bool contains(Gamepad element) => IterableMixinWorkaround.contains(this, element);
|
| -
|
| - void forEach(void f(Gamepad element)) => IterableMixinWorkaround.forEach(this, f);
|
| -
|
| - String join([String separator = ""]) =>
|
| - IterableMixinWorkaround.joinList(this, separator);
|
| -
|
| - Iterable map(f(Gamepad element)) =>
|
| - IterableMixinWorkaround.mapList(this, f);
|
| -
|
| - Iterable<Gamepad> where(bool f(Gamepad element)) =>
|
| - IterableMixinWorkaround.where(this, f);
|
| -
|
| - Iterable expand(Iterable f(Gamepad element)) =>
|
| - IterableMixinWorkaround.expand(this, f);
|
| -
|
| - bool every(bool f(Gamepad element)) => IterableMixinWorkaround.every(this, f);
|
| -
|
| - bool any(bool f(Gamepad element)) => IterableMixinWorkaround.any(this, f);
|
| -
|
| - List<Gamepad> toList({ bool growable: true }) =>
|
| - new List<Gamepad>.from(this, growable: growable);
|
| -
|
| - Set<Gamepad> toSet() => new Set<Gamepad>.from(this);
|
| -
|
| - bool get isEmpty => this.length == 0;
|
| -
|
| - Iterable<Gamepad> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
| -
|
| - Iterable<Gamepad> takeWhile(bool test(Gamepad value)) {
|
| - return IterableMixinWorkaround.takeWhile(this, test);
|
| - }
|
| -
|
| - Iterable<Gamepad> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
| -
|
| - Iterable<Gamepad> skipWhile(bool test(Gamepad value)) {
|
| - return IterableMixinWorkaround.skipWhile(this, test);
|
| - }
|
| -
|
| - Gamepad firstWhere(bool test(Gamepad value), { Gamepad orElse() }) {
|
| - return IterableMixinWorkaround.firstWhere(this, test, orElse);
|
| - }
|
| -
|
| - Gamepad lastWhere(bool test(Gamepad value), {Gamepad orElse()}) {
|
| - return IterableMixinWorkaround.lastWhereList(this, test, orElse);
|
| - }
|
| -
|
| - Gamepad singleWhere(bool test(Gamepad value)) {
|
| - return IterableMixinWorkaround.singleWhere(this, test);
|
| - }
|
| -
|
| - Gamepad elementAt(int index) {
|
| - return this[index];
|
| - }
|
| -
|
| - // From Collection<Gamepad>:
|
| -
|
| - void add(Gamepad value) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - void addAll(Iterable<Gamepad> iterable) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - // From List<Gamepad>:
|
| - void set length(int value) {
|
| - throw new UnsupportedError("Cannot resize immutable List.");
|
| - }
|
| -
|
| - void clear() {
|
| - throw new UnsupportedError("Cannot clear immutable List.");
|
| - }
|
| -
|
| - Iterable<Gamepad> get reversed {
|
| - return IterableMixinWorkaround.reversedList(this);
|
| - }
|
| -
|
| - void sort([int compare(Gamepad a, Gamepad b)]) {
|
| - throw new UnsupportedError("Cannot sort immutable List.");
|
| - }
|
| -
|
| - int indexOf(Gamepad element, [int start = 0]) =>
|
| - Lists.indexOf(this, element, start, this.length);
|
| -
|
| - int lastIndexOf(Gamepad element, [int start]) {
|
| - if (start == null) start = length - 1;
|
| - return Lists.lastIndexOf(this, element, start);
|
| - }
|
| -
|
| - Gamepad get first {
|
| - if (this.length > 0) return this[0];
|
| - throw new StateError("No elements");
|
| - }
|
| -
|
| - Gamepad get last {
|
| - if (this.length > 0) return this[this.length - 1];
|
| - throw new StateError("No elements");
|
| - }
|
| -
|
| - Gamepad get single {
|
| - if (length == 1) return this[0];
|
| - if (length == 0) throw new StateError("No elements");
|
| - throw new StateError("More than one element");
|
| - }
|
| -
|
| - void insert(int index, Gamepad element) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - void insertAll(int index, Iterable<Gamepad> iterable) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - void setAll(int index, Iterable<Gamepad> iterable) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| -
|
| - Gamepad removeAt(int pos) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - Gamepad removeLast() {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - bool remove(Object object) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - void removeWhere(bool test(Gamepad element)) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - void retainWhere(bool test(Gamepad element)) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - void setRange(int start, int end, Iterable<Gamepad> iterable, [int skipCount=0]) {
|
| - throw new UnsupportedError("Cannot setRange on immutable List.");
|
| - }
|
| -
|
| - void removeRange(int start, int end) {
|
| - throw new UnsupportedError("Cannot removeRange on immutable List.");
|
| - }
|
| -
|
| - void replaceRange(int start, int end, Iterable<Gamepad> iterable) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| -
|
| - void fillRange(int start, int end, [Gamepad fillValue]) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| -
|
| - Iterable<Gamepad> getRange(int start, int end) =>
|
| - IterableMixinWorkaround.getRangeList(this, start, end);
|
| -
|
| - List<Gamepad> sublist(int start, [int end]) {
|
| - if (end == null) end = length;
|
| - return Lists.getRange(this, start, end, <Gamepad>[]);
|
| - }
|
| -
|
| - Map<int, Gamepad> asMap() =>
|
| - IterableMixinWorkaround.asMapList(this);
|
| -
|
| - String toString() {
|
| - StringBuffer buffer = new StringBuffer('[');
|
| - buffer.writeAll(this, ', ');
|
| - buffer.write(']');
|
| - return buffer.toString();
|
| - }
|
| -
|
| - // -- end List<Gamepad> mixins.
|
| -
|
| - @DomName('GamepadList.item')
|
| - @DocsEditable
|
| - Gamepad item(int index) native "GamepadList_item_Callback";
|
| -
|
| -}
|
| -// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| -// for details. All rights reserved. Use of this source code is governed by a
|
| -// BSD-style license that can be found in the LICENSE file.
|
| -
|
| -// WARNING: Do not edit - generated code.
|
| -
|
| -
|
| -@DocsEditable
|
| -@DomName('HTMLAppletElement')
|
| -abstract class _HTMLAppletElement extends _Element_Merged {
|
| - _HTMLAppletElement.internal() : super.internal();
|
| -
|
| -}
|
| -// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| -// for details. All rights reserved. Use of this source code is governed by a
|
| -// BSD-style license that can be found in the LICENSE file.
|
| -
|
| -// WARNING: Do not edit - generated code.
|
| -
|
| -
|
| -@DocsEditable
|
| -@DomName('HTMLBaseFontElement')
|
| -abstract class _HTMLBaseFontElement extends _Element_Merged {
|
| - _HTMLBaseFontElement.internal() : super.internal();
|
| -
|
| -}
|
| -// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| -// for details. All rights reserved. Use of this source code is governed by a
|
| -// BSD-style license that can be found in the LICENSE file.
|
| -
|
| -// WARNING: Do not edit - generated code.
|
| -
|
| -
|
| -@DocsEditable
|
| -@DomName('HTMLDirectoryElement')
|
| -abstract class _HTMLDirectoryElement extends _Element_Merged {
|
| - _HTMLDirectoryElement.internal() : super.internal();
|
| -
|
| -}
|
| -// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| -// for details. All rights reserved. Use of this source code is governed by a
|
| -// BSD-style license that can be found in the LICENSE file.
|
| -
|
| -// WARNING: Do not edit - generated code.
|
| -
|
| -
|
| -@DocsEditable
|
| -@DomName('HTMLFontElement')
|
| -abstract class _HTMLFontElement extends _Element_Merged {
|
| - _HTMLFontElement.internal() : super.internal();
|
| -
|
| -}
|
| -// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| -// for details. All rights reserved. Use of this source code is governed by a
|
| -// BSD-style license that can be found in the LICENSE file.
|
| -
|
| -// WARNING: Do not edit - generated code.
|
| -
|
| -
|
| -@DocsEditable
|
| -@DomName('HTMLFrameElement')
|
| -abstract class _HTMLFrameElement extends _Element_Merged {
|
| - _HTMLFrameElement.internal() : super.internal();
|
| -
|
| -}
|
| -// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| -// for details. All rights reserved. Use of this source code is governed by a
|
| -// BSD-style license that can be found in the LICENSE file.
|
| -
|
| -// WARNING: Do not edit - generated code.
|
| -
|
| -
|
| -@DocsEditable
|
| -@DomName('HTMLFrameSetElement')
|
| -abstract class _HTMLFrameSetElement extends _Element_Merged {
|
| - _HTMLFrameSetElement.internal() : super.internal();
|
| -
|
| -}
|
| -// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| -// for details. All rights reserved. Use of this source code is governed by a
|
| -// BSD-style license that can be found in the LICENSE file.
|
| -
|
| -// WARNING: Do not edit - generated code.
|
| -
|
| -
|
| -@DocsEditable
|
| -@DomName('HTMLMarqueeElement')
|
| -abstract class _HTMLMarqueeElement extends _Element_Merged {
|
| - _HTMLMarqueeElement.internal() : super.internal();
|
| -
|
| -}
|
| -// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| -// for details. All rights reserved. Use of this source code is governed by a
|
| -// BSD-style license that can be found in the LICENSE file.
|
| -
|
| -// WARNING: Do not edit - generated code.
|
| -
|
| -
|
| -@DocsEditable
|
| -@DomName('NamedNodeMap')
|
| -class _NamedNodeMap extends NativeFieldWrapperClass1 implements List<Node> {
|
| - _NamedNodeMap.internal();
|
| -
|
| - @DomName('NamedNodeMap.length')
|
| - @DocsEditable
|
| - int get length native "NamedNodeMap_length_Getter";
|
| -
|
| - Node operator[](int index) native "NamedNodeMap_item_Callback";
|
| -
|
| - void operator[]=(int index, Node value) {
|
| - throw new UnsupportedError("Cannot assign element of immutable List.");
|
| - }
|
| - // -- start List<Node> mixins.
|
| - // Node is the element type.
|
| -
|
| - // From Iterable<Node>:
|
| -
|
| - Iterator<Node> get iterator {
|
| - // Note: NodeLists are not fixed size. And most probably length shouldn't
|
| - // be cached in both iterator _and_ forEach method. For now caching it
|
| - // for consistency.
|
| - return new FixedSizeListIterator<Node>(this);
|
| - }
|
| -
|
| - Node reduce(Node combine(Node value, Node element)) {
|
| - return IterableMixinWorkaround.reduce(this, combine);
|
| - }
|
| -
|
| - dynamic fold(dynamic initialValue,
|
| - dynamic combine(dynamic previousValue, Node element)) {
|
| - return IterableMixinWorkaround.fold(this, initialValue, combine);
|
| - }
|
| -
|
| - bool contains(Node element) => IterableMixinWorkaround.contains(this, element);
|
| -
|
| - void forEach(void f(Node element)) => IterableMixinWorkaround.forEach(this, f);
|
| -
|
| - String join([String separator = ""]) =>
|
| - IterableMixinWorkaround.joinList(this, separator);
|
| -
|
| - Iterable map(f(Node element)) =>
|
| - IterableMixinWorkaround.mapList(this, f);
|
| -
|
| - Iterable<Node> where(bool f(Node element)) =>
|
| - IterableMixinWorkaround.where(this, f);
|
| -
|
| - Iterable expand(Iterable f(Node element)) =>
|
| - IterableMixinWorkaround.expand(this, f);
|
| -
|
| - bool every(bool f(Node element)) => IterableMixinWorkaround.every(this, f);
|
| -
|
| - bool any(bool f(Node element)) => IterableMixinWorkaround.any(this, f);
|
| -
|
| - List<Node> toList({ bool growable: true }) =>
|
| - new List<Node>.from(this, growable: growable);
|
| -
|
| - Set<Node> toSet() => new Set<Node>.from(this);
|
| -
|
| - bool get isEmpty => this.length == 0;
|
| -
|
| - Iterable<Node> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
| -
|
| - Iterable<Node> takeWhile(bool test(Node value)) {
|
| - return IterableMixinWorkaround.takeWhile(this, test);
|
| - }
|
| -
|
| - Iterable<Node> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
| -
|
| - Iterable<Node> skipWhile(bool test(Node value)) {
|
| - return IterableMixinWorkaround.skipWhile(this, test);
|
| - }
|
| -
|
| - Node firstWhere(bool test(Node value), { Node orElse() }) {
|
| - return IterableMixinWorkaround.firstWhere(this, test, orElse);
|
| - }
|
| -
|
| - Node lastWhere(bool test(Node value), {Node orElse()}) {
|
| - return IterableMixinWorkaround.lastWhereList(this, test, orElse);
|
| - }
|
| -
|
| - Node singleWhere(bool test(Node value)) {
|
| - return IterableMixinWorkaround.singleWhere(this, test);
|
| - }
|
| -
|
| - Node elementAt(int index) {
|
| - return this[index];
|
| - }
|
| -
|
| - // From Collection<Node>:
|
| -
|
| - void add(Node value) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - void addAll(Iterable<Node> iterable) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - // From List<Node>:
|
| - void set length(int value) {
|
| - throw new UnsupportedError("Cannot resize immutable List.");
|
| - }
|
| -
|
| - void clear() {
|
| - throw new UnsupportedError("Cannot clear immutable List.");
|
| - }
|
| -
|
| - Iterable<Node> get reversed {
|
| - return IterableMixinWorkaround.reversedList(this);
|
| - }
|
| -
|
| - void sort([int compare(Node a, Node b)]) {
|
| - throw new UnsupportedError("Cannot sort immutable List.");
|
| - }
|
| -
|
| - int indexOf(Node element, [int start = 0]) =>
|
| - Lists.indexOf(this, element, start, this.length);
|
| -
|
| - int lastIndexOf(Node element, [int start]) {
|
| - if (start == null) start = length - 1;
|
| - return Lists.lastIndexOf(this, element, start);
|
| - }
|
| -
|
| - Node get first {
|
| - if (this.length > 0) return this[0];
|
| - throw new StateError("No elements");
|
| - }
|
| -
|
| - Node get last {
|
| - if (this.length > 0) return this[this.length - 1];
|
| - throw new StateError("No elements");
|
| - }
|
| -
|
| - Node get single {
|
| - if (length == 1) return this[0];
|
| - if (length == 0) throw new StateError("No elements");
|
| - throw new StateError("More than one element");
|
| - }
|
| -
|
| - void insert(int index, Node element) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - void insertAll(int index, Iterable<Node> iterable) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - void setAll(int index, Iterable<Node> iterable) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| -
|
| - Node removeAt(int pos) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - Node removeLast() {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - bool remove(Object object) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - void removeWhere(bool test(Node element)) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - void retainWhere(bool test(Node element)) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - void setRange(int start, int end, Iterable<Node> iterable, [int skipCount=0]) {
|
| - throw new UnsupportedError("Cannot setRange on immutable List.");
|
| - }
|
| -
|
| - void removeRange(int start, int end) {
|
| - throw new UnsupportedError("Cannot removeRange on immutable List.");
|
| - }
|
| -
|
| - void replaceRange(int start, int end, Iterable<Node> iterable) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| -
|
| - void fillRange(int start, int end, [Node fillValue]) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| -
|
| - Iterable<Node> getRange(int start, int end) =>
|
| - IterableMixinWorkaround.getRangeList(this, start, end);
|
| -
|
| - List<Node> sublist(int start, [int end]) {
|
| - if (end == null) end = length;
|
| - return Lists.getRange(this, start, end, <Node>[]);
|
| - }
|
| -
|
| - Map<int, Node> asMap() =>
|
| - IterableMixinWorkaround.asMapList(this);
|
| -
|
| - String toString() {
|
| - StringBuffer buffer = new StringBuffer('[');
|
| - buffer.writeAll(this, ', ');
|
| - buffer.write(']');
|
| - return buffer.toString();
|
| - }
|
| -
|
| - // -- end List<Node> mixins.
|
| -
|
| - @DomName('NamedNodeMap.getNamedItem')
|
| - @DocsEditable
|
| - Node getNamedItem(String name) native "NamedNodeMap_getNamedItem_Callback";
|
| -
|
| - @DomName('NamedNodeMap.getNamedItemNS')
|
| - @DocsEditable
|
| - Node getNamedItemNS(String namespaceURI, String localName) native "NamedNodeMap_getNamedItemNS_Callback";
|
| -
|
| - @DomName('NamedNodeMap.item')
|
| - @DocsEditable
|
| - Node item(int index) native "NamedNodeMap_item_Callback";
|
| -
|
| - @DomName('NamedNodeMap.removeNamedItem')
|
| - @DocsEditable
|
| - Node removeNamedItem(String name) native "NamedNodeMap_removeNamedItem_Callback";
|
| -
|
| - @DomName('NamedNodeMap.removeNamedItemNS')
|
| - @DocsEditable
|
| - Node removeNamedItemNS(String namespaceURI, String localName) native "NamedNodeMap_removeNamedItemNS_Callback";
|
| -
|
| - @DomName('NamedNodeMap.setNamedItem')
|
| - @DocsEditable
|
| - Node setNamedItem(Node node) native "NamedNodeMap_setNamedItem_Callback";
|
| -
|
| - @DomName('NamedNodeMap.setNamedItemNS')
|
| - @DocsEditable
|
| - Node setNamedItemNS(Node node) native "NamedNodeMap_setNamedItemNS_Callback";
|
| -
|
| -}
|
| -// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| -// for details. All rights reserved. Use of this source code is governed by a
|
| -// BSD-style license that can be found in the LICENSE file.
|
| -
|
| -// WARNING: Do not edit - generated code.
|
| -
|
| -
|
| -@DocsEditable
|
| -@DomName('PagePopupController')
|
| -abstract class _PagePopupController extends NativeFieldWrapperClass1 {
|
| - _PagePopupController.internal();
|
| -
|
| -}
|
| -// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| -// for details. All rights reserved. Use of this source code is governed by a
|
| -// BSD-style license that can be found in the LICENSE file.
|
| -
|
| -// WARNING: Do not edit - generated code.
|
| -
|
| -
|
| -@DocsEditable
|
| -@DomName('RGBColor')
|
| -abstract class _RGBColor extends NativeFieldWrapperClass1 {
|
| - _RGBColor.internal();
|
| -
|
| -}
|
| -// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
|
| -// for details. All rights reserved. Use of this source code is governed by a
|
| -// BSD-style license that can be found in the LICENSE file.
|
| -
|
| -
|
| -@DomName('RadioNodeList')
|
| -class _RadioNodeList extends NodeList {
|
| - _RadioNodeList.internal() : super.internal();
|
| -
|
| -}
|
| -// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| -// for details. All rights reserved. Use of this source code is governed by a
|
| -// BSD-style license that can be found in the LICENSE file.
|
| -
|
| -// WARNING: Do not edit - generated code.
|
| -
|
| -
|
| -@DocsEditable
|
| -@DomName('Rect')
|
| -abstract class _Rect extends NativeFieldWrapperClass1 {
|
| - _Rect.internal();
|
| -
|
| -}
|
| -// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| -// for details. All rights reserved. Use of this source code is governed by a
|
| -// BSD-style license that can be found in the LICENSE file.
|
| -
|
| -// WARNING: Do not edit - generated code.
|
| -
|
| -
|
| -@DocsEditable
|
| -@DomName('SharedWorker')
|
| -abstract class _SharedWorker extends AbstractWorker {
|
| - _SharedWorker.internal() : super.internal();
|
| -
|
| - @DomName('SharedWorker.SharedWorker')
|
| - @DocsEditable
|
| - factory _SharedWorker(String scriptURL, [String name]) {
|
| - return _SharedWorker._create_1(scriptURL, name);
|
| - }
|
| -
|
| - @DocsEditable
|
| - static _SharedWorker _create_1(scriptURL, name) native "SharedWorker__create_1constructorCallback";
|
| -
|
| -}
|
| -// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| -// for details. All rights reserved. Use of this source code is governed by a
|
| -// BSD-style license that can be found in the LICENSE file.
|
| -
|
| -// WARNING: Do not edit - generated code.
|
| -
|
| -
|
| -@DocsEditable
|
| -@DomName('SharedWorkerContext')
|
| -abstract class _SharedWorkerContext extends _WorkerContext {
|
| - _SharedWorkerContext.internal() : super.internal();
|
| -
|
| -}
|
| -// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| -// for details. All rights reserved. Use of this source code is governed by a
|
| -// BSD-style license that can be found in the LICENSE file.
|
| -
|
| -// WARNING: Do not edit - generated code.
|
| -
|
| -
|
| -@DocsEditable
|
| -@DomName('SpeechInputResultList')
|
| -class _SpeechInputResultList extends NativeFieldWrapperClass1 implements List<SpeechInputResult> {
|
| - _SpeechInputResultList.internal();
|
| -
|
| - @DomName('SpeechInputResultList.length')
|
| - @DocsEditable
|
| - int get length native "SpeechInputResultList_length_Getter";
|
| -
|
| - SpeechInputResult operator[](int index) native "SpeechInputResultList_item_Callback";
|
| -
|
| - void operator[]=(int index, SpeechInputResult value) {
|
| - throw new UnsupportedError("Cannot assign element of immutable List.");
|
| - }
|
| - // -- start List<SpeechInputResult> mixins.
|
| - // SpeechInputResult is the element type.
|
| -
|
| - // From Iterable<SpeechInputResult>:
|
| -
|
| - Iterator<SpeechInputResult> get iterator {
|
| - // Note: NodeLists are not fixed size. And most probably length shouldn't
|
| - // be cached in both iterator _and_ forEach method. For now caching it
|
| - // for consistency.
|
| - return new FixedSizeListIterator<SpeechInputResult>(this);
|
| - }
|
| -
|
| - SpeechInputResult reduce(SpeechInputResult combine(SpeechInputResult value, SpeechInputResult element)) {
|
| - return IterableMixinWorkaround.reduce(this, combine);
|
| - }
|
| -
|
| - dynamic fold(dynamic initialValue,
|
| - dynamic combine(dynamic previousValue, SpeechInputResult element)) {
|
| - return IterableMixinWorkaround.fold(this, initialValue, combine);
|
| - }
|
| -
|
| - bool contains(SpeechInputResult element) => IterableMixinWorkaround.contains(this, element);
|
| -
|
| - void forEach(void f(SpeechInputResult element)) => IterableMixinWorkaround.forEach(this, f);
|
| -
|
| - String join([String separator = ""]) =>
|
| - IterableMixinWorkaround.joinList(this, separator);
|
| -
|
| - Iterable map(f(SpeechInputResult element)) =>
|
| - IterableMixinWorkaround.mapList(this, f);
|
| -
|
| - Iterable<SpeechInputResult> where(bool f(SpeechInputResult element)) =>
|
| - IterableMixinWorkaround.where(this, f);
|
| -
|
| - Iterable expand(Iterable f(SpeechInputResult element)) =>
|
| - IterableMixinWorkaround.expand(this, f);
|
| -
|
| - bool every(bool f(SpeechInputResult element)) => IterableMixinWorkaround.every(this, f);
|
| -
|
| - bool any(bool f(SpeechInputResult element)) => IterableMixinWorkaround.any(this, f);
|
| -
|
| - List<SpeechInputResult> toList({ bool growable: true }) =>
|
| - new List<SpeechInputResult>.from(this, growable: growable);
|
| -
|
| - Set<SpeechInputResult> toSet() => new Set<SpeechInputResult>.from(this);
|
| -
|
| - bool get isEmpty => this.length == 0;
|
| -
|
| - Iterable<SpeechInputResult> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
| -
|
| - Iterable<SpeechInputResult> takeWhile(bool test(SpeechInputResult value)) {
|
| - return IterableMixinWorkaround.takeWhile(this, test);
|
| - }
|
| -
|
| - Iterable<SpeechInputResult> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
| -
|
| - Iterable<SpeechInputResult> skipWhile(bool test(SpeechInputResult value)) {
|
| - return IterableMixinWorkaround.skipWhile(this, test);
|
| - }
|
| -
|
| - SpeechInputResult firstWhere(bool test(SpeechInputResult value), { SpeechInputResult orElse() }) {
|
| - return IterableMixinWorkaround.firstWhere(this, test, orElse);
|
| - }
|
| -
|
| - SpeechInputResult lastWhere(bool test(SpeechInputResult value), {SpeechInputResult orElse()}) {
|
| - return IterableMixinWorkaround.lastWhereList(this, test, orElse);
|
| - }
|
| -
|
| - SpeechInputResult singleWhere(bool test(SpeechInputResult value)) {
|
| - return IterableMixinWorkaround.singleWhere(this, test);
|
| - }
|
| -
|
| - SpeechInputResult elementAt(int index) {
|
| - return this[index];
|
| - }
|
| -
|
| - // From Collection<SpeechInputResult>:
|
| -
|
| - void add(SpeechInputResult value) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - void addAll(Iterable<SpeechInputResult> iterable) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - // From List<SpeechInputResult>:
|
| - void set length(int value) {
|
| - throw new UnsupportedError("Cannot resize immutable List.");
|
| - }
|
| -
|
| - void clear() {
|
| - throw new UnsupportedError("Cannot clear immutable List.");
|
| - }
|
| -
|
| - Iterable<SpeechInputResult> get reversed {
|
| - return IterableMixinWorkaround.reversedList(this);
|
| - }
|
| -
|
| - void sort([int compare(SpeechInputResult a, SpeechInputResult b)]) {
|
| - throw new UnsupportedError("Cannot sort immutable List.");
|
| - }
|
| -
|
| - int indexOf(SpeechInputResult element, [int start = 0]) =>
|
| - Lists.indexOf(this, element, start, this.length);
|
| -
|
| - int lastIndexOf(SpeechInputResult element, [int start]) {
|
| - if (start == null) start = length - 1;
|
| - return Lists.lastIndexOf(this, element, start);
|
| - }
|
| -
|
| - SpeechInputResult get first {
|
| - if (this.length > 0) return this[0];
|
| - throw new StateError("No elements");
|
| - }
|
| -
|
| - SpeechInputResult get last {
|
| - if (this.length > 0) return this[this.length - 1];
|
| - throw new StateError("No elements");
|
| - }
|
| -
|
| - SpeechInputResult get single {
|
| - if (length == 1) return this[0];
|
| - if (length == 0) throw new StateError("No elements");
|
| - throw new StateError("More than one element");
|
| - }
|
| -
|
| - void insert(int index, SpeechInputResult element) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - void insertAll(int index, Iterable<SpeechInputResult> iterable) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - void setAll(int index, Iterable<SpeechInputResult> iterable) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| -
|
| - SpeechInputResult removeAt(int pos) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - SpeechInputResult removeLast() {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - bool remove(Object object) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - void removeWhere(bool test(SpeechInputResult element)) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - void retainWhere(bool test(SpeechInputResult element)) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - void setRange(int start, int end, Iterable<SpeechInputResult> iterable, [int skipCount=0]) {
|
| - throw new UnsupportedError("Cannot setRange on immutable List.");
|
| - }
|
| -
|
| - void removeRange(int start, int end) {
|
| - throw new UnsupportedError("Cannot removeRange on immutable List.");
|
| - }
|
| -
|
| - void replaceRange(int start, int end, Iterable<SpeechInputResult> iterable) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| -
|
| - void fillRange(int start, int end, [SpeechInputResult fillValue]) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| -
|
| - Iterable<SpeechInputResult> getRange(int start, int end) =>
|
| - IterableMixinWorkaround.getRangeList(this, start, end);
|
| -
|
| - List<SpeechInputResult> sublist(int start, [int end]) {
|
| - if (end == null) end = length;
|
| - return Lists.getRange(this, start, end, <SpeechInputResult>[]);
|
| - }
|
| -
|
| - Map<int, SpeechInputResult> asMap() =>
|
| - IterableMixinWorkaround.asMapList(this);
|
| -
|
| - String toString() {
|
| - StringBuffer buffer = new StringBuffer('[');
|
| - buffer.writeAll(this, ', ');
|
| - buffer.write(']');
|
| - return buffer.toString();
|
| - }
|
| -
|
| - // -- end List<SpeechInputResult> mixins.
|
| -
|
| - @DomName('SpeechInputResultList.item')
|
| - @DocsEditable
|
| - SpeechInputResult item(int index) native "SpeechInputResultList_item_Callback";
|
| -
|
| -}
|
| -// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| -// for details. All rights reserved. Use of this source code is governed by a
|
| -// BSD-style license that can be found in the LICENSE file.
|
| -
|
| -// WARNING: Do not edit - generated code.
|
| -
|
| -
|
| -@DocsEditable
|
| -@DomName('SpeechRecognitionResultList')
|
| -class _SpeechRecognitionResultList extends NativeFieldWrapperClass1 implements List<SpeechRecognitionResult> {
|
| - _SpeechRecognitionResultList.internal();
|
| -
|
| - @DomName('SpeechRecognitionResultList.length')
|
| - @DocsEditable
|
| - int get length native "SpeechRecognitionResultList_length_Getter";
|
| -
|
| - SpeechRecognitionResult operator[](int index) native "SpeechRecognitionResultList_item_Callback";
|
| -
|
| - void operator[]=(int index, SpeechRecognitionResult value) {
|
| - throw new UnsupportedError("Cannot assign element of immutable List.");
|
| - }
|
| - // -- start List<SpeechRecognitionResult> mixins.
|
| - // SpeechRecognitionResult is the element type.
|
| -
|
| - // From Iterable<SpeechRecognitionResult>:
|
| -
|
| - Iterator<SpeechRecognitionResult> get iterator {
|
| - // Note: NodeLists are not fixed size. And most probably length shouldn't
|
| - // be cached in both iterator _and_ forEach method. For now caching it
|
| - // for consistency.
|
| - return new FixedSizeListIterator<SpeechRecognitionResult>(this);
|
| - }
|
| -
|
| - SpeechRecognitionResult reduce(SpeechRecognitionResult combine(SpeechRecognitionResult value, SpeechRecognitionResult element)) {
|
| - return IterableMixinWorkaround.reduce(this, combine);
|
| - }
|
| -
|
| - dynamic fold(dynamic initialValue,
|
| - dynamic combine(dynamic previousValue, SpeechRecognitionResult element)) {
|
| - return IterableMixinWorkaround.fold(this, initialValue, combine);
|
| - }
|
| -
|
| - bool contains(SpeechRecognitionResult element) => IterableMixinWorkaround.contains(this, element);
|
| -
|
| - void forEach(void f(SpeechRecognitionResult element)) => IterableMixinWorkaround.forEach(this, f);
|
| -
|
| - String join([String separator = ""]) =>
|
| - IterableMixinWorkaround.joinList(this, separator);
|
| -
|
| - Iterable map(f(SpeechRecognitionResult element)) =>
|
| - IterableMixinWorkaround.mapList(this, f);
|
| -
|
| - Iterable<SpeechRecognitionResult> where(bool f(SpeechRecognitionResult element)) =>
|
| - IterableMixinWorkaround.where(this, f);
|
| -
|
| - Iterable expand(Iterable f(SpeechRecognitionResult element)) =>
|
| - IterableMixinWorkaround.expand(this, f);
|
| -
|
| - bool every(bool f(SpeechRecognitionResult element)) => IterableMixinWorkaround.every(this, f);
|
| -
|
| - bool any(bool f(SpeechRecognitionResult element)) => IterableMixinWorkaround.any(this, f);
|
| -
|
| - List<SpeechRecognitionResult> toList({ bool growable: true }) =>
|
| - new List<SpeechRecognitionResult>.from(this, growable: growable);
|
| -
|
| - Set<SpeechRecognitionResult> toSet() => new Set<SpeechRecognitionResult>.from(this);
|
| -
|
| - bool get isEmpty => this.length == 0;
|
| -
|
| - Iterable<SpeechRecognitionResult> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
| -
|
| - Iterable<SpeechRecognitionResult> takeWhile(bool test(SpeechRecognitionResult value)) {
|
| - return IterableMixinWorkaround.takeWhile(this, test);
|
| - }
|
| -
|
| - Iterable<SpeechRecognitionResult> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
| -
|
| - Iterable<SpeechRecognitionResult> skipWhile(bool test(SpeechRecognitionResult value)) {
|
| - return IterableMixinWorkaround.skipWhile(this, test);
|
| - }
|
| -
|
| - SpeechRecognitionResult firstWhere(bool test(SpeechRecognitionResult value), { SpeechRecognitionResult orElse() }) {
|
| - return IterableMixinWorkaround.firstWhere(this, test, orElse);
|
| - }
|
| -
|
| - SpeechRecognitionResult lastWhere(bool test(SpeechRecognitionResult value), {SpeechRecognitionResult orElse()}) {
|
| - return IterableMixinWorkaround.lastWhereList(this, test, orElse);
|
| - }
|
| -
|
| - SpeechRecognitionResult singleWhere(bool test(SpeechRecognitionResult value)) {
|
| - return IterableMixinWorkaround.singleWhere(this, test);
|
| - }
|
| -
|
| - SpeechRecognitionResult elementAt(int index) {
|
| - return this[index];
|
| - }
|
| -
|
| - // From Collection<SpeechRecognitionResult>:
|
| -
|
| - void add(SpeechRecognitionResult value) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - void addAll(Iterable<SpeechRecognitionResult> iterable) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - // From List<SpeechRecognitionResult>:
|
| - void set length(int value) {
|
| - throw new UnsupportedError("Cannot resize immutable List.");
|
| - }
|
| -
|
| - void clear() {
|
| - throw new UnsupportedError("Cannot clear immutable List.");
|
| - }
|
| -
|
| - Iterable<SpeechRecognitionResult> get reversed {
|
| - return IterableMixinWorkaround.reversedList(this);
|
| - }
|
| -
|
| - void sort([int compare(SpeechRecognitionResult a, SpeechRecognitionResult b)]) {
|
| - throw new UnsupportedError("Cannot sort immutable List.");
|
| - }
|
| -
|
| - int indexOf(SpeechRecognitionResult element, [int start = 0]) =>
|
| - Lists.indexOf(this, element, start, this.length);
|
| -
|
| - int lastIndexOf(SpeechRecognitionResult element, [int start]) {
|
| - if (start == null) start = length - 1;
|
| - return Lists.lastIndexOf(this, element, start);
|
| - }
|
| -
|
| - SpeechRecognitionResult get first {
|
| - if (this.length > 0) return this[0];
|
| - throw new StateError("No elements");
|
| - }
|
| -
|
| - SpeechRecognitionResult get last {
|
| - if (this.length > 0) return this[this.length - 1];
|
| - throw new StateError("No elements");
|
| - }
|
| -
|
| - SpeechRecognitionResult get single {
|
| - if (length == 1) return this[0];
|
| - if (length == 0) throw new StateError("No elements");
|
| - throw new StateError("More than one element");
|
| - }
|
| -
|
| - void insert(int index, SpeechRecognitionResult element) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - void insertAll(int index, Iterable<SpeechRecognitionResult> iterable) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - void setAll(int index, Iterable<SpeechRecognitionResult> iterable) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| -
|
| - SpeechRecognitionResult removeAt(int pos) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - SpeechRecognitionResult removeLast() {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - bool remove(Object object) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - void removeWhere(bool test(SpeechRecognitionResult element)) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - void retainWhere(bool test(SpeechRecognitionResult element)) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - void setRange(int start, int end, Iterable<SpeechRecognitionResult> iterable, [int skipCount=0]) {
|
| - throw new UnsupportedError("Cannot setRange on immutable List.");
|
| - }
|
| -
|
| - void removeRange(int start, int end) {
|
| - throw new UnsupportedError("Cannot removeRange on immutable List.");
|
| - }
|
| -
|
| - void replaceRange(int start, int end, Iterable<SpeechRecognitionResult> iterable) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| -
|
| - void fillRange(int start, int end, [SpeechRecognitionResult fillValue]) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| + Node getNamedItem(String name) native "NamedNodeMap_getNamedItem_Callback";
|
|
|
| - Iterable<SpeechRecognitionResult> getRange(int start, int end) =>
|
| - IterableMixinWorkaround.getRangeList(this, start, end);
|
| + @DomName('NamedNodeMap.getNamedItemNS')
|
| + @DocsEditable
|
| + Node getNamedItemNS(String namespaceURI, String localName) native "NamedNodeMap_getNamedItemNS_Callback";
|
|
|
| - List<SpeechRecognitionResult> sublist(int start, [int end]) {
|
| - if (end == null) end = length;
|
| - return Lists.getRange(this, start, end, <SpeechRecognitionResult>[]);
|
| - }
|
| + @DomName('NamedNodeMap.item')
|
| + @DocsEditable
|
| + Node item(int index) native "NamedNodeMap_item_Callback";
|
|
|
| - Map<int, SpeechRecognitionResult> asMap() =>
|
| - IterableMixinWorkaround.asMapList(this);
|
| + @DomName('NamedNodeMap.removeNamedItem')
|
| + @DocsEditable
|
| + Node removeNamedItem(String name) native "NamedNodeMap_removeNamedItem_Callback";
|
|
|
| - String toString() {
|
| - StringBuffer buffer = new StringBuffer('[');
|
| - buffer.writeAll(this, ', ');
|
| - buffer.write(']');
|
| - return buffer.toString();
|
| - }
|
| + @DomName('NamedNodeMap.removeNamedItemNS')
|
| + @DocsEditable
|
| + Node removeNamedItemNS(String namespaceURI, String localName) native "NamedNodeMap_removeNamedItemNS_Callback";
|
|
|
| - // -- end List<SpeechRecognitionResult> mixins.
|
| + @DomName('NamedNodeMap.setNamedItem')
|
| + @DocsEditable
|
| + Node setNamedItem(Node node) native "NamedNodeMap_setNamedItem_Callback";
|
|
|
| - @DomName('SpeechRecognitionResultList.item')
|
| + @DomName('NamedNodeMap.setNamedItemNS')
|
| @DocsEditable
|
| - SpeechRecognitionResult item(int index) native "SpeechRecognitionResultList_item_Callback";
|
| + Node setNamedItemNS(Node node) native "NamedNodeMap_setNamedItemNS_Callback";
|
|
|
| }
|
| // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| @@ -27529,210 +23488,181 @@ class _SpeechRecognitionResultList extends NativeFieldWrapperClass1 implements L
|
|
|
|
|
| @DocsEditable
|
| -@DomName('StyleSheetList')
|
| -class _StyleSheetList extends NativeFieldWrapperClass1 implements List<StyleSheet> {
|
| - _StyleSheetList.internal();
|
| +@DomName('PagePopupController')
|
| +abstract class _PagePopupController extends NativeFieldWrapperClass1 {
|
| + _PagePopupController.internal();
|
|
|
| - @DomName('StyleSheetList.length')
|
| - @DocsEditable
|
| - int get length native "StyleSheetList_length_Getter";
|
| +}
|
| +// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
|
|
| - StyleSheet operator[](int index) native "StyleSheetList_item_Callback";
|
| +// WARNING: Do not edit - generated code.
|
|
|
| - void operator[]=(int index, StyleSheet value) {
|
| - throw new UnsupportedError("Cannot assign element of immutable List.");
|
| - }
|
| - // -- start List<StyleSheet> mixins.
|
| - // StyleSheet is the element type.
|
|
|
| - // From Iterable<StyleSheet>:
|
| +@DocsEditable
|
| +@DomName('RGBColor')
|
| +abstract class _RGBColor extends NativeFieldWrapperClass1 {
|
| + _RGBColor.internal();
|
|
|
| - Iterator<StyleSheet> get iterator {
|
| - // Note: NodeLists are not fixed size. And most probably length shouldn't
|
| - // be cached in both iterator _and_ forEach method. For now caching it
|
| - // for consistency.
|
| - return new FixedSizeListIterator<StyleSheet>(this);
|
| - }
|
| +}
|
| +// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
|
|
| - StyleSheet reduce(StyleSheet combine(StyleSheet value, StyleSheet element)) {
|
| - return IterableMixinWorkaround.reduce(this, combine);
|
| - }
|
|
|
| - dynamic fold(dynamic initialValue,
|
| - dynamic combine(dynamic previousValue, StyleSheet element)) {
|
| - return IterableMixinWorkaround.fold(this, initialValue, combine);
|
| - }
|
| +@DomName('RadioNodeList')
|
| +class _RadioNodeList extends NodeList {
|
| + _RadioNodeList.internal() : super.internal();
|
|
|
| - bool contains(StyleSheet element) => IterableMixinWorkaround.contains(this, element);
|
| +}
|
| +// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
|
|
| - void forEach(void f(StyleSheet element)) => IterableMixinWorkaround.forEach(this, f);
|
| +// WARNING: Do not edit - generated code.
|
|
|
| - String join([String separator = ""]) =>
|
| - IterableMixinWorkaround.joinList(this, separator);
|
|
|
| - Iterable map(f(StyleSheet element)) =>
|
| - IterableMixinWorkaround.mapList(this, f);
|
| +@DocsEditable
|
| +@DomName('Rect')
|
| +abstract class _Rect extends NativeFieldWrapperClass1 {
|
| + _Rect.internal();
|
|
|
| - Iterable<StyleSheet> where(bool f(StyleSheet element)) =>
|
| - IterableMixinWorkaround.where(this, f);
|
| +}
|
| +// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
|
|
| - Iterable expand(Iterable f(StyleSheet element)) =>
|
| - IterableMixinWorkaround.expand(this, f);
|
| +// WARNING: Do not edit - generated code.
|
|
|
| - bool every(bool f(StyleSheet element)) => IterableMixinWorkaround.every(this, f);
|
|
|
| - bool any(bool f(StyleSheet element)) => IterableMixinWorkaround.any(this, f);
|
| +@DocsEditable
|
| +@DomName('SharedWorker')
|
| +abstract class _SharedWorker extends AbstractWorker {
|
| + _SharedWorker.internal() : super.internal();
|
|
|
| - List<StyleSheet> toList({ bool growable: true }) =>
|
| - new List<StyleSheet>.from(this, growable: growable);
|
| + @DomName('SharedWorker.SharedWorker')
|
| + @DocsEditable
|
| + factory _SharedWorker(String scriptURL, [String name]) {
|
| + return _SharedWorker._create_1(scriptURL, name);
|
| + }
|
|
|
| - Set<StyleSheet> toSet() => new Set<StyleSheet>.from(this);
|
| + @DocsEditable
|
| + static _SharedWorker _create_1(scriptURL, name) native "SharedWorker__create_1constructorCallback";
|
|
|
| - bool get isEmpty => this.length == 0;
|
| +}
|
| +// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
|
|
| - Iterable<StyleSheet> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
| +// WARNING: Do not edit - generated code.
|
|
|
| - Iterable<StyleSheet> takeWhile(bool test(StyleSheet value)) {
|
| - return IterableMixinWorkaround.takeWhile(this, test);
|
| - }
|
|
|
| - Iterable<StyleSheet> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
| +@DocsEditable
|
| +@DomName('SharedWorkerContext')
|
| +abstract class _SharedWorkerContext extends _WorkerContext {
|
| + _SharedWorkerContext.internal() : super.internal();
|
|
|
| - Iterable<StyleSheet> skipWhile(bool test(StyleSheet value)) {
|
| - return IterableMixinWorkaround.skipWhile(this, test);
|
| - }
|
| +}
|
| +// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
|
|
| - StyleSheet firstWhere(bool test(StyleSheet value), { StyleSheet orElse() }) {
|
| - return IterableMixinWorkaround.firstWhere(this, test, orElse);
|
| - }
|
| +// WARNING: Do not edit - generated code.
|
|
|
| - StyleSheet lastWhere(bool test(StyleSheet value), {StyleSheet orElse()}) {
|
| - return IterableMixinWorkaround.lastWhereList(this, test, orElse);
|
| - }
|
|
|
| - StyleSheet singleWhere(bool test(StyleSheet value)) {
|
| - return IterableMixinWorkaround.singleWhere(this, test);
|
| - }
|
| +@DocsEditable
|
| +@DomName('SpeechInputResultList')
|
| +class _SpeechInputResultList extends NativeFieldWrapperClass1 with ListMixin<SpeechInputResult>, ImmutableListMixin<SpeechInputResult> implements List<SpeechInputResult> {
|
| + _SpeechInputResultList.internal();
|
|
|
| - StyleSheet elementAt(int index) {
|
| - return this[index];
|
| - }
|
| + @DomName('SpeechInputResultList.length')
|
| + @DocsEditable
|
| + int get length native "SpeechInputResultList_length_Getter";
|
|
|
| - // From Collection<StyleSheet>:
|
| + SpeechInputResult operator[](int index) native "SpeechInputResultList_item_Callback";
|
|
|
| - void add(StyleSheet value) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| + void operator[]=(int index, SpeechInputResult value) {
|
| + throw new UnsupportedError("Cannot assign element of immutable List.");
|
| }
|
| + // -- start List<SpeechInputResult> mixins.
|
| + // SpeechInputResult is the element type.
|
|
|
| - void addAll(Iterable<StyleSheet> iterable) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
|
|
| - // From List<StyleSheet>:
|
| void set length(int value) {
|
| throw new UnsupportedError("Cannot resize immutable List.");
|
| }
|
|
|
| - void clear() {
|
| - throw new UnsupportedError("Cannot clear immutable List.");
|
| - }
|
| -
|
| - Iterable<StyleSheet> get reversed {
|
| - return IterableMixinWorkaround.reversedList(this);
|
| - }
|
| -
|
| - void sort([int compare(StyleSheet a, StyleSheet b)]) {
|
| - throw new UnsupportedError("Cannot sort immutable List.");
|
| - }
|
| + // -- end List<SpeechInputResult> mixins.
|
|
|
| - int indexOf(StyleSheet element, [int start = 0]) =>
|
| - Lists.indexOf(this, element, start, this.length);
|
| + @DomName('SpeechInputResultList.item')
|
| + @DocsEditable
|
| + SpeechInputResult item(int index) native "SpeechInputResultList_item_Callback";
|
|
|
| - int lastIndexOf(StyleSheet element, [int start]) {
|
| - if (start == null) start = length - 1;
|
| - return Lists.lastIndexOf(this, element, start);
|
| - }
|
| +}
|
| +// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
|
|
| - StyleSheet get first {
|
| - if (this.length > 0) return this[0];
|
| - throw new StateError("No elements");
|
| - }
|
| +// WARNING: Do not edit - generated code.
|
|
|
| - StyleSheet get last {
|
| - if (this.length > 0) return this[this.length - 1];
|
| - throw new StateError("No elements");
|
| - }
|
|
|
| - StyleSheet get single {
|
| - if (length == 1) return this[0];
|
| - if (length == 0) throw new StateError("No elements");
|
| - throw new StateError("More than one element");
|
| - }
|
| +@DocsEditable
|
| +@DomName('SpeechRecognitionResultList')
|
| +class _SpeechRecognitionResultList extends NativeFieldWrapperClass1 with ListMixin<SpeechRecognitionResult>, ImmutableListMixin<SpeechRecognitionResult> implements List<SpeechRecognitionResult> {
|
| + _SpeechRecognitionResultList.internal();
|
|
|
| - void insert(int index, StyleSheet element) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| + @DomName('SpeechRecognitionResultList.length')
|
| + @DocsEditable
|
| + int get length native "SpeechRecognitionResultList_length_Getter";
|
|
|
| - void insertAll(int index, Iterable<StyleSheet> iterable) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| + SpeechRecognitionResult operator[](int index) native "SpeechRecognitionResultList_item_Callback";
|
|
|
| - void setAll(int index, Iterable<StyleSheet> iterable) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| + void operator[]=(int index, SpeechRecognitionResult value) {
|
| + throw new UnsupportedError("Cannot assign element of immutable List.");
|
| }
|
| + // -- start List<SpeechRecognitionResult> mixins.
|
| + // SpeechRecognitionResult is the element type.
|
|
|
| - StyleSheet removeAt(int pos) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
|
|
| - StyleSheet removeLast() {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| + void set length(int value) {
|
| + throw new UnsupportedError("Cannot resize immutable List.");
|
| }
|
|
|
| - bool remove(Object object) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| + // -- end List<SpeechRecognitionResult> mixins.
|
|
|
| - void removeWhere(bool test(StyleSheet element)) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| + @DomName('SpeechRecognitionResultList.item')
|
| + @DocsEditable
|
| + SpeechRecognitionResult item(int index) native "SpeechRecognitionResultList_item_Callback";
|
|
|
| - void retainWhere(bool test(StyleSheet element)) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| +}
|
| +// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
|
|
| - void setRange(int start, int end, Iterable<StyleSheet> iterable, [int skipCount=0]) {
|
| - throw new UnsupportedError("Cannot setRange on immutable List.");
|
| - }
|
| +// WARNING: Do not edit - generated code.
|
|
|
| - void removeRange(int start, int end) {
|
| - throw new UnsupportedError("Cannot removeRange on immutable List.");
|
| - }
|
|
|
| - void replaceRange(int start, int end, Iterable<StyleSheet> iterable) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| +@DocsEditable
|
| +@DomName('StyleSheetList')
|
| +class _StyleSheetList extends NativeFieldWrapperClass1 with ListMixin<StyleSheet>, ImmutableListMixin<StyleSheet> implements List<StyleSheet> {
|
| + _StyleSheetList.internal();
|
|
|
| - void fillRange(int start, int end, [StyleSheet fillValue]) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| + @DomName('StyleSheetList.length')
|
| + @DocsEditable
|
| + int get length native "StyleSheetList_length_Getter";
|
|
|
| - Iterable<StyleSheet> getRange(int start, int end) =>
|
| - IterableMixinWorkaround.getRangeList(this, start, end);
|
| + StyleSheet operator[](int index) native "StyleSheetList_item_Callback";
|
|
|
| - List<StyleSheet> sublist(int start, [int end]) {
|
| - if (end == null) end = length;
|
| - return Lists.getRange(this, start, end, <StyleSheet>[]);
|
| + void operator[]=(int index, StyleSheet value) {
|
| + throw new UnsupportedError("Cannot assign element of immutable List.");
|
| }
|
| + // -- start List<StyleSheet> mixins.
|
| + // StyleSheet is the element type.
|
|
|
| - Map<int, StyleSheet> asMap() =>
|
| - IterableMixinWorkaround.asMapList(this);
|
|
|
| - String toString() {
|
| - StringBuffer buffer = new StringBuffer('[');
|
| - buffer.writeAll(this, ', ');
|
| - buffer.write(']');
|
| - return buffer.toString();
|
| + void set length(int value) {
|
| + throw new UnsupportedError("Cannot resize immutable List.");
|
| }
|
|
|
| // -- end List<StyleSheet> mixins.
|
| @@ -28558,6 +24488,82 @@ class _CustomEventStreamProvider<T extends Event>
|
| // BSD-style license that can be found in the LICENSE file.
|
|
|
|
|
| +abstract class ImmutableListMixin<E> implements List<E> {
|
| + // From Iterable<$E>:
|
| + Iterator<E> get iterator {
|
| + // Note: NodeLists are not fixed size. And most probably length shouldn't
|
| + // be cached in both iterator _and_ forEach method. For now caching it
|
| + // for consistency.
|
| + return new FixedSizeListIterator<E>(this);
|
| + }
|
| +
|
| + // From Collection<E>:
|
| + void add(E value) {
|
| + throw new UnsupportedError("Cannot add to immutable List.");
|
| + }
|
| +
|
| + void addAll(Iterable<E> iterable) {
|
| + throw new UnsupportedError("Cannot add to immutable List.");
|
| + }
|
| +
|
| + // From List<E>:
|
| + void sort([int compare(E a, E b)]) {
|
| + throw new UnsupportedError("Cannot sort immutable List.");
|
| + }
|
| +
|
| + void insert(int index, E element) {
|
| + throw new UnsupportedError("Cannot add to immutable List.");
|
| + }
|
| +
|
| + void insertAll(int index, Iterable<E> iterable) {
|
| + throw new UnsupportedError("Cannot add to immutable List.");
|
| + }
|
| +
|
| + void setAll(int index, Iterable<E> iterable) {
|
| + throw new UnsupportedError("Cannot modify an immutable List.");
|
| + }
|
| +
|
| + E removeAt(int pos) {
|
| + throw new UnsupportedError("Cannot remove from immutable List.");
|
| + }
|
| +
|
| + E removeLast() {
|
| + throw new UnsupportedError("Cannot remove from immutable List.");
|
| + }
|
| +
|
| + void remove(Object object) {
|
| + throw new UnsupportedError("Cannot remove from immutable List.");
|
| + }
|
| +
|
| + void removeWhere(bool test(E element)) {
|
| + throw new UnsupportedError("Cannot remove from immutable List.");
|
| + }
|
| +
|
| + void retainWhere(bool test(E element)) {
|
| + throw new UnsupportedError("Cannot remove from immutable List.");
|
| + }
|
| +
|
| + void setRange(int start, int end, Iterable<E> iterable, [int skipCount]) {
|
| + throw new UnsupportedError("Cannot setRange on immutable List.");
|
| + }
|
| +
|
| + void removeRange(int start, int end) {
|
| + throw new UnsupportedError("Cannot removeRange on immutable List.");
|
| + }
|
| +
|
| + void replaceRange(int start, int end, Iterable<E> iterable) {
|
| + throw new UnsupportedError("Cannot modify an immutable List.");
|
| + }
|
| +
|
| + void fillRange(int start, int end, [E fillValue]) {
|
| + throw new UnsupportedError("Cannot modify an immutable List.");
|
| + }
|
| +}
|
| +// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
| +
|
| +
|
| /**
|
| * Internal class that does the actual calculations to determine keyCode and
|
| * charCode for keydown, keypress, and keyup events for all browsers.
|
|
|