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

Side by Side Diff: pkg/analyzer/lib/src/generated/engine.dart

Issue 1167483004: Invalidate resolution of analysisOptions/sourceFactory changes. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 // This code was auto-generated, is not intended to be edited, and is subject to 5 // This code was auto-generated, is not intended to be edited, and is subject to
6 // significant change. Please see the README file for more information. 6 // significant change. Please see the README file for more information.
7 7
8 library engine; 8 library engine;
9 9
10 import 'dart:async'; 10 import 'dart:async';
(...skipping 1334 matching lines...) Expand 10 before | Expand all | Expand 10 after
1345 HashMap<Source, List<PendingFuture>> get pendingFutureSources_forTesting => 1345 HashMap<Source, List<PendingFuture>> get pendingFutureSources_forTesting =>
1346 _pendingFutureSources; 1346 _pendingFutureSources;
1347 1347
1348 @override 1348 @override
1349 List<Source> get prioritySources => _priorityOrder; 1349 List<Source> get prioritySources => _priorityOrder;
1350 1350
1351 @override 1351 @override
1352 List<AnalysisTarget> get priorityTargets => prioritySources; 1352 List<AnalysisTarget> get priorityTargets => prioritySources;
1353 1353
1354 @override 1354 @override
1355 CachePartition get privateAnalysisCachePartition => _privatePartition;
1356
1357 @override
1355 SourceFactory get sourceFactory => _sourceFactory; 1358 SourceFactory get sourceFactory => _sourceFactory;
1356 1359
1357 @override 1360 @override
1358 void set sourceFactory(SourceFactory factory) { 1361 void set sourceFactory(SourceFactory factory) {
1359 if (identical(_sourceFactory, factory)) { 1362 if (identical(_sourceFactory, factory)) {
1360 return; 1363 return;
1361 } else if (factory.context != null) { 1364 } else if (factory.context != null) {
1362 throw new IllegalStateException( 1365 throw new IllegalStateException(
1363 "Source factories cannot be shared between contexts"); 1366 "Source factories cannot be shared between contexts");
1364 } 1367 }
(...skipping 7687 matching lines...) Expand 10 before | Expand all | Expand 10 after
9052 * priority sources. Clients must not modify the returned list. 9055 * priority sources. Clients must not modify the returned list.
9053 */ 9056 */
9054 List<Source> get prioritySources; 9057 List<Source> get prioritySources;
9055 9058
9056 /** 9059 /**
9057 * Return a list of the priority targets being analyzed by this context. 9060 * Return a list of the priority targets being analyzed by this context.
9058 */ 9061 */
9059 List<AnalysisTarget> get priorityTargets; 9062 List<AnalysisTarget> get priorityTargets;
9060 9063
9061 /** 9064 /**
9065 * The partition that contains analysis results that are not shared with other
9066 * contexts.
9067 *
9068 * TODO(scheglov) add the type, once we have only one cache.
9069 */
9070 dynamic get privateAnalysisCachePartition;
Brian Wilkerson 2015/06/05 21:01:34 I'm not fond of the idea of exposing the cache str
9071
9072 /**
9062 * A factory to override how [ResolverVisitor] is created. 9073 * A factory to override how [ResolverVisitor] is created.
9063 */ 9074 */
9064 ResolverVisitorFactory get resolverVisitorFactory; 9075 ResolverVisitorFactory get resolverVisitorFactory;
9065 9076
9066 /** 9077 /**
9067 * Returns a statistics about this context. 9078 * Returns a statistics about this context.
9068 */ 9079 */
9069 AnalysisContextStatistics get statistics; 9080 AnalysisContextStatistics get statistics;
9070 9081
9071 /** 9082 /**
(...skipping 2630 matching lines...) Expand 10 before | Expand all | Expand 10 after
11702 PendingFuture pendingFuture = 11713 PendingFuture pendingFuture =
11703 new PendingFuture<T>(_context, source, computeValue); 11714 new PendingFuture<T>(_context, source, computeValue);
11704 if (!pendingFuture.evaluate(sourceEntry)) { 11715 if (!pendingFuture.evaluate(sourceEntry)) {
11705 _context._pendingFutureSources 11716 _context._pendingFutureSources
11706 .putIfAbsent(source, () => <PendingFuture>[]) 11717 .putIfAbsent(source, () => <PendingFuture>[])
11707 .add(pendingFuture); 11718 .add(pendingFuture);
11708 } 11719 }
11709 return pendingFuture.future; 11720 return pendingFuture.future;
11710 } 11721 }
11711 } 11722 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/context/context.dart ('k') | pkg/analyzer/lib/src/task/dart_work_manager.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698