| OLD | NEW |
| 1 | 1 |
| 2 class NamedNodeMapJs extends DOMTypeJs implements NamedNodeMap native "*NamedNod
eMap" { | 2 class _NamedNodeMapJs extends _DOMTypeJs implements NamedNodeMap native "*NamedN
odeMap" { |
| 3 | 3 |
| 4 int get length() native "return this.length;"; | 4 int get length() native "return this.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>: |
| 15 | 15 |
| 16 Iterator<Node> iterator() { | 16 Iterator<Node> iterator() { |
| 17 // Note: NodeLists are not fixed size. And most probably length shouldn't | 17 // Note: NodeLists are not fixed size. And most probably length shouldn't |
| 18 // be cached in both iterator _and_ forEach method. For now caching it | 18 // be cached in both iterator _and_ forEach method. For now caching it |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); | 69 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); |
| 70 } | 70 } |
| 71 void insertRange(int start, int length, [Node initialValue]) { | 71 void insertRange(int start, int length, [Node initialValue]) { |
| 72 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); | 72 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); |
| 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 getNamedItem(String name) native; | 79 _NodeJs getNamedItem(String name) native; |
| 80 | 80 |
| 81 NodeJs getNamedItemNS(String namespaceURI, String localName) native; | 81 _NodeJs getNamedItemNS(String namespaceURI, String localName) native; |
| 82 | 82 |
| 83 NodeJs item(int index) native; | 83 _NodeJs item(int index) native; |
| 84 | 84 |
| 85 NodeJs removeNamedItem(String name) native; | 85 _NodeJs removeNamedItem(String name) native; |
| 86 | 86 |
| 87 NodeJs removeNamedItemNS(String namespaceURI, String localName) native; | 87 _NodeJs removeNamedItemNS(String namespaceURI, String localName) native; |
| 88 | 88 |
| 89 NodeJs setNamedItem(NodeJs node) native; | 89 _NodeJs setNamedItem(_NodeJs node) native; |
| 90 | 90 |
| 91 NodeJs setNamedItemNS(NodeJs node) native; | 91 _NodeJs setNamedItemNS(_NodeJs node) native; |
| 92 } | 92 } |
| OLD | NEW |