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); |
} |