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

Unified Diff: pkg/analyzer_plugin/test/plugin/completion_mixin_test.dart

Issue 2953093002: Update the plugin API (Closed)
Patch Set: Update FixesRequest 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
Index: pkg/analyzer_plugin/test/plugin/completion_mixin_test.dart
diff --git a/pkg/analyzer_plugin/test/plugin/completion_mixin_test.dart b/pkg/analyzer_plugin/test/plugin/completion_mixin_test.dart
index caab246f504643d725f632041cc8d8af0c0ad0d7..3626a8726699a0517f69fb759f56eccf62fc54d8 100644
--- a/pkg/analyzer_plugin/test/plugin/completion_mixin_test.dart
+++ b/pkg/analyzer_plugin/test/plugin/completion_mixin_test.dart
@@ -4,7 +4,6 @@
import 'dart:async';
-import 'package:analyzer/dart/analysis/results.dart' hide AnalysisResult;
import 'package:analyzer/file_system/file_system.dart';
import 'package:analyzer/file_system/memory_file_system.dart';
import 'package:analyzer/src/dart/analysis/driver.dart';
@@ -98,9 +97,12 @@ class _TestServerPlugin extends MockServerPlugin with CompletionMixin {
}
@override
- Future<ResolveResult> getResolveResultForCompletion(
- AnalysisDriverGeneric driver, String path) async {
- return new AnalysisResult(
+ Future<CompletionRequest> getCompletionRequest(
+ CompletionGetSuggestionsParams parameters,
+ covariant AnalysisDriverGeneric driver) async {
+ AnalysisResult result = new AnalysisResult(
null, null, null, null, null, null, null, null, null, null, null);
+ return new DartCompletionRequestImpl(
+ resourceProvider, parameters.offset, result);
}
}
« no previous file with comments | « pkg/analyzer_plugin/test/plugin/assist_mixin_test.dart ('k') | pkg/analyzer_plugin/test/plugin/fix_mixin_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698