| 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/ast/ast.dart'; | 12 import 'package:analyzer/dart/ast/ast.dart'; |
| 13 import 'package:analyzer/dart/element/element.dart'; | 13 import 'package:analyzer/dart/element/element.dart'; |
| 14 import 'package:analyzer/dart/element/type.dart'; | 14 import 'package:analyzer/dart/element/type.dart'; |
| 15 import 'package:analyzer/src/generated/source.dart'; | 15 import 'package:analyzer/src/generated/source.dart'; |
| 16 | 16 |
| 17 export 'package:analysis_server/src/provisional/completion/completion_core.dart' | 17 export 'package:analysis_server/src/provisional/completion/completion_core.dart' |
| 18 show EMPTY_LIST; | 18 show EMPTY_LIST; |
| 19 | 19 |
| 20 const int DART_RELEVANCE_COMMON_USAGE = 1200; | 20 const int DART_RELEVANCE_COMMON_USAGE = 1200; |
| 21 const int DART_RELEVANCE_DEFAULT = 1000; | 21 const int DART_RELEVANCE_DEFAULT = 1000; |
| 22 const int DART_RELEVANCE_HIGH = 2000; | 22 const int DART_RELEVANCE_HIGH = 2000; |
| 23 const int DART_RELEVANCE_INCREMENT = 20; | 23 const int DART_RELEVANCE_INCREMENT = 100; |
| 24 const int DART_RELEVANCE_INHERITED_ACCESSOR = 1057; | 24 const int DART_RELEVANCE_INHERITED_ACCESSOR = 1057; |
| 25 const int DART_RELEVANCE_INHERITED_FIELD = 1058; | 25 const int DART_RELEVANCE_INHERITED_FIELD = 1058; |
| 26 const int DART_RELEVANCE_INHERITED_METHOD = 1057; | 26 const int DART_RELEVANCE_INHERITED_METHOD = 1057; |
| 27 const int DART_RELEVANCE_KEYWORD = 1055; | 27 const int DART_RELEVANCE_KEYWORD = 1055; |
| 28 const int DART_RELEVANCE_LOCAL_ACCESSOR = 1057; | 28 const int DART_RELEVANCE_LOCAL_ACCESSOR = 1057; |
| 29 const int DART_RELEVANCE_LOCAL_FIELD = 1058; | 29 const int DART_RELEVANCE_LOCAL_FIELD = 1058; |
| 30 const int DART_RELEVANCE_LOCAL_FUNCTION = 1056; | 30 const int DART_RELEVANCE_LOCAL_FUNCTION = 1056; |
| 31 const int DART_RELEVANCE_LOCAL_METHOD = 1057; | 31 const int DART_RELEVANCE_LOCAL_METHOD = 1057; |
| 32 const int DART_RELEVANCE_LOCAL_TOP_LEVEL_VARIABLE = 1056; | 32 const int DART_RELEVANCE_LOCAL_TOP_LEVEL_VARIABLE = 1056; |
| 33 const int DART_RELEVANCE_LOCAL_VARIABLE = 1059; | 33 const int DART_RELEVANCE_LOCAL_VARIABLE = 1059; |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 /** | 140 /** |
| 141 * Return a [Future] that completes with a list of [CompilationUnitElement]s | 141 * Return a [Future] that completes with a list of [CompilationUnitElement]s |
| 142 * comprising the library in which in which the completion is occurring. | 142 * comprising the library in which in which the completion is occurring. |
| 143 * The [Future] may return `null` if the library unit cannot be determined | 143 * The [Future] may return `null` if the library unit cannot be determined |
| 144 * (e.g. unlinked part file). | 144 * (e.g. unlinked part file). |
| 145 * Any information obtained from [target] prior to calling this method | 145 * Any information obtained from [target] prior to calling this method |
| 146 * should be discarded as it may have changed. | 146 * should be discarded as it may have changed. |
| 147 */ | 147 */ |
| 148 Future<List<CompilationUnitElement>> resolveUnits(); | 148 Future<List<CompilationUnitElement>> resolveUnits(); |
| 149 } | 149 } |
| OLD | NEW |