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 112db5d6d32f5723ccd34f937853a81306b8a97e..0608764419ffbdbde1663dee9ff048d7fa9b4c9e 100644 |
--- a/pkg/analysis_server/lib/src/search/element_references.dart |
+++ b/pkg/analysis_server/lib/src/search/element_references.dart |
@@ -91,8 +91,14 @@ class ElementReferencesComputer { |
SearchResult _newDeclarationResult(Element refElement) { |
int nameOffset = refElement.nameOffset; |
int nameLength = refElement.nameLength; |
- SearchMatch searchMatch = new SearchMatch(MatchKind.DECLARATION, refElement, |
- new SourceRange(nameOffset, nameLength), true, false); |
+ SearchMatch searchMatch = new SearchMatch( |
+ refElement.context, |
+ refElement.library.source.uri.toString(), |
+ refElement.source.uri.toString(), |
+ MatchKind.DECLARATION, |
+ new SourceRange(nameOffset, nameLength), |
+ true, |
+ false); |
return newSearchResult_fromMatch(searchMatch); |
} |