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 9953cefe805ab1b68a789fb0def9f8546c35dfaa..14aa8cef107d67782b4f1f65cb24da7741789769 100644 |
--- a/pkg/analysis_server/test/services/correction/status_test.dart |
+++ b/pkg/analysis_server/test/services/correction/status_test.dart |
@@ -5,13 +5,13 @@ |
library test.services.correction.status; |
import 'package:analysis_server/src/protocol_server.dart' hide Element; |
-import 'package:analysis_server/src/services/correction/source_range.dart'; |
import 'package:analysis_server/src/services/correction/status.dart'; |
import 'package:analysis_server/src/services/search/search_engine.dart'; |
import 'package:analysis_server/src/services/search/search_engine_internal.dart'; |
import 'package:analyzer/dart/ast/ast.dart'; |
import 'package:analyzer/dart/element/element.dart'; |
import 'package:analyzer/src/generated/source.dart'; |
+import 'package:analyzer_plugin/utilities/range_factory.dart'; |
import 'package:test/test.dart'; |
import 'package:test_reflective_loader/test_reflective_loader.dart'; |
@@ -44,20 +44,20 @@ class RefactoringLocationTest extends AbstractSingleUnitTest { |
test_createLocation_forMatch() async { |
await resolveTestUnit('class MyClass {}'); |
Element element = findElement('MyClass'); |
- SourceRange range = rangeElementName(element); |
+ SourceRange sourceRange = range.elementName(element); |
SearchMatch match = new SearchMatchImpl( |
element.context, |
element.library.source.uri.toString(), |
element.source.uri.toString(), |
null, |
- range, |
+ sourceRange, |
true, |
false); |
// check |
Location location = newLocation_fromMatch(match); |
expect(location.file, '/test.dart'); |
- expect(location.offset, range.offset); |
- expect(location.length, range.length); |
+ expect(location.offset, sourceRange.offset); |
+ expect(location.length, sourceRange.length); |
} |
test_createLocation_forNode() async { |
@@ -75,12 +75,12 @@ main() { |
test_createLocation_forUnit() async { |
await resolveTestUnit(''); |
- SourceRange range = rangeStartLength(10, 20); |
+ SourceRange sourceRange = new SourceRange(10, 20); |
// check |
- Location location = newLocation_fromUnit(testUnit, range); |
+ Location location = newLocation_fromUnit(testUnit, sourceRange); |
expect(location.file, '/test.dart'); |
- expect(location.offset, range.offset); |
- expect(location.length, range.length); |
+ expect(location.offset, sourceRange.offset); |
+ expect(location.length, sourceRange.length); |
} |
} |