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 /// Tests code generation. | 5 /// Tests code generation. |
6 /// Runs Dart Dev Compiler on all input in the `codegen` directory and checks | 6 /// Runs Dart Dev Compiler on all input in the `codegen` directory and checks |
7 /// that the output is what we expected. | 7 /// that the output is what we expected. |
8 library dev_compiler.test.codegen_test; | 8 library dev_compiler.test.codegen_test; |
9 | 9 |
10 import 'dart:io'; | 10 import 'dart:io'; |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 } | 244 } |
245 }); | 245 }); |
246 } | 246 } |
247 | 247 |
248 /// An implementation of analysis engine's [Logger] that prints. | 248 /// An implementation of analysis engine's [Logger] that prints. |
249 class PrintLogger implements Logger { | 249 class PrintLogger implements Logger { |
250 @override void logError(String message, [CaughtException exception]) { | 250 @override void logError(String message, [CaughtException exception]) { |
251 print('[AnalysisEngine] error $message $exception'); | 251 print('[AnalysisEngine] error $message $exception'); |
252 } | 252 } |
253 | 253 |
254 @override void logError2(String message, Object exception) { | |
255 print('[AnalysisEngine] error $message $exception'); | |
256 } | |
257 | |
258 void logInformation(String message, [CaughtException exception]) {} | 254 void logInformation(String message, [CaughtException exception]) {} |
259 void logInformation2(String message, Object exception) {} | 255 void logInformation2(String message, Object exception) {} |
260 } | 256 } |
OLD | NEW |