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

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

Issue 139983004: Server code clean-up (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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
« no previous file with comments | « pkg/analysis_server/lib/http_server.dart ('k') | pkg/analysis_server/lib/src/channel.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 analysis.server; 5 library analysis.server;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:analysis_server/src/analysis_logger.dart';
10 import 'package:analysis_server/src/channel.dart';
11 import 'package:analysis_server/src/protocol.dart';
9 import 'package:analyzer/src/generated/engine.dart'; 12 import 'package:analyzer/src/generated/engine.dart';
10 13
11 import 'analysis_logger.dart';
12 import 'channel.dart';
13 import 'protocol.dart';
14
15 /** 14 /**
16 * Instances of the class [AnalysisServer] implement a server that listens on a 15 * Instances of the class [AnalysisServer] implement a server that listens on a
17 * [CommunicationChannel] for analysis requests and process them. 16 * [CommunicationChannel] for analysis requests and process them.
18 */ 17 */
19 class AnalysisServer { 18 class AnalysisServer {
20 /** 19 /**
21 * The name of the notification of new errors associated with a source. 20 * The name of the notification of new errors associated with a source.
22 */ 21 */
23 static const String ERROR_NOTIFICATION_NAME = 'context.errors'; 22 static const String ERROR_NOTIFICATION_NAME = 'context.errors';
24 23
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 } 168 }
170 } 169 }
171 170
172 /** 171 /**
173 * Send the given [notification] to the client. 172 * Send the given [notification] to the client.
174 */ 173 */
175 void sendNotification(Notification notification) { 174 void sendNotification(Notification notification) {
176 channel.sendNotification(notification); 175 channel.sendNotification(notification);
177 } 176 }
178 } 177 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/http_server.dart ('k') | pkg/analysis_server/lib/src/channel.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698