-
Notifications
You must be signed in to change notification settings - Fork 45
Conversation
the Converter<String, List<String>> interface.
cc @keertip |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tiny nit...
/// A trivial conversion turning a Sink<List<String>> into a | ||
/// Sink<String> | ||
class _StringSinkWrapper implements Sink<String> { | ||
Sink<List<String>> _sink; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
final
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
It looks like this breaks travis @leafpetersen: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
The Travis failures look unrelated to this PR.
Yes, I think travis failures are flakes or otherwise unrelated. Initial PR passed travis: https://travis-ci.org/google/file.dart/builds/305560605 . Failing run seems to be on the next commit when I added final, but tests still pass locally. |
@tvolkert Will you land and publish? I don't have write access here. |
This fixes dart-lang/sdk#28748 .
LineSplitter has been in an odd state for a while where it implements Converter in Dart 1.0 but not in 2.0. We've made the change in the Dart 2.0 repository to flip it entirely away from Converter. This adds a wrapper implementation that satisfies the Converter interface.