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

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

Issue 854493002: Have the analysis server not send error notifications when NO_ERROR_NOTIFICATION has been set to tr… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: update flag description Created 5 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « pkg/analysis_server/lib/src/analysis_server.dart ('k') | no next file » | 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/plugin/plugin.dart'; 10 import 'package:analysis_server/plugin/plugin.dart';
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 exitCode = 1; 186 exitCode = 1;
187 return; 187 return;
188 } 188 }
189 } 189 }
190 190
191 AnalysisServerOptions analysisServerOptions = new AnalysisServerOptions(); 191 AnalysisServerOptions analysisServerOptions = new AnalysisServerOptions();
192 analysisServerOptions.enableIncrementalResolutionApi = 192 analysisServerOptions.enableIncrementalResolutionApi =
193 results[ENABLE_INCREMENTAL_RESOLUTION_API]; 193 results[ENABLE_INCREMENTAL_RESOLUTION_API];
194 analysisServerOptions.enableIncrementalResolutionValidation = 194 analysisServerOptions.enableIncrementalResolutionValidation =
195 results[INCREMENTAL_RESOLUTION_VALIDATION]; 195 results[INCREMENTAL_RESOLUTION_VALIDATION];
196 analysisServerOptions.noErrorNotification = results[NO_ERROR_NOTIFICATION];
196 197
197 _initIncrementalLogger(results[INCREMENTAL_RESOLUTION_LOG]); 198 _initIncrementalLogger(results[INCREMENTAL_RESOLUTION_LOG]);
198 199
199 DartSdk defaultSdk; 200 DartSdk defaultSdk;
200 if (results[SDK_OPTION] != null) { 201 if (results[SDK_OPTION] != null) {
201 defaultSdk = new DirectoryBasedDartSdk(new JavaFile(results[SDK_OPTION])); 202 defaultSdk = new DirectoryBasedDartSdk(new JavaFile(results[SDK_OPTION]));
202 } else { 203 } else {
203 // No path to the SDK provided; use DirectoryBasedDartSdk.defaultSdk, 204 // No path to the SDK provided; use DirectoryBasedDartSdk.defaultSdk,
204 // which will make a guess. 205 // which will make a guess.
205 defaultSdk = DirectoryBasedDartSdk.defaultSdk; 206 defaultSdk = DirectoryBasedDartSdk.defaultSdk;
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 help: "enable sending `print` output to the console", 306 help: "enable sending `print` output to the console",
306 defaultsTo: false, 307 defaultsTo: false,
307 negatable: false); 308 negatable: false);
308 parser.addOption( 309 parser.addOption(
309 PORT_OPTION, 310 PORT_OPTION,
310 help: "[port] the port on which the server will listen"); 311 help: "[port] the port on which the server will listen");
311 parser.addOption(SDK_OPTION, help: "[path] the path to the sdk"); 312 parser.addOption(SDK_OPTION, help: "[path] the path to the sdk");
312 parser.addFlag( 313 parser.addFlag(
313 NO_ERROR_NOTIFICATION, 314 NO_ERROR_NOTIFICATION,
314 help: 315 help:
315 "disable sending all analysis error notifications to the server (not yet implemented)", 316 "disable sending all analysis error notifications to the server",
316 defaultsTo: false, 317 defaultsTo: false,
317 negatable: false); 318 negatable: false);
318 319
319 return parser; 320 return parser;
320 } 321 }
321 322
322 /** 323 /**
323 * Print information about how to use the server. 324 * Print information about how to use the server.
324 */ 325 */
325 void _printUsage(ArgParser parser) { 326 void _printUsage(ArgParser parser) {
326 print('Usage: $BINARY_NAME [flags]'); 327 print('Usage: $BINARY_NAME [flags]');
327 print(''); 328 print('');
328 print('Supported flags are:'); 329 print('Supported flags are:');
329 print(parser.usage); 330 print(parser.usage);
330 } 331 }
331 } 332 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/analysis_server.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698