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

Unified Diff: pkg/analyzer/lib/task/dart.dart

Issue 1133513003: Cache flushing implementation for the task model. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixes for review comments. Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analyzer/lib/src/task/model.dart ('k') | pkg/analyzer/lib/task/model.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/task/dart.dart
diff --git a/pkg/analyzer/lib/task/dart.dart b/pkg/analyzer/lib/task/dart.dart
index e29652fff7b3d71f969b9b68bb1b35eb6d1b48ac..284985bedc94c74056f4bd389b3a4801e0a9087f 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';
/**
@@ -102,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.
@@ -110,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.
@@ -120,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.
« no previous file with comments | « pkg/analyzer/lib/src/task/model.dart ('k') | pkg/analyzer/lib/task/model.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698