| 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.model; | 5 library analyzer.task.model; |
| 6 | 6 |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 import 'dart:developer'; | 8 import 'dart:developer'; |
| 9 | 9 |
| 10 import 'package:analyzer/src/generated/engine.dart' hide AnalysisTask; | 10 import 'package:analyzer/src/generated/engine.dart' hide AnalysisTask; |
| (...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 458 abstract class ResultDescriptor<V> { | 458 abstract class ResultDescriptor<V> { |
| 459 /** | 459 /** |
| 460 * Initialize a newly created analysis result to have the given [name] and | 460 * Initialize a newly created analysis result to have the given [name] and |
| 461 * [defaultValue]. | 461 * [defaultValue]. |
| 462 * | 462 * |
| 463 * The given [cachingPolicy] is used to limit the total size of results | 463 * The given [cachingPolicy] is used to limit the total size of results |
| 464 * described by this descriptor. If no policy is specified, the results are | 464 * described by this descriptor. If no policy is specified, the results are |
| 465 * never evicted from the cache, and removed only when they are invalidated. | 465 * never evicted from the cache, and removed only when they are invalidated. |
| 466 */ | 466 */ |
| 467 factory ResultDescriptor(String name, V defaultValue, | 467 factory ResultDescriptor(String name, V defaultValue, |
| 468 {ResultCachingPolicy<V> cachingPolicy}) = ResultDescriptorImpl; | 468 {ResultCachingPolicy<V> cachingPolicy}) = ResultDescriptorImpl<V>; |
| 469 | 469 |
| 470 /** | 470 /** |
| 471 * Return the caching policy for results described by this descriptor. | 471 * Return the caching policy for results described by this descriptor. |
| 472 */ | 472 */ |
| 473 ResultCachingPolicy<V> get cachingPolicy; | 473 ResultCachingPolicy<V> get cachingPolicy; |
| 474 | 474 |
| 475 /** | 475 /** |
| 476 * Return the default value for results described by this descriptor. | 476 * Return the default value for results described by this descriptor. |
| 477 */ | 477 */ |
| 478 V get defaultValue; | 478 V get defaultValue; |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 764 /** | 764 /** |
| 765 * A work should be done, but without any special urgency. | 765 * A work should be done, but without any special urgency. |
| 766 */ | 766 */ |
| 767 NORMAL, | 767 NORMAL, |
| 768 | 768 |
| 769 /** | 769 /** |
| 770 * Nothing to do. | 770 * Nothing to do. |
| 771 */ | 771 */ |
| 772 NONE | 772 NONE |
| 773 } | 773 } |
| OLD | NEW |