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

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

Issue 1900503002: More steps toward making server strong mode clean (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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/analysis_server/lib/src/analysis_manager.dart ('k') | pkg/analysis_server/lib/src/watch_manager.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/src/search/element_references.dart
diff --git a/pkg/analysis_server/lib/src/search/element_references.dart b/pkg/analysis_server/lib/src/search/element_references.dart
index 74c72ef4ba2a86d1e96ecb29ff3842ed2bab81b3..30ae4222da585e406f97b4fec97934731dce5121 100644
--- a/pkg/analysis_server/lib/src/search/element_references.dart
+++ b/pkg/analysis_server/lib/src/search/element_references.dart
@@ -64,12 +64,10 @@ class ElementReferencesComputer {
/**
* Returns a [Future] completing with a [List] of references to [element].
*/
- Future<List<SearchResult>> _findSingleElementReferences(Element element) {
- Future<List<SearchMatch>> matchesFuture =
- searchEngine.searchReferences(element);
- return matchesFuture.then((List<SearchMatch> matches) {
- return matches.map(toResult).toList();
- });
+ Future<List<SearchResult>> _findSingleElementReferences(
+ Element element) async {
+ List<SearchMatch> matches = await searchEngine.searchReferences(element);
+ return matches.map(toResult).toList();
}
/**
« no previous file with comments | « pkg/analysis_server/lib/src/analysis_manager.dart ('k') | pkg/analysis_server/lib/src/watch_manager.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698