Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(851)

Side by Side Diff: tools/dom/templates/html/impl/impl_Node.darttemplate

Issue 12090093: Reapply "Rename mappedBy to map." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed bug in previous commit. Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 part of html; 5 part of html;
6 6
7 /** 7 /**
8 * Lazy implementation of the child nodes of an element that does not request 8 * Lazy implementation of the child nodes of an element that does not request
9 * the actual child nodes of an element until strictly necessary greatly 9 * the actual child nodes of an element until strictly necessary greatly
10 * improving performance for the typical cases where it is not required. 10 * improving performance for the typical cases where it is not required.
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 131
132 dynamic reduce(dynamic initialValue, 132 dynamic reduce(dynamic initialValue,
133 dynamic combine(dynamic previousValue, Node element)) { 133 dynamic combine(dynamic previousValue, Node element)) {
134 return IterableMixinWorkaround.reduce(this, initialValue, combine); 134 return IterableMixinWorkaround.reduce(this, initialValue, combine);
135 } 135 }
136 136
137 String join([String separator]) { 137 String join([String separator]) {
138 return IterableMixinWorkaround.joinList(this, separator); 138 return IterableMixinWorkaround.joinList(this, separator);
139 } 139 }
140 140
141 Iterable map(f(Node element)) {
142 return IterableMixinWorkaround.map(this, f);
143 }
144
141 List mappedBy(f(Node element)) { 145 List mappedBy(f(Node element)) {
142 return IterableMixinWorkaround.mappedByList(this, f); 146 return IterableMixinWorkaround.mappedByList(this, f);
143 } 147 }
144 148
145 Iterable<Node> where(bool f(Node element)) { 149 Iterable<Node> where(bool f(Node element)) {
146 return IterableMixinWorkaround.where(this, f); 150 return IterableMixinWorkaround.where(this, f);
147 } 151 }
148 152
149 bool every(bool f(Node element)) => IterableMixinWorkaround.every(this, f); 153 bool every(bool f(Node element)) => IterableMixinWorkaround.every(this, f);
150 154
151 bool any(bool f(Node element)) => IterableMixinWorkaround.any(this, f); 155 bool any(bool f(Node element)) => IterableMixinWorkaround.any(this, f);
152 156
153 List<Node> toList() => new List<Node>.from(this); 157 List<Node> toList() => new List<Node>.from(this);
154 Set<Node> toSet() => new Set<Node>.from(this); 158 Set<Node> toSet() => new Set<Node>.from(this);
155 159
156 bool get isEmpty => this.length == 0; 160 bool get isEmpty => this.length == 0;
157 161
158 // From List<Node>: 162 // From List<Node>:
159 163
160 List<Node> take(int n) { 164 Iterable<Node> take(int n) {
161 return IterableMixinWorkaround.takeList(this, n); 165 return IterableMixinWorkaround.takeList(this, n);
162 } 166 }
163 167
164 Iterable<Node> takeWhile(bool test(Node value)) { 168 Iterable<Node> takeWhile(bool test(Node value)) {
165 return IterableMixinWorkaround.takeWhile(this, test); 169 return IterableMixinWorkaround.takeWhile(this, test);
166 } 170 }
167 171
168 List<Node> skip(int n) { 172 Iterable<Node> skip(int n) {
169 return IterableMixinWorkaround.skipList(this, n); 173 return IterableMixinWorkaround.skipList(this, n);
170 } 174 }
171 175
172 Iterable<Node> skipWhile(bool test(Node value)) { 176 Iterable<Node> skipWhile(bool test(Node value)) {
173 return IterableMixinWorkaround.skipWhile(this, test); 177 return IterableMixinWorkaround.skipWhile(this, test);
174 } 178 }
175 179
176 Node firstMatching(bool test(Node value), {Node orElse()}) { 180 Node firstMatching(bool test(Node value), {Node orElse()}) {
177 return IterableMixinWorkaround.firstMatching(this, test, orElse); 181 return IterableMixinWorkaround.firstMatching(this, test, orElse);
178 } 182 }
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 final Node parent = this.parentNode; 276 final Node parent = this.parentNode;
273 parent.$dom_replaceChild(otherNode, this); 277 parent.$dom_replaceChild(otherNode, this);
274 } catch (e) { 278 } catch (e) {
275 279
276 }; 280 };
277 return this; 281 return this;
278 } 282 }
279 283
280 $!MEMBERS 284 $!MEMBERS
281 } 285 }
OLDNEW
« no previous file with comments | « tools/dom/templates/html/impl/impl_Element.darttemplate ('k') | tools/dom/templates/immutable_list_mixin.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698