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

Unified Diff: pkg/analysis_server/lib/src/analysis_manager.dart

Issue 969113002: Reformat (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analysis_server/lib/src/analysis_logger.dart ('k') | pkg/analysis_server/lib/src/analysis_server.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/src/analysis_manager.dart
diff --git a/pkg/analysis_server/lib/src/analysis_manager.dart b/pkg/analysis_server/lib/src/analysis_manager.dart
index d9c009264e9b3fb8b02903e79b92a6029cd8496c..72d1b5e6f748a3315373df2c6b43e66b4db49bf5 100644
--- a/pkg/analysis_server/lib/src/analysis_manager.dart
+++ b/pkg/analysis_server/lib/src/analysis_manager.dart
@@ -40,9 +40,9 @@ class AnalysisManager {
if (process == null) {
return channel.close().then((_) => false);
}
- return channel.sendRequest(
- new ServerShutdownParams().toRequest(
- '0')).timeout(new Duration(seconds: 2), onTimeout: () {
+ return channel
+ .sendRequest(new ServerShutdownParams().toRequest('0'))
+ .timeout(new Duration(seconds: 2), onTimeout: () {
print('Expected shutdown response');
}).then((Response response) {
return channel.close().then((_) => process.exitCode);
@@ -82,10 +82,10 @@ class AnalysisManager {
// Listen for port from server
const String pattern = 'Listening on port ';
- return out.firstWhere(
- (String line) =>
- line.startsWith(
- pattern)).timeout(new Duration(seconds: 10)).catchError((error) {
+ return out
+ .firstWhere((String line) => line.startsWith(pattern))
+ .timeout(new Duration(seconds: 10))
+ .catchError((error) {
exitCode = 1;
process.kill();
throw 'Expected port from analysis server';
@@ -108,8 +108,10 @@ class AnalysisManager {
throw 'Failed to connect to analysis server at $serverUrl\n $error';
};
try {
- return WebSocket.connect(
- serverUrl).catchError(onError).then((WebSocket socket) {
+ return WebSocket
+ .connect(serverUrl)
+ .catchError(onError)
+ .then((WebSocket socket) {
this.channel = new WebSocketClientChannel(socket);
return this;
});
« no previous file with comments | « pkg/analysis_server/lib/src/analysis_logger.dart ('k') | pkg/analysis_server/lib/src/analysis_server.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698