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

Unified Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/context/AnalysisContextImpl.java

Issue 27278004: New analyzer_experimental snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | editor/util/plugins/com.google.dart.java2dart/resources/ast_include.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/context/AnalysisContextImpl.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/context/AnalysisContextImpl.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/context/AnalysisContextImpl.java
index 06323edd0fef13fa71095f57de34ac818e8017bb..e123d5b51e75c136ab7dfa894e966fcff4667c15 100644
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/context/AnalysisContextImpl.java
+++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/context/AnalysisContextImpl.java
@@ -176,9 +176,7 @@ public class AnalysisContextImpl implements InternalAnalysisContext {
/**
* A table mapping the sources known to the context to the information known about the source.
*/
- private final AnalysisCache cache = new AnalysisCache(
- AnalysisOptionsImpl.DEFAULT_CACHE_SIZE,
- new ContextRetentionPolicy());
+ private final AnalysisCache cache;
/**
* An array containing sources for which data should not be flushed.
@@ -214,6 +212,7 @@ public class AnalysisContextImpl implements InternalAnalysisContext {
public AnalysisContextImpl() {
super();
resultRecorder = new AnalysisTaskResultRecorder();
+ cache = new AnalysisCache(AnalysisOptionsImpl.DEFAULT_CACHE_SIZE, new ContextRetentionPolicy());
}
@Override
« no previous file with comments | « no previous file | editor/util/plugins/com.google.dart.java2dart/resources/ast_include.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698