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

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

Issue 12090093: Reapply "Rename mappedBy to map." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed bug in previous commit. Created 7 years, 10 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) 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 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 dynamic combine(var previousValue, T element)) { 276 dynamic combine(var previousValue, T element)) {
277 throw new UnimplementedError(); 277 throw new UnimplementedError();
278 } 278 }
279 279
280 280
281 // Iterable<T>: 281 // Iterable<T>:
282 Iterator<T> get iterator => _internal.iterator; 282 Iterator<T> get iterator => _internal.iterator;
283 283
284 // Collection<T>: 284 // Collection<T>:
285 Iterable<T> where(bool f(T element)) => _internal.where(f); 285 Iterable<T> where(bool f(T element)) => _internal.where(f);
286 Iterable mappedBy(f(T element)) => _internal.mappedBy(f); 286 Iterable map(f(T element)) => _internal.map(f);
287 List mappedBy(f(T element)) => _internal.mappedBy(f);
287 List<T> skip(int count) => _internal.skip(count); 288 List<T> skip(int count) => _internal.skip(count);
288 List<T> take(int count) => _internal.take(count); 289 List<T> take(int count) => _internal.take(count);
289 bool every(bool f(T element)) => _internal.every(f); 290 bool every(bool f(T element)) => _internal.every(f);
290 bool any(bool f(T element)) => _internal.any(f); 291 bool any(bool f(T element)) => _internal.any(f);
291 void forEach(void f(T element)) { _internal.forEach(f); } 292 void forEach(void f(T element)) { _internal.forEach(f); }
292 String join([String separator]) => _internal.join(separator); 293 String join([String separator]) => _internal.join(separator);
293 T firstMatching(bool test(T value), {T orElse()}) { 294 T firstMatching(bool test(T value), {T orElse()}) {
294 return _internal.firstMatching(test, orElse: orElse); 295 return _internal.firstMatching(test, orElse: orElse);
295 } 296 }
296 T lastMatching(bool test(T value), {T orElse()}) { 297 T lastMatching(bool test(T value), {T orElse()}) {
(...skipping 26 matching lines...) Expand all
323 // Only fire on an actual change. 324 // Only fire on an actual change.
324 if (!identical(newValue, _value)) { 325 if (!identical(newValue, _value)) {
325 final oldValue = _value; 326 final oldValue = _value;
326 _value = newValue; 327 _value = newValue;
327 recordPropertyUpdate("value", newValue, oldValue); 328 recordPropertyUpdate("value", newValue, oldValue);
328 } 329 }
329 } 330 }
330 331
331 T _value; 332 T _value;
332 } 333 }
OLDNEW
« no previous file with comments | « samples/swarm/swarm_ui_lib/layout/GridLayout.dart ('k') | samples/third_party/dromaeo/Suites.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698