OLD | NEW |
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 $LIBRARYNAME; | 5 part of $LIBRARYNAME; |
6 | 6 |
| 7 $!TOPLEVEL |
| 8 |
7 /** | 9 /** |
8 * Lazy implementation of the child nodes of an element that does not request | 10 * 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 | 11 * the actual child nodes of an element until strictly necessary greatly |
10 * improving performance for the typical cases where it is not required. | 12 * improving performance for the typical cases where it is not required. |
11 */ | 13 */ |
12 class _ChildNodeListLazy extends ListBase<Node> implements NodeListWrapper { | 14 class _ChildNodeListLazy extends ListBase<Node> implements NodeListWrapper { |
13 final Node _this; | 15 final Node _this; |
14 | 16 |
15 _ChildNodeListLazy(this._this); | 17 _ChildNodeListLazy(this._this); |
16 | 18 |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 _removeChild(firstChild); | 266 _removeChild(firstChild); |
265 } | 267 } |
266 } | 268 } |
267 | 269 |
268 /** | 270 /** |
269 * Print out a String representation of this Node. | 271 * Print out a String representation of this Node. |
270 */ | 272 */ |
271 String toString() => nodeValue == null ? super.toString() : nodeValue; | 273 String toString() => nodeValue == null ? super.toString() : nodeValue; |
272 $!MEMBERS | 274 $!MEMBERS |
273 } | 275 } |
OLD | NEW |