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

Side by Side Diff: pkg/analysis_server/lib/completion/completion_dart.dart

Issue 1347283005: refactor ContributionSorter to use new API (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: merge Created 5 years, 3 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
« no previous file with comments | « no previous file | pkg/analysis_server/lib/completion/dart/completion_target.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 library analysis_server.completion.completion_dart; 5 library analysis_server.completion.completion_dart;
6 6
7 import 'package:analysis_server/completion/completion_core.dart'; 7 import 'package:analysis_server/completion/completion_core.dart';
8 import 'package:analysis_server/src/protocol.dart'; 8 import 'package:analysis_server/src/protocol.dart';
9 import 'package:analyzer/src/generated/ast.dart'; 9 import 'package:analyzer/src/generated/ast.dart';
10 import 'package:analyzer/src/generated/engine.dart'; 10 import 'package:analyzer/src/generated/engine.dart';
11 import 'package:analyzer/src/generated/source.dart'; 11 import 'package:analyzer/src/generated/source.dart';
12 import 'package:analysis_server/completion/dart/completion_target.dart';
12 13
13 /** 14 /**
14 * An object used to produce completions for a specific error within a Dart 15 * An object used to produce completions for a specific error within a Dart
15 * file. Completion contributors are long-lived objects and must not retain any 16 * file. Completion contributors are long-lived objects and must not retain any
16 * state between invocations of [computeSuggestions]. 17 * state between invocations of [computeSuggestions].
17 * 18 *
18 * Clients are expected to subtype this class when implementing plugins. 19 * Clients are expected to subtype this class when implementing plugins.
19 */ 20 */
20 abstract class DartCompletionContributor extends CompletionContributor { 21 abstract class DartCompletionContributor extends CompletionContributor {
21 @override 22 @override
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 72
72 /** 73 /**
73 * Cached information from a prior code completion operation. 74 * Cached information from a prior code completion operation.
74 */ 75 */
75 //DartCompletionCache get cache; 76 //DartCompletionCache get cache;
76 77
77 /** 78 /**
78 * Return the completion target. This determines what part of the parse tree 79 * Return the completion target. This determines what part of the parse tree
79 * will receive the newly inserted text. 80 * will receive the newly inserted text.
80 */ 81 */
81 //CompletionTarget get target; 82 CompletionTarget get target;
82 83
83 /** 84 /**
84 * Information about the types of suggestions that should be included. 85 * Information about the types of suggestions that should be included.
85 */ 86 */
86 //OpType get _optype; 87 //OpType get _optype;
87 } 88 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analysis_server/lib/completion/dart/completion_target.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698