| 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.task.model; | 5 library analyzer.src.task.model; |
| 6 | 6 |
| 7 import 'package:analyzer/src/generated/engine.dart'; | 7 import 'package:analyzer/src/generated/engine.dart'; |
| 8 import 'package:analyzer/src/task/inputs.dart'; | 8 import 'package:analyzer/src/task/inputs.dart'; |
| 9 import 'package:analyzer/task/model.dart'; | 9 import 'package:analyzer/task/model.dart'; |
| 10 | 10 |
| 11 /** | 11 /** |
| 12 * The default [ResultCachingPolicy], results are never flushed. | 12 * The default [ResultCachingPolicy], results are never flushed. |
| 13 */ | 13 */ |
| 14 const ResultCachingPolicy DEFAULT_CACHING_POLICY = | 14 const ResultCachingPolicy<Object> DEFAULT_CACHING_POLICY = |
| 15 const SimpleResultCachingPolicy(-1, -1); | 15 const SimpleResultCachingPolicy(-1, -1); |
| 16 | 16 |
| 17 /** | 17 /** |
| 18 * A concrete implementation of a [ListResultDescriptor]. | 18 * A concrete implementation of a [ListResultDescriptor]. |
| 19 */ | 19 */ |
| 20 class ListResultDescriptorImpl<E> extends ResultDescriptorImpl<List<E>> | 20 class ListResultDescriptorImpl<E> extends ResultDescriptorImpl<List<E>> |
| 21 implements ListResultDescriptor<E> { | 21 implements ListResultDescriptor<E> { |
| 22 /** | 22 /** |
| 23 * Initialize a newly created analysis result to have the given [name] and | 23 * Initialize a newly created analysis result to have the given [name] and |
| 24 * [defaultValue]. If a [cachingPolicy] is provided, it will control how long | 24 * [defaultValue]. If a [cachingPolicy] is provided, it will control how long |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 @override | 159 @override |
| 160 String toString() => name; | 160 String toString() => name; |
| 161 | 161 |
| 162 /** | 162 /** |
| 163 * The function that will be used to determine the suitability of a task if no | 163 * The function that will be used to determine the suitability of a task if no |
| 164 * other function is provided. | 164 * other function is provided. |
| 165 */ | 165 */ |
| 166 static TaskSuitability _defaultSuitability(AnalysisTarget target) => | 166 static TaskSuitability _defaultSuitability(AnalysisTarget target) => |
| 167 TaskSuitability.LOWEST; | 167 TaskSuitability.LOWEST; |
| 168 } | 168 } |
| OLD | NEW |