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/dart/ast/ast.dart'; | 7 import 'package:analyzer/dart/ast/ast.dart'; |
8 import 'package:analyzer/dart/ast/token.dart'; | 8 import 'package:analyzer/dart/ast/token.dart'; |
9 import 'package:analyzer/dart/element/element.dart'; | 9 import 'package:analyzer/dart/element/element.dart'; |
10 import 'package:analyzer/src/generated/error.dart'; | 10 import 'package:analyzer/src/generated/error.dart'; |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 cachingPolicy: AST_CACHING_POLICY); | 95 cachingPolicy: AST_CACHING_POLICY); |
96 | 96 |
97 /** | 97 /** |
98 * The resolved [CompilationUnit] associated with a compilation unit, with | 98 * The resolved [CompilationUnit] associated with a compilation unit, with |
99 * constants resolved. | 99 * constants resolved. |
100 * | 100 * |
101 * The result is only available for [LibrarySpecificUnit]s. | 101 * The result is only available for [LibrarySpecificUnit]s. |
102 */ | 102 */ |
103 final ResultDescriptor<CompilationUnit> RESOLVED_UNIT = | 103 final ResultDescriptor<CompilationUnit> RESOLVED_UNIT = |
104 new ResultDescriptor<CompilationUnit>('RESOLVED_UNIT', null, | 104 new ResultDescriptor<CompilationUnit>('RESOLVED_UNIT', null, |
105 cachingPolicy: AST_CACHING_POLICY); | 105 cachingPolicy: AST_RESOLVED_CACHING_POLICY); |
106 | 106 |
107 /** | 107 /** |
108 * The kind of a [Source]. | 108 * The kind of a [Source]. |
109 */ | 109 */ |
110 final ResultDescriptor<SourceKind> SOURCE_KIND = | 110 final ResultDescriptor<SourceKind> SOURCE_KIND = |
111 new ResultDescriptor<SourceKind>('SOURCE_KIND', SourceKind.UNKNOWN); | 111 new ResultDescriptor<SourceKind>('SOURCE_KIND', SourceKind.UNKNOWN); |
112 | 112 |
113 /** | 113 /** |
114 * The token stream produced while scanning a compilation unit. | 114 * The token stream produced while scanning a compilation unit. |
115 * | 115 * |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 @override | 175 @override |
176 bool operator ==(other) { | 176 bool operator ==(other) { |
177 return other is LibrarySpecificUnit && | 177 return other is LibrarySpecificUnit && |
178 other.library == library && | 178 other.library == library && |
179 other.unit == unit; | 179 other.unit == unit; |
180 } | 180 } |
181 | 181 |
182 @override | 182 @override |
183 String toString() => '$unit in $library'; | 183 String toString() => '$unit in $library'; |
184 } | 184 } |
OLD | NEW |