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

Unified Diff: pkg/analyzer_plugin/test/plugin/assist_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/assist_mixin_test.dart
diff --git a/pkg/analyzer_plugin/test/plugin/assist_mixin_test.dart b/pkg/analyzer_plugin/test/plugin/assist_mixin_test.dart
index 9642b160a519d55fed4a1c890d73ccf66e55f5c8..d74d5af3e1c4075f5048ab00000e3188d8aa9b2d 100644
--- a/pkg/analyzer_plugin/test/plugin/assist_mixin_test.dart
+++ b/pkg/analyzer_plugin/test/plugin/assist_mixin_test.dart
@@ -4,13 +4,13 @@
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';
import 'package:analyzer_plugin/plugin/assist_mixin.dart';
import 'package:analyzer_plugin/protocol/protocol_common.dart';
import 'package:analyzer_plugin/protocol/protocol_generated.dart';
+import 'package:analyzer_plugin/src/utilities/assist/assist.dart';
import 'package:analyzer_plugin/utilities/assist/assist.dart';
import 'package:path/src/context.dart';
import 'package:test/test.dart';
@@ -88,9 +88,11 @@ class _TestServerPlugin extends MockServerPlugin with AssistsMixin {
}
@override
- Future<ResolveResult> getResolveResultForAssists(
- AnalysisDriverGeneric driver, String path) async {
- return new AnalysisResult(
+ Future<AssistRequest> getAssistRequest(
+ EditGetAssistsParams parameters, covariant AnalysisDriver driver) async {
+ AnalysisResult result = new AnalysisResult(
null, null, null, null, null, null, null, null, null, null, null);
+ return new DartAssistRequestImpl(
+ resourceProvider, parameters.offset, parameters.length, result);
}
}

Powered by Google App Engine
This is Rietveld 408576698