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

Side by Side Diff: samples/ui_lib/observable/observable.dart

Issue 11358060: Change NotImplementedException to UnimplementedError. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review comments. Created 8 years, 1 month 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:coreimpl'); 7 #import('dart:coreimpl');
8 8
9 #source('ChangeEvent.dart'); 9 #source('ChangeEvent.dart');
10 #source('EventBatch.dart'); 10 #source('EventBatch.dart');
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 } 236 }
237 } 237 }
238 return count; 238 return count;
239 } 239 }
240 240
241 void copyFrom(List<T> src, int srcStart, int dstStart, int count) { 241 void copyFrom(List<T> src, int srcStart, int dstStart, int count) {
242 Arrays.copy(src, srcStart, this, dstStart, count); 242 Arrays.copy(src, srcStart, this, dstStart, count);
243 } 243 }
244 244
245 void setRange(int start, int length, List from, [int startFrom = 0]) { 245 void setRange(int start, int length, List from, [int startFrom = 0]) {
246 throw const NotImplementedException(); 246 throw new UnimplementedError();
247 } 247 }
248 248
249 void removeRange(int start, int length) { 249 void removeRange(int start, int length) {
250 throw const NotImplementedException(); 250 throw new UnimplementedError();
251 } 251 }
252 252
253 void insertRange(int start, int length, [initialValue = null]) { 253 void insertRange(int start, int length, [initialValue = null]) {
254 throw const NotImplementedException(); 254 throw new UnimplementedError();
255 } 255 }
256 256
257 List getRange(int start, int length) { 257 List getRange(int start, int length) {
258 throw const NotImplementedException(); 258 throw new UnimplementedError();
259 } 259 }
260 260
261 // Iterable<T>: 261 // Iterable<T>:
262 Iterator<T> iterator() => _internal.iterator(); 262 Iterator<T> iterator() => _internal.iterator();
263 263
264 // Collection<T>: 264 // Collection<T>:
265 Collection<T> filter(bool f(T element)) => _internal.filter(f); 265 Collection<T> filter(bool f(T element)) => _internal.filter(f);
266 Collection map(f(T element)) => _internal.map(f); 266 Collection map(f(T element)) => _internal.map(f);
267 bool every(bool f(T element)) => _internal.every(f); 267 bool every(bool f(T element)) => _internal.every(f);
268 bool some(bool f(T element)) => _internal.some(f); 268 bool some(bool f(T element)) => _internal.some(f);
(...skipping 21 matching lines...) Expand all
290 // equality check should be done? 290 // equality check should be done?
291 if (newValue !== _value) { 291 if (newValue !== _value) {
292 final oldValue = _value; 292 final oldValue = _value;
293 _value = newValue; 293 _value = newValue;
294 recordPropertyUpdate("value", newValue, oldValue); 294 recordPropertyUpdate("value", newValue, oldValue);
295 } 295 }
296 } 296 }
297 297
298 T _value; 298 T _value;
299 } 299 }
OLDNEW
« no previous file with comments | « runtime/tests/vm/dart/isolate_mirror_remote_test.dart ('k') | samples/ui_lib/touch/TouchUtil.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698