| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 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 | 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. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // WARNING: Do not edit - generated code. | 5 // WARNING: Do not edit - generated code. |
| 6 | 6 |
| 7 class _HTMLCollectionWrappingImplementation extends DOMWrapperBase implements HT
MLCollection { | 7 class _HTMLCollectionWrappingImplementation extends DOMWrapperBase implements HT
MLCollection { |
| 8 _HTMLCollectionWrappingImplementation() : super() {} | 8 _HTMLCollectionWrappingImplementation() : super() {} |
| 9 | 9 |
| 10 static create__HTMLCollectionWrappingImplementation() native { | 10 static create__HTMLCollectionWrappingImplementation() native { |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 } | 59 } |
| 60 | 60 |
| 61 Node last() { | 61 Node last() { |
| 62 return this[length - 1]; | 62 return this[length - 1]; |
| 63 } | 63 } |
| 64 | 64 |
| 65 void forEach(void f(Node element)) { | 65 void forEach(void f(Node element)) { |
| 66 _Collections.forEach(this, f); | 66 _Collections.forEach(this, f); |
| 67 } | 67 } |
| 68 | 68 |
| 69 Collection map(f(Node element)) { |
| 70 return _Collections.map(this, [], f); |
| 71 } |
| 72 |
| 69 Collection<Node> filter(bool f(Node element)) { | 73 Collection<Node> filter(bool f(Node element)) { |
| 70 return _Collections.filter(this, new List<Node>(), f); | 74 return _Collections.filter(this, new List<Node>(), f); |
| 71 } | 75 } |
| 72 | 76 |
| 73 bool every(bool f(Node element)) { | 77 bool every(bool f(Node element)) { |
| 74 return _Collections.every(this, f); | 78 return _Collections.every(this, f); |
| 75 } | 79 } |
| 76 | 80 |
| 77 bool some(bool f(Node element)) { | 81 bool some(bool f(Node element)) { |
| 78 return _Collections.some(this, f); | 82 return _Collections.some(this, f); |
| (...skipping 28 matching lines...) Expand all Loading... |
| 107 } | 111 } |
| 108 static Node _item(receiver, index) native; | 112 static Node _item(receiver, index) native; |
| 109 | 113 |
| 110 Node namedItem(String name) { | 114 Node namedItem(String name) { |
| 111 return _namedItem(this, name); | 115 return _namedItem(this, name); |
| 112 } | 116 } |
| 113 static Node _namedItem(receiver, name) native; | 117 static Node _namedItem(receiver, name) native; |
| 114 | 118 |
| 115 String get typeName() { return "HTMLCollection"; } | 119 String get typeName() { return "HTMLCollection"; } |
| 116 } | 120 } |
| OLD | NEW |