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

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

Issue 725143004: Format and sort analyzer and analysis_server packages. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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 stdio.server; 5 library stdio.server;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:io'; 8 import 'dart:io';
9 9
10 import 'package:analysis_server/src/channel/byte_stream_channel.dart'; 10 import 'package:analysis_server/src/channel/byte_stream_channel.dart';
(...skipping 16 matching lines...) Expand all
27 * Initialize a newly created stdio server. 27 * Initialize a newly created stdio server.
28 */ 28 */
29 StdioAnalysisServer(this.socketServer); 29 StdioAnalysisServer(this.socketServer);
30 30
31 /** 31 /**
32 * Begin serving requests over stdio. 32 * Begin serving requests over stdio.
33 * 33 *
34 * Return a future that will be completed when stdin closes. 34 * Return a future that will be completed when stdin closes.
35 */ 35 */
36 Future serveStdio() { 36 Future serveStdio() {
37 ByteStreamServerChannel serverChannel = new ByteStreamServerChannel(stdin, 37 ByteStreamServerChannel serverChannel =
38 stdout); 38 new ByteStreamServerChannel(stdin, stdout);
39 socketServer.createAnalysisServer(serverChannel); 39 socketServer.createAnalysisServer(serverChannel);
40 return serverChannel.closed; 40 return serverChannel.closed;
41 } 41 }
42 } 42 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/socket_server.dart ('k') | pkg/analysis_server/test/abstract_context.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698