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

Side by Side Diff: pkg/analysis_server/lib/src/plugin/server_plugin.dart

Issue 1412683002: Add an experimental domain (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Clean up registration 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 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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698