| Index: pkg/analysis_server/lib/src/search/search_result.dart
|
| diff --git a/pkg/analysis_server/lib/src/search/search_result.dart b/pkg/analysis_server/lib/src/search/search_result.dart
|
| index 7e08d5f3c99346dade2ef62551b952158095fc6f..e40605e7e6d01f7729585c72532629e325e8c0c6 100644
|
| --- a/pkg/analysis_server/lib/src/search/search_result.dart
|
| +++ b/pkg/analysis_server/lib/src/search/search_result.dart
|
| @@ -11,11 +11,7 @@ import 'package:analyzer/src/generated/element.dart' as engine;
|
|
|
| SearchResult searchResultFromMatch(SearchMatch match) {
|
| SearchResultKind kind = new SearchResultKind.fromEngine(match.kind);
|
| - Location location =
|
| - new Location.fromOffset(
|
| - match.element,
|
| - match.sourceRange.offset,
|
| - match.sourceRange.length);
|
| + Location location = new Location.fromMatch(match);
|
| List<Element> path = _computePath(match.element);
|
| return new SearchResult(location, kind, !match.isResolved, path);
|
| }
|
|
|