Index: pkg/analyzer/lib/task/dart.dart |
diff --git a/pkg/analyzer/lib/task/dart.dart b/pkg/analyzer/lib/task/dart.dart |
index 2c79bb3daaa887e80ad629de805506347368e125..05d3b01570633dba44244f59e305caf59e595d27 100644 |
--- a/pkg/analyzer/lib/task/dart.dart |
+++ b/pkg/analyzer/lib/task/dart.dart |
@@ -10,6 +10,7 @@ import 'package:analyzer/src/generated/error.dart'; |
import 'package:analyzer/src/generated/scanner.dart'; |
import 'package:analyzer/src/generated/source.dart'; |
import 'package:analyzer/src/generated/utilities_general.dart'; |
+import 'package:analyzer/src/task/dart.dart'; |
import 'package:analyzer/task/model.dart'; |
/** |
@@ -32,7 +33,8 @@ final CompositeResultDescriptor<List<AnalysisError>> DART_ERRORS = |
* The result is only available for targets representing a Dart library. |
*/ |
final ListResultDescriptor<Source> EXPLICITLY_IMPORTED_LIBRARIES = |
- new ListResultDescriptor<Source>('EXPLICITLY_IMPORTED_LIBRARIES', Source.EMPTY_ARRAY); |
+ new ListResultDescriptor<Source>( |
+ 'EXPLICITLY_IMPORTED_LIBRARIES', Source.EMPTY_ARRAY); |
/** |
* The sources of the libraries that are exported from a library. |
@@ -101,7 +103,8 @@ final ResultDescriptor<LibraryElement> LIBRARY_ELEMENT = |
* The result is only available for targets representing a Dart compilation unit. |
*/ |
final ResultDescriptor<CompilationUnit> PARSED_UNIT = |
- new ResultDescriptor<CompilationUnit>('PARSED_UNIT', null); |
+ new ResultDescriptor<CompilationUnit>('PARSED_UNIT', null, |
+ cachingPolicy: AST_CACHING_POLICY); |
/** |
* The resolved [CompilationUnit] associated with a unit. |
@@ -109,7 +112,8 @@ final ResultDescriptor<CompilationUnit> PARSED_UNIT = |
* The result is only available for targets representing a unit. |
*/ |
final ResultDescriptor<CompilationUnit> RESOLVED_UNIT = |
- new ResultDescriptor<CompilationUnit>('RESOLVED_UNIT', null); |
+ new ResultDescriptor<CompilationUnit>('RESOLVED_UNIT', null, |
+ cachingPolicy: AST_CACHING_POLICY); |
/** |
* The token stream produced while scanning a compilation unit. |
@@ -119,8 +123,8 @@ final ResultDescriptor<CompilationUnit> RESOLVED_UNIT = |
* |
* The result is only available for targets representing a Dart compilation unit. |
*/ |
-final ResultDescriptor<Token> TOKEN_STREAM = |
- new ResultDescriptor<Token>('TOKEN_STREAM', null); |
+final ResultDescriptor<Token> TOKEN_STREAM = new ResultDescriptor<Token>( |
+ 'TOKEN_STREAM', null, cachingPolicy: TOKEN_STREAM_CACHING_POLICY); |
/** |
* The sources of the Dart files that a library consists of. |