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

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

Issue 1127403004: Return empty contents for not existing sources. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/context/context.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.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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/context/context.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698