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'; |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 * The resolved [CompilationUnit] associated with a compilation unit, with | 107 * The resolved [CompilationUnit] associated with a compilation unit, with |
108 * constants resolved. | 108 * constants resolved. |
109 * | 109 * |
110 * The result is only available for [LibrarySpecificUnit]s. | 110 * The result is only available for [LibrarySpecificUnit]s. |
111 */ | 111 */ |
112 final ResultDescriptor<CompilationUnit> RESOLVED_UNIT = | 112 final ResultDescriptor<CompilationUnit> RESOLVED_UNIT = |
113 new ResultDescriptor<CompilationUnit>('RESOLVED_UNIT', null, | 113 new ResultDescriptor<CompilationUnit>('RESOLVED_UNIT', null, |
114 cachingPolicy: AST_CACHING_POLICY); | 114 cachingPolicy: AST_CACHING_POLICY); |
115 | 115 |
116 /** | 116 /** |
| 117 * The resolved [CompilationUnit] associated with a compilation unit, with |
| 118 * constants not yet resolved. |
| 119 * |
| 120 * The result is only available for [LibrarySpecificUnit]s. |
| 121 */ |
| 122 final ResultDescriptor<CompilationUnit> RESOLVED_UNIT_NO_CONSTANTS = |
| 123 new ResultDescriptor<CompilationUnit>('RESOLVED_UNIT_NO_CONSTANTS', null, |
| 124 cachingPolicy: AST_CACHING_POLICY); |
| 125 |
| 126 /** |
117 * The kind of a [Source]. | 127 * The kind of a [Source]. |
118 */ | 128 */ |
119 final ResultDescriptor<SourceKind> SOURCE_KIND = | 129 final ResultDescriptor<SourceKind> SOURCE_KIND = |
120 new ResultDescriptor<SourceKind>('SOURCE_KIND', SourceKind.UNKNOWN); | 130 new ResultDescriptor<SourceKind>('SOURCE_KIND', SourceKind.UNKNOWN); |
121 | 131 |
122 /** | 132 /** |
123 * The token stream produced while scanning a compilation unit. | 133 * The token stream produced while scanning a compilation unit. |
124 * | 134 * |
125 * The value is the first token in the file, or the special end-of-file marker | 135 * The value is the first token in the file, or the special end-of-file marker |
126 * at the end of the stream if the file does not contain any tokens. | 136 * at the end of the stream if the file does not contain any tokens. |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 @override | 187 @override |
178 bool operator ==(other) { | 188 bool operator ==(other) { |
179 return other is LibrarySpecificUnit && | 189 return other is LibrarySpecificUnit && |
180 other.library == library && | 190 other.library == library && |
181 other.unit == unit; | 191 other.unit == unit; |
182 } | 192 } |
183 | 193 |
184 @override | 194 @override |
185 String toString() => '$unit in $library'; | 195 String toString() => '$unit in $library'; |
186 } | 196 } |
OLD | NEW |