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.src.context.cache; | 5 library analyzer.src.context.cache; |
6 | 6 |
7 import 'dart:collection'; | 7 import 'dart:collection'; |
8 | 8 |
9 import 'package:analyzer/src/generated/engine.dart' | 9 import 'package:analyzer/src/generated/engine.dart' |
10 show AnalysisEngine, CacheState, InternalAnalysisContext, RetentionPriority; | 10 show AnalysisEngine, CacheState, InternalAnalysisContext, RetentionPriority; |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 */ | 218 */ |
219 final AnalysisTarget target; | 219 final AnalysisTarget target; |
220 | 220 |
221 /** | 221 /** |
222 * The partition that is responsible for this entry. | 222 * The partition that is responsible for this entry. |
223 */ | 223 */ |
224 CachePartition _partition; | 224 CachePartition _partition; |
225 | 225 |
226 /** | 226 /** |
227 * The most recent time at which the state of the target matched the state | 227 * The most recent time at which the state of the target matched the state |
228 * represented by this entry. | 228 * represented by this entry, `-1` if the target does not exist. |
229 */ | 229 */ |
230 int modificationTime = 0; | 230 int modificationTime = -1; |
231 | 231 |
232 /** | 232 /** |
233 * The exception that caused one or more values to have a state of | 233 * The exception that caused one or more values to have a state of |
234 * [CacheState.ERROR]. | 234 * [CacheState.ERROR]. |
235 */ | 235 */ |
236 CaughtException _exception; | 236 CaughtException _exception; |
237 | 237 |
238 /** | 238 /** |
239 * A bit-encoding of boolean flags associated with this entry's target. | 239 * A bit-encoding of boolean flags associated with this entry's target. |
240 */ | 240 */ |
(...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
932 class UniversalCachePartition extends CachePartition { | 932 class UniversalCachePartition extends CachePartition { |
933 /** | 933 /** |
934 * Initialize a newly created cache partition, belonging to the given | 934 * Initialize a newly created cache partition, belonging to the given |
935 * [context]. | 935 * [context]. |
936 */ | 936 */ |
937 UniversalCachePartition(InternalAnalysisContext context) : super(context); | 937 UniversalCachePartition(InternalAnalysisContext context) : super(context); |
938 | 938 |
939 @override | 939 @override |
940 bool isResponsibleFor(AnalysisTarget target) => true; | 940 bool isResponsibleFor(AnalysisTarget target) => true; |
941 } | 941 } |
OLD | NEW |