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

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

Issue 1383313002: Move completion APIs to a private location (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: formatting Created 5 years, 2 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) 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.src.provisional.completion.completion_dart;
6 6
7 import 'package:analysis_server/completion/completion_core.dart';
8 import 'package:analysis_server/src/protocol.dart'; 7 import 'package:analysis_server/src/protocol.dart';
8 import 'package:analysis_server/src/provisional/completion/completion_core.dart' ;
9 import 'package:analysis_server/src/provisional/completion/dart/completion_targe t.dart';
9 import 'package:analyzer/src/generated/ast.dart'; 10 import 'package:analyzer/src/generated/ast.dart';
10 import 'package:analyzer/src/generated/engine.dart'; 11 import 'package:analyzer/src/generated/engine.dart';
11 import 'package:analyzer/src/generated/source.dart'; 12 import 'package:analyzer/src/generated/source.dart';
12 import 'package:analysis_server/completion/dart/completion_target.dart';
13 13
14 /** 14 /**
15 * 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
16 * 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
17 * state between invocations of [computeSuggestions]. 17 * state between invocations of [computeSuggestions].
18 * 18 *
19 * Clients are expected to subtype this class when implementing plugins. 19 * Clients are expected to subtype this class when implementing plugins.
20 */ 20 */
21 abstract class DartCompletionContributor extends CompletionContributor { 21 abstract class DartCompletionContributor extends CompletionContributor {
22 @override 22 @override
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 /** 59 /**
60 * The information about a requested list of completions within a Dart file. 60 * The information about a requested list of completions within a Dart file.
61 */ 61 */
62 abstract class DartCompletionRequest extends CompletionRequest { 62 abstract class DartCompletionRequest extends CompletionRequest {
63 /** 63 /**
64 * Return `true` if the compilation [unit] is resolved. 64 * Return `true` if the compilation [unit] is resolved.
65 */ 65 */
66 bool get isResolved; 66 bool get isResolved;
67 67
68 /** 68 /**
69 * Return the compilation unit in which the completion was requested. 69 * Return the completion target. This determines what part of the parse tree
70 * will receive the newly inserted text.
70 */ 71 */
71 CompilationUnit get unit; 72 CompletionTarget get target;
72 73
73 /** 74 /**
74 * Cached information from a prior code completion operation. 75 * Cached information from a prior code completion operation.
75 */ 76 */
76 //DartCompletionCache get cache; 77 //DartCompletionCache get cache;
77 78
78 /** 79 /**
79 * Return the completion target. This determines what part of the parse tree 80 * Return the compilation unit in which the completion was requested.
80 * will receive the newly inserted text.
81 */ 81 */
82 CompletionTarget get target; 82 CompilationUnit get unit;
83 83
84 /** 84 /**
85 * Information about the types of suggestions that should be included. 85 * Information about the types of suggestions that should be included.
86 */ 86 */
87 //OpType get _optype; 87 //OpType get _optype;
88 } 88 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698