Chromium Code Reviews| 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 import 'dart:async'; | 5 import 'dart:async'; |
| 6 import 'dart:io'; | 6 import 'dart:io'; |
| 7 | 7 |
| 8 import 'package:args/args.dart'; | 8 import 'package:args/args.dart'; |
| 9 import 'package:matcher/matcher.dart'; | 9 import 'package:matcher/matcher.dart'; |
| 10 import 'package:path/path.dart' as path; | 10 import 'package:path/path.dart' as path; |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 147 }); | 147 }); |
| 148 return editor; | 148 return editor; |
| 149 }); | 149 }); |
| 150 | 150 |
| 151 }).then((Editor editor) { | 151 }).then((Editor editor) { |
| 152 print('tests complete'); | 152 print('tests complete'); |
| 153 }); | 153 }); |
| 154 }); | 154 }); |
| 155 } | 155 } |
| 156 | 156 |
| 157 void _printAnalysisSummary(AnalysisResults results) { | |
|
Brian Wilkerson
2014/11/13 16:11:35
You should check with Luke about this one, given t
| |
| 158 print( | |
| 159 'Found ${results.errorCount} errors, ${results.warningCount} warnings,' | |
| 160 ' and ${results.hintCount} hints in $results.elapsed'); | |
| 161 } | |
| 162 | |
| 163 /// Print information about how to use the server. | 157 /// Print information about how to use the server. |
| 164 void _printUsage(ArgParser parser) { | 158 void _printUsage(ArgParser parser) { |
| 165 print('Usage: $BINARY_NAME [flags] <application_directory>'); | 159 print('Usage: $BINARY_NAME [flags] <application_directory>'); |
| 166 print(''); | 160 print(''); |
| 167 print('Supported flags are:'); | 161 print('Supported flags are:'); |
| 168 print(parser.usage); | 162 print(parser.usage); |
| 169 } | 163 } |
| 170 } | 164 } |
| OLD | NEW |