| OLD | NEW |
| 1 class DOMType extends DOMWrapperBase { | |
| 2 // FIXME: Remove if/when Dart supports OLS for all objects. | |
| 3 var dartObjectLocalStorage; | |
| 4 | |
| 5 String get typeName() { | |
| 6 throw new UnsupportedOperationException("typeName must be overridden."); | |
| 7 } | |
| 8 } | |
| 9 | |
| 10 class ListBase<E> extends DOMType implements List<E> { | 1 class ListBase<E> extends DOMType implements List<E> { |
| 11 ListBase(); | 2 ListBase(); |
| 12 | 3 |
| 13 void forEach(void f(E element)) => Collections.forEach(this, f); | 4 void forEach(void f(E element)) => Collections.forEach(this, f); |
| 14 Collection<E> filter(bool f(E element)) => Collections.filter(this, [], f); | 5 Collection<E> filter(bool f(E element)) => Collections.filter(this, [], f); |
| 15 bool every(bool f(E element)) => Collections.every(this, f); | 6 bool every(bool f(E element)) => Collections.every(this, f); |
| 16 bool some(bool f(E element)) => Collections.some(this, f); | 7 bool some(bool f(E element)) => Collections.some(this, f); |
| 17 bool isEmpty() => Collections.isEmpty(this); | 8 bool isEmpty() => Collections.isEmpty(this); |
| 18 | 9 |
| 19 void sort(int compare(E a, E b)) { | 10 void sort(int compare(E a, E b)) { |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 } | 113 } |
| 123 | 114 |
| 124 V remove(K key) { | 115 V remove(K key) { |
| 125 throw 'Immutable collection'; | 116 throw 'Immutable collection'; |
| 126 } | 117 } |
| 127 | 118 |
| 128 Collection<K> getKeys() { | 119 Collection<K> getKeys() { |
| 129 throw 'Must be implemented'; | 120 throw 'Must be implemented'; |
| 130 } | 121 } |
| 131 } | 122 } |
| OLD | NEW |