| 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.dart.plugin; | 5 library analysis_server.src.provisional.completion.dart.plugin; |
| 6 | 6 |
| 7 import 'package:analysis_server/src/provisional/completion/completion.dart'; | 7 import 'package:analysis_server/src/provisional/completion/completion.dart'; |
| 8 import 'package:analysis_server/src/provisional/completion/dart/completion.dart'
; | 8 import 'package:analysis_server/src/provisional/completion/dart/completion.dart'
; |
| 9 import 'package:analysis_server/src/provisional/completion/dart/completion_dart.
dart'; | 9 import 'package:analysis_server/src/provisional/completion/dart/completion_dart.
dart'; |
| 10 import 'package:analysis_server/src/services/completion/dart/arglist_contributor
.dart'; | 10 import 'package:analysis_server/src/services/completion/dart/arglist_contributor
.dart'; |
| 11 import 'package:analysis_server/src/services/completion/dart/combinator_contribu
tor.dart'; | 11 import 'package:analysis_server/src/services/completion/dart/combinator_contribu
tor.dart'; |
| 12 import 'package:analysis_server/src/services/completion/dart/completion_manager.
dart'; | 12 import 'package:analysis_server/src/services/completion/dart/completion_manager.
dart'; |
| 13 import 'package:analysis_server/src/services/completion/dart/field_formal_contri
butor.dart'; | 13 import 'package:analysis_server/src/services/completion/dart/field_formal_contri
butor.dart'; |
| 14 import 'package:analysis_server/src/services/completion/dart/inherited_reference
_contributor.dart'; |
| 14 import 'package:analysis_server/src/services/completion/dart/keyword_contributor
.dart'; | 15 import 'package:analysis_server/src/services/completion/dart/keyword_contributor
.dart'; |
| 15 import 'package:analysis_server/src/services/completion/dart/label_contributor.d
art'; | 16 import 'package:analysis_server/src/services/completion/dart/label_contributor.d
art'; |
| 16 import 'package:analysis_server/src/services/completion/dart/library_member_cont
ributor.dart'; | 17 import 'package:analysis_server/src/services/completion/dart/library_member_cont
ributor.dart'; |
| 17 import 'package:analysis_server/src/services/completion/dart/library_prefix_cont
ributor.dart'; | 18 import 'package:analysis_server/src/services/completion/dart/library_prefix_cont
ributor.dart'; |
| 18 import 'package:analysis_server/src/services/completion/dart/local_constructor_c
ontributor.dart'; | 19 import 'package:analysis_server/src/services/completion/dart/local_constructor_c
ontributor.dart'; |
| 19 import 'package:analysis_server/src/services/completion/dart/local_library_contr
ibutor.dart'; | 20 import 'package:analysis_server/src/services/completion/dart/local_library_contr
ibutor.dart'; |
| 20 import 'package:analysis_server/src/services/completion/dart/local_reference_con
tributor.dart'; | 21 import 'package:analysis_server/src/services/completion/dart/local_reference_con
tributor.dart'; |
| 21 import 'package:analysis_server/src/services/completion/dart/named_constructor_c
ontributor.dart'; | 22 import 'package:analysis_server/src/services/completion/dart/named_constructor_c
ontributor.dart'; |
| 22 import 'package:analysis_server/src/services/completion/dart/static_member_contr
ibutor.dart'; | 23 import 'package:analysis_server/src/services/completion/dart/static_member_contr
ibutor.dart'; |
| 23 import 'package:analysis_server/src/services/completion/dart/type_member_contrib
utor.dart'; | 24 import 'package:analysis_server/src/services/completion/dart/type_member_contrib
utor.dart'; |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 // | 78 // |
| 78 // Register the default DartCompletionContributors | 79 // Register the default DartCompletionContributors |
| 79 // | 80 // |
| 80 registerExtension(DART_COMPLETION_CONTRIBUTOR_EXTENSION_POINT_ID, | 81 registerExtension(DART_COMPLETION_CONTRIBUTOR_EXTENSION_POINT_ID, |
| 81 () => new ArgListContributor()); | 82 () => new ArgListContributor()); |
| 82 registerExtension(DART_COMPLETION_CONTRIBUTOR_EXTENSION_POINT_ID, | 83 registerExtension(DART_COMPLETION_CONTRIBUTOR_EXTENSION_POINT_ID, |
| 83 () => new CombinatorContributor()); | 84 () => new CombinatorContributor()); |
| 84 registerExtension(DART_COMPLETION_CONTRIBUTOR_EXTENSION_POINT_ID, | 85 registerExtension(DART_COMPLETION_CONTRIBUTOR_EXTENSION_POINT_ID, |
| 85 () => new FieldFormalContributor()); | 86 () => new FieldFormalContributor()); |
| 86 registerExtension(DART_COMPLETION_CONTRIBUTOR_EXTENSION_POINT_ID, | 87 registerExtension(DART_COMPLETION_CONTRIBUTOR_EXTENSION_POINT_ID, |
| 88 () => new InheritedReferenceContributor()); |
| 89 registerExtension(DART_COMPLETION_CONTRIBUTOR_EXTENSION_POINT_ID, |
| 87 () => new KeywordContributor()); | 90 () => new KeywordContributor()); |
| 88 registerExtension(DART_COMPLETION_CONTRIBUTOR_EXTENSION_POINT_ID, | 91 registerExtension(DART_COMPLETION_CONTRIBUTOR_EXTENSION_POINT_ID, |
| 89 () => new LabelContributor()); | 92 () => new LabelContributor()); |
| 90 registerExtension(DART_COMPLETION_CONTRIBUTOR_EXTENSION_POINT_ID, | 93 registerExtension(DART_COMPLETION_CONTRIBUTOR_EXTENSION_POINT_ID, |
| 91 () => new LibraryMemberContributor()); | 94 () => new LibraryMemberContributor()); |
| 92 registerExtension(DART_COMPLETION_CONTRIBUTOR_EXTENSION_POINT_ID, | 95 registerExtension(DART_COMPLETION_CONTRIBUTOR_EXTENSION_POINT_ID, |
| 93 () => new LibraryPrefixContributor()); | 96 () => new LibraryPrefixContributor()); |
| 94 registerExtension(DART_COMPLETION_CONTRIBUTOR_EXTENSION_POINT_ID, | 97 registerExtension(DART_COMPLETION_CONTRIBUTOR_EXTENSION_POINT_ID, |
| 95 () => new LocalConstructorContributor()); | 98 () => new LocalConstructorContributor()); |
| 96 registerExtension(DART_COMPLETION_CONTRIBUTOR_EXTENSION_POINT_ID, | 99 registerExtension(DART_COMPLETION_CONTRIBUTOR_EXTENSION_POINT_ID, |
| (...skipping 19 matching lines...) Expand all Loading... |
| 116 * valid Dart specific completion contributor. | 119 * valid Dart specific completion contributor. |
| 117 */ | 120 */ |
| 118 void _validateDartCompletionContributorExtension(Object extension) { | 121 void _validateDartCompletionContributorExtension(Object extension) { |
| 119 if (extension is! DartCompletionContributorFactory) { | 122 if (extension is! DartCompletionContributorFactory) { |
| 120 String id = _contributorExtensionPoint.uniqueIdentifier; | 123 String id = _contributorExtensionPoint.uniqueIdentifier; |
| 121 throw new ExtensionError( | 124 throw new ExtensionError( |
| 122 'Extensions to $id must be a DartCompletionContributorFactory'); | 125 'Extensions to $id must be a DartCompletionContributorFactory'); |
| 123 } | 126 } |
| 124 } | 127 } |
| 125 } | 128 } |
| OLD | NEW |