| 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 end) { | 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]) { | |
| 165 throw new UnsupportedError( | |
| 166 "Cannot insertRange on immutable List."); | |
| 167 } | |
| 168 | 164 |
| 169 Iterable<Node> getRange(int start, int end) { | 165 Iterable<Node> getRange(int start, int end) { |
| 170 throw new UnimplementedError("NodeList.getRange"); | 166 throw new UnimplementedError("NodeList.getRange"); |
| 171 } | 167 } |
| 172 | 168 |
| 173 List<Node> sublist(int start, [int end]) { | 169 List<Node> sublist(int start, [int end]) { |
| 174 if (end == null) end == length; | 170 if (end == null) end == length; |
| 175 return Lists.getRange(this, start, end, <Node>[]); | 171 return Lists.getRange(this, start, end, <Node>[]); |
| 176 } | 172 } |
| 177 | 173 |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 346 } | 342 } |
| 347 | 343 |
| 348 /** | 344 /** |
| 349 * Print out a String representation of this Node. | 345 * Print out a String representation of this Node. |
| 350 */ | 346 */ |
| 351 String toString() => localName == null ? | 347 String toString() => localName == null ? |
| 352 (nodeValue == null ? super.toString() : nodeValue) : localName; | 348 (nodeValue == null ? super.toString() : nodeValue) : localName; |
| 353 | 349 |
| 354 $!MEMBERS | 350 $!MEMBERS |
| 355 } | 351 } |
| OLD | NEW |