OLD | NEW |
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 socket.server; | 5 library socket.server; |
6 | 6 |
7 import 'package:analysis_server/src/analysis_server.dart'; | 7 import 'package:analysis_server/src/analysis_server.dart'; |
8 import 'package:analysis_server/src/channel.dart'; | 8 import 'package:analysis_server/src/channel.dart'; |
9 import 'package:analysis_server/src/domain_analysis.dart'; | 9 import 'package:analysis_server/src/domain_analysis.dart'; |
10 import 'package:analysis_server/src/domain_completion.dart'; | 10 import 'package:analysis_server/src/domain_completion.dart'; |
11 import 'package:analysis_server/src/edit/edit_domain.dart'; | 11 import 'package:analysis_server/src/edit/edit_domain.dart'; |
12 import 'package:analysis_server/src/search/search_domain.dart'; | 12 import 'package:analysis_server/src/search/search_domain.dart'; |
13 import 'package:analysis_server/src/domain_server.dart'; | 13 import 'package:analysis_server/src/domain_server.dart'; |
14 import 'package:analysis_server/src/package_map_provider.dart'; | 14 import 'package:analysis_server/src/package_map_provider.dart'; |
15 import 'package:analysis_server/src/protocol.dart'; | 15 import 'package:analysis_server/src/protocol.dart'; |
16 import 'package:analyzer/file_system/physical_file_system.dart'; | 16 import 'package:analyzer/file_system/physical_file_system.dart'; |
17 import 'package:analyzer/src/generated/sdk_io.dart'; | 17 import 'package:analyzer/src/generated/sdk_io.dart'; |
18 import 'package:analysis_services/index/index.dart'; | 18 import 'package:analysis_server/src/services/index/index.dart'; |
19 import 'package:analysis_services/index/local_file_index.dart'; | 19 import 'package:analysis_server/src/services/index/local_file_index.dart'; |
20 | 20 |
21 | 21 |
22 /** | 22 /** |
23 * Creates and runs an [Index]. | 23 * Creates and runs an [Index]. |
24 */ | 24 */ |
25 Index _createIndex() { | 25 Index _createIndex() { |
26 Index index = createLocalFileIndex(); | 26 Index index = createLocalFileIndex(); |
27 index.run(); | 27 index.run(); |
28 return index; | 28 return index; |
29 } | 29 } |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 void _initializeHandlers(AnalysisServer server) { | 76 void _initializeHandlers(AnalysisServer server) { |
77 server.handlers = [ | 77 server.handlers = [ |
78 new ServerDomainHandler(server), | 78 new ServerDomainHandler(server), |
79 new AnalysisDomainHandler(server), | 79 new AnalysisDomainHandler(server), |
80 new EditDomainHandler(server), | 80 new EditDomainHandler(server), |
81 new SearchDomainHandler(server), | 81 new SearchDomainHandler(server), |
82 new CompletionDomainHandler(server), | 82 new CompletionDomainHandler(server), |
83 ]; | 83 ]; |
84 } | 84 } |
85 } | 85 } |
OLD | NEW |