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 library engine.constant; | 5 library analyzer.src.generated.constant; |
6 | 6 |
7 import 'dart:collection'; | 7 import 'dart:collection'; |
8 | 8 |
| 9 import 'package:analyzer/src/generated/ast.dart'; |
| 10 import 'package:analyzer/src/generated/element.dart'; |
9 import 'package:analyzer/src/generated/engine.dart'; | 11 import 'package:analyzer/src/generated/engine.dart'; |
| 12 import 'package:analyzer/src/generated/engine.dart' |
| 13 show AnalysisEngine, RecordingErrorListener; |
| 14 import 'package:analyzer/src/generated/error.dart'; |
| 15 import 'package:analyzer/src/generated/java_core.dart'; |
| 16 import 'package:analyzer/src/generated/resolver.dart' show TypeProvider; |
| 17 import 'package:analyzer/src/generated/scanner.dart' show Token, TokenType; |
| 18 import 'package:analyzer/src/generated/source.dart' show Source; |
| 19 import 'package:analyzer/src/generated/type_system.dart' |
| 20 show TypeSystem, TypeSystemImpl; |
| 21 import 'package:analyzer/src/generated/utilities_collection.dart'; |
| 22 import 'package:analyzer/src/generated/utilities_dart.dart' show ParameterKind; |
10 import 'package:analyzer/src/generated/utilities_general.dart'; | 23 import 'package:analyzer/src/generated/utilities_general.dart'; |
11 import 'package:analyzer/src/task/dart.dart'; | 24 import 'package:analyzer/src/task/dart.dart'; |
12 | 25 |
13 import 'ast.dart'; | |
14 import 'element.dart'; | |
15 import 'engine.dart' show AnalysisEngine, RecordingErrorListener; | |
16 import 'error.dart'; | |
17 import 'java_core.dart'; | |
18 import 'resolver.dart' show TypeProvider; | |
19 import 'scanner.dart' show Token, TokenType; | |
20 import 'source.dart' show Source; | |
21 import 'type_system.dart' show TypeSystem, TypeSystemImpl; | |
22 import 'utilities_collection.dart'; | |
23 import 'utilities_dart.dart' show ParameterKind; | |
24 | |
25 /** | 26 /** |
26 * Callback used by [ReferenceFinder] to report that a dependency was found. | 27 * Callback used by [ReferenceFinder] to report that a dependency was found. |
27 */ | 28 */ |
28 typedef void ReferenceFinderCallback(ConstantEvaluationTarget dependency); | 29 typedef void ReferenceFinderCallback(ConstantEvaluationTarget dependency); |
29 | 30 |
30 /** | 31 /** |
31 * The state of an object representing a boolean value. | 32 * The state of an object representing a boolean value. |
32 */ | 33 */ |
33 class BoolState extends InstanceState { | 34 class BoolState extends InstanceState { |
34 /** | 35 /** |
(...skipping 5336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5371 return BoolState.from(_element == rightElement); | 5372 return BoolState.from(_element == rightElement); |
5372 } else if (rightOperand is DynamicState) { | 5373 } else if (rightOperand is DynamicState) { |
5373 return BoolState.UNKNOWN_VALUE; | 5374 return BoolState.UNKNOWN_VALUE; |
5374 } | 5375 } |
5375 return BoolState.FALSE_STATE; | 5376 return BoolState.FALSE_STATE; |
5376 } | 5377 } |
5377 | 5378 |
5378 @override | 5379 @override |
5379 String toString() => _element == null ? "-unknown-" : _element.name; | 5380 String toString() => _element == null ? "-unknown-" : _element.name; |
5380 } | 5381 } |
OLD | NEW |