| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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:io'; | 5 import 'dart:io'; |
| 6 | 6 |
| 7 import 'package:analyzer/src/dart/sdk/sdk.dart'; | 7 import 'package:analyzer/src/dart/sdk/sdk.dart'; |
| 8 import 'package:analyzer/src/generated/sdk.dart'; | 8 import 'package:analyzer/src/generated/sdk.dart'; |
| 9 import 'package:analyzer_cli/src/driver.dart' show Driver, errorSink, outSink; | 9 import 'package:analyzer_cli/src/driver.dart' show Driver, errorSink, outSink; |
| 10 import 'package:path/path.dart' as path; | 10 import 'package:path/path.dart' as path; |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 await f(); | 66 await f(); |
| 67 } catch (e) { | 67 } catch (e) { |
| 68 if (outSink.toString().isNotEmpty) { | 68 if (outSink.toString().isNotEmpty) { |
| 69 print('stdout:'); | 69 print('stdout:'); |
| 70 print(outSink); | 70 print(outSink); |
| 71 } | 71 } |
| 72 if (errorSink.toString().isNotEmpty) { | 72 if (errorSink.toString().isNotEmpty) { |
| 73 print('stderr:'); | 73 print('stderr:'); |
| 74 print(errorSink); | 74 print(errorSink); |
| 75 } | 75 } |
| 76 throw e; | 76 rethrow; |
| 77 } | 77 } |
| 78 }; | 78 }; |
| 79 } | 79 } |
| OLD | NEW |