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

Unified Diff: pkg/analyzer_plugin/test/utilities/completion/completion_contributor_util.dart

Issue 2946573003: Remove ReplacementRange (Closed)
Patch Set: Created 3 years, 6 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
« no previous file with comments | « pkg/analyzer_plugin/lib/utilities/completion/replacement_range.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer_plugin/test/utilities/completion/completion_contributor_util.dart
diff --git a/pkg/analyzer_plugin/test/utilities/completion/completion_contributor_util.dart b/pkg/analyzer_plugin/test/utilities/completion/completion_contributor_util.dart
index bf8e147b11120301ee599ab7f940865487514cf1..92584f8ff67f95e927c7c186d5518d10dcfa9e69 100644
--- a/pkg/analyzer_plugin/test/utilities/completion/completion_contributor_util.dart
+++ b/pkg/analyzer_plugin/test/utilities/completion/completion_contributor_util.dart
@@ -13,7 +13,6 @@ import 'package:analyzer_plugin/src/utilities/completion/completion_core.dart';
import 'package:analyzer_plugin/src/utilities/completion/completion_target.dart';
import 'package:analyzer_plugin/utilities/completion/completion_core.dart';
import 'package:analyzer_plugin/utilities/completion/relevance.dart';
-import 'package:analyzer_plugin/utilities/completion/replacement_range.dart';
import 'package:test/test.dart';
import '../../support/abstract_context.dart';
@@ -463,7 +462,7 @@ abstract class DartCompletionContributorTest extends AbstractContextTest {
CompletionTarget target =
new CompletionTarget.forOffset(request.result.unit, request.offset);
- var range = new ReplacementRange.compute(request.offset, target);
+ var range = target.computeReplacementRange(request.offset);
replacementOffset = range.offset;
replacementLength = range.length;
« no previous file with comments | « pkg/analyzer_plugin/lib/utilities/completion/replacement_range.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698