Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(276)

Side by Side Diff: pkg/analysis_server/lib/src/services/completion/inherited_contributor.dart

Issue 1392253002: Restructure the public API for server (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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';
7 import 'package:analysis_server/src/protocol_server.dart' 8 import 'package:analysis_server/src/protocol_server.dart'
8 show CompletionSuggestion, CompletionSuggestionKind, SourceChange; 9 show CompletionSuggestion, CompletionSuggestionKind, SourceChange;
9 import 'package:analysis_server/src/protocol_server.dart' as protocol 10 import 'package:analysis_server/src/protocol_server.dart' as protocol
10 hide CompletionSuggestion, CompletionSuggestionKind; 11 hide CompletionSuggestion, CompletionSuggestionKind;
11 import 'package:analysis_server/src/provisional/completion/completion_dart.dart' ; 12 import 'package:analysis_server/src/provisional/completion/completion_dart.dart' ;
12 import 'package:analysis_server/src/services/completion/dart_completion_manager. dart' 13 import 'package:analysis_server/src/services/completion/dart_completion_manager. dart'
13 show DART_RELEVANCE_HIGH; 14 show DART_RELEVANCE_HIGH;
14 import 'package:analysis_server/utilities/change_builder_dart.dart';
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
23 * a class declaration with templates for inherited members. 23 * a class declaration with templates for inherited members.
24 */ 24 */
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698