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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 // The exception we throw here is misleading. | 162 // The exception we throw here is misleading. |
163 void sort([int compare(Node a, Node b)]) { | 163 void sort([int compare(Node a, Node b)]) { |
164 throw new UnsupportedError("Cannot sort immutable List."); | 164 throw new UnsupportedError("Cannot sort immutable List."); |
165 } | 165 } |
166 | 166 |
167 // FIXME: implement these. | 167 // FIXME: implement these. |
168 void setRange(int start, int end, List<Node> from, [int startFrom]) { | 168 void setRange(int start, int end, List<Node> from, [int startFrom]) { |
169 throw new UnsupportedError( | 169 throw new UnsupportedError( |
170 "Cannot setRange on immutable List."); | 170 "Cannot setRange on immutable List."); |
171 } | 171 } |
172 void removeRange(int start, int rangeLength) { | 172 void removeRange(int start, int end) { |
173 throw new UnsupportedError( | 173 throw new UnsupportedError( |
174 "Cannot removeRange on immutable List."); | 174 "Cannot removeRange on immutable List."); |
175 } | 175 } |
176 void insertRange(int start, int rangeLength, [Node initialValue]) { | 176 void insertRange(int start, int rangeLength, [Node initialValue]) { |
177 throw new UnsupportedError( | 177 throw new UnsupportedError( |
178 "Cannot insertRange on immutable List."); | 178 "Cannot insertRange on immutable List."); |
179 } | 179 } |
180 | 180 |
181 Iterable<Node> getRange(int start, int end) { | 181 Iterable<Node> getRange(int start, int end) { |
182 throw new UnimplementedError("NodeList.getRange"); | 182 throw new UnimplementedError("NodeList.getRange"); |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 } | 358 } |
359 | 359 |
360 /** | 360 /** |
361 * Print out a String representation of this Node. | 361 * Print out a String representation of this Node. |
362 */ | 362 */ |
363 String toString() => localName == null ? | 363 String toString() => localName == null ? |
364 (nodeValue == null ? super.toString() : nodeValue) : localName; | 364 (nodeValue == null ? super.toString() : nodeValue) : localName; |
365 | 365 |
366 $!MEMBERS | 366 $!MEMBERS |
367 } | 367 } |
OLD | NEW |