| Index: pkg/analyzer/lib/src/generated/engine.dart
|
| diff --git a/pkg/analyzer/lib/src/generated/engine.dart b/pkg/analyzer/lib/src/generated/engine.dart
|
| index 4f8f2ef2a9bc626018d47133e30025f99d991969..e3216261031cbefb5a63b79c7fec131f8fe055bd 100644
|
| --- a/pkg/analyzer/lib/src/generated/engine.dart
|
| +++ b/pkg/analyzer/lib/src/generated/engine.dart
|
| @@ -1063,8 +1063,6 @@ class AnalysisContextImpl implements InternalAnalysisContext {
|
| this._options.analyzeAngular != options.analyzeAngular ||
|
| this._options.analyzeFunctionBodies != options.analyzeFunctionBodies ||
|
| this._options.generateSdkErrors != options.generateSdkErrors ||
|
| - this._options.enableDeferredLoading != options.enableDeferredLoading ||
|
| - this._options.enableEnum != options.enableEnum ||
|
| this._options.dart2jsHint != options.dart2jsHint ||
|
| (this._options.hint && !options.hint) ||
|
| this._options.preserveComments != options.preserveComments;
|
| @@ -1094,8 +1092,6 @@ class AnalysisContextImpl implements InternalAnalysisContext {
|
| this._options.analyzeAngular = options.analyzeAngular;
|
| this._options.analyzeFunctionBodies = options.analyzeFunctionBodies;
|
| this._options.generateSdkErrors = options.generateSdkErrors;
|
| - this._options.enableDeferredLoading = options.enableDeferredLoading;
|
| - this._options.enableEnum = options.enableEnum;
|
| this._options.dart2jsHint = options.dart2jsHint;
|
| this._options.hint = options.hint;
|
| this._options.incremental = options.incremental;
|
| @@ -5879,72 +5875,6 @@ abstract class AnalysisContextStatistics {
|
| }
|
|
|
| /**
|
| - * Information about single piece of data in the cache.
|
| - */
|
| -abstract class AnalysisContextStatistics_CacheRow {
|
| - /**
|
| - * List of possible states which can be queried.
|
| - */
|
| - static const List<CacheState> STATES = const <CacheState>[
|
| - CacheState.ERROR,
|
| - CacheState.FLUSHED,
|
| - CacheState.IN_PROCESS,
|
| - CacheState.INVALID,
|
| - CacheState.VALID];
|
| -
|
| - /**
|
| - * Return the number of entries whose state is [CacheState.ERROR].
|
| - */
|
| - int get errorCount;
|
| -
|
| - /**
|
| - * Return the number of entries whose state is [CacheState.FLUSHED].
|
| - */
|
| - int get flushedCount;
|
| -
|
| - /**
|
| - * Return the number of entries whose state is [CacheState.IN_PROCESS].
|
| - */
|
| - int get inProcessCount;
|
| -
|
| - /**
|
| - * Return the number of entries whose state is [CacheState.INVALID].
|
| - */
|
| - int get invalidCount;
|
| -
|
| - /**
|
| - * Return the name of the data represented by this object.
|
| - */
|
| - String get name;
|
| -
|
| - /**
|
| - * Return the number of entries whose state is [CacheState.VALID].
|
| - */
|
| - int get validCount;
|
| -
|
| - /**
|
| - * Return the number of entries whose state is [state].
|
| - */
|
| - int getCount(CacheState state);
|
| -}
|
| -
|
| -/**
|
| - * Information about a single partition in the cache.
|
| - */
|
| -abstract class AnalysisContextStatistics_PartitionData {
|
| - /**
|
| - * Return the number of entries in the partition that have an AST structure in one state or
|
| - * another.
|
| - */
|
| - int get astCount;
|
| -
|
| - /**
|
| - * Return the total number of entries in the partition.
|
| - */
|
| - int get totalCount;
|
| -}
|
| -
|
| -/**
|
| * Implementation of the [AnalysisContextStatistics].
|
| */
|
| class AnalysisContextStatisticsImpl implements AnalysisContextStatistics {
|
| @@ -6061,6 +5991,72 @@ class AnalysisContextStatisticsImpl_PartitionDataImpl implements
|
| }
|
|
|
| /**
|
| + * Information about single piece of data in the cache.
|
| + */
|
| +abstract class AnalysisContextStatistics_CacheRow {
|
| + /**
|
| + * List of possible states which can be queried.
|
| + */
|
| + static const List<CacheState> STATES = const <CacheState>[
|
| + CacheState.ERROR,
|
| + CacheState.FLUSHED,
|
| + CacheState.IN_PROCESS,
|
| + CacheState.INVALID,
|
| + CacheState.VALID];
|
| +
|
| + /**
|
| + * Return the number of entries whose state is [CacheState.ERROR].
|
| + */
|
| + int get errorCount;
|
| +
|
| + /**
|
| + * Return the number of entries whose state is [CacheState.FLUSHED].
|
| + */
|
| + int get flushedCount;
|
| +
|
| + /**
|
| + * Return the number of entries whose state is [CacheState.IN_PROCESS].
|
| + */
|
| + int get inProcessCount;
|
| +
|
| + /**
|
| + * Return the number of entries whose state is [CacheState.INVALID].
|
| + */
|
| + int get invalidCount;
|
| +
|
| + /**
|
| + * Return the name of the data represented by this object.
|
| + */
|
| + String get name;
|
| +
|
| + /**
|
| + * Return the number of entries whose state is [CacheState.VALID].
|
| + */
|
| + int get validCount;
|
| +
|
| + /**
|
| + * Return the number of entries whose state is [state].
|
| + */
|
| + int getCount(CacheState state);
|
| +}
|
| +
|
| +/**
|
| + * Information about a single partition in the cache.
|
| + */
|
| +abstract class AnalysisContextStatistics_PartitionData {
|
| + /**
|
| + * Return the number of entries in the partition that have an AST structure in one state or
|
| + * another.
|
| + */
|
| + int get astCount;
|
| +
|
| + /**
|
| + * Return the total number of entries in the partition.
|
| + */
|
| + int get totalCount;
|
| +}
|
| +
|
| +/**
|
| * Instances of the class `AnalysisDelta` indicate changes to the types of analysis that
|
| * should be performed.
|
| */
|
| @@ -6501,6 +6497,7 @@ abstract class AnalysisOptions {
|
| *
|
| * @return `true` if analysis is to include the new deferred loading support
|
| */
|
| + @deprecated
|
| bool get enableDeferredLoading;
|
|
|
| /**
|
| @@ -6508,6 +6505,7 @@ abstract class AnalysisOptions {
|
| *
|
| * @return `true` if analysis is to include the new enum support
|
| */
|
| + @deprecated
|
| bool get enableEnum;
|
|
|
| /**
|
| @@ -6566,11 +6564,13 @@ class AnalysisOptionsImpl implements AnalysisOptions {
|
| /**
|
| * The default value for enabling deferred loading.
|
| */
|
| + @deprecated
|
| static bool DEFAULT_ENABLE_DEFERRED_LOADING = true;
|
|
|
| /**
|
| * The default value for enabling enum support.
|
| */
|
| + @deprecated
|
| static bool DEFAULT_ENABLE_ENUM = false;
|
|
|
| /**
|
| @@ -6598,25 +6598,6 @@ class AnalysisOptionsImpl implements AnalysisOptions {
|
| */
|
| bool dart2jsHint = true;
|
|
|
| - @deprecated
|
| - @override
|
| - bool get enableAsync => true;
|
| -
|
| - @deprecated
|
| - void set enableAsync(bool enable) {
|
| - // Async support cannot be disabled
|
| - }
|
| -
|
| - /**
|
| - * A flag indicating whether analysis is to enable deferred loading.
|
| - */
|
| - bool enableDeferredLoading = DEFAULT_ENABLE_DEFERRED_LOADING;
|
| -
|
| - /**
|
| - * A flag indicating whether analysis is to enable enum support.
|
| - */
|
| - bool enableEnum = DEFAULT_ENABLE_ENUM;
|
| -
|
| /**
|
| * A flag indicating whether errors, warnings and hints should be generated for sources in the
|
| * SDK.
|
| @@ -6668,8 +6649,6 @@ class AnalysisOptionsImpl implements AnalysisOptions {
|
| analyzePolymer = options.analyzePolymer;
|
| cacheSize = options.cacheSize;
|
| dart2jsHint = options.dart2jsHint;
|
| - enableDeferredLoading = options.enableDeferredLoading;
|
| - enableEnum = options.enableEnum;
|
| _generateSdkErrors = options.generateSdkErrors;
|
| hint = options.hint;
|
| incremental = options.incremental;
|
| @@ -6678,6 +6657,33 @@ class AnalysisOptionsImpl implements AnalysisOptions {
|
| preserveComments = options.preserveComments;
|
| }
|
|
|
| + @deprecated
|
| + @override
|
| + bool get enableAsync => true;
|
| +
|
| + @deprecated
|
| + void set enableAsync(bool enable) {
|
| + // Async support cannot be disabled
|
| + }
|
| +
|
| + @deprecated
|
| + @override
|
| + bool get enableDeferredLoading => true;
|
| +
|
| + @deprecated
|
| + void set enableDeferredLoading(bool enable) {
|
| + // Deferred loading support cannot be disabled
|
| + }
|
| +
|
| + @deprecated
|
| + @override
|
| + bool get enableEnum => true;
|
| +
|
| + @deprecated
|
| + void set enableEnum(bool enable) {
|
| + // Enum support cannot be disabled
|
| + }
|
| +
|
| @override
|
| bool get generateSdkErrors => _generateSdkErrors;
|
|
|
| @@ -7951,32 +7957,6 @@ abstract class AngularXmlExpression extends ht.XmlExpression {
|
| }
|
|
|
| /**
|
| - * A `CachedResult` is a single analysis result that is stored in a
|
| - * [SourceEntry].
|
| - */
|
| -class CachedResult<E> {
|
| - /**
|
| - * The state of the cached value.
|
| - */
|
| - CacheState state;
|
| -
|
| - /**
|
| - * The value being cached, or `null` if there is no value (for example, when
|
| - * the [state] is [CacheState.INVALID].
|
| - */
|
| - E value;
|
| -
|
| - /**
|
| - * Initialize a newly created result holder to represent the value of data
|
| - * described by the given [descriptor].
|
| - */
|
| - CachedResult(DataDescriptor descriptor) {
|
| - state = CacheState.INVALID;
|
| - value = descriptor.defaultValue;
|
| - }
|
| -}
|
| -
|
| -/**
|
| * Instances of the class `CachePartition` implement a single partition in an LRU cache of
|
| * information related to analysis.
|
| */
|
| @@ -8297,6 +8277,32 @@ class CacheState extends Enum<CacheState> {
|
| }
|
|
|
| /**
|
| + * A `CachedResult` is a single analysis result that is stored in a
|
| + * [SourceEntry].
|
| + */
|
| +class CachedResult<E> {
|
| + /**
|
| + * The state of the cached value.
|
| + */
|
| + CacheState state;
|
| +
|
| + /**
|
| + * The value being cached, or `null` if there is no value (for example, when
|
| + * the [state] is [CacheState.INVALID].
|
| + */
|
| + E value;
|
| +
|
| + /**
|
| + * Initialize a newly created result holder to represent the value of data
|
| + * described by the given [descriptor].
|
| + */
|
| + CachedResult(DataDescriptor descriptor) {
|
| + state = CacheState.INVALID;
|
| + value = descriptor.defaultValue;
|
| + }
|
| +}
|
| +
|
| +/**
|
| * The interface `ChangeNotice` defines the behavior of objects that represent a change to the
|
| * analysis results associated with a given source.
|
| */
|
| @@ -11339,8 +11345,6 @@ class ParseDartTask extends AnalysisTask {
|
| Parser parser = new Parser(source, errorListener);
|
| AnalysisOptions options = context.analysisOptions;
|
| parser.parseFunctionBodies = options.analyzeFunctionBodies;
|
| - parser.parseDeferredLibraries = options.enableDeferredLoading;
|
| - parser.parseEnum = options.enableEnum;
|
| _unit = parser.parseCompilationUnit(_tokenStream);
|
| _unit.lineInfo = lineInfo;
|
| AnalysisContext analysisContext = context;
|
|
|