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

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

Issue 2091883002: Add '--finer-grained-invalidation' option to Analysis Server. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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) 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 library analyzer.src.generated.engine; 5 library analyzer.src.generated.engine;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:collection'; 8 import 'dart:collection';
9 9
10 import 'package:analyzer/dart/ast/ast.dart'; 10 import 'package:analyzer/dart/ast/ast.dart';
(...skipping 769 matching lines...) Expand 10 before | Expand all | Expand 10 after
780 */ 780 */
781 InstrumentationService _instrumentationService = 781 InstrumentationService _instrumentationService =
782 InstrumentationService.NULL_SERVICE; 782 InstrumentationService.NULL_SERVICE;
783 783
784 /** 784 /**
785 * The partition manager being used to manage the shared partitions. 785 * The partition manager being used to manage the shared partitions.
786 */ 786 */
787 final PartitionManager partitionManager = new PartitionManager(); 787 final PartitionManager partitionManager = new PartitionManager();
788 788
789 /** 789 /**
790 * A flag indicating whether the task model should attempt to limit
791 * invalidation after a change.
792 */
793 bool limitInvalidationInTaskModel = false;
794
795 /**
796 * The task manager used to manage the tasks used to analyze code. 790 * The task manager used to manage the tasks used to analyze code.
797 */ 791 */
798 TaskManager _taskManager; 792 TaskManager _taskManager;
799 793
800 AnalysisEngine._(); 794 AnalysisEngine._();
801 795
802 /** 796 /**
803 * Return the instrumentation service that is to be used by this analysis 797 * Return the instrumentation service that is to be used by this analysis
804 * engine. 798 * engine.
805 */ 799 */
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
1152 1146
1153 /** 1147 /**
1154 * Return `true` if dependencies between computed results should be tracked 1148 * Return `true` if dependencies between computed results should be tracked
1155 * by analysis cache. This option should only be set to `false` if analysis 1149 * by analysis cache. This option should only be set to `false` if analysis
1156 * is performed in such a way that none of the inputs is ever changed 1150 * is performed in such a way that none of the inputs is ever changed
1157 * during the life time of the context. 1151 * during the life time of the context.
1158 */ 1152 */
1159 bool get trackCacheDependencies; 1153 bool get trackCacheDependencies;
1160 1154
1161 /** 1155 /**
1156 * A flag indicating whether finer grained dependencies should be used
1157 * instead of just source level dependencies.
1158 *
1159 * This option is experimental and subject to change.
1160 */
1161 bool get finerGrainedInvalidation;
1162
1163 /**
1162 * Return an integer encoding of the values of the options that need to be the 1164 * Return an integer encoding of the values of the options that need to be the
1163 * same across all of the contexts associated with partitions that are to be 1165 * same across all of the contexts associated with partitions that are to be
1164 * shared by a single analysis context. 1166 * shared by a single analysis context.
1165 */ 1167 */
1166 int encodeCrossContextOptions(); 1168 int encodeCrossContextOptions();
1167 1169
1168 /** 1170 /**
1169 * Set the values of the cross-context options to match those in the given set 1171 * Set the values of the cross-context options to match those in the given set
1170 * of [options]. 1172 * of [options].
1171 */ 1173 */
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
1302 bool trackCacheDependencies = true; 1304 bool trackCacheDependencies = true;
1303 1305
1304 /** 1306 /**
1305 * A flag indicating whether implicit casts are allowed in [strongMode] 1307 * A flag indicating whether implicit casts are allowed in [strongMode]
1306 * (they are always allowed in Dart 1.0 mode). 1308 * (they are always allowed in Dart 1.0 mode).
1307 * 1309 *
1308 * This option is experimental and subject to change. 1310 * This option is experimental and subject to change.
1309 */ 1311 */
1310 bool implicitCasts = true; 1312 bool implicitCasts = true;
1311 1313
1314 @override
1315 bool finerGrainedInvalidation = false;
1316
1312 /** 1317 /**
1313 * Initialize a newly created set of analysis options to have their default 1318 * Initialize a newly created set of analysis options to have their default
1314 * values. 1319 * values.
1315 */ 1320 */
1316 AnalysisOptionsImpl(); 1321 AnalysisOptionsImpl();
1317 1322
1318 /** 1323 /**
1319 * Initialize a newly created set of analysis options to have the same values 1324 * Initialize a newly created set of analysis options to have the same values
1320 * as those in the given set of analysis [options]. 1325 * as those in the given set of analysis [options].
1321 */ 1326 */
(...skipping 14 matching lines...) Expand all
1336 incrementalApi = options.incrementalApi; 1341 incrementalApi = options.incrementalApi;
1337 incrementalValidation = options.incrementalValidation; 1342 incrementalValidation = options.incrementalValidation;
1338 lint = options.lint; 1343 lint = options.lint;
1339 preserveComments = options.preserveComments; 1344 preserveComments = options.preserveComments;
1340 strongMode = options.strongMode; 1345 strongMode = options.strongMode;
1341 if (options is AnalysisOptionsImpl) { 1346 if (options is AnalysisOptionsImpl) {
1342 strongModeHints = options.strongModeHints; 1347 strongModeHints = options.strongModeHints;
1343 implicitCasts = options.implicitCasts; 1348 implicitCasts = options.implicitCasts;
1344 } 1349 }
1345 trackCacheDependencies = options.trackCacheDependencies; 1350 trackCacheDependencies = options.trackCacheDependencies;
1351 finerGrainedInvalidation = options.finerGrainedInvalidation;
1346 } 1352 }
1347 1353
1348 bool get analyzeFunctionBodies { 1354 bool get analyzeFunctionBodies {
1349 if (identical(analyzeFunctionBodiesPredicate, _analyzeAllFunctionBodies)) { 1355 if (identical(analyzeFunctionBodiesPredicate, _analyzeAllFunctionBodies)) {
1350 return true; 1356 return true;
1351 } else if (identical( 1357 } else if (identical(
1352 analyzeFunctionBodiesPredicate, _analyzeNoFunctionBodies)) { 1358 analyzeFunctionBodiesPredicate, _analyzeNoFunctionBodies)) {
1353 return false; 1359 return false;
1354 } else { 1360 } else {
1355 throw new StateError('analyzeFunctionBodiesPredicate in use'); 1361 throw new StateError('analyzeFunctionBodiesPredicate in use');
(...skipping 1238 matching lines...) Expand 10 before | Expand all | Expand 10 after
2594 * The data that was created from the source. 2600 * The data that was created from the source.
2595 */ 2601 */
2596 final E data; 2602 final E data;
2597 2603
2598 /** 2604 /**
2599 * Initialize a newly created holder to associate the given [data] with the 2605 * Initialize a newly created holder to associate the given [data] with the
2600 * given [modificationTime]. 2606 * given [modificationTime].
2601 */ 2607 */
2602 TimestampedData(this.modificationTime, this.data); 2608 TimestampedData(this.modificationTime, this.data);
2603 } 2609 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/context/context.dart ('k') | pkg/analyzer/test/src/context/context_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698