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

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

Issue 1329463002: rename ImportUriContributor to UriContributor (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: merge and address comment Created 5 years, 3 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
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/services/completion/import_uri_contributor.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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;
11 import 'package:analysis_server/src/analysis_server.dart'; 11 import 'package:analysis_server/src/analysis_server.dart';
12 import 'package:analysis_server/src/protocol.dart'; 12 import 'package:analysis_server/src/protocol.dart';
13 import 'package:analysis_server/src/services/completion/arglist_contributor.dart '; 13 import 'package:analysis_server/src/services/completion/arglist_contributor.dart ';
14 import 'package:analysis_server/src/services/completion/combinator_contributor.d art'; 14 import 'package:analysis_server/src/services/completion/combinator_contributor.d art';
15 import 'package:analysis_server/src/services/completion/common_usage_computer.da rt'; 15 import 'package:analysis_server/src/services/completion/common_usage_computer.da rt';
16 import 'package:analysis_server/src/services/completion/completion_manager.dart' ; 16 import 'package:analysis_server/src/services/completion/completion_manager.dart' ;
17 import 'package:analysis_server/src/services/completion/completion_target.dart'; 17 import 'package:analysis_server/src/services/completion/completion_target.dart';
18 import 'package:analysis_server/src/services/completion/dart_completion_cache.da rt'; 18 import 'package:analysis_server/src/services/completion/dart_completion_cache.da rt';
19 import 'package:analysis_server/src/services/completion/import_uri_contributor.d art'; 19 import 'package:analysis_server/src/services/completion/uri_contributor.dart';
20 import 'package:analysis_server/src/services/completion/imported_reference_contr ibutor.dart'; 20 import 'package:analysis_server/src/services/completion/imported_reference_contr ibutor.dart';
21 import 'package:analysis_server/src/services/completion/keyword_contributor.dart '; 21 import 'package:analysis_server/src/services/completion/keyword_contributor.dart ';
22 import 'package:analysis_server/src/services/completion/local_reference_contribu tor.dart'; 22 import 'package:analysis_server/src/services/completion/local_reference_contribu tor.dart';
23 import 'package:analysis_server/src/services/completion/optype.dart'; 23 import 'package:analysis_server/src/services/completion/optype.dart';
24 import 'package:analysis_server/src/services/completion/prefixed_element_contrib utor.dart'; 24 import 'package:analysis_server/src/services/completion/prefixed_element_contrib utor.dart';
25 import 'package:analysis_server/src/services/search/search_engine.dart'; 25 import 'package:analysis_server/src/services/search/search_engine.dart';
26 import 'package:analyzer/src/generated/ast.dart'; 26 import 'package:analyzer/src/generated/ast.dart';
27 import 'package:analyzer/src/generated/engine.dart'; 27 import 'package:analyzer/src/generated/engine.dart';
28 import 'package:analyzer/src/generated/scanner.dart'; 28 import 'package:analyzer/src/generated/scanner.dart';
29 import 'package:analyzer/src/generated/source.dart'; 29 import 'package:analyzer/src/generated/source.dart';
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 contributors = [ 85 contributors = [
86 // LocalReferenceContributor before ImportedReferenceContributor 86 // LocalReferenceContributor before ImportedReferenceContributor
87 // because local suggestions take precedence 87 // because local suggestions take precedence
88 // and can hide other suggestions with the same name 88 // and can hide other suggestions with the same name
89 new LocalReferenceContributor(), 89 new LocalReferenceContributor(),
90 new ImportedReferenceContributor(), 90 new ImportedReferenceContributor(),
91 new KeywordContributor(), 91 new KeywordContributor(),
92 new ArgListContributor(), 92 new ArgListContributor(),
93 new CombinatorContributor(), 93 new CombinatorContributor(),
94 new PrefixedElementContributor(), 94 new PrefixedElementContributor(),
95 new ImportUriContributor(), 95 new UriContributor(),
96 ]; 96 ];
97 } 97 }
98 if (commonUsageComputer == null) { 98 if (commonUsageComputer == null) {
99 commonUsageComputer = new CommonUsageComputer(); 99 commonUsageComputer = new CommonUsageComputer();
100 } 100 }
101 } 101 }
102 102
103 /** 103 /**
104 * Create a new initialized Dart source completion manager 104 * Create a new initialized Dart source completion manager
105 */ 105 */
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 parameterNames: suggestion.parameterNames, 386 parameterNames: suggestion.parameterNames,
387 parameterTypes: suggestion.parameterTypes, 387 parameterTypes: suggestion.parameterTypes,
388 requiredParameterCount: suggestion.requiredParameterCount, 388 requiredParameterCount: suggestion.requiredParameterCount,
389 hasNamedParameters: suggestion.hasNamedParameters, 389 hasNamedParameters: suggestion.hasNamedParameters,
390 returnType: suggestion.returnType, 390 returnType: suggestion.returnType,
391 element: suggestion.element); 391 element: suggestion.element);
392 } 392 }
393 } 393 }
394 } 394 }
395 } 395 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/services/completion/import_uri_contributor.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698