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

Unified Diff: tool/input_sdk/lib/convert/converter.dart

Issue 1112403004: SDK fixes (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Formatting fix Created 5 years, 8 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
Index: tool/input_sdk/lib/convert/converter.dart
diff --git a/tool/input_sdk/lib/convert/converter.dart b/tool/input_sdk/lib/convert/converter.dart
index 562f861bee83fdf78cd6e508a63b017e4bcc2554..bce2aab472e403d1b7e634eb6ef67e31630191f8 100644
--- a/tool/input_sdk/lib/convert/converter.dart
+++ b/tool/input_sdk/lib/convert/converter.dart
@@ -10,7 +10,7 @@ part of dart.convert;
* It is recommended that implementations of `Converter` extend this class,
* to inherit any further methods that may be added to the class.
*/
-abstract class Converter<S, T> implements StreamTransformer {
+abstract class Converter<S, T> implements StreamTransformer<S, T> {
const Converter();
/**
@@ -31,13 +31,13 @@ abstract class Converter<S, T> implements StreamTransformer {
/**
* Starts a chunked conversion.
*/
- ChunkedConversionSink startChunkedConversion(Sink sink) {
+ ChunkedConversionSink startChunkedConversion(Sink<T> sink) {
throw new UnsupportedError(
"This converter does not support chunked conversions: $this");
}
// Subclasses are encouraged to provide better types.
- Stream bind(Stream source) {
+ Stream<T> bind(Stream<S> source) {
return new Stream.eventTransformed(
source,
(EventSink sink) => new _ConverterStreamEventSink(this, sink));
@@ -57,7 +57,7 @@ class _FusedConverter<S, M, T> extends Converter<S, T> {
T convert(S input) => _second.convert(_first.convert(input));
- ChunkedConversionSink startChunkedConversion(Sink sink) {
+ ChunkedConversionSink startChunkedConversion(Sink<T> sink) {
return _first.startChunkedConversion(_second.startChunkedConversion(sink));
}
}

Powered by Google App Engine
This is Rietveld 408576698