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

Side by Side Diff: corelib/src/implementation/promise_implementation.dart

Issue 8786002: Check that interface constructors and default class constructors are compatible. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Check that types of constructors parameters are identical Created 9 years 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 // Dart core library. 5 // Dart core library.
6 6
7 class PromiseImpl<T> implements Promise<T> { 7 class PromiseImpl<T> implements Promise<T> {
8 8
9 // Enumeration of possible states: 9 // Enumeration of possible states:
10 static final int CREATED = 0; 10 static final int CREATED = 0;
(...skipping 27 matching lines...) Expand all
38 Queue<Function> _cancelListeners; 38 Queue<Function> _cancelListeners;
39 39
40 PromiseImpl() 40 PromiseImpl()
41 : _state = CREATED, 41 : _state = CREATED,
42 _value = null, 42 _value = null,
43 _error = null, 43 _error = null,
44 _normalListeners = null, 44 _normalListeners = null,
45 _errorListeners = null, 45 _errorListeners = null,
46 _cancelListeners = null {} 46 _cancelListeners = null {}
47 47
48 PromiseImpl.fromValue(val) 48 PromiseImpl.fromValue(T val)
49 : _state = COMPLETE_NORMAL, 49 : _state = COMPLETE_NORMAL,
50 _value = val, 50 _value = val,
51 _error = null, 51 _error = null,
52 _normalListeners = null, 52 _normalListeners = null,
53 _errorListeners = null, 53 _errorListeners = null,
54 _cancelListeners = null {} 54 _cancelListeners = null {}
55 55
56 // Properties and methods from Promise: 56 // Properties and methods from Promise:
57 57
58 T get value() { 58 T get value() {
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 } 370 }
371 } 371 }
372 return process(marshalled); 372 return process(marshalled);
373 }).flatten(); 373 }).flatten();
374 } 374 }
375 375
376 Promise<SendPort> _promise; 376 Promise<SendPort> _promise;
377 static Map<SendPort, Dispatcher> _dispatchers; 377 static Map<SendPort, Dispatcher> _dispatchers;
378 378
379 } 379 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698