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

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

Issue 2383203003: Add an analysis option to disable cache flushing. (Closed)
Patch Set: Created 4 years, 2 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 1054 matching lines...) Expand 10 before | Expand all | Expand 10 after
1065 * kept in the cache. 1065 * kept in the cache.
1066 */ 1066 */
1067 int get cacheSize; 1067 int get cacheSize;
1068 1068
1069 /** 1069 /**
1070 * Return `true` if analysis is to generate dart2js related hint results. 1070 * Return `true` if analysis is to generate dart2js related hint results.
1071 */ 1071 */
1072 bool get dart2jsHint; 1072 bool get dart2jsHint;
1073 1073
1074 /** 1074 /**
1075 * Return `true` if cache flushing should be disabled. Setting this option to
1076 * `true` can improve analysis speed at the expense of memory usage. It may
1077 * also be useful for working around bugs.
1078 *
1079 * This option should not be used when the analyzer is part of a long running
1080 * process (such as the analysis server) because it has the potential to
1081 * prevent memory from being reclaimed.
1082 */
1083 bool get disableCacheFlushing;
1084
1085 /**
1075 * Return `true` if the parser is to parse asserts in the initializer list of 1086 * Return `true` if the parser is to parse asserts in the initializer list of
1076 * a constructor. 1087 * a constructor.
1077 */ 1088 */
1078 bool get enableAssertInitializer; 1089 bool get enableAssertInitializer;
1079 1090
1080 /** 1091 /**
1081 * Return `true` to enable custom assert messages (DEP 37). 1092 * Return `true` to enable custom assert messages (DEP 37).
1082 */ 1093 */
1083 bool get enableAssertMessage; 1094 bool get enableAssertMessage;
1084 1095
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
1298 * A flag indicating whether strong-mode inference hints should be 1309 * A flag indicating whether strong-mode inference hints should be
1299 * used. This flag is not exposed in the interface, and should be 1310 * used. This flag is not exposed in the interface, and should be
1300 * replaced by something more general. 1311 * replaced by something more general.
1301 */ 1312 */
1302 // TODO(leafp): replace this with something more general 1313 // TODO(leafp): replace this with something more general
1303 bool strongModeHints = false; 1314 bool strongModeHints = false;
1304 1315
1305 @override 1316 @override
1306 bool trackCacheDependencies = true; 1317 bool trackCacheDependencies = true;
1307 1318
1319 @override
1320 bool disableCacheFlushing = false;
1321
1308 /** 1322 /**
1309 * A flag indicating whether implicit casts are allowed in [strongMode] 1323 * A flag indicating whether implicit casts are allowed in [strongMode]
1310 * (they are always allowed in Dart 1.0 mode). 1324 * (they are always allowed in Dart 1.0 mode).
1311 * 1325 *
1312 * This option is experimental and subject to change. 1326 * This option is experimental and subject to change.
1313 */ 1327 */
1314 bool implicitCasts = true; 1328 bool implicitCasts = true;
1315 1329
1316 /** 1330 /**
1317 * A list of non-nullable type names, prefixed by the library URI they belong 1331 * A list of non-nullable type names, prefixed by the library URI they belong
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
1364 lint = options.lint; 1378 lint = options.lint;
1365 preserveComments = options.preserveComments; 1379 preserveComments = options.preserveComments;
1366 strongMode = options.strongMode; 1380 strongMode = options.strongMode;
1367 if (options is AnalysisOptionsImpl) { 1381 if (options is AnalysisOptionsImpl) {
1368 strongModeHints = options.strongModeHints; 1382 strongModeHints = options.strongModeHints;
1369 implicitCasts = options.implicitCasts; 1383 implicitCasts = options.implicitCasts;
1370 nonnullableTypes = options.nonnullableTypes; 1384 nonnullableTypes = options.nonnullableTypes;
1371 implicitDynamic = options.implicitDynamic; 1385 implicitDynamic = options.implicitDynamic;
1372 } 1386 }
1373 trackCacheDependencies = options.trackCacheDependencies; 1387 trackCacheDependencies = options.trackCacheDependencies;
1388 disableCacheFlushing = options.disableCacheFlushing;
1374 finerGrainedInvalidation = options.finerGrainedInvalidation; 1389 finerGrainedInvalidation = options.finerGrainedInvalidation;
1375 } 1390 }
1376 1391
1377 bool get analyzeFunctionBodies { 1392 bool get analyzeFunctionBodies {
1378 if (identical(analyzeFunctionBodiesPredicate, _analyzeAllFunctionBodies)) { 1393 if (identical(analyzeFunctionBodiesPredicate, _analyzeAllFunctionBodies)) {
1379 return true; 1394 return true;
1380 } else if (identical( 1395 } else if (identical(
1381 analyzeFunctionBodiesPredicate, _analyzeNoFunctionBodies)) { 1396 analyzeFunctionBodiesPredicate, _analyzeNoFunctionBodies)) {
1382 return false; 1397 return false;
1383 } else { 1398 } else {
(...skipping 1287 matching lines...) Expand 10 before | Expand all | Expand 10 after
2671 * The data that was created from the source. 2686 * The data that was created from the source.
2672 */ 2687 */
2673 final E data; 2688 final E data;
2674 2689
2675 /** 2690 /**
2676 * Initialize a newly created holder to associate the given [data] with the 2691 * Initialize a newly created holder to associate the given [data] with the
2677 * given [modificationTime]. 2692 * given [modificationTime].
2678 */ 2693 */
2679 TimestampedData(this.modificationTime, this.data); 2694 TimestampedData(this.modificationTime, this.data);
2680 } 2695 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/context/context.dart ('k') | pkg/analyzer/test/src/context/builder_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698