| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 part of dart2js; | 5 part of dart2js; |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * If true, print a warning for each method that was resolved, but not | 8 * If true, print a warning for each method that was resolved, but not |
| 9 * compiled. | 9 * compiled. |
| 10 */ | 10 */ |
| (...skipping 1257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1268 } | 1268 } |
| 1269 | 1269 |
| 1270 /// A sink that drains into /dev/null. | 1270 /// A sink that drains into /dev/null. |
| 1271 class NullSink implements EventSink<String> { | 1271 class NullSink implements EventSink<String> { |
| 1272 final String name; | 1272 final String name; |
| 1273 | 1273 |
| 1274 NullSink(this.name); | 1274 NullSink(this.name); |
| 1275 | 1275 |
| 1276 add(String value) {} | 1276 add(String value) {} |
| 1277 | 1277 |
| 1278 void addError(AsyncError error) {} | 1278 void addError(Object error) {} |
| 1279 | 1279 |
| 1280 void close() {} | 1280 void close() {} |
| 1281 | 1281 |
| 1282 toString() => name; | 1282 toString() => name; |
| 1283 | 1283 |
| 1284 /// Convenience method for getting an [api.CompilerOutputProvider]. | 1284 /// Convenience method for getting an [api.CompilerOutputProvider]. |
| 1285 static NullSink outputProvider(String name, String extension) { | 1285 static NullSink outputProvider(String name, String extension) { |
| 1286 return new NullSink('$name.$extension'); | 1286 return new NullSink('$name.$extension'); |
| 1287 } | 1287 } |
| 1288 } | 1288 } |
| OLD | NEW |