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

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

Issue 2937323003: Remove ability to disable new analysis driver (Closed)
Patch Set: Created 3 years, 6 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
Index: pkg/analysis_server/lib/src/search/search_domain.dart
diff --git a/pkg/analysis_server/lib/src/search/search_domain.dart b/pkg/analysis_server/lib/src/search/search_domain.dart
index 91fcb4dc3c3606f187f74334c3fb63821b495edf..ebb32456c6fc05ee649cbf3e595b40304286795b 100644
--- a/pkg/analysis_server/lib/src/search/search_domain.dart
+++ b/pkg/analysis_server/lib/src/search/search_domain.dart
@@ -51,9 +51,6 @@ class SearchDomainHandler implements protocol.RequestHandler {
new protocol.SearchFindElementReferencesParams.fromRequest(request);
String file = params.file;
// prepare element
- if (!server.options.enableNewAnalysisDriver) {
- await server.onAnalysisComplete;
- }
Element element = await server.getElementAtOffset(file, params.offset);
if (element is ImportElement) {
element = (element as ImportElement).prefix;
@@ -141,14 +138,6 @@ class SearchDomainHandler implements protocol.RequestHandler {
Future getTypeHierarchy(protocol.Request request) async {
var params = new protocol.SearchGetTypeHierarchyParams.fromRequest(request);
String file = params.file;
- // wait for analysis
- if (!server.options.enableNewAnalysisDriver) {
- if (params.superOnly == true) {
- await server.onFileAnalysisComplete(file);
- } else {
- await server.onAnalysisComplete;
- }
- }
// prepare element
Element element = await server.getElementAtOffset(file, params.offset);
if (element == null) {
« no previous file with comments | « pkg/analysis_server/lib/src/operation/operation_analysis.dart ('k') | pkg/analysis_server/lib/src/server/driver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698