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

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

Issue 1818063003: Respect `machineFormat` in package-mode. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: not solo Created 4 years, 9 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 | « no previous file | pkg/analyzer_cli/test/driver_test.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.package_analyzer; 5 library analyzer_cli.src.package_analyzer;
6 6
7 import 'dart:core' hide Resource; 7 import 'dart:core' hide Resource;
8 import 'dart:io' as io; 8 import 'dart:io' as io;
9 9
10 import 'package:analyzer/dart/element/element.dart'; 10 import 'package:analyzer/dart/element/element.dart';
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 ErrorFormatter formatter = new ErrorFormatter( 182 ErrorFormatter formatter = new ErrorFormatter(
183 sink, 183 sink,
184 options, 184 options,
185 stats, 185 stats,
186 (AnalysisError error) => 186 (AnalysisError error) =>
187 AnalyzerImpl.processError(error, options, context)); 187 AnalyzerImpl.processError(error, options, context));
188 for (Source source in explicitSources) { 188 for (Source source in explicitSources) {
189 AnalysisErrorInfo errorInfo = context.getErrors(source); 189 AnalysisErrorInfo errorInfo = context.getErrors(source);
190 formatter.formatErrors([errorInfo]); 190 formatter.formatErrors([errorInfo]);
191 } 191 }
192 stats.print(sink); 192 if (!options.machineFormat) {
193 stats.print(sink);
194 }
193 } 195 }
194 } 196 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer_cli/test/driver_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698