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

Side by Side Diff: pkg/analyzer_plugin/test/plugin/assist_mixin_test.dart

Issue 2970203002: Remove references to AnalysisDriver from the plugin mixin classes (Closed)
Patch Set: Created 3 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'dart:async'; 5 import 'dart:async';
6 6
7 import 'package:analyzer/file_system/file_system.dart'; 7 import 'package:analyzer/file_system/file_system.dart';
8 import 'package:analyzer/file_system/memory_file_system.dart'; 8 import 'package:analyzer/file_system/memory_file_system.dart';
9 import 'package:analyzer/src/dart/analysis/driver.dart'; 9 import 'package:analyzer/src/dart/analysis/driver.dart';
10 import 'package:analyzer_plugin/plugin/assist_mixin.dart'; 10 import 'package:analyzer_plugin/plugin/assist_mixin.dart';
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 72
73 class _TestServerPlugin extends MockServerPlugin with AssistsMixin { 73 class _TestServerPlugin extends MockServerPlugin with AssistsMixin {
74 _TestServerPlugin(ResourceProvider resourceProvider) 74 _TestServerPlugin(ResourceProvider resourceProvider)
75 : super(resourceProvider); 75 : super(resourceProvider);
76 76
77 PrioritizedSourceChange createChange() { 77 PrioritizedSourceChange createChange() {
78 return new PrioritizedSourceChange(0, new SourceChange('')); 78 return new PrioritizedSourceChange(0, new SourceChange(''));
79 } 79 }
80 80
81 @override 81 @override
82 List<AssistContributor> getAssistContributors(AnalysisDriverGeneric driver) { 82 List<AssistContributor> getAssistContributors(String path) {
83 return <AssistContributor>[ 83 return <AssistContributor>[
84 new _TestAssistContributor(<PrioritizedSourceChange>[createChange()]), 84 new _TestAssistContributor(<PrioritizedSourceChange>[createChange()]),
85 new _TestAssistContributor( 85 new _TestAssistContributor(
86 <PrioritizedSourceChange>[createChange(), createChange()]) 86 <PrioritizedSourceChange>[createChange(), createChange()])
87 ]; 87 ];
88 } 88 }
89 89
90 @override 90 @override
91 Future<AssistRequest> getAssistRequest( 91 Future<AssistRequest> getAssistRequest(
92 EditGetAssistsParams parameters, covariant AnalysisDriver driver) async { 92 EditGetAssistsParams parameters) async {
93 AnalysisResult result = new AnalysisResult( 93 AnalysisResult result = new AnalysisResult(
94 null, null, null, null, null, null, null, null, null, null, null); 94 null, null, null, null, null, null, null, null, null, null, null);
95 return new DartAssistRequestImpl( 95 return new DartAssistRequestImpl(
96 resourceProvider, parameters.offset, parameters.length, result); 96 resourceProvider, parameters.offset, parameters.length, result);
97 } 97 }
98 } 98 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698