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 /** | 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 void sort([int compare(Node a, Node b)]) { | 150 void sort([int compare(Node a, Node b)]) { |
151 throw new UnsupportedError("Cannot sort immutable List."); | 151 throw new UnsupportedError("Cannot sort immutable List."); |
152 } | 152 } |
153 | 153 |
154 // FIXME: implement these. | 154 // FIXME: implement these. |
155 void setRange(int start, int end, Iterable<Node> iterable, | 155 void setRange(int start, int end, Iterable<Node> iterable, |
156 [int skipCount = 0]) { | 156 [int skipCount = 0]) { |
157 throw new UnsupportedError( | 157 throw new UnsupportedError( |
158 "Cannot setRange on immutable List."); | 158 "Cannot setRange on immutable List."); |
159 } | 159 } |
160 void removeRange(int start, int rangeLength) { | 160 void removeRange(int start, int end) { |
161 throw new UnsupportedError( | 161 throw new UnsupportedError( |
162 "Cannot removeRange on immutable List."); | 162 "Cannot removeRange on immutable List."); |
163 } | 163 } |
164 void insertRange(int start, int rangeLength, [Node initialValue]) { | 164 void insertRange(int start, int rangeLength, [Node initialValue]) { |
165 throw new UnsupportedError( | 165 throw new UnsupportedError( |
166 "Cannot insertRange on immutable List."); | 166 "Cannot insertRange on immutable List."); |
167 } | 167 } |
168 | 168 |
169 Iterable<Node> getRange(int start, int end) { | 169 Iterable<Node> getRange(int start, int end) { |
170 throw new UnimplementedError("NodeList.getRange"); | 170 throw new UnimplementedError("NodeList.getRange"); |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
346 } | 346 } |
347 | 347 |
348 /** | 348 /** |
349 * Print out a String representation of this Node. | 349 * Print out a String representation of this Node. |
350 */ | 350 */ |
351 String toString() => localName == null ? | 351 String toString() => localName == null ? |
352 (nodeValue == null ? super.toString() : nodeValue) : localName; | 352 (nodeValue == null ? super.toString() : nodeValue) : localName; |
353 | 353 |
354 $!MEMBERS | 354 $!MEMBERS |
355 } | 355 } |
OLD | NEW |