Chromium Code Reviews| 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 /** | 5 /** |
| 6 * The implementation of the class [DartObject]. | 6 * The implementation of the class [DartObject]. |
| 7 */ | 7 */ |
| 8 library analyzer.src.dart.constant.value; | 8 library analyzer.src.dart.constant.value; |
| 9 | 9 |
| 10 import 'dart:collection'; | 10 import 'dart:collection'; |
| (...skipping 2749 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2760 /** | 2760 /** |
| 2761 * The state of an object representing a type. | 2761 * The state of an object representing a type. |
| 2762 */ | 2762 */ |
| 2763 class TypeState extends InstanceState { | 2763 class TypeState extends InstanceState { |
| 2764 /** | 2764 /** |
| 2765 * The element representing the type being modeled. | 2765 * The element representing the type being modeled. |
| 2766 */ | 2766 */ |
| 2767 final DartType _type; | 2767 final DartType _type; |
| 2768 | 2768 |
| 2769 /** | 2769 /** |
| 2770 * Initialize a newly created state to represent the given [value]. | 2770 * Initialize a newly created state to represent the given [lexeme]. |
|
ahe
2017/03/10 07:26:10
And this file?
danrubel
2017/03/11 22:10:37
Reverted.
| |
| 2771 */ | 2771 */ |
| 2772 TypeState(this._type); | 2772 TypeState(this._type); |
| 2773 | 2773 |
| 2774 @override | 2774 @override |
| 2775 int get hashCode => _type?.hashCode ?? 0; | 2775 int get hashCode => _type?.hashCode ?? 0; |
| 2776 | 2776 |
| 2777 @override | 2777 @override |
| 2778 String get typeName => "Type"; | 2778 String get typeName => "Type"; |
| 2779 | 2779 |
| 2780 @override | 2780 @override |
| (...skipping 27 matching lines...) Expand all Loading... | |
| 2808 return BoolState.from(_type == rightType); | 2808 return BoolState.from(_type == rightType); |
| 2809 } else if (rightOperand is DynamicState) { | 2809 } else if (rightOperand is DynamicState) { |
| 2810 return BoolState.UNKNOWN_VALUE; | 2810 return BoolState.UNKNOWN_VALUE; |
| 2811 } | 2811 } |
| 2812 return BoolState.FALSE_STATE; | 2812 return BoolState.FALSE_STATE; |
| 2813 } | 2813 } |
| 2814 | 2814 |
| 2815 @override | 2815 @override |
| 2816 String toString() => _type?.toString() ?? "-unknown-"; | 2816 String toString() => _type?.toString() ?? "-unknown-"; |
| 2817 } | 2817 } |
| OLD | NEW |