| 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 services.completion.computer.dart.invocation; | 5 library services.completion.computer.dart.invocation; |
| 6 | 6 |
| 7 import 'package:analysis_server/plugin/edit/utilities/change_builder_dart.dart'; | |
| 8 import 'package:analysis_server/src/protocol_server.dart' | 7 import 'package:analysis_server/src/protocol_server.dart' |
| 9 show CompletionSuggestion, CompletionSuggestionKind, SourceChange; | 8 show CompletionSuggestion, CompletionSuggestionKind, SourceChange; |
| 10 import 'package:analysis_server/src/protocol_server.dart' as protocol | 9 import 'package:analysis_server/src/protocol_server.dart' as protocol |
| 11 hide CompletionSuggestion, CompletionSuggestionKind; | 10 hide CompletionSuggestion, CompletionSuggestionKind; |
| 12 import 'package:analysis_server/src/provisional/completion/completion_dart.dart'
; | 11 import 'package:analysis_server/src/provisional/completion/completion_dart.dart'
; |
| 12 import 'package:analysis_server/src/provisional/edit/utilities/change_builder_da
rt.dart'; |
| 13 import 'package:analysis_server/src/services/completion/dart_completion_manager.
dart' | 13 import 'package:analysis_server/src/services/completion/dart_completion_manager.
dart' |
| 14 show DART_RELEVANCE_HIGH; | 14 show DART_RELEVANCE_HIGH; |
| 15 import 'package:analyzer/src/generated/ast.dart'; | 15 import 'package:analyzer/src/generated/ast.dart'; |
| 16 import 'package:analyzer/src/generated/element.dart'; | 16 import 'package:analyzer/src/generated/element.dart'; |
| 17 import 'package:analyzer/src/generated/engine.dart'; | 17 import 'package:analyzer/src/generated/engine.dart'; |
| 18 import 'package:analyzer/src/generated/resolver.dart'; | 18 import 'package:analyzer/src/generated/resolver.dart'; |
| 19 import 'package:analyzer/src/generated/source.dart'; | 19 import 'package:analyzer/src/generated/source.dart'; |
| 20 | 20 |
| 21 /** | 21 /** |
| 22 * A completion contributor used to suggest replacing partial identifiers inside | 22 * A completion contributor used to suggest replacing partial identifiers inside |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 for (String memberName in memberNames) { | 151 for (String memberName in memberNames) { |
| 152 CompletionSuggestion suggestion = | 152 CompletionSuggestion suggestion = |
| 153 _buildSuggestion(request.source, identifier, map.get(memberName)); | 153 _buildSuggestion(request.source, identifier, map.get(memberName)); |
| 154 if (suggestion != null) { | 154 if (suggestion != null) { |
| 155 suggestions.add(suggestion); | 155 suggestions.add(suggestion); |
| 156 } | 156 } |
| 157 } | 157 } |
| 158 return suggestions; | 158 return suggestions; |
| 159 } | 159 } |
| 160 } | 160 } |
| OLD | NEW |