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

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

Issue 2894883002: Remove more libraries directives from server (Closed)
Patch Set: Created 3 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
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 stdio.server;
6
7 import 'dart:async'; 5 import 'dart:async';
8 import 'dart:io'; 6 import 'dart:io';
9 7
10 import 'package:analysis_server/src/channel/byte_stream_channel.dart'; 8 import 'package:analysis_server/src/channel/byte_stream_channel.dart';
11 import 'package:analysis_server/src/socket_server.dart'; 9 import 'package:analysis_server/src/socket_server.dart';
12 10
13 /** 11 /**
14 * Instances of the class [StdioServer] implement a simple server operating 12 * Instances of the class [StdioServer] implement a simple server operating
15 * over standard input and output. The primary responsibility of this server 13 * over standard input and output. The primary responsibility of this server
16 * is to split incoming messages on newlines and pass them along to the 14 * is to split incoming messages on newlines and pass them along to the
(...skipping 16 matching lines...) Expand all
33 * 31 *
34 * Return a future that will be completed when stdin closes. 32 * Return a future that will be completed when stdin closes.
35 */ 33 */
36 Future serveStdio() { 34 Future serveStdio() {
37 ByteStreamServerChannel serverChannel = new ByteStreamServerChannel( 35 ByteStreamServerChannel serverChannel = new ByteStreamServerChannel(
38 stdin, stdout, socketServer.instrumentationService); 36 stdin, stdout, socketServer.instrumentationService);
39 socketServer.createAnalysisServer(serverChannel); 37 socketServer.createAnalysisServer(serverChannel);
40 return serverChannel.closed; 38 return serverChannel.closed;
41 } 39 }
42 } 40 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698