OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 analyzer.task.dart; | 5 library analyzer.task.dart; |
6 | 6 |
7 import 'package:analyzer/src/generated/ast.dart'; | 7 import 'package:analyzer/src/generated/ast.dart'; |
8 import 'package:analyzer/src/generated/element.dart'; | 8 import 'package:analyzer/src/generated/element.dart'; |
9 import 'package:analyzer/src/generated/error.dart'; | 9 import 'package:analyzer/src/generated/error.dart'; |
10 import 'package:analyzer/src/generated/scanner.dart'; | 10 import 'package:analyzer/src/generated/scanner.dart'; |
11 import 'package:analyzer/src/generated/source.dart'; | 11 import 'package:analyzer/src/generated/source.dart'; |
12 import 'package:analyzer/src/generated/utilities_general.dart'; | 12 import 'package:analyzer/src/generated/utilities_general.dart'; |
13 import 'package:analyzer/src/task/dart.dart'; | 13 import 'package:analyzer/src/task/dart.dart'; |
14 import 'package:analyzer/task/model.dart'; | 14 import 'package:analyzer/task/model.dart'; |
15 | 15 |
16 /** | 16 /** |
| 17 * The list of [Element]s which a given constant element depends on. |
| 18 * |
| 19 * The result is only available for targets representing a constant [Element] |
| 20 * (i.e. a constant variable declaration, a constant constructor, or a |
| 21 * parameter element with a default value). |
| 22 */ |
| 23 final ListResultDescriptor<Element> CONSTANT_DEPENDENCIES = |
| 24 new ListResultDescriptor<Element>('CONSTANT_DEPENDENCIES', <Element>[]); |
| 25 |
| 26 /** |
17 * The analysis errors associated with a target. | 27 * The analysis errors associated with a target. |
18 * | 28 * |
19 * The result is only available for targets representing a Dart compilation unit
. | 29 * The result is only available for targets representing a Dart compilation unit
. |
20 */ | 30 */ |
21 final ListResultDescriptor<AnalysisError> DART_ERRORS = | 31 final ListResultDescriptor<AnalysisError> DART_ERRORS = |
22 new ListResultDescriptor<AnalysisError>( | 32 new ListResultDescriptor<AnalysisError>( |
23 'DART_ERRORS', AnalysisError.NO_ERRORS); | 33 'DART_ERRORS', AnalysisError.NO_ERRORS); |
24 | 34 |
25 /** | 35 /** |
26 * The sources of the libraries that are explicitly imported into a library. | 36 * The sources of the libraries that are explicitly imported into a library. |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 @override | 181 @override |
172 bool operator ==(other) { | 182 bool operator ==(other) { |
173 return other is LibrarySpecificUnit && | 183 return other is LibrarySpecificUnit && |
174 other.library == library && | 184 other.library == library && |
175 other.unit == unit; | 185 other.unit == unit; |
176 } | 186 } |
177 | 187 |
178 @override | 188 @override |
179 String toString() => '$unit in $library'; | 189 String toString() => '$unit in $library'; |
180 } | 190 } |
OLD | NEW |