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 resolved [CompilationUnit] associated with a compilation unit, with | |
18 * constants resolved. | |
19 * | |
20 * The result is only available for [LibrarySpecificUnit]s. | |
21 */ | |
22 final ResultDescriptor<CompilationUnit> CONSTANT_RESOLVED_UNIT = | |
23 new ResultDescriptor<CompilationUnit>('CONSTANT_RESOLVED_UNIT', null, | |
24 cachingPolicy: AST_CACHING_POLICY); | |
25 | |
26 /** | |
27 * The analysis errors associated with a [Source] representing a compilation | 17 * The analysis errors associated with a [Source] representing a compilation |
28 * unit. | 18 * unit. |
29 */ | 19 */ |
30 final ListResultDescriptor<AnalysisError> DART_ERRORS = | 20 final ListResultDescriptor<AnalysisError> DART_ERRORS = |
31 new ListResultDescriptor<AnalysisError>( | 21 new ListResultDescriptor<AnalysisError>( |
32 'DART_ERRORS', AnalysisError.NO_ERRORS); | 22 'DART_ERRORS', AnalysisError.NO_ERRORS); |
33 | 23 |
34 /** | 24 /** |
35 * The sources of the libraries that are explicitly imported into a library. | 25 * The sources of the libraries that are explicitly imported into a library. |
36 * | 26 * |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 * The AST structure will not have resolution information associated with it. | 98 * The AST structure will not have resolution information associated with it. |
109 * | 99 * |
110 * The result is only available for [Source]s representing a compilation unit. | 100 * The result is only available for [Source]s representing a compilation unit. |
111 */ | 101 */ |
112 final ResultDescriptor<CompilationUnit> PARSED_UNIT = | 102 final ResultDescriptor<CompilationUnit> PARSED_UNIT = |
113 new ResultDescriptor<CompilationUnit>('PARSED_UNIT', null, | 103 new ResultDescriptor<CompilationUnit>('PARSED_UNIT', null, |
114 cachingPolicy: AST_CACHING_POLICY); | 104 cachingPolicy: AST_CACHING_POLICY); |
115 | 105 |
116 /** | 106 /** |
117 * The resolved [CompilationUnit] associated with a compilation unit, with | 107 * The resolved [CompilationUnit] associated with a compilation unit, with |
118 * constants not yet resolved. | 108 * constants resolved. |
119 * | 109 * |
120 * The result is only available for [LibrarySpecificUnit]s. | 110 * The result is only available for [LibrarySpecificUnit]s. |
121 */ | 111 */ |
122 final ResultDescriptor<CompilationUnit> RESOLVED_UNIT = | 112 final ResultDescriptor<CompilationUnit> RESOLVED_UNIT = |
123 new ResultDescriptor<CompilationUnit>('RESOLVED_UNIT', null, | 113 new ResultDescriptor<CompilationUnit>('RESOLVED_UNIT', null, |
124 cachingPolicy: AST_CACHING_POLICY); | 114 cachingPolicy: AST_CACHING_POLICY); |
125 | 115 |
126 /** | 116 /** |
127 * The kind of a [Source]. | 117 * The kind of a [Source]. |
128 */ | 118 */ |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 @override | 177 @override |
188 bool operator ==(other) { | 178 bool operator ==(other) { |
189 return other is LibrarySpecificUnit && | 179 return other is LibrarySpecificUnit && |
190 other.library == library && | 180 other.library == library && |
191 other.unit == unit; | 181 other.unit == unit; |
192 } | 182 } |
193 | 183 |
194 @override | 184 @override |
195 String toString() => '$unit in $library'; | 185 String toString() => '$unit in $library'; |
196 } | 186 } |
OLD | NEW |