| OLD | NEW |
| 1 /// The Dart HTML library. | 1 /// The Dart HTML library. |
| 2 library dart.dom.html; | 2 library dart.dom.html; |
| 3 | 3 |
| 4 import 'dart:async'; | 4 import 'dart:async'; |
| 5 import 'dart:collection'; | 5 import 'dart:collection'; |
| 6 import 'dart:_collection-dev' hide Symbol; | 6 import 'dart:_collection-dev' hide Symbol; |
| 7 import 'dart:html_common'; | 7 import 'dart:html_common'; |
| 8 import 'dart:indexed_db'; | 8 import 'dart:indexed_db'; |
| 9 import 'dart:isolate'; | 9 import 'dart:isolate'; |
| 10 import 'dart:json' as json; | 10 import 'dart:json' as json; |
| (...skipping 6934 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6945 class DomStringList extends Interceptor with ListMixin<String>, ImmutableListMix
in<String> implements JavaScriptIndexingBehavior, List<String> native "DOMString
List" { | 6945 class DomStringList extends Interceptor with ListMixin<String>, ImmutableListMix
in<String> implements JavaScriptIndexingBehavior, List<String> native "DOMString
List" { |
| 6946 | 6946 |
| 6947 @DomName('DOMStringList.length') | 6947 @DomName('DOMStringList.length') |
| 6948 @DocsEditable | 6948 @DocsEditable |
| 6949 int get length => JS("int", "#.length", this); | 6949 int get length => JS("int", "#.length", this); |
| 6950 | 6950 |
| 6951 String operator[](int index) { | 6951 String operator[](int index) { |
| 6952 if (JS("bool", "# >>> 0 !== # || # >= #", index, | 6952 if (JS("bool", "# >>> 0 !== # || # >= #", index, |
| 6953 index, index, length)) | 6953 index, index, length)) |
| 6954 throw new RangeError.range(index, 0, length); | 6954 throw new RangeError.range(index, 0, length); |
| 6955 return this.item(index); | 6955 return JS("String", "#[#]", this, index); |
| 6956 } | 6956 } |
| 6957 void operator[]=(int index, String value) { | 6957 void operator[]=(int index, String value) { |
| 6958 throw new UnsupportedError("Cannot assign element of immutable List."); | 6958 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 6959 } | 6959 } |
| 6960 // -- start List<String> mixins. | 6960 // -- start List<String> mixins. |
| 6961 // String is the element type. | 6961 // String is the element type. |
| 6962 | 6962 |
| 6963 | 6963 |
| 6964 void set length(int value) { | 6964 void set length(int value) { |
| 6965 throw new UnsupportedError("Cannot resize immutable List."); | 6965 throw new UnsupportedError("Cannot resize immutable List."); |
| (...skipping 2723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9689 class FileList extends Interceptor with ListMixin<File>, ImmutableListMixin<File
> implements JavaScriptIndexingBehavior, List<File> native "FileList" { | 9689 class FileList extends Interceptor with ListMixin<File>, ImmutableListMixin<File
> implements JavaScriptIndexingBehavior, List<File> native "FileList" { |
| 9690 | 9690 |
| 9691 @DomName('FileList.length') | 9691 @DomName('FileList.length') |
| 9692 @DocsEditable | 9692 @DocsEditable |
| 9693 int get length => JS("int", "#.length", this); | 9693 int get length => JS("int", "#.length", this); |
| 9694 | 9694 |
| 9695 File operator[](int index) { | 9695 File operator[](int index) { |
| 9696 if (JS("bool", "# >>> 0 !== # || # >= #", index, | 9696 if (JS("bool", "# >>> 0 !== # || # >= #", index, |
| 9697 index, index, length)) | 9697 index, index, length)) |
| 9698 throw new RangeError.range(index, 0, length); | 9698 throw new RangeError.range(index, 0, length); |
| 9699 return this.item(index); | 9699 return JS("File", "#[#]", this, index); |
| 9700 } | 9700 } |
| 9701 void operator[]=(int index, File value) { | 9701 void operator[]=(int index, File value) { |
| 9702 throw new UnsupportedError("Cannot assign element of immutable List."); | 9702 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 9703 } | 9703 } |
| 9704 // -- start List<File> mixins. | 9704 // -- start List<File> mixins. |
| 9705 // File is the element type. | 9705 // File is the element type. |
| 9706 | 9706 |
| 9707 | 9707 |
| 9708 void set length(int value) { | 9708 void set length(int value) { |
| 9709 throw new UnsupportedError("Cannot resize immutable List."); | 9709 throw new UnsupportedError("Cannot resize immutable List."); |
| (...skipping 857 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10567 class HtmlAllCollection extends Interceptor with ListMixin<Node>, ImmutableListM
ixin<Node> implements JavaScriptIndexingBehavior, List<Node> native "HTMLAllColl
ection" { | 10567 class HtmlAllCollection extends Interceptor with ListMixin<Node>, ImmutableListM
ixin<Node> implements JavaScriptIndexingBehavior, List<Node> native "HTMLAllColl
ection" { |
| 10568 | 10568 |
| 10569 @DomName('HTMLAllCollection.length') | 10569 @DomName('HTMLAllCollection.length') |
| 10570 @DocsEditable | 10570 @DocsEditable |
| 10571 int get length => JS("int", "#.length", this); | 10571 int get length => JS("int", "#.length", this); |
| 10572 | 10572 |
| 10573 Node operator[](int index) { | 10573 Node operator[](int index) { |
| 10574 if (JS("bool", "# >>> 0 !== # || # >= #", index, | 10574 if (JS("bool", "# >>> 0 !== # || # >= #", index, |
| 10575 index, index, length)) | 10575 index, index, length)) |
| 10576 throw new RangeError.range(index, 0, length); | 10576 throw new RangeError.range(index, 0, length); |
| 10577 return this.item(index); | 10577 return JS("Node", "#[#]", this, index); |
| 10578 } | 10578 } |
| 10579 void operator[]=(int index, Node value) { | 10579 void operator[]=(int index, Node value) { |
| 10580 throw new UnsupportedError("Cannot assign element of immutable List."); | 10580 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 10581 } | 10581 } |
| 10582 // -- start List<Node> mixins. | 10582 // -- start List<Node> mixins. |
| 10583 // Node is the element type. | 10583 // Node is the element type. |
| 10584 | 10584 |
| 10585 | 10585 |
| 10586 void set length(int value) { | 10586 void set length(int value) { |
| 10587 throw new UnsupportedError("Cannot resize immutable List."); | 10587 throw new UnsupportedError("Cannot resize immutable List."); |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10638 class HtmlCollection extends Interceptor with ListMixin<Node>, ImmutableListMixi
n<Node> implements JavaScriptIndexingBehavior, List<Node> native "HTMLCollection
" { | 10638 class HtmlCollection extends Interceptor with ListMixin<Node>, ImmutableListMixi
n<Node> implements JavaScriptIndexingBehavior, List<Node> native "HTMLCollection
" { |
| 10639 | 10639 |
| 10640 @DomName('HTMLCollection.length') | 10640 @DomName('HTMLCollection.length') |
| 10641 @DocsEditable | 10641 @DocsEditable |
| 10642 int get length => JS("int", "#.length", this); | 10642 int get length => JS("int", "#.length", this); |
| 10643 | 10643 |
| 10644 Node operator[](int index) { | 10644 Node operator[](int index) { |
| 10645 if (JS("bool", "# >>> 0 !== # || # >= #", index, | 10645 if (JS("bool", "# >>> 0 !== # || # >= #", index, |
| 10646 index, index, length)) | 10646 index, index, length)) |
| 10647 throw new RangeError.range(index, 0, length); | 10647 throw new RangeError.range(index, 0, length); |
| 10648 return this.item(index); | 10648 return JS("Node", "#[#]", this, index); |
| 10649 } | 10649 } |
| 10650 void operator[]=(int index, Node value) { | 10650 void operator[]=(int index, Node value) { |
| 10651 throw new UnsupportedError("Cannot assign element of immutable List."); | 10651 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 10652 } | 10652 } |
| 10653 // -- start List<Node> mixins. | 10653 // -- start List<Node> mixins. |
| 10654 // Node is the element type. | 10654 // Node is the element type. |
| 10655 | 10655 |
| 10656 | 10656 |
| 10657 void set length(int value) { | 10657 void set length(int value) { |
| 10658 throw new UnsupportedError("Cannot resize immutable List."); | 10658 throw new UnsupportedError("Cannot resize immutable List."); |
| (...skipping 3715 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14374 class MimeTypeArray extends Interceptor with ListMixin<MimeType>, ImmutableListM
ixin<MimeType> implements JavaScriptIndexingBehavior, List<MimeType> native "Mim
eTypeArray" { | 14374 class MimeTypeArray extends Interceptor with ListMixin<MimeType>, ImmutableListM
ixin<MimeType> implements JavaScriptIndexingBehavior, List<MimeType> native "Mim
eTypeArray" { |
| 14375 | 14375 |
| 14376 @DomName('MimeTypeArray.length') | 14376 @DomName('MimeTypeArray.length') |
| 14377 @DocsEditable | 14377 @DocsEditable |
| 14378 int get length => JS("int", "#.length", this); | 14378 int get length => JS("int", "#.length", this); |
| 14379 | 14379 |
| 14380 MimeType operator[](int index) { | 14380 MimeType operator[](int index) { |
| 14381 if (JS("bool", "# >>> 0 !== # || # >= #", index, | 14381 if (JS("bool", "# >>> 0 !== # || # >= #", index, |
| 14382 index, index, length)) | 14382 index, index, length)) |
| 14383 throw new RangeError.range(index, 0, length); | 14383 throw new RangeError.range(index, 0, length); |
| 14384 return this.item(index); | 14384 return JS("MimeType", "#[#]", this, index); |
| 14385 } | 14385 } |
| 14386 void operator[]=(int index, MimeType value) { | 14386 void operator[]=(int index, MimeType value) { |
| 14387 throw new UnsupportedError("Cannot assign element of immutable List."); | 14387 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 14388 } | 14388 } |
| 14389 // -- start List<MimeType> mixins. | 14389 // -- start List<MimeType> mixins. |
| 14390 // MimeType is the element type. | 14390 // MimeType is the element type. |
| 14391 | 14391 |
| 14392 | 14392 |
| 14393 void set length(int value) { | 14393 void set length(int value) { |
| 14394 throw new UnsupportedError("Cannot resize immutable List."); | 14394 throw new UnsupportedError("Cannot resize immutable List."); |
| (...skipping 1277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15672 class NodeList extends Interceptor with ListMixin<Node>, ImmutableListMixin<Node
> implements JavaScriptIndexingBehavior, List<Node> native "NodeList,RadioNodeLi
st" { | 15672 class NodeList extends Interceptor with ListMixin<Node>, ImmutableListMixin<Node
> implements JavaScriptIndexingBehavior, List<Node> native "NodeList,RadioNodeLi
st" { |
| 15673 | 15673 |
| 15674 @DomName('NodeList.length') | 15674 @DomName('NodeList.length') |
| 15675 @DocsEditable | 15675 @DocsEditable |
| 15676 int get length => JS("int", "#.length", this); | 15676 int get length => JS("int", "#.length", this); |
| 15677 | 15677 |
| 15678 Node operator[](int index) { | 15678 Node operator[](int index) { |
| 15679 if (JS("bool", "# >>> 0 !== # || # >= #", index, | 15679 if (JS("bool", "# >>> 0 !== # || # >= #", index, |
| 15680 index, index, length)) | 15680 index, index, length)) |
| 15681 throw new RangeError.range(index, 0, length); | 15681 throw new RangeError.range(index, 0, length); |
| 15682 return this.item(index); | 15682 return JS("Node", "#[#]", this, index); |
| 15683 } | 15683 } |
| 15684 void operator[]=(int index, Node value) { | 15684 void operator[]=(int index, Node value) { |
| 15685 throw new UnsupportedError("Cannot assign element of immutable List."); | 15685 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 15686 } | 15686 } |
| 15687 // -- start List<Node> mixins. | 15687 // -- start List<Node> mixins. |
| 15688 // Node is the element type. | 15688 // Node is the element type. |
| 15689 | 15689 |
| 15690 | 15690 |
| 15691 void set length(int value) { | 15691 void set length(int value) { |
| 15692 throw new UnsupportedError("Cannot resize immutable List."); | 15692 throw new UnsupportedError("Cannot resize immutable List."); |
| (...skipping 969 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16662 class PluginArray extends Interceptor with ListMixin<Plugin>, ImmutableListMixin
<Plugin> implements JavaScriptIndexingBehavior, List<Plugin> native "PluginArray
" { | 16662 class PluginArray extends Interceptor with ListMixin<Plugin>, ImmutableListMixin
<Plugin> implements JavaScriptIndexingBehavior, List<Plugin> native "PluginArray
" { |
| 16663 | 16663 |
| 16664 @DomName('PluginArray.length') | 16664 @DomName('PluginArray.length') |
| 16665 @DocsEditable | 16665 @DocsEditable |
| 16666 int get length => JS("int", "#.length", this); | 16666 int get length => JS("int", "#.length", this); |
| 16667 | 16667 |
| 16668 Plugin operator[](int index) { | 16668 Plugin operator[](int index) { |
| 16669 if (JS("bool", "# >>> 0 !== # || # >= #", index, | 16669 if (JS("bool", "# >>> 0 !== # || # >= #", index, |
| 16670 index, index, length)) | 16670 index, index, length)) |
| 16671 throw new RangeError.range(index, 0, length); | 16671 throw new RangeError.range(index, 0, length); |
| 16672 return this.item(index); | 16672 return JS("Plugin", "#[#]", this, index); |
| 16673 } | 16673 } |
| 16674 void operator[]=(int index, Plugin value) { | 16674 void operator[]=(int index, Plugin value) { |
| 16675 throw new UnsupportedError("Cannot assign element of immutable List."); | 16675 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 16676 } | 16676 } |
| 16677 // -- start List<Plugin> mixins. | 16677 // -- start List<Plugin> mixins. |
| 16678 // Plugin is the element type. | 16678 // Plugin is the element type. |
| 16679 | 16679 |
| 16680 | 16680 |
| 16681 void set length(int value) { | 16681 void set length(int value) { |
| 16682 throw new UnsupportedError("Cannot resize immutable List."); | 16682 throw new UnsupportedError("Cannot resize immutable List."); |
| (...skipping 1660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 18343 class SourceBufferList extends EventTarget with ListMixin<SourceBuffer>, Immutab
leListMixin<SourceBuffer> implements JavaScriptIndexingBehavior, List<SourceBuff
er> native "SourceBufferList" { | 18343 class SourceBufferList extends EventTarget with ListMixin<SourceBuffer>, Immutab
leListMixin<SourceBuffer> implements JavaScriptIndexingBehavior, List<SourceBuff
er> native "SourceBufferList" { |
| 18344 | 18344 |
| 18345 @DomName('SourceBufferList.length') | 18345 @DomName('SourceBufferList.length') |
| 18346 @DocsEditable | 18346 @DocsEditable |
| 18347 int get length => JS("int", "#.length", this); | 18347 int get length => JS("int", "#.length", this); |
| 18348 | 18348 |
| 18349 SourceBuffer operator[](int index) { | 18349 SourceBuffer operator[](int index) { |
| 18350 if (JS("bool", "# >>> 0 !== # || # >= #", index, | 18350 if (JS("bool", "# >>> 0 !== # || # >= #", index, |
| 18351 index, index, length)) | 18351 index, index, length)) |
| 18352 throw new RangeError.range(index, 0, length); | 18352 throw new RangeError.range(index, 0, length); |
| 18353 return this.item(index); | 18353 return JS("SourceBuffer", "#[#]", this, index); |
| 18354 } | 18354 } |
| 18355 void operator[]=(int index, SourceBuffer value) { | 18355 void operator[]=(int index, SourceBuffer value) { |
| 18356 throw new UnsupportedError("Cannot assign element of immutable List."); | 18356 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 18357 } | 18357 } |
| 18358 // -- start List<SourceBuffer> mixins. | 18358 // -- start List<SourceBuffer> mixins. |
| 18359 // SourceBuffer is the element type. | 18359 // SourceBuffer is the element type. |
| 18360 | 18360 |
| 18361 | 18361 |
| 18362 void set length(int value) { | 18362 void set length(int value) { |
| 18363 throw new UnsupportedError("Cannot resize immutable List."); | 18363 throw new UnsupportedError("Cannot resize immutable List."); |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 18487 static SpeechGrammarList _create_1() => JS('SpeechGrammarList', 'new SpeechGra
mmarList()'); | 18487 static SpeechGrammarList _create_1() => JS('SpeechGrammarList', 'new SpeechGra
mmarList()'); |
| 18488 | 18488 |
| 18489 @DomName('SpeechGrammarList.length') | 18489 @DomName('SpeechGrammarList.length') |
| 18490 @DocsEditable | 18490 @DocsEditable |
| 18491 int get length => JS("int", "#.length", this); | 18491 int get length => JS("int", "#.length", this); |
| 18492 | 18492 |
| 18493 SpeechGrammar operator[](int index) { | 18493 SpeechGrammar operator[](int index) { |
| 18494 if (JS("bool", "# >>> 0 !== # || # >= #", index, | 18494 if (JS("bool", "# >>> 0 !== # || # >= #", index, |
| 18495 index, index, length)) | 18495 index, index, length)) |
| 18496 throw new RangeError.range(index, 0, length); | 18496 throw new RangeError.range(index, 0, length); |
| 18497 return this.item(index); | 18497 return JS("SpeechGrammar", "#[#]", this, index); |
| 18498 } | 18498 } |
| 18499 void operator[]=(int index, SpeechGrammar value) { | 18499 void operator[]=(int index, SpeechGrammar value) { |
| 18500 throw new UnsupportedError("Cannot assign element of immutable List."); | 18500 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 18501 } | 18501 } |
| 18502 // -- start List<SpeechGrammar> mixins. | 18502 // -- start List<SpeechGrammar> mixins. |
| 18503 // SpeechGrammar is the element type. | 18503 // SpeechGrammar is the element type. |
| 18504 | 18504 |
| 18505 | 18505 |
| 18506 void set length(int value) { | 18506 void set length(int value) { |
| 18507 throw new UnsupportedError("Cannot resize immutable List."); | 18507 throw new UnsupportedError("Cannot resize immutable List."); |
| (...skipping 1659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20167 class TextTrackCueList extends Interceptor with ListMixin<TextTrackCue>, Immutab
leListMixin<TextTrackCue> implements List<TextTrackCue>, JavaScriptIndexingBehav
ior native "TextTrackCueList" { | 20167 class TextTrackCueList extends Interceptor with ListMixin<TextTrackCue>, Immutab
leListMixin<TextTrackCue> implements List<TextTrackCue>, JavaScriptIndexingBehav
ior native "TextTrackCueList" { |
| 20168 | 20168 |
| 20169 @DomName('TextTrackCueList.length') | 20169 @DomName('TextTrackCueList.length') |
| 20170 @DocsEditable | 20170 @DocsEditable |
| 20171 int get length => JS("int", "#.length", this); | 20171 int get length => JS("int", "#.length", this); |
| 20172 | 20172 |
| 20173 TextTrackCue operator[](int index) { | 20173 TextTrackCue operator[](int index) { |
| 20174 if (JS("bool", "# >>> 0 !== # || # >= #", index, | 20174 if (JS("bool", "# >>> 0 !== # || # >= #", index, |
| 20175 index, index, length)) | 20175 index, index, length)) |
| 20176 throw new RangeError.range(index, 0, length); | 20176 throw new RangeError.range(index, 0, length); |
| 20177 return this.item(index); | 20177 return JS("TextTrackCue", "#[#]", this, index); |
| 20178 } | 20178 } |
| 20179 void operator[]=(int index, TextTrackCue value) { | 20179 void operator[]=(int index, TextTrackCue value) { |
| 20180 throw new UnsupportedError("Cannot assign element of immutable List."); | 20180 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 20181 } | 20181 } |
| 20182 // -- start List<TextTrackCue> mixins. | 20182 // -- start List<TextTrackCue> mixins. |
| 20183 // TextTrackCue is the element type. | 20183 // TextTrackCue is the element type. |
| 20184 | 20184 |
| 20185 | 20185 |
| 20186 void set length(int value) { | 20186 void set length(int value) { |
| 20187 throw new UnsupportedError("Cannot resize immutable List."); | 20187 throw new UnsupportedError("Cannot resize immutable List."); |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20236 static const EventStreamProvider<TrackEvent> addTrackEvent = const EventStream
Provider<TrackEvent>('addtrack'); | 20236 static const EventStreamProvider<TrackEvent> addTrackEvent = const EventStream
Provider<TrackEvent>('addtrack'); |
| 20237 | 20237 |
| 20238 @DomName('TextTrackList.length') | 20238 @DomName('TextTrackList.length') |
| 20239 @DocsEditable | 20239 @DocsEditable |
| 20240 int get length => JS("int", "#.length", this); | 20240 int get length => JS("int", "#.length", this); |
| 20241 | 20241 |
| 20242 TextTrack operator[](int index) { | 20242 TextTrack operator[](int index) { |
| 20243 if (JS("bool", "# >>> 0 !== # || # >= #", index, | 20243 if (JS("bool", "# >>> 0 !== # || # >= #", index, |
| 20244 index, index, length)) | 20244 index, index, length)) |
| 20245 throw new RangeError.range(index, 0, length); | 20245 throw new RangeError.range(index, 0, length); |
| 20246 return this.item(index); | 20246 return JS("TextTrack", "#[#]", this, index); |
| 20247 } | 20247 } |
| 20248 void operator[]=(int index, TextTrack value) { | 20248 void operator[]=(int index, TextTrack value) { |
| 20249 throw new UnsupportedError("Cannot assign element of immutable List."); | 20249 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 20250 } | 20250 } |
| 20251 // -- start List<TextTrack> mixins. | 20251 // -- start List<TextTrack> mixins. |
| 20252 // TextTrack is the element type. | 20252 // TextTrack is the element type. |
| 20253 | 20253 |
| 20254 | 20254 |
| 20255 void set length(int value) { | 20255 void set length(int value) { |
| 20256 throw new UnsupportedError("Cannot resize immutable List."); | 20256 throw new UnsupportedError("Cannot resize immutable List."); |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20531 static bool get supported => JS('bool', '!!document.createTouchList'); | 20531 static bool get supported => JS('bool', '!!document.createTouchList'); |
| 20532 | 20532 |
| 20533 @DomName('TouchList.length') | 20533 @DomName('TouchList.length') |
| 20534 @DocsEditable | 20534 @DocsEditable |
| 20535 int get length => JS("int", "#.length", this); | 20535 int get length => JS("int", "#.length", this); |
| 20536 | 20536 |
| 20537 Touch operator[](int index) { | 20537 Touch operator[](int index) { |
| 20538 if (JS("bool", "# >>> 0 !== # || # >= #", index, | 20538 if (JS("bool", "# >>> 0 !== # || # >= #", index, |
| 20539 index, index, length)) | 20539 index, index, length)) |
| 20540 throw new RangeError.range(index, 0, length); | 20540 throw new RangeError.range(index, 0, length); |
| 20541 return this.item(index); | 20541 return JS("Touch", "#[#]", this, index); |
| 20542 } | 20542 } |
| 20543 void operator[]=(int index, Touch value) { | 20543 void operator[]=(int index, Touch value) { |
| 20544 throw new UnsupportedError("Cannot assign element of immutable List."); | 20544 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 20545 } | 20545 } |
| 20546 // -- start List<Touch> mixins. | 20546 // -- start List<Touch> mixins. |
| 20547 // Touch is the element type. | 20547 // Touch is the element type. |
| 20548 | 20548 |
| 20549 | 20549 |
| 20550 void set length(int value) { | 20550 void set length(int value) { |
| 20551 throw new UnsupportedError("Cannot resize immutable List."); | 20551 throw new UnsupportedError("Cannot resize immutable List."); |
| (...skipping 2355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 22907 class _ClientRectList extends Interceptor with ListMixin<Rect>, ImmutableListMix
in<Rect> implements JavaScriptIndexingBehavior, List<Rect> native "ClientRectLis
t" { | 22907 class _ClientRectList extends Interceptor with ListMixin<Rect>, ImmutableListMix
in<Rect> implements JavaScriptIndexingBehavior, List<Rect> native "ClientRectLis
t" { |
| 22908 | 22908 |
| 22909 @DomName('ClientRectList.length') | 22909 @DomName('ClientRectList.length') |
| 22910 @DocsEditable | 22910 @DocsEditable |
| 22911 int get length => JS("int", "#.length", this); | 22911 int get length => JS("int", "#.length", this); |
| 22912 | 22912 |
| 22913 Rect operator[](int index) { | 22913 Rect operator[](int index) { |
| 22914 if (JS("bool", "# >>> 0 !== # || # >= #", index, | 22914 if (JS("bool", "# >>> 0 !== # || # >= #", index, |
| 22915 index, index, length)) | 22915 index, index, length)) |
| 22916 throw new RangeError.range(index, 0, length); | 22916 throw new RangeError.range(index, 0, length); |
| 22917 return this.item(index); | 22917 return JS("Rect", "#[#]", this, index); |
| 22918 } | 22918 } |
| 22919 void operator[]=(int index, Rect value) { | 22919 void operator[]=(int index, Rect value) { |
| 22920 throw new UnsupportedError("Cannot assign element of immutable List."); | 22920 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 22921 } | 22921 } |
| 22922 // -- start List<Rect> mixins. | 22922 // -- start List<Rect> mixins. |
| 22923 // Rect is the element type. | 22923 // Rect is the element type. |
| 22924 | 22924 |
| 22925 | 22925 |
| 22926 void set length(int value) { | 22926 void set length(int value) { |
| 22927 throw new UnsupportedError("Cannot resize immutable List."); | 22927 throw new UnsupportedError("Cannot resize immutable List."); |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 22977 class _CssRuleList extends Interceptor with ListMixin<CssRule>, ImmutableListMix
in<CssRule> implements JavaScriptIndexingBehavior, List<CssRule> native "CSSRule
List" { | 22977 class _CssRuleList extends Interceptor with ListMixin<CssRule>, ImmutableListMix
in<CssRule> implements JavaScriptIndexingBehavior, List<CssRule> native "CSSRule
List" { |
| 22978 | 22978 |
| 22979 @DomName('CSSRuleList.length') | 22979 @DomName('CSSRuleList.length') |
| 22980 @DocsEditable | 22980 @DocsEditable |
| 22981 int get length => JS("int", "#.length", this); | 22981 int get length => JS("int", "#.length", this); |
| 22982 | 22982 |
| 22983 CssRule operator[](int index) { | 22983 CssRule operator[](int index) { |
| 22984 if (JS("bool", "# >>> 0 !== # || # >= #", index, | 22984 if (JS("bool", "# >>> 0 !== # || # >= #", index, |
| 22985 index, index, length)) | 22985 index, index, length)) |
| 22986 throw new RangeError.range(index, 0, length); | 22986 throw new RangeError.range(index, 0, length); |
| 22987 return this.item(index); | 22987 return JS("CssRule", "#[#]", this, index); |
| 22988 } | 22988 } |
| 22989 void operator[]=(int index, CssRule value) { | 22989 void operator[]=(int index, CssRule value) { |
| 22990 throw new UnsupportedError("Cannot assign element of immutable List."); | 22990 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 22991 } | 22991 } |
| 22992 // -- start List<CssRule> mixins. | 22992 // -- start List<CssRule> mixins. |
| 22993 // CssRule is the element type. | 22993 // CssRule is the element type. |
| 22994 | 22994 |
| 22995 | 22995 |
| 22996 void set length(int value) { | 22996 void set length(int value) { |
| 22997 throw new UnsupportedError("Cannot resize immutable List."); | 22997 throw new UnsupportedError("Cannot resize immutable List."); |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 23038 class _CssValueList extends _CSSValue with ListMixin<_CSSValue>, ImmutableListMi
xin<_CSSValue> implements JavaScriptIndexingBehavior, List<_CSSValue> native "CS
SValueList" { | 23038 class _CssValueList extends _CSSValue with ListMixin<_CSSValue>, ImmutableListMi
xin<_CSSValue> implements JavaScriptIndexingBehavior, List<_CSSValue> native "CS
SValueList" { |
| 23039 | 23039 |
| 23040 @DomName('CSSValueList.length') | 23040 @DomName('CSSValueList.length') |
| 23041 @DocsEditable | 23041 @DocsEditable |
| 23042 int get length => JS("int", "#.length", this); | 23042 int get length => JS("int", "#.length", this); |
| 23043 | 23043 |
| 23044 _CSSValue operator[](int index) { | 23044 _CSSValue operator[](int index) { |
| 23045 if (JS("bool", "# >>> 0 !== # || # >= #", index, | 23045 if (JS("bool", "# >>> 0 !== # || # >= #", index, |
| 23046 index, index, length)) | 23046 index, index, length)) |
| 23047 throw new RangeError.range(index, 0, length); | 23047 throw new RangeError.range(index, 0, length); |
| 23048 return this.item(index); | 23048 return JS("_CSSValue", "#[#]", this, index); |
| 23049 } | 23049 } |
| 23050 void operator[]=(int index, _CSSValue value) { | 23050 void operator[]=(int index, _CSSValue value) { |
| 23051 throw new UnsupportedError("Cannot assign element of immutable List."); | 23051 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 23052 } | 23052 } |
| 23053 // -- start List<_CSSValue> mixins. | 23053 // -- start List<_CSSValue> mixins. |
| 23054 // _CSSValue is the element type. | 23054 // _CSSValue is the element type. |
| 23055 | 23055 |
| 23056 | 23056 |
| 23057 void set length(int value) { | 23057 void set length(int value) { |
| 23058 throw new UnsupportedError("Cannot resize immutable List."); | 23058 throw new UnsupportedError("Cannot resize immutable List."); |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 23188 class _EntryArray extends Interceptor with ListMixin<Entry>, ImmutableListMixin<
Entry> implements JavaScriptIndexingBehavior, List<Entry> native "EntryArray" { | 23188 class _EntryArray extends Interceptor with ListMixin<Entry>, ImmutableListMixin<
Entry> implements JavaScriptIndexingBehavior, List<Entry> native "EntryArray" { |
| 23189 | 23189 |
| 23190 @DomName('EntryArray.length') | 23190 @DomName('EntryArray.length') |
| 23191 @DocsEditable | 23191 @DocsEditable |
| 23192 int get length => JS("int", "#.length", this); | 23192 int get length => JS("int", "#.length", this); |
| 23193 | 23193 |
| 23194 Entry operator[](int index) { | 23194 Entry operator[](int index) { |
| 23195 if (JS("bool", "# >>> 0 !== # || # >= #", index, | 23195 if (JS("bool", "# >>> 0 !== # || # >= #", index, |
| 23196 index, index, length)) | 23196 index, index, length)) |
| 23197 throw new RangeError.range(index, 0, length); | 23197 throw new RangeError.range(index, 0, length); |
| 23198 return this.item(index); | 23198 return JS("Entry", "#[#]", this, index); |
| 23199 } | 23199 } |
| 23200 void operator[]=(int index, Entry value) { | 23200 void operator[]=(int index, Entry value) { |
| 23201 throw new UnsupportedError("Cannot assign element of immutable List."); | 23201 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 23202 } | 23202 } |
| 23203 // -- start List<Entry> mixins. | 23203 // -- start List<Entry> mixins. |
| 23204 // Entry is the element type. | 23204 // Entry is the element type. |
| 23205 | 23205 |
| 23206 | 23206 |
| 23207 void set length(int value) { | 23207 void set length(int value) { |
| 23208 throw new UnsupportedError("Cannot resize immutable List."); | 23208 throw new UnsupportedError("Cannot resize immutable List."); |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 23249 class _EntryArraySync extends Interceptor with ListMixin<_EntrySync>, ImmutableL
istMixin<_EntrySync> implements JavaScriptIndexingBehavior, List<_EntrySync> nat
ive "EntryArraySync" { | 23249 class _EntryArraySync extends Interceptor with ListMixin<_EntrySync>, ImmutableL
istMixin<_EntrySync> implements JavaScriptIndexingBehavior, List<_EntrySync> nat
ive "EntryArraySync" { |
| 23250 | 23250 |
| 23251 @DomName('EntryArraySync.length') | 23251 @DomName('EntryArraySync.length') |
| 23252 @DocsEditable | 23252 @DocsEditable |
| 23253 int get length => JS("int", "#.length", this); | 23253 int get length => JS("int", "#.length", this); |
| 23254 | 23254 |
| 23255 _EntrySync operator[](int index) { | 23255 _EntrySync operator[](int index) { |
| 23256 if (JS("bool", "# >>> 0 !== # || # >= #", index, | 23256 if (JS("bool", "# >>> 0 !== # || # >= #", index, |
| 23257 index, index, length)) | 23257 index, index, length)) |
| 23258 throw new RangeError.range(index, 0, length); | 23258 throw new RangeError.range(index, 0, length); |
| 23259 return this.item(index); | 23259 return JS("_EntrySync", "#[#]", this, index); |
| 23260 } | 23260 } |
| 23261 void operator[]=(int index, _EntrySync value) { | 23261 void operator[]=(int index, _EntrySync value) { |
| 23262 throw new UnsupportedError("Cannot assign element of immutable List."); | 23262 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 23263 } | 23263 } |
| 23264 // -- start List<_EntrySync> mixins. | 23264 // -- start List<_EntrySync> mixins. |
| 23265 // _EntrySync is the element type. | 23265 // _EntrySync is the element type. |
| 23266 | 23266 |
| 23267 | 23267 |
| 23268 void set length(int value) { | 23268 void set length(int value) { |
| 23269 throw new UnsupportedError("Cannot resize immutable List."); | 23269 throw new UnsupportedError("Cannot resize immutable List."); |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 23353 class _GamepadList extends Interceptor with ListMixin<Gamepad>, ImmutableListMix
in<Gamepad> implements JavaScriptIndexingBehavior, List<Gamepad> native "Gamepad
List" { | 23353 class _GamepadList extends Interceptor with ListMixin<Gamepad>, ImmutableListMix
in<Gamepad> implements JavaScriptIndexingBehavior, List<Gamepad> native "Gamepad
List" { |
| 23354 | 23354 |
| 23355 @DomName('GamepadList.length') | 23355 @DomName('GamepadList.length') |
| 23356 @DocsEditable | 23356 @DocsEditable |
| 23357 int get length => JS("int", "#.length", this); | 23357 int get length => JS("int", "#.length", this); |
| 23358 | 23358 |
| 23359 Gamepad operator[](int index) { | 23359 Gamepad operator[](int index) { |
| 23360 if (JS("bool", "# >>> 0 !== # || # >= #", index, | 23360 if (JS("bool", "# >>> 0 !== # || # >= #", index, |
| 23361 index, index, length)) | 23361 index, index, length)) |
| 23362 throw new RangeError.range(index, 0, length); | 23362 throw new RangeError.range(index, 0, length); |
| 23363 return this.item(index); | 23363 return JS("Gamepad", "#[#]", this, index); |
| 23364 } | 23364 } |
| 23365 void operator[]=(int index, Gamepad value) { | 23365 void operator[]=(int index, Gamepad value) { |
| 23366 throw new UnsupportedError("Cannot assign element of immutable List."); | 23366 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 23367 } | 23367 } |
| 23368 // -- start List<Gamepad> mixins. | 23368 // -- start List<Gamepad> mixins. |
| 23369 // Gamepad is the element type. | 23369 // Gamepad is the element type. |
| 23370 | 23370 |
| 23371 | 23371 |
| 23372 void set length(int value) { | 23372 void set length(int value) { |
| 23373 throw new UnsupportedError("Cannot resize immutable List."); | 23373 throw new UnsupportedError("Cannot resize immutable List."); |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 23477 class _NamedNodeMap extends Interceptor with ListMixin<Node>, ImmutableListMixin
<Node> implements JavaScriptIndexingBehavior, List<Node> native "NamedNodeMap" { | 23477 class _NamedNodeMap extends Interceptor with ListMixin<Node>, ImmutableListMixin
<Node> implements JavaScriptIndexingBehavior, List<Node> native "NamedNodeMap" { |
| 23478 | 23478 |
| 23479 @DomName('NamedNodeMap.length') | 23479 @DomName('NamedNodeMap.length') |
| 23480 @DocsEditable | 23480 @DocsEditable |
| 23481 int get length => JS("int", "#.length", this); | 23481 int get length => JS("int", "#.length", this); |
| 23482 | 23482 |
| 23483 Node operator[](int index) { | 23483 Node operator[](int index) { |
| 23484 if (JS("bool", "# >>> 0 !== # || # >= #", index, | 23484 if (JS("bool", "# >>> 0 !== # || # >= #", index, |
| 23485 index, index, length)) | 23485 index, index, length)) |
| 23486 throw new RangeError.range(index, 0, length); | 23486 throw new RangeError.range(index, 0, length); |
| 23487 return this.item(index); | 23487 return JS("Node", "#[#]", this, index); |
| 23488 } | 23488 } |
| 23489 void operator[]=(int index, Node value) { | 23489 void operator[]=(int index, Node value) { |
| 23490 throw new UnsupportedError("Cannot assign element of immutable List."); | 23490 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 23491 } | 23491 } |
| 23492 // -- start List<Node> mixins. | 23492 // -- start List<Node> mixins. |
| 23493 // Node is the element type. | 23493 // Node is the element type. |
| 23494 | 23494 |
| 23495 | 23495 |
| 23496 void set length(int value) { | 23496 void set length(int value) { |
| 23497 throw new UnsupportedError("Cannot resize immutable List."); | 23497 throw new UnsupportedError("Cannot resize immutable List."); |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 23627 class _SpeechInputResultList extends Interceptor with ListMixin<SpeechInputResul
t>, ImmutableListMixin<SpeechInputResult> implements JavaScriptIndexingBehavior,
List<SpeechInputResult> native "SpeechInputResultList" { | 23627 class _SpeechInputResultList extends Interceptor with ListMixin<SpeechInputResul
t>, ImmutableListMixin<SpeechInputResult> implements JavaScriptIndexingBehavior,
List<SpeechInputResult> native "SpeechInputResultList" { |
| 23628 | 23628 |
| 23629 @DomName('SpeechInputResultList.length') | 23629 @DomName('SpeechInputResultList.length') |
| 23630 @DocsEditable | 23630 @DocsEditable |
| 23631 int get length => JS("int", "#.length", this); | 23631 int get length => JS("int", "#.length", this); |
| 23632 | 23632 |
| 23633 SpeechInputResult operator[](int index) { | 23633 SpeechInputResult operator[](int index) { |
| 23634 if (JS("bool", "# >>> 0 !== # || # >= #", index, | 23634 if (JS("bool", "# >>> 0 !== # || # >= #", index, |
| 23635 index, index, length)) | 23635 index, index, length)) |
| 23636 throw new RangeError.range(index, 0, length); | 23636 throw new RangeError.range(index, 0, length); |
| 23637 return this.item(index); | 23637 return JS("SpeechInputResult", "#[#]", this, index); |
| 23638 } | 23638 } |
| 23639 void operator[]=(int index, SpeechInputResult value) { | 23639 void operator[]=(int index, SpeechInputResult value) { |
| 23640 throw new UnsupportedError("Cannot assign element of immutable List."); | 23640 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 23641 } | 23641 } |
| 23642 // -- start List<SpeechInputResult> mixins. | 23642 // -- start List<SpeechInputResult> mixins. |
| 23643 // SpeechInputResult is the element type. | 23643 // SpeechInputResult is the element type. |
| 23644 | 23644 |
| 23645 | 23645 |
| 23646 void set length(int value) { | 23646 void set length(int value) { |
| 23647 throw new UnsupportedError("Cannot resize immutable List."); | 23647 throw new UnsupportedError("Cannot resize immutable List."); |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 23688 class _SpeechRecognitionResultList extends Interceptor with ListMixin<SpeechReco
gnitionResult>, ImmutableListMixin<SpeechRecognitionResult> implements JavaScrip
tIndexingBehavior, List<SpeechRecognitionResult> native "SpeechRecognitionResult
List" { | 23688 class _SpeechRecognitionResultList extends Interceptor with ListMixin<SpeechReco
gnitionResult>, ImmutableListMixin<SpeechRecognitionResult> implements JavaScrip
tIndexingBehavior, List<SpeechRecognitionResult> native "SpeechRecognitionResult
List" { |
| 23689 | 23689 |
| 23690 @DomName('SpeechRecognitionResultList.length') | 23690 @DomName('SpeechRecognitionResultList.length') |
| 23691 @DocsEditable | 23691 @DocsEditable |
| 23692 int get length => JS("int", "#.length", this); | 23692 int get length => JS("int", "#.length", this); |
| 23693 | 23693 |
| 23694 SpeechRecognitionResult operator[](int index) { | 23694 SpeechRecognitionResult operator[](int index) { |
| 23695 if (JS("bool", "# >>> 0 !== # || # >= #", index, | 23695 if (JS("bool", "# >>> 0 !== # || # >= #", index, |
| 23696 index, index, length)) | 23696 index, index, length)) |
| 23697 throw new RangeError.range(index, 0, length); | 23697 throw new RangeError.range(index, 0, length); |
| 23698 return this.item(index); | 23698 return JS("SpeechRecognitionResult", "#[#]", this, index); |
| 23699 } | 23699 } |
| 23700 void operator[]=(int index, SpeechRecognitionResult value) { | 23700 void operator[]=(int index, SpeechRecognitionResult value) { |
| 23701 throw new UnsupportedError("Cannot assign element of immutable List."); | 23701 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 23702 } | 23702 } |
| 23703 // -- start List<SpeechRecognitionResult> mixins. | 23703 // -- start List<SpeechRecognitionResult> mixins. |
| 23704 // SpeechRecognitionResult is the element type. | 23704 // SpeechRecognitionResult is the element type. |
| 23705 | 23705 |
| 23706 | 23706 |
| 23707 void set length(int value) { | 23707 void set length(int value) { |
| 23708 throw new UnsupportedError("Cannot resize immutable List."); | 23708 throw new UnsupportedError("Cannot resize immutable List."); |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 23749 class _StyleSheetList extends Interceptor with ListMixin<StyleSheet>, ImmutableL
istMixin<StyleSheet> implements JavaScriptIndexingBehavior, List<StyleSheet> nat
ive "StyleSheetList" { | 23749 class _StyleSheetList extends Interceptor with ListMixin<StyleSheet>, ImmutableL
istMixin<StyleSheet> implements JavaScriptIndexingBehavior, List<StyleSheet> nat
ive "StyleSheetList" { |
| 23750 | 23750 |
| 23751 @DomName('StyleSheetList.length') | 23751 @DomName('StyleSheetList.length') |
| 23752 @DocsEditable | 23752 @DocsEditable |
| 23753 int get length => JS("int", "#.length", this); | 23753 int get length => JS("int", "#.length", this); |
| 23754 | 23754 |
| 23755 StyleSheet operator[](int index) { | 23755 StyleSheet operator[](int index) { |
| 23756 if (JS("bool", "# >>> 0 !== # || # >= #", index, | 23756 if (JS("bool", "# >>> 0 !== # || # >= #", index, |
| 23757 index, index, length)) | 23757 index, index, length)) |
| 23758 throw new RangeError.range(index, 0, length); | 23758 throw new RangeError.range(index, 0, length); |
| 23759 return this.item(index); | 23759 return JS("StyleSheet", "#[#]", this, index); |
| 23760 } | 23760 } |
| 23761 void operator[]=(int index, StyleSheet value) { | 23761 void operator[]=(int index, StyleSheet value) { |
| 23762 throw new UnsupportedError("Cannot assign element of immutable List."); | 23762 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 23763 } | 23763 } |
| 23764 // -- start List<StyleSheet> mixins. | 23764 // -- start List<StyleSheet> mixins. |
| 23765 // StyleSheet is the element type. | 23765 // StyleSheet is the element type. |
| 23766 | 23766 |
| 23767 | 23767 |
| 23768 void set length(int value) { | 23768 void set length(int value) { |
| 23769 throw new UnsupportedError("Cannot resize immutable List."); | 23769 throw new UnsupportedError("Cannot resize immutable List."); |
| (...skipping 4582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 28352 _position = nextPosition; | 28352 _position = nextPosition; |
| 28353 return true; | 28353 return true; |
| 28354 } | 28354 } |
| 28355 _current = null; | 28355 _current = null; |
| 28356 _position = _array.length; | 28356 _position = _array.length; |
| 28357 return false; | 28357 return false; |
| 28358 } | 28358 } |
| 28359 | 28359 |
| 28360 T get current => _current; | 28360 T get current => _current; |
| 28361 } | 28361 } |
| OLD | NEW |