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

Side by Side Diff: pkg/analysis_services/lib/completion/completion_computer.dart

Issue 428313002: refactor code completion to allow for multiple suggestion computers (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: merge Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
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.
4
5 library services.completion.computer;
6
7 import 'dart:async';
8
9 import 'package:analysis_services/completion/completion_suggestion.dart';
10 import 'package:analysis_services/src/completion/top_level_computer.dart';
11 import 'package:analysis_services/search/search_engine.dart';
12
13 /**
14 * The base class for computing code completion suggestions.
15 */
16 abstract class CompletionComputer {
17
18 /**
19 * Create a collection of code completion computers for the given situation.
20 */
21 static Future<List<CompletionComputer>> create(SearchEngine searchEngine) {
22 List<CompletionComputer> computers = [];
23 computers.add(new TopLevelComputer(searchEngine));
24 return new Future.value(computers);
25 }
26
27 /**
28 * Computes [CompletionSuggestion]s for the specified position in the source.
29 */
30 Future<List<CompletionSuggestion>> compute();
31 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/test/test_all.dart ('k') | pkg/analysis_services/lib/completion/completion_suggestion.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698