OLD | NEW |
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 import 'dart:async'; | 5 import 'dart:async'; |
6 | 6 |
7 import 'package:analysis_server/src/provisional/completion/completion_core.dart'
; | 7 import 'package:analysis_server/src/provisional/completion/completion_core.dart'
; |
8 import 'package:analyzer/dart/ast/ast.dart'; | 8 import 'package:analyzer/dart/ast/ast.dart'; |
9 import 'package:analyzer/dart/element/element.dart'; | 9 import 'package:analyzer/dart/element/element.dart'; |
10 import 'package:analyzer/dart/element/type.dart'; | 10 import 'package:analyzer/dart/element/type.dart'; |
(...skipping 28 matching lines...) Expand all Loading... |
39 DartCompletionRequest request); | 39 DartCompletionRequest request); |
40 } | 40 } |
41 | 41 |
42 /** | 42 /** |
43 * The information about a requested list of completions within a Dart file. | 43 * The information about a requested list of completions within a Dart file. |
44 * | 44 * |
45 * Clients may not extend, implement or mix-in this class. | 45 * Clients may not extend, implement or mix-in this class. |
46 */ | 46 */ |
47 abstract class DartCompletionRequest extends CompletionRequest { | 47 abstract class DartCompletionRequest extends CompletionRequest { |
48 /** | 48 /** |
49 * Return the dart:core library element | |
50 */ | |
51 LibraryElement get coreLib; | |
52 | |
53 /** | |
54 * Return the expression to the right of the "dot" or "dot dot", | 49 * Return the expression to the right of the "dot" or "dot dot", |
55 * or `null` if this is not a "dot" completion (e.g. `foo.b`). | 50 * or `null` if this is not a "dot" completion (e.g. `foo.b`). |
56 */ | 51 */ |
57 Expression get dotTarget; | 52 Expression get dotTarget; |
58 | 53 |
59 /** | 54 /** |
60 * Return `true` if free standing identifiers should be suggested | 55 * Return `true` if free standing identifiers should be suggested |
61 */ | 56 */ |
62 bool get includeIdentifiers; | 57 bool get includeIdentifiers; |
63 | 58 |
(...skipping 29 matching lines...) Expand all Loading... |
93 SourceFactory get sourceFactory; | 88 SourceFactory get sourceFactory; |
94 | 89 |
95 /** | 90 /** |
96 * Return the completion target. This determines what part of the parse tree | 91 * Return the completion target. This determines what part of the parse tree |
97 * will receive the newly inserted text. | 92 * will receive the newly inserted text. |
98 * At a minimum, all declarations in the completion scope in [target.unit] | 93 * At a minimum, all declarations in the completion scope in [target.unit] |
99 * will be resolved if they can be resolved. | 94 * will be resolved if they can be resolved. |
100 */ | 95 */ |
101 CompletionTarget get target; | 96 CompletionTarget get target; |
102 } | 97 } |
OLD | NEW |