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

Side by Side Diff: pkg/analysis_server/lib/src/socket_server.dart

Issue 302503002: API and stubs for the 'analysis' domain. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
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 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_context.dart'; 10 import 'package:analysis_server/src/domain_context.dart';
10 import 'package:analysis_server/src/domain_server.dart'; 11 import 'package:analysis_server/src/domain_server.dart';
11 import 'package:analysis_server/src/protocol.dart'; 12 import 'package:analysis_server/src/protocol.dart';
12 13
13 /** 14 /**
14 * Instances of the class [SocketServer] implement the common parts of 15 * Instances of the class [SocketServer] implement the common parts of
15 * http-based and stdio-based analysis servers. The primary responsibility of 16 * http-based and stdio-based analysis servers. The primary responsibility of
16 * the SocketServer is to manage the lifetime of the AnalysisServer and to 17 * the SocketServer is to manage the lifetime of the AnalysisServer and to
17 * encode and decode the JSON messages exchanged with the client. 18 * encode and decode the JSON messages exchanged with the client.
18 */ 19 */
(...skipping 20 matching lines...) Expand all
39 analysisServer = new AnalysisServer(serverChannel); 40 analysisServer = new AnalysisServer(serverChannel);
40 _initializeHandlers(analysisServer); 41 _initializeHandlers(analysisServer);
41 } 42 }
42 43
43 /** 44 /**
44 * Initialize the handlers to be used by the given [server]. 45 * Initialize the handlers to be used by the given [server].
45 */ 46 */
46 void _initializeHandlers(AnalysisServer server) { 47 void _initializeHandlers(AnalysisServer server) {
47 server.handlers = [ 48 server.handlers = [
48 new ServerDomainHandler(server), 49 new ServerDomainHandler(server),
50 new AnalysisDomainHandler(server),
49 new ContextDomainHandler(server), 51 new ContextDomainHandler(server),
50 ]; 52 ];
51 } 53 }
52 54
53 } 55 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698