| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 services.completion.dart; | 5 library services.completion.dart; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 | 8 |
| 9 import 'package:analysis_server/completion/completion_core.dart' | 9 import 'package:analysis_server/completion/completion_core.dart' |
| 10 show CompletionRequest; | 10 show CompletionRequest; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 const int DART_RELEVANCE_INHERITED_METHOD = 1057; | 36 const int DART_RELEVANCE_INHERITED_METHOD = 1057; |
| 37 const int DART_RELEVANCE_KEYWORD = 1055; | 37 const int DART_RELEVANCE_KEYWORD = 1055; |
| 38 const int DART_RELEVANCE_LOCAL_ACCESSOR = 1057; | 38 const int DART_RELEVANCE_LOCAL_ACCESSOR = 1057; |
| 39 const int DART_RELEVANCE_LOCAL_FIELD = 1058; | 39 const int DART_RELEVANCE_LOCAL_FIELD = 1058; |
| 40 const int DART_RELEVANCE_LOCAL_FUNCTION = 1056; | 40 const int DART_RELEVANCE_LOCAL_FUNCTION = 1056; |
| 41 const int DART_RELEVANCE_LOCAL_METHOD = 1057; | 41 const int DART_RELEVANCE_LOCAL_METHOD = 1057; |
| 42 const int DART_RELEVANCE_LOCAL_TOP_LEVEL_VARIABLE = 1056; | 42 const int DART_RELEVANCE_LOCAL_TOP_LEVEL_VARIABLE = 1056; |
| 43 const int DART_RELEVANCE_LOCAL_VARIABLE = 1059; | 43 const int DART_RELEVANCE_LOCAL_VARIABLE = 1059; |
| 44 const int DART_RELEVANCE_LOW = 500; | 44 const int DART_RELEVANCE_LOW = 500; |
| 45 const int DART_RELEVANCE_PARAMETER = 1059; | 45 const int DART_RELEVANCE_PARAMETER = 1059; |
| 46 const int DART_RELEVANCE_NAMED_PARAMETER = 1060; |
| 46 | 47 |
| 47 /** | 48 /** |
| 48 * The base class for contributing code completion suggestions. | 49 * The base class for contributing code completion suggestions. |
| 49 */ | 50 */ |
| 50 abstract class DartCompletionContributor { | 51 abstract class DartCompletionContributor { |
| 51 /** | 52 /** |
| 52 * Computes the initial set of [CompletionSuggestion]s based on | 53 * Computes the initial set of [CompletionSuggestion]s based on |
| 53 * the given completion context. The compilation unit and completion node | 54 * the given completion context. The compilation unit and completion node |
| 54 * in the given completion context may not be resolved. | 55 * in the given completion context may not be resolved. |
| 55 * This method should execute quickly and not block waiting for any analysis. | 56 * This method should execute quickly and not block waiting for any analysis. |
| (...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 parameterNames: suggestion.parameterNames, | 373 parameterNames: suggestion.parameterNames, |
| 373 parameterTypes: suggestion.parameterTypes, | 374 parameterTypes: suggestion.parameterTypes, |
| 374 requiredParameterCount: suggestion.requiredParameterCount, | 375 requiredParameterCount: suggestion.requiredParameterCount, |
| 375 hasNamedParameters: suggestion.hasNamedParameters, | 376 hasNamedParameters: suggestion.hasNamedParameters, |
| 376 returnType: suggestion.returnType, | 377 returnType: suggestion.returnType, |
| 377 element: suggestion.element); | 378 element: suggestion.element); |
| 378 } | 379 } |
| 379 } | 380 } |
| 380 } | 381 } |
| 381 } | 382 } |
| OLD | NEW |