Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(399)

Side by Side Diff: pkg/analyzer/lib/src/task/model.dart

Issue 1842363004: More strong mode fixes for analyzer (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Backout options changes Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « pkg/analyzer/lib/src/task/dart_work_manager.dart ('k') | pkg/analyzer/lib/task/model.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/task/dart_work_manager.dart ('k') | pkg/analyzer/lib/task/model.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698