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

Unified Diff: pkg/analysis_server/test/services/correction/status_test.dart

Issue 1764553002: Make SearchMatch usable for the new index - remove the element field. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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
Index: pkg/analysis_server/test/services/correction/status_test.dart
diff --git a/pkg/analysis_server/test/services/correction/status_test.dart b/pkg/analysis_server/test/services/correction/status_test.dart
index 555b5824a4a6eb5de7a03a6652d97f6266055492..fe0aae677962cd62015065f6c88a31fb925942cd 100644
--- a/pkg/analysis_server/test/services/correction/status_test.dart
+++ b/pkg/analysis_server/test/services/correction/status_test.dart
@@ -41,7 +41,14 @@ class RefactoringLocationTest extends AbstractSingleUnitTest {
resolveTestUnit('class MyClass {}');
Element element = findElement('MyClass');
SourceRange range = rangeElementName(element);
- SearchMatch match = new SearchMatch(null, element, range, true, false);
+ SearchMatch match = new SearchMatch(
+ context,
+ element.library.source.uri.toString(),
+ element.source.uri.toString(),
+ null,
+ range,
+ true,
+ false);
// check
Location location = newLocation_fromMatch(match);
expect(location.file, '/test.dart');

Powered by Google App Engine
This is Rietveld 408576698