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

Unified Diff: pkg/analyzer/bin/coverage.dart

Issue 725143004: Format and sort analyzer and analysis_server packages. (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analyzer/bin/analyzer.dart ('k') | pkg/analyzer/bin/formatter.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/bin/coverage.dart
diff --git a/pkg/analyzer/bin/coverage.dart b/pkg/analyzer/bin/coverage.dart
index 32194c6ce7696fde0c29d9abd2534e7a5eea0893..6fbc0d1cc93f17e0f779bc4d02d421245a2d2ac0 100644
--- a/pkg/analyzer/bin/coverage.dart
+++ b/pkg/analyzer/bin/coverage.dart
@@ -6,10 +6,27 @@ library runtime.coverage;
import 'dart:io';
+import 'package:analyzer/src/services/runtime/coverage/coverage_impl.dart';
+import 'package:analyzer/src/services/runtime/log.dart' as log;
import 'package:args/args.dart';
-import 'package:analyzer/src/services/runtime/log.dart' as log;
-import 'package:analyzer/src/services/runtime/coverage/coverage_impl.dart';
+
+/// General error code.
+const ERROR = 1;
+
+
+final ArgParser _argParser = new ArgParser()
+ ..addFlag('help', negatable: false, help: 'Print this usage information.')
+ ..addOption(
+ 'level',
+ help: 'The level of the coverage.',
+ allowed: ['method', 'block', 'statement'],
+ defaultsTo: 'statement')
+ ..addOption('out', help: 'The output file with statistics.')
+ ..addOption(
+ 'port',
+ help: 'The port to run server on, if 0 select any.',
+ defaultsTo: '0');
main(args) {
@@ -63,27 +80,9 @@ main(args) {
}
-final ArgParser _argParser = new ArgParser()
- ..addFlag('help', negatable: false, help: 'Print this usage information.')
- ..addOption(
- 'level',
- help: 'The level of the coverage.',
- allowed: ['method', 'block', 'statement'],
- defaultsTo: 'statement')
- ..addOption('out', help: 'The output file with statistics.')
- ..addOption(
- 'port',
- help: 'The port to run server on, if 0 select any.',
- defaultsTo: '0');
-
-
printUsage([var description = 'Code coverage tool for Dart.']) {
var usage = _argParser.usage;
print('$description\n');
print('Usage: coverage [options] <script>\n');
print('$usage\n');
}
-
-
-/// General error code.
-const ERROR = 1;
« no previous file with comments | « pkg/analyzer/bin/analyzer.dart ('k') | pkg/analyzer/bin/formatter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698