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

Side by Side Diff: samples/swarm/swarm_ui_lib/observable/observable.dart

Issue 14065011: Implement getRange (returning an Iterable). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. 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
« no previous file with comments | « runtime/lib/typeddata.dart ('k') | sdk/lib/_internal/compiler/implementation/lib/js_array.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 library observable; 5 library observable;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 8
9 part 'ChangeEvent.dart'; 9 part 'ChangeEvent.dart';
10 part 'EventBatch.dart'; 10 part 'EventBatch.dart';
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 } 262 }
263 263
264 void insertRange(int start, int length, [initialValue = null]) { 264 void insertRange(int start, int length, [initialValue = null]) {
265 throw new UnimplementedError(); 265 throw new UnimplementedError();
266 } 266 }
267 267
268 List sublist(int start, [int end]) { 268 List sublist(int start, [int end]) {
269 throw new UnimplementedError(); 269 throw new UnimplementedError();
270 } 270 }
271 271
272 List getRange(int start, int length) { 272 Iterable getRange(int start, int end) {
273 throw new UnimplementedError(); 273 throw new UnimplementedError();
274 } 274 }
275 275
276 bool contains(T element) { 276 bool contains(T element) {
277 throw new UnimplementedError(); 277 throw new UnimplementedError();
278 } 278 }
279 279
280 T reduce(T combine(T previousValue, T element)) { 280 T reduce(T combine(T previousValue, T element)) {
281 throw new UnimplementedError(); 281 throw new UnimplementedError();
282 } 282 }
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 // Only fire on an actual change. 335 // Only fire on an actual change.
336 if (!identical(newValue, _value)) { 336 if (!identical(newValue, _value)) {
337 final oldValue = _value; 337 final oldValue = _value;
338 _value = newValue; 338 _value = newValue;
339 recordPropertyUpdate("value", newValue, oldValue); 339 recordPropertyUpdate("value", newValue, oldValue);
340 } 340 }
341 } 341 }
342 342
343 T _value; 343 T _value;
344 } 344 }
OLDNEW
« no previous file with comments | « runtime/lib/typeddata.dart ('k') | sdk/lib/_internal/compiler/implementation/lib/js_array.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698