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

Unified Diff: pkg/analysis_server/lib/src/services/correction/assist.dart

Issue 923103004: Return RequestErrorCode.NO_INDEX_GENERATED for search/refactoring requests. (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
Index: pkg/analysis_server/lib/src/services/correction/assist.dart
diff --git a/pkg/analysis_server/lib/src/services/correction/assist.dart b/pkg/analysis_server/lib/src/services/correction/assist.dart
index a63a4722471881c8eb8510e04211700a33bd5317..e9a688e7f340156a038fdfc8807ed6abcbb93c4e 100644
--- a/pkg/analysis_server/lib/src/services/correction/assist.dart
+++ b/pkg/analysis_server/lib/src/services/correction/assist.dart
@@ -6,7 +6,6 @@ library services.correction.assist;
import 'package:analysis_server/src/protocol.dart';
import 'package:analysis_server/src/services/correction/assist_internal.dart';
-import 'package:analysis_server/src/services/search/search_engine.dart';
import 'package:analyzer/src/generated/ast.dart';
import 'package:analyzer/src/generated/source.dart';
@@ -16,12 +15,11 @@ import 'package:analyzer/src/generated/source.dart';
*
* Returns the computed [Assist]s, not `null`.
*/
-List<Assist> computeAssists(SearchEngine searchEngine, CompilationUnit unit,
- int offset, int length) {
+List<Assist> computeAssists(CompilationUnit unit, int offset, int length) {
Source source = unit.element.source;
String file = source.fullName;
AssistProcessor processor =
- new AssistProcessor(searchEngine, source, file, unit, offset, length);
+ new AssistProcessor(source, file, unit, offset, length);
return processor.compute();
}

Powered by Google App Engine
This is Rietveld 408576698