OLD | NEW |
1 | 1 |
2 class _HTMLCollectionJs extends _DOMTypeJs implements HTMLCollection native "*HT
MLCollection" { | 2 class _HTMLCollectionJs extends _DOMTypeJs implements HTMLCollection native "*HT
MLCollection" { |
3 | 3 |
4 int get length() native "return this.length;"; | 4 final int length; |
5 | 5 |
6 _NodeJs operator[](int index) native "return this[index];"; | 6 _NodeJs operator[](int index) native "return this[index];"; |
7 | 7 |
8 void operator[]=(int index, _NodeJs value) { | 8 void operator[]=(int index, _NodeJs value) { |
9 throw new UnsupportedOperationException("Cannot assign element of immutable
List."); | 9 throw new UnsupportedOperationException("Cannot assign element of immutable
List."); |
10 } | 10 } |
11 // -- start List<Node> mixins. | 11 // -- start List<Node> mixins. |
12 // Node is the element type. | 12 // Node is the element type. |
13 | 13 |
14 // From Iterable<Node>: | 14 // From Iterable<Node>: |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 } | 73 } |
74 List<Node> getRange(int start, int length) => | 74 List<Node> getRange(int start, int length) => |
75 _Lists.getRange(this, start, length, <Node>[]); | 75 _Lists.getRange(this, start, length, <Node>[]); |
76 | 76 |
77 // -- end List<Node> mixins. | 77 // -- end List<Node> mixins. |
78 | 78 |
79 _NodeJs item(int index) native; | 79 _NodeJs item(int index) native; |
80 | 80 |
81 _NodeJs namedItem(String name) native; | 81 _NodeJs namedItem(String name) native; |
82 } | 82 } |
OLD | NEW |