| OLD | NEW |
| 1 var convert; | 1 var convert; |
| 2 (function(exports) { | 2 (function(exports) { |
| 3 'use strict'; | 3 'use strict'; |
| 4 let ASCII = dart.const(new AsciiCodec()); | 4 let ASCII = dart.const(new AsciiCodec()); |
| 5 let _ASCII_MASK = 127; | 5 let _ASCII_MASK = 127; |
| 6 let _allowInvalid = Symbol('_allowInvalid'); | 6 let _allowInvalid = Symbol('_allowInvalid'); |
| 7 let Codec$ = dart.generic(function(S, T) { | 7 let Codec$ = dart.generic(function(S, T) { |
| 8 class Codec extends core.Object { | 8 class Codec extends core.Object { |
| 9 Codec() { | 9 Codec() { |
| 10 } | 10 } |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 withCallback(callback) { | 254 withCallback(callback) { |
| 255 return new _ByteCallbackSink(callback); | 255 return new _ByteCallbackSink(callback); |
| 256 } | 256 } |
| 257 from(sink) { | 257 from(sink) { |
| 258 return new _ByteAdapterSink(sink); | 258 return new _ByteAdapterSink(sink); |
| 259 } | 259 } |
| 260 } | 260 } |
| 261 dart.defineNamedConstructor(ByteConversionSink, 'withCallback'); | 261 dart.defineNamedConstructor(ByteConversionSink, 'withCallback'); |
| 262 dart.defineNamedConstructor(ByteConversionSink, 'from'); | 262 dart.defineNamedConstructor(ByteConversionSink, 'from'); |
| 263 class ByteConversionSinkBase extends ByteConversionSink { | 263 class ByteConversionSinkBase extends ByteConversionSink { |
| 264 ByteConversionSinkBase() { |
| 265 super.ByteConversionSink(); |
| 266 } |
| 264 addSlice(chunk, start, end, isLast) { | 267 addSlice(chunk, start, end, isLast) { |
| 265 this.add(chunk[core.$sublist](start, end)); | 268 this.add(chunk[core.$sublist](start, end)); |
| 266 if (isLast) | 269 if (isLast) |
| 267 this.close(); | 270 this.close(); |
| 268 } | 271 } |
| 269 } | 272 } |
| 270 class _ErrorHandlingAsciiDecoderSink extends ByteConversionSinkBase { | 273 class _ErrorHandlingAsciiDecoderSink extends ByteConversionSinkBase { |
| 271 _ErrorHandlingAsciiDecoderSink(utf8Sink) { | 274 _ErrorHandlingAsciiDecoderSink(utf8Sink) { |
| 272 this[_utf8Sink] = utf8Sink; | 275 this[_utf8Sink] = utf8Sink; |
| 273 } | 276 } |
| (...skipping 2143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2417 exports.LineSplitter = LineSplitter; | 2420 exports.LineSplitter = LineSplitter; |
| 2418 exports.StringConversionSink = StringConversionSink; | 2421 exports.StringConversionSink = StringConversionSink; |
| 2419 exports.ClosableStringSink = ClosableStringSink; | 2422 exports.ClosableStringSink = ClosableStringSink; |
| 2420 exports.UNICODE_REPLACEMENT_CHARACTER_RUNE = UNICODE_REPLACEMENT_CHARACTER_RUN
E; | 2423 exports.UNICODE_REPLACEMENT_CHARACTER_RUNE = UNICODE_REPLACEMENT_CHARACTER_RUN
E; |
| 2421 exports.UNICODE_BOM_CHARACTER_RUNE = UNICODE_BOM_CHARACTER_RUNE; | 2424 exports.UNICODE_BOM_CHARACTER_RUNE = UNICODE_BOM_CHARACTER_RUNE; |
| 2422 exports.UTF8 = UTF8; | 2425 exports.UTF8 = UTF8; |
| 2423 exports.Utf8Codec = Utf8Codec; | 2426 exports.Utf8Codec = Utf8Codec; |
| 2424 exports.Utf8Encoder = Utf8Encoder; | 2427 exports.Utf8Encoder = Utf8Encoder; |
| 2425 exports.Utf8Decoder = Utf8Decoder; | 2428 exports.Utf8Decoder = Utf8Decoder; |
| 2426 })(convert || (convert = {})); | 2429 })(convert || (convert = {})); |
| OLD | NEW |