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

Side by Side Diff: pkg/analysis_server/lib/src/analysis_server.dart

Issue 2552023002: Send 'analysis.flushResults' on file removal. (Closed)
Patch Set: Created 4 years 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 unified diff | Download patch
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/context_manager.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library analysis.server; 5 library analysis.server;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:collection'; 8 import 'dart:collection';
9 import 'dart:core'; 9 import 'dart:core';
10 import 'dart:io' as io; 10 import 'dart:io' as io;
(...skipping 1892 matching lines...) Expand 10 before | Expand all | Expand 10 after
1903 List<String> flushedFiles = new List<String>(); 1903 List<String> flushedFiles = new List<String>();
1904 for (Source source in changeSet.removedSources) { 1904 for (Source source in changeSet.removedSources) {
1905 flushedFiles.add(source.fullName); 1905 flushedFiles.add(source.fullName);
1906 } 1906 }
1907 sendAnalysisNotificationFlushResults(analysisServer, flushedFiles); 1907 sendAnalysisNotificationFlushResults(analysisServer, flushedFiles);
1908 } 1908 }
1909 } 1909 }
1910 } 1910 }
1911 1911
1912 @override 1912 @override
1913 void applyFileRemoved(nd.AnalysisDriver driver, String file) {
1914 driver.removeFile(file);
1915 sendAnalysisNotificationFlushResults(analysisServer, [file]);
1916 }
1917
1918 @override
1913 void computingPackageMap(bool computing) => 1919 void computingPackageMap(bool computing) =>
1914 analysisServer._computingPackageMap(computing); 1920 analysisServer._computingPackageMap(computing);
1915 1921
1916 @override 1922 @override
1917 ContextBuilder createContextBuilder(Folder folder, AnalysisOptions options) { 1923 ContextBuilder createContextBuilder(Folder folder, AnalysisOptions options) {
1918 String defaultPackageFilePath = null; 1924 String defaultPackageFilePath = null;
1919 String defaultPackagesDirectoryPath = null; 1925 String defaultPackagesDirectoryPath = null;
1920 String path = (analysisServer.contextManager as ContextManagerImpl) 1926 String path = (analysisServer.contextManager as ContextManagerImpl)
1921 .normalizedPackageRoots[folder.path]; 1927 .normalizedPackageRoots[folder.path];
1922 if (path != null) { 1928 if (path != null) {
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
2099 */ 2105 */
2100 static PerformanceTag splitStore = new PerformanceTag('splitStore'); 2106 static PerformanceTag splitStore = new PerformanceTag('splitStore');
2101 } 2107 }
2102 2108
2103 class _NullStringSink implements StringSink { 2109 class _NullStringSink implements StringSink {
2104 void write(Object obj) {} 2110 void write(Object obj) {}
2105 void writeAll(Iterable objects, [String separator = ""]) {} 2111 void writeAll(Iterable objects, [String separator = ""]) {}
2106 void writeCharCode(int charCode) {} 2112 void writeCharCode(int charCode) {}
2107 void writeln([Object obj = ""]) {} 2113 void writeln([Object obj = ""]) {}
2108 } 2114 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/context_manager.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698