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

Unified Diff: lib/html/dartium/html_dartium.dart

Issue 11235054: Removed IllegalAccessException and UnsupportedOperationException. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
Download patch
Index: lib/html/dartium/html_dartium.dart
diff --git a/lib/html/dartium/html_dartium.dart b/lib/html/dartium/html_dartium.dart
index b2b4466831b3b78c50813dfa07c8eac43b86d742..6d592836e8cdf5876ee07c647667d72f6dea4076 100644
--- a/lib/html/dartium/html_dartium.dart
+++ b/lib/html/dartium/html_dartium.dart
@@ -2790,7 +2790,7 @@ class _CSSRuleListImpl extends NativeFieldWrapperClass1 implements List<CSSRule>
CSSRule operator[](int index) native "CSSRuleList_item_Callback";
void operator[]=(int index, CSSRule value) {
- throw new UnsupportedOperationException("Cannot assign element of immutable List.");
+ throw new StateError("Cannot assign element of immutable List.");
}
// -- start List<CSSRule> mixins.
// CSSRule is the element type.
@@ -2807,15 +2807,15 @@ class _CSSRuleListImpl extends NativeFieldWrapperClass1 implements List<CSSRule>
// From Collection<CSSRule>:
void add(CSSRule value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addLast(CSSRule value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addAll(Collection<CSSRule> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
bool contains(CSSRule element) => _Collections.contains(this, element);
@@ -2836,7 +2836,7 @@ class _CSSRuleListImpl extends NativeFieldWrapperClass1 implements List<CSSRule>
// From List<CSSRule>:
void sort([Comparator<CSSRule> compare = Comparable.compare]) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
+ throw new StateError("Cannot sort immutable List.");
}
int indexOf(CSSRule element, [int start = 0]) =>
@@ -2850,19 +2850,19 @@ class _CSSRuleListImpl extends NativeFieldWrapperClass1 implements List<CSSRule>
CSSRule last() => this[length - 1];
CSSRule removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
+ throw new StateError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<CSSRule> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
+ throw new StateError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
+ throw new StateError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [CSSRule initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
+ throw new StateError("Cannot insertRange on immutable List.");
}
List<CSSRule> getRange(int start, int rangeLength) =>
@@ -7806,7 +7806,7 @@ class _CSSValueListImpl extends _CSSValueImpl implements List<CSSValue> {
CSSValue operator[](int index) native "CSSValueList_item_Callback";
void operator[]=(int index, CSSValue value) {
- throw new UnsupportedOperationException("Cannot assign element of immutable List.");
+ throw new StateError("Cannot assign element of immutable List.");
}
// -- start List<CSSValue> mixins.
// CSSValue is the element type.
@@ -7823,15 +7823,15 @@ class _CSSValueListImpl extends _CSSValueImpl implements List<CSSValue> {
// From Collection<CSSValue>:
void add(CSSValue value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addLast(CSSValue value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addAll(Collection<CSSValue> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
bool contains(CSSValue element) => _Collections.contains(this, element);
@@ -7852,7 +7852,7 @@ class _CSSValueListImpl extends _CSSValueImpl implements List<CSSValue> {
// From List<CSSValue>:
void sort([Comparator<CSSValue> compare = Comparable.compare]) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
+ throw new StateError("Cannot sort immutable List.");
}
int indexOf(CSSValue element, [int start = 0]) =>
@@ -7866,19 +7866,19 @@ class _CSSValueListImpl extends _CSSValueImpl implements List<CSSValue> {
CSSValue last() => this[length - 1];
CSSValue removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
+ throw new StateError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<CSSValue> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
+ throw new StateError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
+ throw new StateError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [CSSValue initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
+ throw new StateError("Cannot insertRange on immutable List.");
}
List<CSSValue> getRange(int start, int rangeLength) =>
@@ -8797,7 +8797,7 @@ class _ClientRectListImpl extends NativeFieldWrapperClass1 implements List<Clien
ClientRect operator[](int index) native "ClientRectList_item_Callback";
void operator[]=(int index, ClientRect value) {
- throw new UnsupportedOperationException("Cannot assign element of immutable List.");
+ throw new StateError("Cannot assign element of immutable List.");
}
// -- start List<ClientRect> mixins.
// ClientRect is the element type.
@@ -8814,15 +8814,15 @@ class _ClientRectListImpl extends NativeFieldWrapperClass1 implements List<Clien
// From Collection<ClientRect>:
void add(ClientRect value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addLast(ClientRect value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addAll(Collection<ClientRect> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
bool contains(ClientRect element) => _Collections.contains(this, element);
@@ -8843,7 +8843,7 @@ class _ClientRectListImpl extends NativeFieldWrapperClass1 implements List<Clien
// From List<ClientRect>:
void sort([Comparator<ClientRect> compare = Comparable.compare]) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
+ throw new StateError("Cannot sort immutable List.");
}
int indexOf(ClientRect element, [int start = 0]) =>
@@ -8857,19 +8857,19 @@ class _ClientRectListImpl extends NativeFieldWrapperClass1 implements List<Clien
ClientRect last() => this[length - 1];
ClientRect removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
+ throw new StateError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<ClientRect> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
+ throw new StateError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
+ throw new StateError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [ClientRect initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
+ throw new StateError("Cannot insertRange on immutable List.");
}
List<ClientRect> getRange(int start, int rangeLength) =>
@@ -9751,7 +9751,7 @@ class _DOMMimeTypeArrayImpl extends NativeFieldWrapperClass1 implements DOMMimeT
DOMMimeType operator[](int index) native "DOMMimeTypeArray_item_Callback";
void operator[]=(int index, DOMMimeType value) {
- throw new UnsupportedOperationException("Cannot assign element of immutable List.");
+ throw new StateError("Cannot assign element of immutable List.");
}
// -- start List<DOMMimeType> mixins.
// DOMMimeType is the element type.
@@ -9768,15 +9768,15 @@ class _DOMMimeTypeArrayImpl extends NativeFieldWrapperClass1 implements DOMMimeT
// From Collection<DOMMimeType>:
void add(DOMMimeType value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addLast(DOMMimeType value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addAll(Collection<DOMMimeType> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
bool contains(DOMMimeType element) => _Collections.contains(this, element);
@@ -9797,7 +9797,7 @@ class _DOMMimeTypeArrayImpl extends NativeFieldWrapperClass1 implements DOMMimeT
// From List<DOMMimeType>:
void sort([Comparator<DOMMimeType> compare = Comparable.compare]) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
+ throw new StateError("Cannot sort immutable List.");
}
int indexOf(DOMMimeType element, [int start = 0]) =>
@@ -9811,19 +9811,19 @@ class _DOMMimeTypeArrayImpl extends NativeFieldWrapperClass1 implements DOMMimeT
DOMMimeType last() => this[length - 1];
DOMMimeType removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
+ throw new StateError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<DOMMimeType> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
+ throw new StateError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
+ throw new StateError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [DOMMimeType initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
+ throw new StateError("Cannot insertRange on immutable List.");
}
List<DOMMimeType> getRange(int start, int rangeLength) =>
@@ -9939,7 +9939,7 @@ class _DOMPluginArrayImpl extends NativeFieldWrapperClass1 implements DOMPluginA
DOMPlugin operator[](int index) native "DOMPluginArray_item_Callback";
void operator[]=(int index, DOMPlugin value) {
- throw new UnsupportedOperationException("Cannot assign element of immutable List.");
+ throw new StateError("Cannot assign element of immutable List.");
}
// -- start List<DOMPlugin> mixins.
// DOMPlugin is the element type.
@@ -9956,15 +9956,15 @@ class _DOMPluginArrayImpl extends NativeFieldWrapperClass1 implements DOMPluginA
// From Collection<DOMPlugin>:
void add(DOMPlugin value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addLast(DOMPlugin value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addAll(Collection<DOMPlugin> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
bool contains(DOMPlugin element) => _Collections.contains(this, element);
@@ -9985,7 +9985,7 @@ class _DOMPluginArrayImpl extends NativeFieldWrapperClass1 implements DOMPluginA
// From List<DOMPlugin>:
void sort([Comparator<DOMPlugin> compare = Comparable.compare]) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
+ throw new StateError("Cannot sort immutable List.");
}
int indexOf(DOMPlugin element, [int start = 0]) =>
@@ -9999,19 +9999,19 @@ class _DOMPluginArrayImpl extends NativeFieldWrapperClass1 implements DOMPluginA
DOMPlugin last() => this[length - 1];
DOMPlugin removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
+ throw new StateError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<DOMPlugin> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
+ throw new StateError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
+ throw new StateError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [DOMPlugin initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
+ throw new StateError("Cannot insertRange on immutable List.");
}
List<DOMPlugin> getRange(int start, int rangeLength) =>
@@ -10233,7 +10233,7 @@ class _DOMStringListImpl extends NativeFieldWrapperClass1 implements List<String
String operator[](int index) native "DOMStringList_item_Callback";
void operator[]=(int index, String value) {
- throw new UnsupportedOperationException("Cannot assign element of immutable List.");
+ throw new StateError("Cannot assign element of immutable List.");
}
// -- start List<String> mixins.
// String is the element type.
@@ -10250,15 +10250,15 @@ class _DOMStringListImpl extends NativeFieldWrapperClass1 implements List<String
// From Collection<String>:
void add(String value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addLast(String value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addAll(Collection<String> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
// contains() defined by IDL.
@@ -10279,7 +10279,7 @@ class _DOMStringListImpl extends NativeFieldWrapperClass1 implements List<String
// From List<String>:
void sort([Comparator<String> compare = Comparable.compare]) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
+ throw new StateError("Cannot sort immutable List.");
}
int indexOf(String element, [int start = 0]) =>
@@ -10293,19 +10293,19 @@ class _DOMStringListImpl extends NativeFieldWrapperClass1 implements List<String
String last() => this[length - 1];
String removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
+ throw new StateError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<String> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
+ throw new StateError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
+ throw new StateError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [String initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
+ throw new StateError("Cannot insertRange on immutable List.");
}
List<String> getRange(int start, int rangeLength) =>
@@ -11554,7 +11554,7 @@ class _FilteredElementList implements List {
}
void sort([Comparator<Element> compare = Comparable.compare]) {
- throw const UnsupportedOperationException('TODO(jacobr): should we impl?');
+ throw new StateError('TODO(jacobr): should we impl?');
}
void setRange(int start, int rangeLength, List from, [int startFrom = 0]) {
@@ -11623,7 +11623,7 @@ class _FrozenCSSClassSet extends _CssClassSet {
_FrozenCSSClassSet() : super(null);
void _write(Set s) {
- throw const UnsupportedOperationException(
+ throw new StateError(
'frozen class set cannot be modified');
}
Set<String> _read() => new Set<String>();
@@ -11766,97 +11766,97 @@ class _DocumentFragmentImpl extends _NodeImpl implements DocumentFragment {
// Setters throw errors rather than being no-ops because we aren't going to
// retain the values that were set, and erroring out seems clearer.
void set attributes(Map<String, String> value) {
- throw new UnsupportedOperationException(
+ throw new StateError(
"Attributes can't be set for document fragments.");
}
void set classes(Collection<String> value) {
- throw new UnsupportedOperationException(
+ throw new StateError(
"Classes can't be set for document fragments.");
}
void set dataAttributes(Map<String, String> value) {
- throw new UnsupportedOperationException(
+ throw new StateError(
"Data attributes can't be set for document fragments.");
}
void set contentEditable(String value) {
- throw new UnsupportedOperationException(
+ throw new StateError(
"Content editable can't be set for document fragments.");
}
String get dir {
- throw new UnsupportedOperationException(
+ throw new StateError(
"Document fragments don't support text direction.");
}
void set dir(String value) {
- throw new UnsupportedOperationException(
+ throw new StateError(
"Document fragments don't support text direction.");
}
void set draggable(bool value) {
- throw new UnsupportedOperationException(
+ throw new StateError(
"Draggable can't be set for document fragments.");
}
void set hidden(bool value) {
- throw new UnsupportedOperationException(
+ throw new StateError(
"Hidden can't be set for document fragments.");
}
void set id(String value) {
- throw new UnsupportedOperationException(
+ throw new StateError(
"ID can't be set for document fragments.");
}
String get lang {
- throw new UnsupportedOperationException(
+ throw new StateError(
"Document fragments don't support language.");
}
void set lang(String value) {
- throw new UnsupportedOperationException(
+ throw new StateError(
"Document fragments don't support language.");
}
void set scrollLeft(int value) {
- throw new UnsupportedOperationException(
+ throw new StateError(
"Document fragments don't support scrolling.");
}
void set scrollTop(int value) {
- throw new UnsupportedOperationException(
+ throw new StateError(
"Document fragments don't support scrolling.");
}
void set spellcheck(bool value) {
- throw new UnsupportedOperationException(
+ throw new StateError(
"Spellcheck can't be set for document fragments.");
}
void set translate(bool value) {
- throw new UnsupportedOperationException(
+ throw new StateError(
"Spellcheck can't be set for document fragments.");
}
void set tabIndex(int value) {
- throw new UnsupportedOperationException(
+ throw new StateError(
"Tab index can't be set for document fragments.");
}
void set title(String value) {
- throw new UnsupportedOperationException(
+ throw new StateError(
"Title can't be set for document fragments.");
}
void set webkitdropzone(String value) {
- throw new UnsupportedOperationException(
+ throw new StateError(
"WebKit drop zone can't be set for document fragments.");
}
void set webkitRegionOverflow(String value) {
- throw new UnsupportedOperationException(
+ throw new StateError(
"WebKit region overflow can't be set for document fragments.");
}
@@ -12750,7 +12750,7 @@ class _ChildrenElementList implements List {
void set length(int newLength) {
// TODO(jacobr): remove children when length is reduced.
- throw const UnsupportedOperationException('');
+ throw new StateError('');
}
Element add(_ElementImpl value) {
@@ -12769,7 +12769,7 @@ class _ChildrenElementList implements List {
}
void sort([Comparator<Element> compare = Comparable.compare]) {
- throw const UnsupportedOperationException('TODO(jacobr): should we impl?');
+ throw new StateError('TODO(jacobr): should we impl?');
}
void setRange(int start, int rangeLength, List from, [int startFrom = 0]) {
@@ -12882,7 +12882,7 @@ class _FrozenElementList implements List {
Element operator [](int index) => _nodeList[index];
void operator []=(int index, Element value) {
- throw const UnsupportedOperationException('');
+ throw new StateError('');
}
void set length(int newLength) {
@@ -12890,33 +12890,33 @@ class _FrozenElementList implements List {
}
void add(Element value) {
- throw const UnsupportedOperationException('');
+ throw new StateError('');
}
void addLast(Element value) {
- throw const UnsupportedOperationException('');
+ throw new StateError('');
}
Iterator<Element> iterator() => new _FrozenElementListIterator(this);
void addAll(Collection<Element> collection) {
- throw const UnsupportedOperationException('');
+ throw new StateError('');
}
void sort([Comparator<Element> compare = Comparable.compare]) {
- throw const UnsupportedOperationException('');
+ throw new StateError('');
}
void setRange(int start, int rangeLength, List from, [int startFrom = 0]) {
- throw const UnsupportedOperationException('');
+ throw new StateError('');
}
void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException('');
+ throw new StateError('');
}
void insertRange(int start, int rangeLength, [initialValue = null]) {
- throw const UnsupportedOperationException('');
+ throw new StateError('');
}
List<Element> getRange(int start, int rangeLength) =>
@@ -12929,11 +12929,11 @@ class _FrozenElementList implements List {
_nodeList.lastIndexOf(element, start);
void clear() {
- throw const UnsupportedOperationException('');
+ throw new StateError('');
}
Element removeLast() {
- throw const UnsupportedOperationException('');
+ throw new StateError('');
}
Element last() => _nodeList.last();
@@ -13936,7 +13936,7 @@ class _EntryArrayImpl extends NativeFieldWrapperClass1 implements List<Entry> {
Entry operator[](int index) native "EntryArray_item_Callback";
void operator[]=(int index, Entry value) {
- throw new UnsupportedOperationException("Cannot assign element of immutable List.");
+ throw new StateError("Cannot assign element of immutable List.");
}
// -- start List<Entry> mixins.
// Entry is the element type.
@@ -13953,15 +13953,15 @@ class _EntryArrayImpl extends NativeFieldWrapperClass1 implements List<Entry> {
// From Collection<Entry>:
void add(Entry value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addLast(Entry value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addAll(Collection<Entry> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
bool contains(Entry element) => _Collections.contains(this, element);
@@ -13982,7 +13982,7 @@ class _EntryArrayImpl extends NativeFieldWrapperClass1 implements List<Entry> {
// From List<Entry>:
void sort([Comparator<Entry> compare = Comparable.compare]) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
+ throw new StateError("Cannot sort immutable List.");
}
int indexOf(Entry element, [int start = 0]) =>
@@ -13996,19 +13996,19 @@ class _EntryArrayImpl extends NativeFieldWrapperClass1 implements List<Entry> {
Entry last() => this[length - 1];
Entry removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
+ throw new StateError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<Entry> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
+ throw new StateError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
+ throw new StateError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [Entry initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
+ throw new StateError("Cannot insertRange on immutable List.");
}
List<Entry> getRange(int start, int rangeLength) =>
@@ -14032,7 +14032,7 @@ class _EntryArraySyncImpl extends NativeFieldWrapperClass1 implements List<Entry
EntrySync operator[](int index) native "EntryArraySync_item_Callback";
void operator[]=(int index, EntrySync value) {
- throw new UnsupportedOperationException("Cannot assign element of immutable List.");
+ throw new StateError("Cannot assign element of immutable List.");
}
// -- start List<EntrySync> mixins.
// EntrySync is the element type.
@@ -14049,15 +14049,15 @@ class _EntryArraySyncImpl extends NativeFieldWrapperClass1 implements List<Entry
// From Collection<EntrySync>:
void add(EntrySync value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addLast(EntrySync value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addAll(Collection<EntrySync> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
bool contains(EntrySync element) => _Collections.contains(this, element);
@@ -14078,7 +14078,7 @@ class _EntryArraySyncImpl extends NativeFieldWrapperClass1 implements List<Entry
// From List<EntrySync>:
void sort([Comparator<EntrySync> compare = Comparable.compare]) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
+ throw new StateError("Cannot sort immutable List.");
}
int indexOf(EntrySync element, [int start = 0]) =>
@@ -14092,19 +14092,19 @@ class _EntryArraySyncImpl extends NativeFieldWrapperClass1 implements List<Entry
EntrySync last() => this[length - 1];
EntrySync removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
+ throw new StateError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<EntrySync> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
+ throw new StateError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
+ throw new StateError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [EntrySync initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
+ throw new StateError("Cannot insertRange on immutable List.");
}
List<EntrySync> getRange(int start, int rangeLength) =>
@@ -14957,7 +14957,7 @@ class _FileListImpl extends NativeFieldWrapperClass1 implements List<File> {
File operator[](int index) native "FileList_item_Callback";
void operator[]=(int index, File value) {
- throw new UnsupportedOperationException("Cannot assign element of immutable List.");
+ throw new StateError("Cannot assign element of immutable List.");
}
// -- start List<File> mixins.
// File is the element type.
@@ -14974,15 +14974,15 @@ class _FileListImpl extends NativeFieldWrapperClass1 implements List<File> {
// From Collection<File>:
void add(File value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addLast(File value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addAll(Collection<File> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
bool contains(File element) => _Collections.contains(this, element);
@@ -15003,7 +15003,7 @@ class _FileListImpl extends NativeFieldWrapperClass1 implements List<File> {
// From List<File>:
void sort([Comparator<File> compare = Comparable.compare]) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
+ throw new StateError("Cannot sort immutable List.");
}
int indexOf(File element, [int start = 0]) =>
@@ -15017,19 +15017,19 @@ class _FileListImpl extends NativeFieldWrapperClass1 implements List<File> {
File last() => this[length - 1];
File removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
+ throw new StateError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<File> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
+ throw new StateError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
+ throw new StateError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [File initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
+ throw new StateError("Cannot insertRange on immutable List.");
}
List<File> getRange(int start, int rangeLength) =>
@@ -15451,15 +15451,15 @@ class _Float32ArrayImpl extends _ArrayBufferViewImpl implements Float32Array {
// From Collection<num>:
void add(num value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addLast(num value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addAll(Collection<num> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
bool contains(num element) => _Collections.contains(this, element);
@@ -15480,7 +15480,7 @@ class _Float32ArrayImpl extends _ArrayBufferViewImpl implements Float32Array {
// From List<num>:
void sort([Comparator<num> compare = Comparable.compare]) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
+ throw new StateError("Cannot sort immutable List.");
}
int indexOf(num element, [int start = 0]) =>
@@ -15494,19 +15494,19 @@ class _Float32ArrayImpl extends _ArrayBufferViewImpl implements Float32Array {
num last() => this[length - 1];
num removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
+ throw new StateError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<num> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
+ throw new StateError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
+ throw new StateError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [num initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
+ throw new StateError("Cannot insertRange on immutable List.");
}
List<num> getRange(int start, int rangeLength) =>
@@ -15585,15 +15585,15 @@ class _Float64ArrayImpl extends _ArrayBufferViewImpl implements Float64Array {
// From Collection<num>:
void add(num value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addLast(num value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addAll(Collection<num> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
bool contains(num element) => _Collections.contains(this, element);
@@ -15614,7 +15614,7 @@ class _Float64ArrayImpl extends _ArrayBufferViewImpl implements Float64Array {
// From List<num>:
void sort([Comparator<num> compare = Comparable.compare]) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
+ throw new StateError("Cannot sort immutable List.");
}
int indexOf(num element, [int start = 0]) =>
@@ -15628,19 +15628,19 @@ class _Float64ArrayImpl extends _ArrayBufferViewImpl implements Float64Array {
num last() => this[length - 1];
num removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
+ throw new StateError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<num> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
+ throw new StateError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
+ throw new StateError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [num initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
+ throw new StateError("Cannot insertRange on immutable List.");
}
List<num> getRange(int start, int rangeLength) =>
@@ -16085,7 +16085,7 @@ class _GamepadListImpl extends NativeFieldWrapperClass1 implements List<Gamepad>
Gamepad operator[](int index) native "GamepadList_item_Callback";
void operator[]=(int index, Gamepad value) {
- throw new UnsupportedOperationException("Cannot assign element of immutable List.");
+ throw new StateError("Cannot assign element of immutable List.");
}
// -- start List<Gamepad> mixins.
// Gamepad is the element type.
@@ -16102,15 +16102,15 @@ class _GamepadListImpl extends NativeFieldWrapperClass1 implements List<Gamepad>
// From Collection<Gamepad>:
void add(Gamepad value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addLast(Gamepad value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addAll(Collection<Gamepad> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
bool contains(Gamepad element) => _Collections.contains(this, element);
@@ -16131,7 +16131,7 @@ class _GamepadListImpl extends NativeFieldWrapperClass1 implements List<Gamepad>
// From List<Gamepad>:
void sort([Comparator<Gamepad> compare = Comparable.compare]) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
+ throw new StateError("Cannot sort immutable List.");
}
int indexOf(Gamepad element, [int start = 0]) =>
@@ -16145,19 +16145,19 @@ class _GamepadListImpl extends NativeFieldWrapperClass1 implements List<Gamepad>
Gamepad last() => this[length - 1];
Gamepad removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
+ throw new StateError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<Gamepad> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
+ throw new StateError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
+ throw new StateError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [Gamepad initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
+ throw new StateError("Cannot insertRange on immutable List.");
}
List<Gamepad> getRange(int start, int rangeLength) =>
@@ -16311,7 +16311,7 @@ class _HTMLAllCollectionImpl extends NativeFieldWrapperClass1 implements HTMLAll
Node operator[](int index) native "HTMLAllCollection_item_Callback";
void operator[]=(int index, Node value) {
- throw new UnsupportedOperationException("Cannot assign element of immutable List.");
+ throw new StateError("Cannot assign element of immutable List.");
}
// -- start List<Node> mixins.
// Node is the element type.
@@ -16328,15 +16328,15 @@ class _HTMLAllCollectionImpl extends NativeFieldWrapperClass1 implements HTMLAll
// From Collection<Node>:
void add(Node value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addLast(Node value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addAll(Collection<Node> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
bool contains(Node element) => _Collections.contains(this, element);
@@ -16357,7 +16357,7 @@ class _HTMLAllCollectionImpl extends NativeFieldWrapperClass1 implements HTMLAll
// From List<Node>:
void sort([Comparator<Node> compare = Comparable.compare]) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
+ throw new StateError("Cannot sort immutable List.");
}
int indexOf(Node element, [int start = 0]) =>
@@ -16371,19 +16371,19 @@ class _HTMLAllCollectionImpl extends NativeFieldWrapperClass1 implements HTMLAll
Node last() => this[length - 1];
Node removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
+ throw new StateError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<Node> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
+ throw new StateError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
+ throw new StateError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [Node initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
+ throw new StateError("Cannot insertRange on immutable List.");
}
List<Node> getRange(int start, int rangeLength) =>
@@ -16429,7 +16429,7 @@ class _HTMLCollectionImpl extends NativeFieldWrapperClass1 implements HTMLCollec
Node operator[](int index) native "HTMLCollection_item_Callback";
void operator[]=(int index, Node value) {
- throw new UnsupportedOperationException("Cannot assign element of immutable List.");
+ throw new StateError("Cannot assign element of immutable List.");
}
// -- start List<Node> mixins.
// Node is the element type.
@@ -16446,15 +16446,15 @@ class _HTMLCollectionImpl extends NativeFieldWrapperClass1 implements HTMLCollec
// From Collection<Node>:
void add(Node value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addLast(Node value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addAll(Collection<Node> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
bool contains(Node element) => _Collections.contains(this, element);
@@ -16475,7 +16475,7 @@ class _HTMLCollectionImpl extends NativeFieldWrapperClass1 implements HTMLCollec
// From List<Node>:
void sort([Comparator<Node> compare = Comparable.compare]) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
+ throw new StateError("Cannot sort immutable List.");
}
int indexOf(Node element, [int start = 0]) =>
@@ -16489,19 +16489,19 @@ class _HTMLCollectionImpl extends NativeFieldWrapperClass1 implements HTMLCollec
Node last() => this[length - 1];
Node removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
+ throw new StateError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<Node> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
+ throw new StateError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
+ throw new StateError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [Node initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
+ throw new StateError("Cannot insertRange on immutable List.");
}
List<Node> getRange(int start, int rangeLength) =>
@@ -19038,15 +19038,15 @@ class _Int16ArrayImpl extends _ArrayBufferViewImpl implements Int16Array {
// From Collection<int>:
void add(int value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addLast(int value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addAll(Collection<int> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
bool contains(int element) => _Collections.contains(this, element);
@@ -19067,7 +19067,7 @@ class _Int16ArrayImpl extends _ArrayBufferViewImpl implements Int16Array {
// From List<int>:
void sort([Comparator<int> compare = Comparable.compare]) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
+ throw new StateError("Cannot sort immutable List.");
}
int indexOf(int element, [int start = 0]) =>
@@ -19081,19 +19081,19 @@ class _Int16ArrayImpl extends _ArrayBufferViewImpl implements Int16Array {
int last() => this[length - 1];
int removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
+ throw new StateError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<int> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
+ throw new StateError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
+ throw new StateError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [int initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
+ throw new StateError("Cannot insertRange on immutable List.");
}
List<int> getRange(int start, int rangeLength) =>
@@ -19172,15 +19172,15 @@ class _Int32ArrayImpl extends _ArrayBufferViewImpl implements Int32Array {
// From Collection<int>:
void add(int value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addLast(int value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addAll(Collection<int> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
bool contains(int element) => _Collections.contains(this, element);
@@ -19201,7 +19201,7 @@ class _Int32ArrayImpl extends _ArrayBufferViewImpl implements Int32Array {
// From List<int>:
void sort([Comparator<int> compare = Comparable.compare]) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
+ throw new StateError("Cannot sort immutable List.");
}
int indexOf(int element, [int start = 0]) =>
@@ -19215,19 +19215,19 @@ class _Int32ArrayImpl extends _ArrayBufferViewImpl implements Int32Array {
int last() => this[length - 1];
int removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
+ throw new StateError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<int> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
+ throw new StateError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
+ throw new StateError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [int initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
+ throw new StateError("Cannot insertRange on immutable List.");
}
List<int> getRange(int start, int rangeLength) =>
@@ -19306,15 +19306,15 @@ class _Int8ArrayImpl extends _ArrayBufferViewImpl implements Int8Array {
// From Collection<int>:
void add(int value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addLast(int value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addAll(Collection<int> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
bool contains(int element) => _Collections.contains(this, element);
@@ -19335,7 +19335,7 @@ class _Int8ArrayImpl extends _ArrayBufferViewImpl implements Int8Array {
// From List<int>:
void sort([Comparator<int> compare = Comparable.compare]) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
+ throw new StateError("Cannot sort immutable List.");
}
int indexOf(int element, [int start = 0]) =>
@@ -19349,19 +19349,19 @@ class _Int8ArrayImpl extends _ArrayBufferViewImpl implements Int8Array {
int last() => this[length - 1];
int removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
+ throw new StateError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<int> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
+ throw new StateError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
+ throw new StateError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [int initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
+ throw new StateError("Cannot insertRange on immutable List.");
}
List<int> getRange(int start, int rangeLength) =>
@@ -21996,7 +21996,7 @@ class _MediaStreamListImpl extends NativeFieldWrapperClass1 implements List<Medi
MediaStream operator[](int index) native "MediaStreamList_item_Callback";
void operator[]=(int index, MediaStream value) {
- throw new UnsupportedOperationException("Cannot assign element of immutable List.");
+ throw new StateError("Cannot assign element of immutable List.");
}
// -- start List<MediaStream> mixins.
// MediaStream is the element type.
@@ -22013,15 +22013,15 @@ class _MediaStreamListImpl extends NativeFieldWrapperClass1 implements List<Medi
// From Collection<MediaStream>:
void add(MediaStream value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addLast(MediaStream value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addAll(Collection<MediaStream> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
bool contains(MediaStream element) => _Collections.contains(this, element);
@@ -22042,7 +22042,7 @@ class _MediaStreamListImpl extends NativeFieldWrapperClass1 implements List<Medi
// From List<MediaStream>:
void sort([Comparator<MediaStream> compare = Comparable.compare]) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
+ throw new StateError("Cannot sort immutable List.");
}
int indexOf(MediaStream element, [int start = 0]) =>
@@ -22056,19 +22056,19 @@ class _MediaStreamListImpl extends NativeFieldWrapperClass1 implements List<Medi
MediaStream last() => this[length - 1];
MediaStream removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
+ throw new StateError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<MediaStream> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
+ throw new StateError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
+ throw new StateError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [MediaStream initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
+ throw new StateError("Cannot insertRange on immutable List.");
}
List<MediaStream> getRange(int start, int rangeLength) =>
@@ -23057,7 +23057,7 @@ class _NamedNodeMapImpl extends NativeFieldWrapperClass1 implements NamedNodeMap
Node operator[](int index) native "NamedNodeMap_item_Callback";
void operator[]=(int index, Node value) {
- throw new UnsupportedOperationException("Cannot assign element of immutable List.");
+ throw new StateError("Cannot assign element of immutable List.");
}
// -- start List<Node> mixins.
// Node is the element type.
@@ -23074,15 +23074,15 @@ class _NamedNodeMapImpl extends NativeFieldWrapperClass1 implements NamedNodeMap
// From Collection<Node>:
void add(Node value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addLast(Node value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addAll(Collection<Node> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
bool contains(Node element) => _Collections.contains(this, element);
@@ -23103,7 +23103,7 @@ class _NamedNodeMapImpl extends NativeFieldWrapperClass1 implements NamedNodeMap
// From List<Node>:
void sort([Comparator<Node> compare = Comparable.compare]) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
+ throw new StateError("Cannot sort immutable List.");
}
int indexOf(Node element, [int start = 0]) =>
@@ -23117,19 +23117,19 @@ class _NamedNodeMapImpl extends NativeFieldWrapperClass1 implements NamedNodeMap
Node last() => this[length - 1];
Node removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
+ throw new StateError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<Node> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
+ throw new StateError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
+ throw new StateError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [Node initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
+ throw new StateError("Cannot insertRange on immutable List.");
}
List<Node> getRange(int start, int rangeLength) =>
@@ -23559,7 +23559,7 @@ class _ChildNodeListLazy implements List {
// TODO(jacobr): this could be implemented for child node lists.
// The exception we throw here is misleading.
void sort([Comparator<Node> compare = Comparable.compare]) {
- throw new UnsupportedOperationException("Cannot sort immutable List.");
+ throw new StateError("Cannot sort immutable List.");
}
int indexOf(Node element, [int start = 0]) =>
@@ -23570,15 +23570,15 @@ class _ChildNodeListLazy implements List {
// FIXME: implement these.
void setRange(int start, int rangeLength, List<Node> from, [int startFrom]) {
- throw new UnsupportedOperationException(
+ throw new StateError(
"Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
- throw new UnsupportedOperationException(
+ throw new StateError(
"Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [Node initialValue]) {
- throw new UnsupportedOperationException(
+ throw new StateError(
"Cannot insertRange on immutable List.");
}
List<Node> getRange(int start, int rangeLength) =>
@@ -23902,7 +23902,7 @@ class _NodeListImpl extends NativeFieldWrapperClass1 implements NodeList {
// From List<Node>:
void sort([Comparator<Node> compare = Comparable.compare]) {
- throw new UnsupportedOperationException("Cannot sort immutable List.");
+ throw new StateError("Cannot sort immutable List.");
}
int indexOf(Node element, [int start = 0]) =>
@@ -23916,13 +23916,13 @@ class _NodeListImpl extends NativeFieldWrapperClass1 implements NodeList {
// FIXME: implement thesee.
void setRange(int start, int rangeLength, List<Node> from, [int startFrom]) {
- throw new UnsupportedOperationException("Cannot setRange on immutable List.");
+ throw new StateError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
- throw new UnsupportedOperationException("Cannot removeRange on immutable List.");
+ throw new StateError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [Node initialValue]) {
- throw new UnsupportedOperationException("Cannot insertRange on immutable List.");
+ throw new StateError("Cannot insertRange on immutable List.");
}
List<Node> getRange(int start, int rangeLength) =>
new _NodeListWrapper(_Lists.getRange(this, start, rangeLength, <Node>[]));
@@ -26469,7 +26469,7 @@ class _SQLResultSetRowListImpl extends NativeFieldWrapperClass1 implements SQLRe
Map operator[](int index) native "SQLResultSetRowList_item_Callback";
void operator[]=(int index, Map value) {
- throw new UnsupportedOperationException("Cannot assign element of immutable List.");
+ throw new StateError("Cannot assign element of immutable List.");
}
// -- start List<Map> mixins.
// Map is the element type.
@@ -26486,15 +26486,15 @@ class _SQLResultSetRowListImpl extends NativeFieldWrapperClass1 implements SQLRe
// From Collection<Map>:
void add(Map value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addLast(Map value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addAll(Collection<Map> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
bool contains(Map element) => _Collections.contains(this, element);
@@ -26515,7 +26515,7 @@ class _SQLResultSetRowListImpl extends NativeFieldWrapperClass1 implements SQLRe
// From List<Map>:
void sort([Comparator<Map> compare = Comparable.compare]) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
+ throw new StateError("Cannot sort immutable List.");
}
int indexOf(Map element, [int start = 0]) =>
@@ -26529,19 +26529,19 @@ class _SQLResultSetRowListImpl extends NativeFieldWrapperClass1 implements SQLRe
Map last() => this[length - 1];
Map removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
+ throw new StateError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<Map> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
+ throw new StateError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
+ throw new StateError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [Map initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
+ throw new StateError("Cannot insertRange on immutable List.");
}
List<Map> getRange(int start, int rangeLength) =>
@@ -27078,7 +27078,7 @@ class _SVGAnimatedLengthListImpl extends NativeFieldWrapperClass1 implements SVG
SVGAnimatedLength operator[](int index) native "SVGAnimatedLengthList_item_Callback";
void operator[]=(int index, SVGAnimatedLength value) {
- throw new UnsupportedOperationException("Cannot assign element of immutable List.");
+ throw new StateError("Cannot assign element of immutable List.");
}
// -- start List<SVGAnimatedLength> mixins.
// SVGAnimatedLength is the element type.
@@ -27095,15 +27095,15 @@ class _SVGAnimatedLengthListImpl extends NativeFieldWrapperClass1 implements SVG
// From Collection<SVGAnimatedLength>:
void add(SVGAnimatedLength value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addLast(SVGAnimatedLength value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addAll(Collection<SVGAnimatedLength> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
bool contains(SVGAnimatedLength element) => _Collections.contains(this, element);
@@ -27124,7 +27124,7 @@ class _SVGAnimatedLengthListImpl extends NativeFieldWrapperClass1 implements SVG
// From List<SVGAnimatedLength>:
void sort([Comparator<SVGAnimatedLength> compare = Comparable.compare]) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
+ throw new StateError("Cannot sort immutable List.");
}
int indexOf(SVGAnimatedLength element, [int start = 0]) =>
@@ -27138,19 +27138,19 @@ class _SVGAnimatedLengthListImpl extends NativeFieldWrapperClass1 implements SVG
SVGAnimatedLength last() => this[length - 1];
SVGAnimatedLength removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
+ throw new StateError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<SVGAnimatedLength> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
+ throw new StateError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
+ throw new StateError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [SVGAnimatedLength initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
+ throw new StateError("Cannot insertRange on immutable List.");
}
List<SVGAnimatedLength> getRange(int start, int rangeLength) =>
@@ -27219,7 +27219,7 @@ class _SVGAnimatedNumberListImpl extends NativeFieldWrapperClass1 implements SVG
SVGAnimatedNumber operator[](int index) native "SVGAnimatedNumberList_item_Callback";
void operator[]=(int index, SVGAnimatedNumber value) {
- throw new UnsupportedOperationException("Cannot assign element of immutable List.");
+ throw new StateError("Cannot assign element of immutable List.");
}
// -- start List<SVGAnimatedNumber> mixins.
// SVGAnimatedNumber is the element type.
@@ -27236,15 +27236,15 @@ class _SVGAnimatedNumberListImpl extends NativeFieldWrapperClass1 implements SVG
// From Collection<SVGAnimatedNumber>:
void add(SVGAnimatedNumber value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addLast(SVGAnimatedNumber value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addAll(Collection<SVGAnimatedNumber> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
bool contains(SVGAnimatedNumber element) => _Collections.contains(this, element);
@@ -27265,7 +27265,7 @@ class _SVGAnimatedNumberListImpl extends NativeFieldWrapperClass1 implements SVG
// From List<SVGAnimatedNumber>:
void sort([Comparator<SVGAnimatedNumber> compare = Comparable.compare]) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
+ throw new StateError("Cannot sort immutable List.");
}
int indexOf(SVGAnimatedNumber element, [int start = 0]) =>
@@ -27279,19 +27279,19 @@ class _SVGAnimatedNumberListImpl extends NativeFieldWrapperClass1 implements SVG
SVGAnimatedNumber last() => this[length - 1];
SVGAnimatedNumber removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
+ throw new StateError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<SVGAnimatedNumber> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
+ throw new StateError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
+ throw new StateError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [SVGAnimatedNumber initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
+ throw new StateError("Cannot insertRange on immutable List.");
}
List<SVGAnimatedNumber> getRange(int start, int rangeLength) =>
@@ -27416,7 +27416,7 @@ class _SVGAnimatedTransformListImpl extends NativeFieldWrapperClass1 implements
SVGAnimateTransformElement operator[](int index) native "SVGAnimatedTransformList_item_Callback";
void operator[]=(int index, SVGAnimateTransformElement value) {
- throw new UnsupportedOperationException("Cannot assign element of immutable List.");
+ throw new StateError("Cannot assign element of immutable List.");
}
// -- start List<SVGAnimateTransformElement> mixins.
// SVGAnimateTransformElement is the element type.
@@ -27433,15 +27433,15 @@ class _SVGAnimatedTransformListImpl extends NativeFieldWrapperClass1 implements
// From Collection<SVGAnimateTransformElement>:
void add(SVGAnimateTransformElement value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addLast(SVGAnimateTransformElement value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addAll(Collection<SVGAnimateTransformElement> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
bool contains(SVGAnimateTransformElement element) => _Collections.contains(this, element);
@@ -27462,7 +27462,7 @@ class _SVGAnimatedTransformListImpl extends NativeFieldWrapperClass1 implements
// From List<SVGAnimateTransformElement>:
void sort([Comparator<SVGAnimateTransformElement> compare = Comparable.compare]) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
+ throw new StateError("Cannot sort immutable List.");
}
int indexOf(SVGAnimateTransformElement element, [int start = 0]) =>
@@ -27476,19 +27476,19 @@ class _SVGAnimatedTransformListImpl extends NativeFieldWrapperClass1 implements
SVGAnimateTransformElement last() => this[length - 1];
SVGAnimateTransformElement removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
+ throw new StateError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<SVGAnimateTransformElement> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
+ throw new StateError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
+ throw new StateError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [SVGAnimateTransformElement initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
+ throw new StateError("Cannot insertRange on immutable List.");
}
List<SVGAnimateTransformElement> getRange(int start, int rangeLength) =>
@@ -28297,7 +28297,7 @@ class _SVGElementInstanceListImpl extends NativeFieldWrapperClass1 implements Li
SVGElementInstance operator[](int index) native "SVGElementInstanceList_item_Callback";
void operator[]=(int index, SVGElementInstance value) {
- throw new UnsupportedOperationException("Cannot assign element of immutable List.");
+ throw new StateError("Cannot assign element of immutable List.");
}
// -- start List<SVGElementInstance> mixins.
// SVGElementInstance is the element type.
@@ -28314,15 +28314,15 @@ class _SVGElementInstanceListImpl extends NativeFieldWrapperClass1 implements Li
// From Collection<SVGElementInstance>:
void add(SVGElementInstance value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addLast(SVGElementInstance value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addAll(Collection<SVGElementInstance> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
bool contains(SVGElementInstance element) => _Collections.contains(this, element);
@@ -28343,7 +28343,7 @@ class _SVGElementInstanceListImpl extends NativeFieldWrapperClass1 implements Li
// From List<SVGElementInstance>:
void sort([Comparator<SVGElementInstance> compare = Comparable.compare]) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
+ throw new StateError("Cannot sort immutable List.");
}
int indexOf(SVGElementInstance element, [int start = 0]) =>
@@ -28357,19 +28357,19 @@ class _SVGElementInstanceListImpl extends NativeFieldWrapperClass1 implements Li
SVGElementInstance last() => this[length - 1];
SVGElementInstance removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
+ throw new StateError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<SVGElementInstance> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
+ throw new StateError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
+ throw new StateError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [SVGElementInstance initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
+ throw new StateError("Cannot insertRange on immutable List.");
}
List<SVGElementInstance> getRange(int start, int rangeLength) =>
@@ -30453,7 +30453,7 @@ class _SVGLengthListImpl extends NativeFieldWrapperClass1 implements SVGLengthLi
SVGLength operator[](int index) native "SVGLengthList_item_Callback";
void operator[]=(int index, SVGLength value) {
- throw new UnsupportedOperationException("Cannot assign element of immutable List.");
+ throw new StateError("Cannot assign element of immutable List.");
}
// -- start List<SVGLength> mixins.
// SVGLength is the element type.
@@ -30470,15 +30470,15 @@ class _SVGLengthListImpl extends NativeFieldWrapperClass1 implements SVGLengthLi
// From Collection<SVGLength>:
void add(SVGLength value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addLast(SVGLength value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addAll(Collection<SVGLength> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
bool contains(SVGLength element) => _Collections.contains(this, element);
@@ -30499,7 +30499,7 @@ class _SVGLengthListImpl extends NativeFieldWrapperClass1 implements SVGLengthLi
// From List<SVGLength>:
void sort([Comparator<SVGLength> compare = Comparable.compare]) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
+ throw new StateError("Cannot sort immutable List.");
}
int indexOf(SVGLength element, [int start = 0]) =>
@@ -30513,19 +30513,19 @@ class _SVGLengthListImpl extends NativeFieldWrapperClass1 implements SVGLengthLi
SVGLength last() => this[length - 1];
SVGLength removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
+ throw new StateError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<SVGLength> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
+ throw new StateError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
+ throw new StateError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [SVGLength initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
+ throw new StateError("Cannot insertRange on immutable List.");
}
List<SVGLength> getRange(int start, int rangeLength) =>
@@ -31100,7 +31100,7 @@ class _SVGNumberListImpl extends NativeFieldWrapperClass1 implements SVGNumberLi
SVGNumber operator[](int index) native "SVGNumberList_item_Callback";
void operator[]=(int index, SVGNumber value) {
- throw new UnsupportedOperationException("Cannot assign element of immutable List.");
+ throw new StateError("Cannot assign element of immutable List.");
}
// -- start List<SVGNumber> mixins.
// SVGNumber is the element type.
@@ -31117,15 +31117,15 @@ class _SVGNumberListImpl extends NativeFieldWrapperClass1 implements SVGNumberLi
// From Collection<SVGNumber>:
void add(SVGNumber value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addLast(SVGNumber value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addAll(Collection<SVGNumber> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
bool contains(SVGNumber element) => _Collections.contains(this, element);
@@ -31146,7 +31146,7 @@ class _SVGNumberListImpl extends NativeFieldWrapperClass1 implements SVGNumberLi
// From List<SVGNumber>:
void sort([Comparator<SVGNumber> compare = Comparable.compare]) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
+ throw new StateError("Cannot sort immutable List.");
}
int indexOf(SVGNumber element, [int start = 0]) =>
@@ -31160,19 +31160,19 @@ class _SVGNumberListImpl extends NativeFieldWrapperClass1 implements SVGNumberLi
SVGNumber last() => this[length - 1];
SVGNumber removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
+ throw new StateError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<SVGNumber> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
+ throw new StateError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
+ throw new StateError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [SVGNumber initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
+ throw new StateError("Cannot insertRange on immutable List.");
}
List<SVGNumber> getRange(int start, int rangeLength) =>
@@ -32242,7 +32242,7 @@ class _SVGPathSegListImpl extends NativeFieldWrapperClass1 implements SVGPathSeg
SVGPathSeg operator[](int index) native "SVGPathSegList_item_Callback";
void operator[]=(int index, SVGPathSeg value) {
- throw new UnsupportedOperationException("Cannot assign element of immutable List.");
+ throw new StateError("Cannot assign element of immutable List.");
}
// -- start List<SVGPathSeg> mixins.
// SVGPathSeg is the element type.
@@ -32259,15 +32259,15 @@ class _SVGPathSegListImpl extends NativeFieldWrapperClass1 implements SVGPathSeg
// From Collection<SVGPathSeg>:
void add(SVGPathSeg value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addLast(SVGPathSeg value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addAll(Collection<SVGPathSeg> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
bool contains(SVGPathSeg element) => _Collections.contains(this, element);
@@ -32288,7 +32288,7 @@ class _SVGPathSegListImpl extends NativeFieldWrapperClass1 implements SVGPathSeg
// From List<SVGPathSeg>:
void sort([Comparator<SVGPathSeg> compare = Comparable.compare]) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
+ throw new StateError("Cannot sort immutable List.");
}
int indexOf(SVGPathSeg element, [int start = 0]) =>
@@ -32302,19 +32302,19 @@ class _SVGPathSegListImpl extends NativeFieldWrapperClass1 implements SVGPathSeg
SVGPathSeg last() => this[length - 1];
SVGPathSeg removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
+ throw new StateError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<SVGPathSeg> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
+ throw new StateError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
+ throw new StateError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [SVGPathSeg initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
+ throw new StateError("Cannot insertRange on immutable List.");
}
List<SVGPathSeg> getRange(int start, int rangeLength) =>
@@ -33357,7 +33357,7 @@ class _SVGStringListImpl extends NativeFieldWrapperClass1 implements SVGStringLi
String operator[](int index) native "SVGStringList_item_Callback";
void operator[]=(int index, String value) {
- throw new UnsupportedOperationException("Cannot assign element of immutable List.");
+ throw new StateError("Cannot assign element of immutable List.");
}
// -- start List<String> mixins.
// String is the element type.
@@ -33374,15 +33374,15 @@ class _SVGStringListImpl extends NativeFieldWrapperClass1 implements SVGStringLi
// From Collection<String>:
void add(String value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addLast(String value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addAll(Collection<String> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
bool contains(String element) => _Collections.contains(this, element);
@@ -33403,7 +33403,7 @@ class _SVGStringListImpl extends NativeFieldWrapperClass1 implements SVGStringLi
// From List<String>:
void sort([Comparator<String> compare = Comparable.compare]) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
+ throw new StateError("Cannot sort immutable List.");
}
int indexOf(String element, [int start = 0]) =>
@@ -33417,19 +33417,19 @@ class _SVGStringListImpl extends NativeFieldWrapperClass1 implements SVGStringLi
String last() => this[length - 1];
String removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
+ throw new StateError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<String> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
+ throw new StateError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
+ throw new StateError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [String initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
+ throw new StateError("Cannot insertRange on immutable List.");
}
List<String> getRange(int start, int rangeLength) =>
@@ -34063,7 +34063,7 @@ class _SVGTransformListImpl extends NativeFieldWrapperClass1 implements SVGTrans
SVGTransform operator[](int index) native "SVGTransformList_item_Callback";
void operator[]=(int index, SVGTransform value) {
- throw new UnsupportedOperationException("Cannot assign element of immutable List.");
+ throw new StateError("Cannot assign element of immutable List.");
}
// -- start List<SVGTransform> mixins.
// SVGTransform is the element type.
@@ -34080,15 +34080,15 @@ class _SVGTransformListImpl extends NativeFieldWrapperClass1 implements SVGTrans
// From Collection<SVGTransform>:
void add(SVGTransform value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addLast(SVGTransform value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addAll(Collection<SVGTransform> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
bool contains(SVGTransform element) => _Collections.contains(this, element);
@@ -34109,7 +34109,7 @@ class _SVGTransformListImpl extends NativeFieldWrapperClass1 implements SVGTrans
// From List<SVGTransform>:
void sort([Comparator<SVGTransform> compare = Comparable.compare]) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
+ throw new StateError("Cannot sort immutable List.");
}
int indexOf(SVGTransform element, [int start = 0]) =>
@@ -34123,19 +34123,19 @@ class _SVGTransformListImpl extends NativeFieldWrapperClass1 implements SVGTrans
SVGTransform last() => this[length - 1];
SVGTransform removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
+ throw new StateError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<SVGTransform> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
+ throw new StateError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
+ throw new StateError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [SVGTransform initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
+ throw new StateError("Cannot insertRange on immutable List.");
}
List<SVGTransform> getRange(int start, int rangeLength) =>
@@ -35119,7 +35119,7 @@ class _SourceBufferListImpl extends _EventTargetImpl implements SourceBufferList
SourceBuffer operator[](int index) native "SourceBufferList_item_Callback";
void operator[]=(int index, SourceBuffer value) {
- throw new UnsupportedOperationException("Cannot assign element of immutable List.");
+ throw new StateError("Cannot assign element of immutable List.");
}
// -- start List<SourceBuffer> mixins.
// SourceBuffer is the element type.
@@ -35136,15 +35136,15 @@ class _SourceBufferListImpl extends _EventTargetImpl implements SourceBufferList
// From Collection<SourceBuffer>:
void add(SourceBuffer value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addLast(SourceBuffer value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addAll(Collection<SourceBuffer> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
bool contains(SourceBuffer element) => _Collections.contains(this, element);
@@ -35165,7 +35165,7 @@ class _SourceBufferListImpl extends _EventTargetImpl implements SourceBufferList
// From List<SourceBuffer>:
void sort([Comparator<SourceBuffer> compare = Comparable.compare]) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
+ throw new StateError("Cannot sort immutable List.");
}
int indexOf(SourceBuffer element, [int start = 0]) =>
@@ -35179,19 +35179,19 @@ class _SourceBufferListImpl extends _EventTargetImpl implements SourceBufferList
SourceBuffer last() => this[length - 1];
SourceBuffer removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
+ throw new StateError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<SourceBuffer> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
+ throw new StateError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
+ throw new StateError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [SourceBuffer initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
+ throw new StateError("Cannot insertRange on immutable List.");
}
List<SourceBuffer> getRange(int start, int rangeLength) =>
@@ -35339,7 +35339,7 @@ class _SpeechGrammarListImpl extends NativeFieldWrapperClass1 implements SpeechG
SpeechGrammar operator[](int index) native "SpeechGrammarList_item_Callback";
void operator[]=(int index, SpeechGrammar value) {
- throw new UnsupportedOperationException("Cannot assign element of immutable List.");
+ throw new StateError("Cannot assign element of immutable List.");
}
// -- start List<SpeechGrammar> mixins.
// SpeechGrammar is the element type.
@@ -35356,15 +35356,15 @@ class _SpeechGrammarListImpl extends NativeFieldWrapperClass1 implements SpeechG
// From Collection<SpeechGrammar>:
void add(SpeechGrammar value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addLast(SpeechGrammar value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addAll(Collection<SpeechGrammar> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
bool contains(SpeechGrammar element) => _Collections.contains(this, element);
@@ -35385,7 +35385,7 @@ class _SpeechGrammarListImpl extends NativeFieldWrapperClass1 implements SpeechG
// From List<SpeechGrammar>:
void sort([Comparator<SpeechGrammar> compare = Comparable.compare]) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
+ throw new StateError("Cannot sort immutable List.");
}
int indexOf(SpeechGrammar element, [int start = 0]) =>
@@ -35399,19 +35399,19 @@ class _SpeechGrammarListImpl extends NativeFieldWrapperClass1 implements SpeechG
SpeechGrammar last() => this[length - 1];
SpeechGrammar removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
+ throw new StateError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<SpeechGrammar> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
+ throw new StateError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
+ throw new StateError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [SpeechGrammar initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
+ throw new StateError("Cannot insertRange on immutable List.");
}
List<SpeechGrammar> getRange(int start, int rangeLength) =>
@@ -35510,7 +35510,7 @@ class _SpeechInputResultListImpl extends NativeFieldWrapperClass1 implements Lis
SpeechInputResult operator[](int index) native "SpeechInputResultList_item_Callback";
void operator[]=(int index, SpeechInputResult value) {
- throw new UnsupportedOperationException("Cannot assign element of immutable List.");
+ throw new StateError("Cannot assign element of immutable List.");
}
// -- start List<SpeechInputResult> mixins.
// SpeechInputResult is the element type.
@@ -35527,15 +35527,15 @@ class _SpeechInputResultListImpl extends NativeFieldWrapperClass1 implements Lis
// From Collection<SpeechInputResult>:
void add(SpeechInputResult value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addLast(SpeechInputResult value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addAll(Collection<SpeechInputResult> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
bool contains(SpeechInputResult element) => _Collections.contains(this, element);
@@ -35556,7 +35556,7 @@ class _SpeechInputResultListImpl extends NativeFieldWrapperClass1 implements Lis
// From List<SpeechInputResult>:
void sort([Comparator<SpeechInputResult> compare = Comparable.compare]) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
+ throw new StateError("Cannot sort immutable List.");
}
int indexOf(SpeechInputResult element, [int start = 0]) =>
@@ -35570,19 +35570,19 @@ class _SpeechInputResultListImpl extends NativeFieldWrapperClass1 implements Lis
SpeechInputResult last() => this[length - 1];
SpeechInputResult removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
+ throw new StateError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<SpeechInputResult> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
+ throw new StateError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
+ throw new StateError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [SpeechInputResult initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
+ throw new StateError("Cannot insertRange on immutable List.");
}
List<SpeechInputResult> getRange(int start, int rangeLength) =>
@@ -35892,7 +35892,7 @@ class _SpeechRecognitionResultListImpl extends NativeFieldWrapperClass1 implemen
SpeechRecognitionResult operator[](int index) native "SpeechRecognitionResultList_item_Callback";
void operator[]=(int index, SpeechRecognitionResult value) {
- throw new UnsupportedOperationException("Cannot assign element of immutable List.");
+ throw new StateError("Cannot assign element of immutable List.");
}
// -- start List<SpeechRecognitionResult> mixins.
// SpeechRecognitionResult is the element type.
@@ -35909,15 +35909,15 @@ class _SpeechRecognitionResultListImpl extends NativeFieldWrapperClass1 implemen
// From Collection<SpeechRecognitionResult>:
void add(SpeechRecognitionResult value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addLast(SpeechRecognitionResult value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addAll(Collection<SpeechRecognitionResult> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
bool contains(SpeechRecognitionResult element) => _Collections.contains(this, element);
@@ -35938,7 +35938,7 @@ class _SpeechRecognitionResultListImpl extends NativeFieldWrapperClass1 implemen
// From List<SpeechRecognitionResult>:
void sort([Comparator<SpeechRecognitionResult> compare = Comparable.compare]) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
+ throw new StateError("Cannot sort immutable List.");
}
int indexOf(SpeechRecognitionResult element, [int start = 0]) =>
@@ -35952,19 +35952,19 @@ class _SpeechRecognitionResultListImpl extends NativeFieldWrapperClass1 implemen
SpeechRecognitionResult last() => this[length - 1];
SpeechRecognitionResult removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
+ throw new StateError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<SpeechRecognitionResult> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
+ throw new StateError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
+ throw new StateError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [SpeechRecognitionResult initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
+ throw new StateError("Cannot insertRange on immutable List.");
}
List<SpeechRecognitionResult> getRange(int start, int rangeLength) =>
@@ -36324,7 +36324,7 @@ class _StyleSheetListImpl extends NativeFieldWrapperClass1 implements List<Style
StyleSheet operator[](int index) native "StyleSheetList_item_Callback";
void operator[]=(int index, StyleSheet value) {
- throw new UnsupportedOperationException("Cannot assign element of immutable List.");
+ throw new StateError("Cannot assign element of immutable List.");
}
// -- start List<StyleSheet> mixins.
// StyleSheet is the element type.
@@ -36341,15 +36341,15 @@ class _StyleSheetListImpl extends NativeFieldWrapperClass1 implements List<Style
// From Collection<StyleSheet>:
void add(StyleSheet value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addLast(StyleSheet value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addAll(Collection<StyleSheet> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
bool contains(StyleSheet element) => _Collections.contains(this, element);
@@ -36370,7 +36370,7 @@ class _StyleSheetListImpl extends NativeFieldWrapperClass1 implements List<Style
// From List<StyleSheet>:
void sort([Comparator<StyleSheet> compare = Comparable.compare]) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
+ throw new StateError("Cannot sort immutable List.");
}
int indexOf(StyleSheet element, [int start = 0]) =>
@@ -36384,19 +36384,19 @@ class _StyleSheetListImpl extends NativeFieldWrapperClass1 implements List<Style
StyleSheet last() => this[length - 1];
StyleSheet removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
+ throw new StateError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<StyleSheet> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
+ throw new StateError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
+ throw new StateError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [StyleSheet initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
+ throw new StateError("Cannot insertRange on immutable List.");
}
List<StyleSheet> getRange(int start, int rangeLength) =>
@@ -37423,7 +37423,7 @@ class _TextTrackCueListImpl extends NativeFieldWrapperClass1 implements TextTrac
TextTrackCue operator[](int index) native "TextTrackCueList_item_Callback";
void operator[]=(int index, TextTrackCue value) {
- throw new UnsupportedOperationException("Cannot assign element of immutable List.");
+ throw new StateError("Cannot assign element of immutable List.");
}
// -- start List<TextTrackCue> mixins.
// TextTrackCue is the element type.
@@ -37440,15 +37440,15 @@ class _TextTrackCueListImpl extends NativeFieldWrapperClass1 implements TextTrac
// From Collection<TextTrackCue>:
void add(TextTrackCue value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addLast(TextTrackCue value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addAll(Collection<TextTrackCue> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
bool contains(TextTrackCue element) => _Collections.contains(this, element);
@@ -37469,7 +37469,7 @@ class _TextTrackCueListImpl extends NativeFieldWrapperClass1 implements TextTrac
// From List<TextTrackCue>:
void sort([Comparator<TextTrackCue> compare = Comparable.compare]) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
+ throw new StateError("Cannot sort immutable List.");
}
int indexOf(TextTrackCue element, [int start = 0]) =>
@@ -37483,19 +37483,19 @@ class _TextTrackCueListImpl extends NativeFieldWrapperClass1 implements TextTrac
TextTrackCue last() => this[length - 1];
TextTrackCue removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
+ throw new StateError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<TextTrackCue> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
+ throw new StateError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
+ throw new StateError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [TextTrackCue initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
+ throw new StateError("Cannot insertRange on immutable List.");
}
List<TextTrackCue> getRange(int start, int rangeLength) =>
@@ -37600,7 +37600,7 @@ class _TextTrackListImpl extends _EventTargetImpl implements TextTrackList {
TextTrack operator[](int index) native "TextTrackList_item_Callback";
void operator[]=(int index, TextTrack value) {
- throw new UnsupportedOperationException("Cannot assign element of immutable List.");
+ throw new StateError("Cannot assign element of immutable List.");
}
// -- start List<TextTrack> mixins.
// TextTrack is the element type.
@@ -37617,15 +37617,15 @@ class _TextTrackListImpl extends _EventTargetImpl implements TextTrackList {
// From Collection<TextTrack>:
void add(TextTrack value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addLast(TextTrack value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addAll(Collection<TextTrack> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
bool contains(TextTrack element) => _Collections.contains(this, element);
@@ -37646,7 +37646,7 @@ class _TextTrackListImpl extends _EventTargetImpl implements TextTrackList {
// From List<TextTrack>:
void sort([Comparator<TextTrack> compare = Comparable.compare]) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
+ throw new StateError("Cannot sort immutable List.");
}
int indexOf(TextTrack element, [int start = 0]) =>
@@ -37660,19 +37660,19 @@ class _TextTrackListImpl extends _EventTargetImpl implements TextTrackList {
TextTrack last() => this[length - 1];
TextTrack removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
+ throw new StateError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<TextTrack> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
+ throw new StateError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
+ throw new StateError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [TextTrack initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
+ throw new StateError("Cannot insertRange on immutable List.");
}
List<TextTrack> getRange(int start, int rangeLength) =>
@@ -37919,7 +37919,7 @@ class _TouchListImpl extends NativeFieldWrapperClass1 implements TouchList {
Touch operator[](int index) native "TouchList_item_Callback";
void operator[]=(int index, Touch value) {
- throw new UnsupportedOperationException("Cannot assign element of immutable List.");
+ throw new StateError("Cannot assign element of immutable List.");
}
// -- start List<Touch> mixins.
// Touch is the element type.
@@ -37936,15 +37936,15 @@ class _TouchListImpl extends NativeFieldWrapperClass1 implements TouchList {
// From Collection<Touch>:
void add(Touch value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addLast(Touch value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addAll(Collection<Touch> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
bool contains(Touch element) => _Collections.contains(this, element);
@@ -37965,7 +37965,7 @@ class _TouchListImpl extends NativeFieldWrapperClass1 implements TouchList {
// From List<Touch>:
void sort([Comparator<Touch> compare = Comparable.compare]) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
+ throw new StateError("Cannot sort immutable List.");
}
int indexOf(Touch element, [int start = 0]) =>
@@ -37979,19 +37979,19 @@ class _TouchListImpl extends NativeFieldWrapperClass1 implements TouchList {
Touch last() => this[length - 1];
Touch removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
+ throw new StateError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<Touch> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
+ throw new StateError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
+ throw new StateError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [Touch initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
+ throw new StateError("Cannot insertRange on immutable List.");
}
List<Touch> getRange(int start, int rangeLength) =>
@@ -38365,15 +38365,15 @@ class _Uint16ArrayImpl extends _ArrayBufferViewImpl implements Uint16Array {
// From Collection<int>:
void add(int value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addLast(int value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addAll(Collection<int> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
bool contains(int element) => _Collections.contains(this, element);
@@ -38394,7 +38394,7 @@ class _Uint16ArrayImpl extends _ArrayBufferViewImpl implements Uint16Array {
// From List<int>:
void sort([Comparator<int> compare = Comparable.compare]) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
+ throw new StateError("Cannot sort immutable List.");
}
int indexOf(int element, [int start = 0]) =>
@@ -38408,19 +38408,19 @@ class _Uint16ArrayImpl extends _ArrayBufferViewImpl implements Uint16Array {
int last() => this[length - 1];
int removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
+ throw new StateError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<int> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
+ throw new StateError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
+ throw new StateError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [int initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
+ throw new StateError("Cannot insertRange on immutable List.");
}
List<int> getRange(int start, int rangeLength) =>
@@ -38499,15 +38499,15 @@ class _Uint32ArrayImpl extends _ArrayBufferViewImpl implements Uint32Array {
// From Collection<int>:
void add(int value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addLast(int value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addAll(Collection<int> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
bool contains(int element) => _Collections.contains(this, element);
@@ -38528,7 +38528,7 @@ class _Uint32ArrayImpl extends _ArrayBufferViewImpl implements Uint32Array {
// From List<int>:
void sort([Comparator<int> compare = Comparable.compare]) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
+ throw new StateError("Cannot sort immutable List.");
}
int indexOf(int element, [int start = 0]) =>
@@ -38542,19 +38542,19 @@ class _Uint32ArrayImpl extends _ArrayBufferViewImpl implements Uint32Array {
int last() => this[length - 1];
int removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
+ throw new StateError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<int> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
+ throw new StateError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
+ throw new StateError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [int initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
+ throw new StateError("Cannot insertRange on immutable List.");
}
List<int> getRange(int start, int rangeLength) =>
@@ -38633,15 +38633,15 @@ class _Uint8ArrayImpl extends _ArrayBufferViewImpl implements Uint8Array {
// From Collection<int>:
void add(int value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addLast(int value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addAll(Collection<int> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
bool contains(int element) => _Collections.contains(this, element);
@@ -38662,7 +38662,7 @@ class _Uint8ArrayImpl extends _ArrayBufferViewImpl implements Uint8Array {
// From List<int>:
void sort([Comparator<int> compare = Comparable.compare]) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
+ throw new StateError("Cannot sort immutable List.");
}
int indexOf(int element, [int start = 0]) =>
@@ -38676,19 +38676,19 @@ class _Uint8ArrayImpl extends _ArrayBufferViewImpl implements Uint8Array {
int last() => this[length - 1];
int removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
+ throw new StateError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<int> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
+ throw new StateError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
+ throw new StateError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [int initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
+ throw new StateError("Cannot insertRange on immutable List.");
}
List<int> getRange(int start, int rangeLength) =>
@@ -40813,7 +40813,7 @@ class _WebKitAnimationListImpl extends NativeFieldWrapperClass1 implements List<
Animation operator[](int index) native "WebKitAnimationList_item_Callback";
void operator[]=(int index, Animation value) {
- throw new UnsupportedOperationException("Cannot assign element of immutable List.");
+ throw new StateError("Cannot assign element of immutable List.");
}
// -- start List<Animation> mixins.
// Animation is the element type.
@@ -40830,15 +40830,15 @@ class _WebKitAnimationListImpl extends NativeFieldWrapperClass1 implements List<
// From Collection<Animation>:
void add(Animation value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addLast(Animation value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
void addAll(Collection<Animation> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
+ throw new StateError("Cannot add to immutable List.");
}
bool contains(Animation element) => _Collections.contains(this, element);
@@ -40859,7 +40859,7 @@ class _WebKitAnimationListImpl extends NativeFieldWrapperClass1 implements List<
// From List<Animation>:
void sort([Comparator<Animation> compare = Comparable.compare]) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
+ throw new StateError("Cannot sort immutable List.");
}
int indexOf(Animation element, [int start = 0]) =>
@@ -40873,19 +40873,19 @@ class _WebKitAnimationListImpl extends NativeFieldWrapperClass1 implements List<
Animation last() => this[length - 1];
Animation removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
+ throw new StateError("Cannot removeLast on immutable List.");
}
void setRange(int start, int rangeLength, List<Animation> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
+ throw new StateError("Cannot setRange on immutable List.");
}
void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
+ throw new StateError("Cannot removeRange on immutable List.");
}
void insertRange(int start, int rangeLength, [Animation initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
+ throw new StateError("Cannot insertRange on immutable List.");
}
List<Animation> getRange(int start, int rangeLength) =>
@@ -44153,7 +44153,7 @@ class _Utils {
static Map createMap() => {};
static makeNotImplementedException(String fileName, int lineNo) {
- return new UnsupportedOperationException('[info: $fileName:$lineNo]');
+ return new StateError('[info: $fileName:$lineNo]');
}
static window() native "Utils_window";

Powered by Google App Engine
This is Rietveld 408576698