|
Introduce class Sink<T>.
The sink only has "add" and "close" methods. It is the supertype of both EventSink and ChunkedConversionSink.
Made startChunkedConversion take Sink as argument, but still return ChunkedConversionSink. The more specialized chunked conversion sinks are test for, just as they always were.
R=ajohnsen@google.com
Committed: https://code.google.com/p/dart/source/detail?r=34157
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+83 lines, -66 lines) |
Patch |
|
M |
pkg/analysis_server/lib/src/channel.dart
|
View
|
|
3 chunks |
+8 lines, -8 lines |
0 comments
|
Download
|
|
M |
sdk/lib/async/stream.dart
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
sdk/lib/convert/ascii.dart
|
View
|
|
3 chunks |
+3 lines, -6 lines |
0 comments
|
Download
|
|
M |
sdk/lib/convert/byte_conversion.dart
|
View
|
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
sdk/lib/convert/chunked_conversion.dart
|
View
|
|
2 chunks |
+6 lines, -3 lines |
0 comments
|
Download
|
|
M |
sdk/lib/convert/converter.dart
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
sdk/lib/convert/html_escape.dart
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
|
M |
sdk/lib/convert/json.dart
|
View
|
|
4 chunks |
+6 lines, -8 lines |
0 comments
|
Download
|
|
M |
sdk/lib/convert/latin1.dart
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
|
M |
sdk/lib/convert/line_splitter.dart
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
|
M |
sdk/lib/convert/string_conversion.dart
|
View
|
|
3 chunks |
+7 lines, -8 lines |
0 comments
|
Download
|
|
M |
sdk/lib/convert/utf.dart
|
View
|
|
2 chunks |
+2 lines, -4 lines |
0 comments
|
Download
|
|
M |
sdk/lib/core/core.dart
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
sdk/lib/core/corelib_sources.gypi
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
A |
sdk/lib/core/sink.dart
|
View
|
1
|
1 chunk |
+31 lines, -0 lines |
0 comments
|
Download
|
|
M |
sdk/lib/io/data_transformer.dart
|
View
|
|
2 chunks |
+5 lines, -9 lines |
0 comments
|
Download
|
|
M |
sdk/lib/io/string_transformer.dart
|
View
|
|
4 chunks |
+4 lines, -6 lines |
0 comments
|
Download
|
Total messages: 4 (0 generated)
|