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

Unified Diff: pkg/analyzer/lib/src/context/context.dart

Issue 1124113004: Get AnalysisCache from InternalAnalysisContext. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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/context/cache.dart ('k') | pkg/analyzer/lib/src/generated/engine.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/context/context.dart
diff --git a/pkg/analyzer/lib/src/context/context.dart b/pkg/analyzer/lib/src/context/context.dart
index bb0cd6a7da3b1e0e413ed946cdfc40fb6804b6af..bcf544c1fd03e5ff5a7739caf79e1d4bbc2aaaff 100644
--- a/pkg/analyzer/lib/src/context/context.dart
+++ b/pkg/analyzer/lib/src/context/context.dart
@@ -190,6 +190,9 @@ class AnalysisContextImpl implements InternalAnalysisContext {
}
@override
+ cache.AnalysisCache get analysisCache => _cache;
+
+ @override
AnalysisOptions get analysisOptions => _options;
@override
@@ -566,8 +569,10 @@ class AnalysisContextImpl implements InternalAnalysisContext {
}
@override
- LibraryElement computeLibraryElement(Source source) => _computeResult(
- source, LIBRARY_ELEMENT); //_computeResult(source, HtmlEntry.ELEMENT);
+ LibraryElement computeLibraryElement(Source source) {
+ //_computeResult(source, HtmlEntry.ELEMENT);
+ return _computeResult(source, LIBRARY_ELEMENT);
+ }
@override
LineInfo computeLineInfo(Source source) => _computeResult(source, LINE_INFO);
« no previous file with comments | « pkg/analyzer/lib/src/context/cache.dart ('k') | pkg/analyzer/lib/src/generated/engine.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698