| OLD | NEW | 
|---|
|  | (Empty) | 
| 1 // Copyright (c) 2011, the Dart project authors.  Please see the AUTHORS file |  | 
| 2 // for details. All rights reserved. Use of this source code is governed by a |  | 
| 3 // BSD-style license that can be found in the LICENSE file. |  | 
| 4 |  | 
| 5 // WARNING: Do not edit - generated code. |  | 
| 6 |  | 
| 7 class _NodeListWrappingImplementation extends DOMWrapperBase implements NodeList
      { |  | 
| 8   _NodeListWrappingImplementation() : super() {} |  | 
| 9 |  | 
| 10   static create__NodeListWrappingImplementation() native { |  | 
| 11     return new _NodeListWrappingImplementation(); |  | 
| 12   } |  | 
| 13 |  | 
| 14   int get length() { return _get_length(this); } |  | 
| 15   static int _get_length(var _this) native; |  | 
| 16 |  | 
| 17   Node operator[](int index) { return _index(this, index); } |  | 
| 18   static Node _index(var _this, int index) native; |  | 
| 19 |  | 
| 20   void operator[]=(int index, Node value) { |  | 
| 21     throw new UnsupportedOperationException("Cannot assign element of immutable 
     List."); |  | 
| 22   } |  | 
| 23 |  | 
| 24   void add(Node value) { |  | 
| 25     throw new UnsupportedOperationException("Cannot add to immutable List."); |  | 
| 26   } |  | 
| 27 |  | 
| 28   void addLast(Node value) { |  | 
| 29     throw new UnsupportedOperationException("Cannot add to immutable List."); |  | 
| 30   } |  | 
| 31 |  | 
| 32   void addAll(Collection<Node> collection) { |  | 
| 33     throw new UnsupportedOperationException("Cannot add to immutable List."); |  | 
| 34   } |  | 
| 35 |  | 
| 36   void sort(int compare(Node a, Node b)) { |  | 
| 37     throw new UnsupportedOperationException("Cannot sort immutable List."); |  | 
| 38   } |  | 
| 39 |  | 
| 40   void copyFrom(List<Object> src, int srcStart, int dstStart, int count) { |  | 
| 41     throw new UnsupportedOperationException("This object is immutable."); |  | 
| 42   } |  | 
| 43 |  | 
| 44   int indexOf(Node element, [int start = 0]) { |  | 
| 45     return _Lists.indexOf(this, element, start, this.length); |  | 
| 46   } |  | 
| 47 |  | 
| 48   int lastIndexOf(Node element, [int start = null]) { |  | 
| 49     if (start === null) start = length - 1; |  | 
| 50     return _Lists.lastIndexOf(this, element, start); |  | 
| 51   } |  | 
| 52 |  | 
| 53   int clear() { |  | 
| 54     throw new UnsupportedOperationException("Cannot clear immutable List."); |  | 
| 55   } |  | 
| 56 |  | 
| 57   Node removeLast() { |  | 
| 58     throw new UnsupportedOperationException("Cannot removeLast on immutable List
     ."); |  | 
| 59   } |  | 
| 60 |  | 
| 61   Node last() { |  | 
| 62     return this[length - 1]; |  | 
| 63   } |  | 
| 64 |  | 
| 65   void forEach(void f(Node element)) { |  | 
| 66     _Collections.forEach(this, f); |  | 
| 67   } |  | 
| 68 |  | 
| 69   Collection map(f(Node element)) { |  | 
| 70     return _Collections.map(this, [], f); |  | 
| 71   } |  | 
| 72 |  | 
| 73   Collection<Node> filter(bool f(Node element)) { |  | 
| 74     return _Collections.filter(this, new List<Node>(), f); |  | 
| 75   } |  | 
| 76 |  | 
| 77   bool every(bool f(Node element)) { |  | 
| 78     return _Collections.every(this, f); |  | 
| 79   } |  | 
| 80 |  | 
| 81   bool some(bool f(Node element)) { |  | 
| 82     return _Collections.some(this, f); |  | 
| 83   } |  | 
| 84 |  | 
| 85   void setRange(int start, int length, List<Node> from, [int startFrom]) { |  | 
| 86     throw new UnsupportedOperationException("Cannot setRange on immutable List."
     ); |  | 
| 87   } |  | 
| 88 |  | 
| 89   void removeRange(int start, int length) { |  | 
| 90     throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
     t."); |  | 
| 91   } |  | 
| 92 |  | 
| 93   void insertRange(int start, int length, [Node initialValue]) { |  | 
| 94     throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
     t."); |  | 
| 95   } |  | 
| 96 |  | 
| 97   List<Node> getRange(int start, int length) { |  | 
| 98     throw new NotImplementedException(); |  | 
| 99   } |  | 
| 100 |  | 
| 101   bool isEmpty() { |  | 
| 102     return length == 0; |  | 
| 103   } |  | 
| 104 |  | 
| 105   Iterator<Node> iterator() { |  | 
| 106     return new _FixedSizeListIterator<Node>(this); |  | 
| 107   } |  | 
| 108 |  | 
| 109   Node item(int index) { |  | 
| 110     return _item(this, index); |  | 
| 111   } |  | 
| 112   static Node _item(receiver, index) native; |  | 
| 113 |  | 
| 114   String get typeName() { return "NodeList"; } |  | 
| 115 } |  | 
| OLD | NEW | 
|---|