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

Unified Diff: pkg/analysis_server/lib/src/services/search/search_engine_internal.dart

Issue 2183263002: Fix for SearchEngine.searchMemberDeclarations() - search exact names. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 5 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/test/services/refactoring/rename_class_member_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/src/services/search/search_engine_internal.dart
diff --git a/pkg/analysis_server/lib/src/services/search/search_engine_internal.dart b/pkg/analysis_server/lib/src/services/search/search_engine_internal.dart
index 2d6f815482919ae20d7e279d3913ac3d6ede96d4..47eb392eae2a489fb8e309e2b2064bc4e423afe6 100644
--- a/pkg/analysis_server/lib/src/services/search/search_engine_internal.dart
+++ b/pkg/analysis_server/lib/src/services/search/search_engine_internal.dart
@@ -35,7 +35,8 @@ class SearchEngineImpl implements SearchEngine {
}
@override
- Future<List<SearchMatch>> searchMemberDeclarations(String pattern) {
+ Future<List<SearchMatch>> searchMemberDeclarations(String name) {
+ String pattern = '^$name\$';
return _searchDefinedNames(pattern, IndexNameKind.classMember);
}
« no previous file with comments | « no previous file | pkg/analysis_server/test/services/refactoring/rename_class_member_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698