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

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

Issue 2953093002: Update the plugin API (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
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..96e501cce6b22dd0ec0b08eeb265bcf3957297d1 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 CompletionRequestImpl(
+ resourceProvider, result, parameters.offset);
}
}

Powered by Google App Engine
This is Rietveld 408576698