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.plugin.server_plugin; | 5 library analysis_server.src.plugin.server_plugin; |
6 | 6 |
7 import 'package:analysis_server/plugin/analysis/analysis_domain.dart'; | 7 import 'package:analysis_server/plugin/analysis/analysis_domain.dart'; |
8 import 'package:analysis_server/plugin/analysis/analyzed_files.dart'; | 8 import 'package:analysis_server/plugin/analysis/analyzed_files.dart'; |
9 import 'package:analysis_server/plugin/analysis/navigation/navigation.dart'; | 9 import 'package:analysis_server/plugin/analysis/navigation/navigation.dart'; |
10 import 'package:analysis_server/plugin/analysis/navigation/navigation_core.dart'
; | 10 import 'package:analysis_server/plugin/analysis/navigation/navigation_core.dart'
; |
11 import 'package:analysis_server/plugin/analysis/occurrences/occurrences.dart'; | 11 import 'package:analysis_server/plugin/analysis/occurrences/occurrences.dart'; |
12 import 'package:analysis_server/plugin/analysis/occurrences/occurrences_core.dar
t'; | 12 import 'package:analysis_server/plugin/analysis/occurrences/occurrences_core.dar
t'; |
13 import 'package:analysis_server/plugin/edit/assist/assist.dart'; | 13 import 'package:analysis_server/plugin/edit/assist/assist.dart'; |
14 import 'package:analysis_server/plugin/edit/assist/assist_core.dart'; | 14 import 'package:analysis_server/plugin/edit/assist/assist_core.dart'; |
15 import 'package:analysis_server/plugin/edit/fix/fix.dart'; | 15 import 'package:analysis_server/plugin/edit/fix/fix.dart'; |
16 import 'package:analysis_server/plugin/edit/fix/fix_core.dart'; | 16 import 'package:analysis_server/plugin/edit/fix/fix_core.dart'; |
17 import 'package:analysis_server/plugin/index/index.dart'; | 17 import 'package:analysis_server/plugin/index/index.dart'; |
18 import 'package:analysis_server/plugin/index/index_core.dart'; | 18 import 'package:analysis_server/plugin/index/index_core.dart'; |
19 import 'package:analysis_server/plugin/protocol/protocol.dart'; | 19 import 'package:analysis_server/plugin/protocol/protocol.dart'; |
20 import 'package:analysis_server/src/analysis_server.dart'; | 20 import 'package:analysis_server/src/analysis_server.dart'; |
21 import 'package:analysis_server/src/domain_analysis.dart'; | 21 import 'package:analysis_server/src/domain_analysis.dart'; |
22 import 'package:analysis_server/src/domain_completion.dart'; | 22 import 'package:analysis_server/src/domain_completion.dart'; |
23 import 'package:analysis_server/src/domain_execution.dart'; | 23 import 'package:analysis_server/src/domain_execution.dart'; |
| 24 import 'package:analysis_server/src/domain_experimental.dart'; |
24 import 'package:analysis_server/src/domain_server.dart'; | 25 import 'package:analysis_server/src/domain_server.dart'; |
25 import 'package:analysis_server/src/domains/analysis/navigation_dart.dart'; | 26 import 'package:analysis_server/src/domains/analysis/navigation_dart.dart'; |
26 import 'package:analysis_server/src/domains/analysis/occurrences_dart.dart'; | 27 import 'package:analysis_server/src/domains/analysis/occurrences_dart.dart'; |
27 import 'package:analysis_server/src/edit/edit_domain.dart'; | 28 import 'package:analysis_server/src/edit/edit_domain.dart'; |
28 import 'package:analysis_server/src/provisional/completion/completion_core.dart'
; | 29 import 'package:analysis_server/src/provisional/completion/completion_core.dart'
; |
29 import 'package:analysis_server/src/search/search_domain.dart'; | 30 import 'package:analysis_server/src/search/search_domain.dart'; |
30 import 'package:analysis_server/src/services/correction/assist_internal.dart'; | 31 import 'package:analysis_server/src/services/correction/assist_internal.dart'; |
31 import 'package:analysis_server/src/services/correction/fix_internal.dart'; | 32 import 'package:analysis_server/src/services/correction/fix_internal.dart'; |
32 import 'package:analysis_server/src/services/index/index_contributor.dart'; | 33 import 'package:analysis_server/src/services/index/index_contributor.dart'; |
33 import 'package:analyzer/file_system/file_system.dart'; | 34 import 'package:analyzer/file_system/file_system.dart'; |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 registerExtension( | 298 registerExtension( |
298 domainId, (AnalysisServer server) => new AnalysisDomainHandler(server)); | 299 domainId, (AnalysisServer server) => new AnalysisDomainHandler(server)); |
299 registerExtension( | 300 registerExtension( |
300 domainId, (AnalysisServer server) => new EditDomainHandler(server)); | 301 domainId, (AnalysisServer server) => new EditDomainHandler(server)); |
301 registerExtension( | 302 registerExtension( |
302 domainId, (AnalysisServer server) => new SearchDomainHandler(server)); | 303 domainId, (AnalysisServer server) => new SearchDomainHandler(server)); |
303 registerExtension(domainId, | 304 registerExtension(domainId, |
304 (AnalysisServer server) => new CompletionDomainHandler(server)); | 305 (AnalysisServer server) => new CompletionDomainHandler(server)); |
305 registerExtension(domainId, | 306 registerExtension(domainId, |
306 (AnalysisServer server) => new ExecutionDomainHandler(server)); | 307 (AnalysisServer server) => new ExecutionDomainHandler(server)); |
| 308 registerExtension(domainId, |
| 309 (AnalysisServer server) => new ExperimentalDomainHandler(server)); |
307 // | 310 // |
308 // Register fix contributors. | 311 // Register fix contributors. |
309 // | 312 // |
310 registerExtension( | 313 registerExtension( |
311 FIX_CONTRIBUTOR_EXTENSION_POINT_ID, new DefaultFixContributor()); | 314 FIX_CONTRIBUTOR_EXTENSION_POINT_ID, new DefaultFixContributor()); |
312 // | 315 // |
313 // Register index contributors. | 316 // Register index contributors. |
314 // | 317 // |
315 registerExtension( | 318 registerExtension( |
316 INDEX_CONTRIBUTOR_EXTENSION_POINT_ID, new DartIndexContributor()); | 319 INDEX_CONTRIBUTOR_EXTENSION_POINT_ID, new DartIndexContributor()); |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
415 * valid analysis domain receiver. | 418 * valid analysis domain receiver. |
416 */ | 419 */ |
417 void _validateSetAnalysisDomainFunction(Object extension) { | 420 void _validateSetAnalysisDomainFunction(Object extension) { |
418 if (extension is! SetAnalysisDomain) { | 421 if (extension is! SetAnalysisDomain) { |
419 String id = setAnalysisDomainExtensionPoint.uniqueIdentifier; | 422 String id = setAnalysisDomainExtensionPoint.uniqueIdentifier; |
420 throw new ExtensionError( | 423 throw new ExtensionError( |
421 'Extensions to $id must be a SetAnalysisDomain function'); | 424 'Extensions to $id must be a SetAnalysisDomain function'); |
422 } | 425 } |
423 } | 426 } |
424 } | 427 } |
OLD | NEW |