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

Unified Diff: pkg/analysis_server/lib/src/analysis_server.dart

Issue 949283002: Improve displaying overlays. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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 | pkg/analysis_server/lib/src/get_handler.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/src/analysis_server.dart
diff --git a/pkg/analysis_server/lib/src/analysis_server.dart b/pkg/analysis_server/lib/src/analysis_server.dart
index 15f57590a62aab1de4214dcdd0a2cf7ec19cab75..3e874a5e348445bbb3c71348436ac8e71f96823c 100644
--- a/pkg/analysis_server/lib/src/analysis_server.dart
+++ b/pkg/analysis_server/lib/src/analysis_server.dart
@@ -230,7 +230,7 @@ class AnalysisServer {
* The current state of overlays from the client. This is used as the
* content cache for all contexts.
*/
- ContentCache _overlayState = new ContentCache();
+ final ContentCache overlayState = new ContentCache();
/**
* Initialize a newly created server to receive requests from and send
@@ -979,7 +979,7 @@ class AnalysisServer {
Source source = getSource(file);
operationQueue.sourceAboutToChange(source);
// Prepare the new contents.
- String oldContents = _overlayState.getContents(source);
+ String oldContents = overlayState.getContents(source);
String newContents;
if (change is AddContentOverlay) {
newContents = change.content;
@@ -1010,7 +1010,7 @@ class AnalysisServer {
// Protocol parsing should have ensured that we never get here.
throw new AnalysisException('Illegal change type');
}
- _overlayState.setContents(source, newContents);
+ overlayState.setContents(source, newContents);
// Update all contexts.
for (InternalAnalysisContext context in folderMap.values) {
if (context.handleContentsChanged(
@@ -1194,7 +1194,7 @@ class ServerContextManager extends ContextManager {
AnalysisContext addContext(Folder folder, UriResolver packageUriResolver) {
InternalAnalysisContext context =
AnalysisEngine.instance.createAnalysisContext();
- context.contentCache = analysisServer._overlayState;
+ context.contentCache = analysisServer.overlayState;
analysisServer.folderMap[folder] = context;
context.sourceFactory = _createSourceFactory(packageUriResolver);
context.analysisOptions = new AnalysisOptionsImpl.con1(defaultOptions);
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/get_handler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698