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

Unified Diff: sdk/lib/io/io_sink.dart

Issue 46663003: Fix sdk/lib/io errors found by the analyzer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: More fixes. Created 7 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/io/http_impl.dart ('k') | sdk/lib/io/secure_server_socket.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/io_sink.dart
diff --git a/sdk/lib/io/io_sink.dart b/sdk/lib/io/io_sink.dart
index ac4ce0a1daabeeece9aa0e78da3e55533a5750cf..042a469fb67c770216b9d1c07def35d8e9e2e02d 100644
--- a/sdk/lib/io/io_sink.dart
+++ b/sdk/lib/io/io_sink.dart
@@ -38,7 +38,7 @@ abstract class IOSink implements StreamSink<List<int>>, StringSink {
/**
* Writes an error to the consumer.
*/
- void addError(error);
+ void addError(error, [StackTrace stackTrace]);
/**
* Adds all elements of the given [stream] to `this`.
@@ -76,8 +76,8 @@ class _StreamSinkImpl<T> implements StreamSink<T> {
_controller.add(data);
}
- void addError(error) {
- _controller.addError(error);
+ void addError(error, [StackTrace stackTrace]) {
+ _controller.addError(error, stackTrace);
}
Future addStream(Stream<T> stream) {
« no previous file with comments | « sdk/lib/io/http_impl.dart ('k') | sdk/lib/io/secure_server_socket.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698