| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |