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

Side by Side Diff: pkg/analyzer/lib/src/context/cache.dart

Issue 1211243003: Re-implement the status page for the new task model (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Add missed file Created 5 years, 5 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
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.context.cache; 5 library analyzer.src.context.cache;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:collection'; 8 import 'dart:collection';
9 9
10 import 'package:analyzer/src/generated/engine.dart' 10 import 'package:analyzer/src/generated/engine.dart'
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 306
307 /** 307 /**
308 * Set whether the source was explicitly added to the context to match the 308 * Set whether the source was explicitly added to the context to match the
309 * [explicitlyAdded] flag. 309 * [explicitlyAdded] flag.
310 */ 310 */
311 void set explicitlyAdded(bool explicitlyAdded) { 311 void set explicitlyAdded(bool explicitlyAdded) {
312 _setFlag(_EXPLICITLY_ADDED_FLAG, explicitlyAdded); 312 _setFlag(_EXPLICITLY_ADDED_FLAG, explicitlyAdded);
313 } 313 }
314 314
315 /** 315 /**
316 * Return a list of result descriptors for results whose state is not
317 * [CacheState.INVALID].
318 */
319 List<ResultDescriptor> get nonInvalidResults => _resultMap.keys.toList();
320
321 /**
316 * Fix the state of the [exception] to match the current state of the entry. 322 * Fix the state of the [exception] to match the current state of the entry.
317 */ 323 */
318 void fixExceptionState() { 324 void fixExceptionState() {
319 if (!hasErrorState()) { 325 if (!hasErrorState()) {
320 _exception = null; 326 _exception = null;
321 } 327 }
322 } 328 }
323 329
324 /** 330 /**
325 * Look up the [ResultData] of [descriptor], or add a new one if it isn't 331 * Look up the [ResultData] of [descriptor], or add a new one if it isn't
(...skipping 825 matching lines...) Expand 10 before | Expand all | Expand 10 after
1151 void resultAccessed(TargetedResult result) {} 1157 void resultAccessed(TargetedResult result) {}
1152 1158
1153 @override 1159 @override
1154 List<TargetedResult> resultStored(TargetedResult newResult, newValue) { 1160 List<TargetedResult> resultStored(TargetedResult newResult, newValue) {
1155 return TargetedResult.EMPTY_LIST; 1161 return TargetedResult.EMPTY_LIST;
1156 } 1162 }
1157 1163
1158 @override 1164 @override
1159 void targetRemoved(AnalysisTarget target) {} 1165 void targetRemoved(AnalysisTarget target) {}
1160 } 1166 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/status/get_handler.dart ('k') | pkg/analyzer/lib/src/context/context.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698