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

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

Issue 13956006: Remove insertRange. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebuild DOM (unrelated CL) and update status files. Created 7 years, 8 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 $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
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]) {
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
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 }
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