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

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

Issue 733203004: Matching fields, some parameters, ignore locals. (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
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/incremental_resolver.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';
Brian Wilkerson 2014/11/20 21:53:40 Why did we need to add this import? (The only othe
7 import 'dart:io'; 8 import 'dart:io';
8 9
9 import 'package:analysis_server/http_server.dart'; 10 import 'package:analysis_server/http_server.dart';
10 import 'package:analysis_server/src/socket_server.dart'; 11 import 'package:analysis_server/src/socket_server.dart';
11 import 'package:analysis_server/stdio_server.dart'; 12 import 'package:analysis_server/stdio_server.dart';
12 import 'package:analyzer/src/generated/java_io.dart'; 13 import 'package:analyzer/src/generated/java_io.dart';
13 import 'package:analyzer/src/generated/sdk.dart'; 14 import 'package:analyzer/src/generated/sdk.dart';
14 import 'package:analyzer/src/generated/sdk_io.dart'; 15 import 'package:analyzer/src/generated/sdk_io.dart';
15 import 'package:args/args.dart'; 16 import 'package:args/args.dart';
16 17
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 negatable: false); 85 negatable: false);
85 parser.addOption( 86 parser.addOption(
86 INSTRUMENTATION_LOG_FILE_OPTION, 87 INSTRUMENTATION_LOG_FILE_OPTION,
87 help: "[path] the file to which instrumentation data will be logged"); 88 help: "[path] the file to which instrumentation data will be logged");
88 parser.addOption( 89 parser.addOption(
89 PORT_OPTION, 90 PORT_OPTION,
90 help: "[port] the port on which the server will listen"); 91 help: "[port] the port on which the server will listen");
91 parser.addOption(SDK_OPTION, help: "[path] the path to the sdk"); 92 parser.addOption(SDK_OPTION, help: "[path] the path to the sdk");
92 parser.addFlag( 93 parser.addFlag(
93 NO_ERROR_NOTIFICATION, 94 NO_ERROR_NOTIFICATION,
94 help: "disable sending all analysis error notifications to the server (n ot yet implemented)", 95 help:
96 "disable sending all analysis error notifications to the server (not yet implemented)",
95 defaultsTo: false, 97 defaultsTo: false,
96 negatable: false); 98 negatable: false);
97 99
98 ArgResults results = parser.parse(args); 100 ArgResults results = parser.parse(args);
99 if (results[HELP_OPTION]) { 101 if (results[HELP_OPTION]) {
100 _printUsage(parser); 102 _printUsage(parser);
101 return; 103 return;
102 } 104 }
103 if (results[ENABLE_INSTRUMENTATION_OPTION]) { 105 if (results[ENABLE_INSTRUMENTATION_OPTION]) {
104 if (results[INSTRUMENTATION_LOG_FILE_OPTION] != null) { 106 if (results[INSTRUMENTATION_LOG_FILE_OPTION] != null) {
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 /** 168 /**
167 * Print information about how to use the server. 169 * Print information about how to use the server.
168 */ 170 */
169 void _printUsage(ArgParser parser) { 171 void _printUsage(ArgParser parser) {
170 print('Usage: $BINARY_NAME [flags]'); 172 print('Usage: $BINARY_NAME [flags]');
171 print(''); 173 print('');
172 print('Supported flags are:'); 174 print('Supported flags are:');
173 print(parser.usage); 175 print(parser.usage);
174 } 176 }
175 } 177 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/incremental_resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698