| 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 library analysis_server.src.provisional.completion.completion_dart; | 5 library analysis_server.src.provisional.completion.completion_dart; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 | 8 |
| 9 import 'package:analysis_server/plugin/protocol/protocol.dart'; | 9 import 'package:analysis_server/plugin/protocol/protocol.dart'; |
| 10 import 'package:analysis_server/src/provisional/completion/completion_core.dart'
; | 10 import 'package:analysis_server/src/provisional/completion/completion_core.dart'
; |
| 11 import 'package:analysis_server/src/provisional/completion/dart/completion_targe
t.dart'; | 11 import 'package:analysis_server/src/provisional/completion/dart/completion_targe
t.dart'; |
| 12 import 'package:analyzer/dart/element/element.dart'; |
| 13 import 'package:analyzer/dart/element/type.dart'; |
| 12 import 'package:analyzer/src/generated/ast.dart'; | 14 import 'package:analyzer/src/generated/ast.dart'; |
| 13 import 'package:analyzer/src/generated/element.dart'; | |
| 14 import 'package:analyzer/src/generated/source.dart'; | 15 import 'package:analyzer/src/generated/source.dart'; |
| 15 | 16 |
| 16 export 'package:analysis_server/src/provisional/completion/completion_core.dart' | 17 export 'package:analysis_server/src/provisional/completion/completion_core.dart' |
| 17 show EMPTY_LIST; | 18 show EMPTY_LIST; |
| 18 | 19 |
| 19 const int DART_RELEVANCE_COMMON_USAGE = 1200; | 20 const int DART_RELEVANCE_COMMON_USAGE = 1200; |
| 20 const int DART_RELEVANCE_DEFAULT = 1000; | 21 const int DART_RELEVANCE_DEFAULT = 1000; |
| 21 const int DART_RELEVANCE_HIGH = 2000; | 22 const int DART_RELEVANCE_HIGH = 2000; |
| 22 const int DART_RELEVANCE_INHERITED_ACCESSOR = 1057; | 23 const int DART_RELEVANCE_INHERITED_ACCESSOR = 1057; |
| 23 const int DART_RELEVANCE_INHERITED_FIELD = 1058; | 24 const int DART_RELEVANCE_INHERITED_FIELD = 1058; |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 /** | 114 /** |
| 114 * Return a [Future] that completes when the element associated with | 115 * Return a [Future] that completes when the element associated with |
| 115 * the given [expression] in the target compilation unit is available. | 116 * the given [expression] in the target compilation unit is available. |
| 116 * It may also complete if the expression cannot be resolved | 117 * It may also complete if the expression cannot be resolved |
| 117 * (e.g. unknown identifier, completion aborted, etc). | 118 * (e.g. unknown identifier, completion aborted, etc). |
| 118 * Any information obtained from [target] prior to calling this method | 119 * Any information obtained from [target] prior to calling this method |
| 119 * should be discarded as it may have changed. | 120 * should be discarded as it may have changed. |
| 120 */ | 121 */ |
| 121 Future resolveExpression(Expression expression); | 122 Future resolveExpression(Expression expression); |
| 122 } | 123 } |
| OLD | NEW |