OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 types; | 5 part of types; |
6 | 6 |
7 class ValueTypeMask extends ForwardingTypeMask { | 7 class ValueTypeMask extends ForwardingTypeMask { |
8 final TypeMask forwardTo; | 8 final TypeMask forwardTo; |
9 final value; | 9 final value; |
10 | 10 |
(...skipping 29 matching lines...) Expand all Loading... |
40 bool operator==(other) => super == other; | 40 bool operator==(other) => super == other; |
41 | 41 |
42 int get hashCode { | 42 int get hashCode { |
43 return computeHashCode(value, isNullable, forwardTo); | 43 return computeHashCode(value, isNullable, forwardTo); |
44 } | 44 } |
45 | 45 |
46 String toString() { | 46 String toString() { |
47 return 'Value mask: [$value] type: $forwardTo'; | 47 return 'Value mask: [$value] type: $forwardTo'; |
48 } | 48 } |
49 } | 49 } |
OLD | NEW |