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

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

Issue 801543002: Rework instrumentation API (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Clean-up Created 6 years 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 | « no previous file | pkg/analysis_server/lib/http_server.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 driver; 5 library driver;
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/http_server.dart'; 10 import 'package:analysis_server/http_server.dart';
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 230
231 DartSdk defaultSdk; 231 DartSdk defaultSdk;
232 if (results[SDK_OPTION] != null) { 232 if (results[SDK_OPTION] != null) {
233 defaultSdk = new DirectoryBasedDartSdk(new JavaFile(results[SDK_OPTION])); 233 defaultSdk = new DirectoryBasedDartSdk(new JavaFile(results[SDK_OPTION]));
234 } else { 234 } else {
235 // No path to the SDK provided; use DirectoryBasedDartSdk.defaultSdk, 235 // No path to the SDK provided; use DirectoryBasedDartSdk.defaultSdk,
236 // which will make a guess. 236 // which will make a guess.
237 defaultSdk = DirectoryBasedDartSdk.defaultSdk; 237 defaultSdk = DirectoryBasedDartSdk.defaultSdk;
238 } 238 }
239 239
240 socketServer = new SocketServer( 240 InstrumentationService service =
241 analysisServerOptions, 241 new InstrumentationService(instrumentationServer);
242 defaultSdk, 242 // service.logVersion(defaultSdk.sdkVersion);
243 instrumentationServer == null ? 243
244 new NullInstrumentationServer() : 244 socketServer = new SocketServer(analysisServerOptions, defaultSdk, service);
245 instrumentationServer);
246 httpServer = new HttpAnalysisServer(socketServer); 245 httpServer = new HttpAnalysisServer(socketServer);
247 stdioServer = new StdioAnalysisServer(socketServer); 246 stdioServer = new StdioAnalysisServer(socketServer);
248 247
249 if (serve_http) { 248 if (serve_http) {
250 httpServer.serveHttp(port); 249 httpServer.serveHttp(port);
251 } 250 }
252 251
253 if (results[INTERNAL_PRINT_TO_CONSOLE]) { 252 if (results[INTERNAL_PRINT_TO_CONSOLE]) {
254 stdioServer.serveStdio().then((_) { 253 stdioServer.serveStdio().then((_) {
255 if (serve_http) { 254 if (serve_http) {
(...skipping 30 matching lines...) Expand all
286 /** 285 /**
287 * Print information about how to use the server. 286 * Print information about how to use the server.
288 */ 287 */
289 void _printUsage(ArgParser parser) { 288 void _printUsage(ArgParser parser) {
290 print('Usage: $BINARY_NAME [flags]'); 289 print('Usage: $BINARY_NAME [flags]');
291 print(''); 290 print('');
292 print('Supported flags are:'); 291 print('Supported flags are:');
293 print(parser.usage); 292 print(parser.usage);
294 } 293 }
295 } 294 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analysis_server/lib/http_server.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698