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

Side by Side Diff: pkg/analyzer_cli/lib/src/driver.dart

Issue 2196393003: Mark analyzer_cli as strong-mode clean (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « pkg/analyzer_cli/lib/src/build_mode.dart ('k') | pkg/analyzer_cli/lib/src/options.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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 analyzer_cli.src.driver; 5 library analyzer_cli.src.driver;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:convert'; 8 import 'dart:convert';
9 import 'dart:io'; 9 import 'dart:io';
10 10
(...skipping 754 matching lines...) Expand 10 before | Expand all | Expand 10 after
765 stdin.transform(UTF8.decoder).transform(new LineSplitter()); 765 stdin.transform(UTF8.decoder).transform(new LineSplitter());
766 cmdLine.listen((String line) { 766 cmdLine.listen((String line) {
767 // Maybe finish. 767 // Maybe finish.
768 if (line.isEmpty) { 768 if (line.isEmpty) {
769 var time = stopwatch.elapsedMilliseconds; 769 var time = stopwatch.elapsedMilliseconds;
770 outSink.writeln( 770 outSink.writeln(
771 '>>> BATCH END (${totalTests - testsFailed}/$totalTests) ${time}ms') ; 771 '>>> BATCH END (${totalTests - testsFailed}/$totalTests) ${time}ms') ;
772 exitCode = batchResult.ordinal; 772 exitCode = batchResult.ordinal;
773 } 773 }
774 // Prepare arguments. 774 // Prepare arguments.
775 var args; 775 var lineArgs = line.split(new RegExp('\\s+'));
776 { 776 var args = new List<String>();
777 var lineArgs = line.split(new RegExp('\\s+')); 777 args.addAll(sharedArgs);
778 args = new List<String>(); 778 args.addAll(lineArgs);
779 args.addAll(sharedArgs); 779 args.remove('-b');
780 args.addAll(lineArgs); 780 args.remove('--batch');
781 args.remove('-b');
782 args.remove('--batch');
783 }
784 // Analyze single set of arguments. 781 // Analyze single set of arguments.
785 try { 782 try {
786 totalTests++; 783 totalTests++;
787 ErrorSeverity result = handler(args); 784 ErrorSeverity result = handler(args);
788 bool resultPass = result != ErrorSeverity.ERROR; 785 bool resultPass = result != ErrorSeverity.ERROR;
789 if (!resultPass) { 786 if (!resultPass) {
790 testsFailed++; 787 testsFailed++;
791 } 788 }
792 batchResult = batchResult.max(result); 789 batchResult = batchResult.max(result);
793 // Write stderr end token and flush. 790 // Write stderr end token and flush.
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
834 for (var package in packages) { 831 for (var package in packages) {
835 var packageName = path.basename(package.path); 832 var packageName = path.basename(package.path);
836 var realPath = package.resolveSymbolicLinksSync(); 833 var realPath = package.resolveSymbolicLinksSync();
837 result[packageName] = [ 834 result[packageName] = [
838 PhysicalResourceProvider.INSTANCE.getFolder(realPath) 835 PhysicalResourceProvider.INSTANCE.getFolder(realPath)
839 ]; 836 ];
840 } 837 }
841 return result; 838 return result;
842 } 839 }
843 } 840 }
OLDNEW
« no previous file with comments | « pkg/analyzer_cli/lib/src/build_mode.dart ('k') | pkg/analyzer_cli/lib/src/options.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698