Skip to content

Commit f5ed63f

Browse files
committed
Deprecate analysis option "cacheSize".
This option has had no effect for quite some time. [email protected] Review URL: https://codereview.chromium.org/2392983002 .
1 parent 292a7d2 commit f5ed63f

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

pkg/analysis_server/lib/src/status/get_handler.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1407,7 +1407,6 @@ class GetHandler {
14071407
buffer.write('<p>');
14081408
_writeOption(
14091409
buffer, 'Analyze functon bodies', options.analyzeFunctionBodies);
1410-
_writeOption(buffer, 'Cache size', options.cacheSize);
14111410
_writeOption(
14121411
buffer, 'Enable generic methods', options.enableGenericMethods);
14131412
_writeOption(

pkg/analyzer/lib/src/generated/engine.dart

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1061,9 +1061,12 @@ abstract class AnalysisOptions {
10611061
AnalyzeFunctionBodiesPredicate get analyzeFunctionBodiesPredicate;
10621062

10631063
/**
1064-
* Return the maximum number of sources for which AST structures should be
1064+
* DEPRECATED: Return the maximum number of sources for which AST structures should be
10651065
* kept in the cache.
1066+
*
1067+
* This setting no longer has any effect.
10661068
*/
1069+
@deprecated
10671070
int get cacheSize;
10681071

10691072
/**
@@ -1225,8 +1228,11 @@ abstract class AnalysisOptions {
12251228
*/
12261229
class AnalysisOptionsImpl implements AnalysisOptions {
12271230
/**
1228-
* The maximum number of sources for which data should be kept in the cache.
1231+
* DEPRECATED: The maximum number of sources for which data should be kept in the cache.
1232+
*
1233+
* This constant no longer has any effect.
12291234
*/
1235+
@deprecated
12301236
static const int DEFAULT_CACHE_SIZE = 64;
12311237

12321238
static const int ENABLE_ASSERT_FLAG = 0x01;
@@ -1249,6 +1255,7 @@ class AnalysisOptionsImpl implements AnalysisOptions {
12491255
_analyzeAllFunctionBodies;
12501256

12511257
@override
1258+
@deprecated
12521259
int cacheSize = DEFAULT_CACHE_SIZE;
12531260

12541261
@override

0 commit comments

Comments
 (0)