| 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 server.manager; | 5 library server.manager; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:convert'; | 8 import 'dart:convert'; |
| 9 import 'dart:io'; | 9 import 'dart:io'; |
| 10 | 10 |
| 11 import 'package:matcher/matcher.dart'; | 11 import 'package:matcher/matcher.dart'; |
| 12 | 12 import 'package:analysis_server/src/protocol.dart'; |
| 13 import 'byte_stream_channel.dart'; | 13 import 'package:analysis_server/src/channel/channel.dart'; |
| 14 import 'channel.dart'; | 14 import 'package:analysis_server/src/channel/byte_stream_channel.dart'; |
| 15 import 'protocol.dart'; | |
| 16 | 15 |
| 17 part 'logging_client_channel.dart'; | 16 part 'logging_client_channel.dart'; |
| 18 | 17 |
| 19 /** | 18 /** |
| 20 * The results returned by [ServerManager].analyze(...) once analysis | 19 * The results returned by [ServerManager].analyze(...) once analysis |
| 21 * has finished. | 20 * has finished. |
| 22 */ | 21 */ |
| 23 class AnalysisResults { | 22 class AnalysisResults { |
| 24 Duration elapsed; | 23 Duration elapsed; |
| 25 int errorCount = 0; | 24 int errorCount = 0; |
| (...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 356 } | 355 } |
| 357 | 356 |
| 358 /** | 357 /** |
| 359 * Launch analysis server in a separate process | 358 * Launch analysis server in a separate process |
| 360 * and return a future with a manager for that analysis server. | 359 * and return a future with a manager for that analysis server. |
| 361 */ | 360 */ |
| 362 static Future<ServerManager> start(String serverPath) { | 361 static Future<ServerManager> start(String serverPath) { |
| 363 return new ServerManager()._launchServer(serverPath); | 362 return new ServerManager()._launchServer(serverPath); |
| 364 } | 363 } |
| 365 } | 364 } |
| OLD | NEW |