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

Side by Side 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 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/dart/analysis/results.dart' hide AnalysisResult;
8 import 'package:analyzer/file_system/file_system.dart'; 7 import 'package:analyzer/file_system/file_system.dart';
9 import 'package:analyzer/file_system/memory_file_system.dart'; 8 import 'package:analyzer/file_system/memory_file_system.dart';
10 import 'package:analyzer/src/dart/analysis/driver.dart'; 9 import 'package:analyzer/src/dart/analysis/driver.dart';
11 import 'package:analyzer_plugin/plugin/completion_mixin.dart'; 10 import 'package:analyzer_plugin/plugin/completion_mixin.dart';
12 import 'package:analyzer_plugin/protocol/protocol_common.dart'; 11 import 'package:analyzer_plugin/protocol/protocol_common.dart';
13 import 'package:analyzer_plugin/protocol/protocol_generated.dart'; 12 import 'package:analyzer_plugin/protocol/protocol_generated.dart';
14 import 'package:analyzer_plugin/src/utilities/completion/completion_core.dart'; 13 import 'package:analyzer_plugin/src/utilities/completion/completion_core.dart';
15 import 'package:analyzer_plugin/utilities/completion/completion_core.dart'; 14 import 'package:analyzer_plugin/utilities/completion/completion_core.dart';
16 import 'package:path/src/context.dart'; 15 import 'package:path/src/context.dart';
17 import 'package:test/test.dart'; 16 import 'package:test/test.dart';
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 AnalysisDriverGeneric driver) { 90 AnalysisDriverGeneric driver) {
92 return <CompletionContributor>[ 91 return <CompletionContributor>[
93 new _TestCompletionContributor( 92 new _TestCompletionContributor(
94 <CompletionSuggestion>[createSuggestion(), createSuggestion()]), 93 <CompletionSuggestion>[createSuggestion(), createSuggestion()]),
95 new _TestCompletionContributor( 94 new _TestCompletionContributor(
96 <CompletionSuggestion>[createSuggestion()]), 95 <CompletionSuggestion>[createSuggestion()]),
97 ]; 96 ];
98 } 97 }
99 98
100 @override 99 @override
101 Future<ResolveResult> getResolveResultForCompletion( 100 Future<CompletionRequest> getCompletionRequest(
102 AnalysisDriverGeneric driver, String path) async { 101 CompletionGetSuggestionsParams parameters,
103 return new AnalysisResult( 102 covariant AnalysisDriverGeneric driver) async {
103 AnalysisResult result = new AnalysisResult(
104 null, null, null, null, null, null, null, null, null, null, null); 104 null, null, null, null, null, null, null, null, null, null, null);
105 return new DartCompletionRequestImpl(
106 resourceProvider, parameters.offset, result);
105 } 107 }
106 } 108 }
OLDNEW
« 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