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

Side by Side Diff: lib/runtime/dart/convert.js

Issue 1122133003: fixes #157, renaming local library identifiers if needed. (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: new approach Created 5 years, 7 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 unified diff | Download patch
OLDNEW
1 var convert; 1 var convert = dart.defineLibrary(convert, {});
2 (function(exports) { 2 var core = dart.lazyImport(core);
3 var async = dart.import(async);
4 var typed_data = dart.import(typed_data);
5 var _internal = dart.lazyImport(_internal);
6 var collection = dart.lazyImport(collection);
7 (function(exports, core, async, typed_data, _internal, collection) {
3 'use strict'; 8 'use strict';
4 let ASCII = dart.const(new AsciiCodec()); 9 let ASCII = dart.const(new AsciiCodec());
5 let _ASCII_MASK = 127; 10 let _ASCII_MASK = 127;
6 let _allowInvalid = Symbol('_allowInvalid'); 11 let _allowInvalid = Symbol('_allowInvalid');
7 let Codec$ = dart.generic(function(S, T) { 12 let Codec$ = dart.generic(function(S, T) {
8 class Codec extends core.Object { 13 class Codec extends core.Object {
9 Codec() { 14 Codec() {
10 } 15 }
11 encode(input) { 16 encode(input) {
12 dart.as(input, S); 17 dart.as(input, S);
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 fuse(other) { 89 fuse(other) {
85 dart.as(other, Converter$(T, dart.dynamic)); 90 dart.as(other, Converter$(T, dart.dynamic));
86 return new (_FusedConverter$(S, T, dart.dynamic))(this, other); 91 return new (_FusedConverter$(S, T, dart.dynamic))(this, other);
87 } 92 }
88 startChunkedConversion(sink) { 93 startChunkedConversion(sink) {
89 dart.as(sink, core.Sink$(T)); 94 dart.as(sink, core.Sink$(T));
90 throw new core.UnsupportedError(`This converter does not support chunked conversions: ${this}`); 95 throw new core.UnsupportedError(`This converter does not support chunked conversions: ${this}`);
91 } 96 }
92 bind(source) { 97 bind(source) {
93 dart.as(source, async.Stream$(S)); 98 dart.as(source, async.Stream$(S));
94 return new async.Stream$(T).eventTransformed(source, (sink => new _Conve rterStreamEventSink(this, sink)).bind(this)); 99 return new (async.Stream$(T)).eventTransformed(source, (sink => new _Con verterStreamEventSink(this, sink)).bind(this));
95 } 100 }
96 } 101 }
97 Converter[dart.implements] = () => [async.StreamTransformer$(S, T)]; 102 Converter[dart.implements] = () => [async.StreamTransformer$(S, T)];
98 return Converter; 103 return Converter;
99 }); 104 });
100 let Converter = Converter$(); 105 let Converter = Converter$();
101 class _UnicodeSubsetEncoder extends Converter$(core.String, core.List$(core.in t)) { 106 class _UnicodeSubsetEncoder extends Converter$(core.String, core.List$(core.in t)) {
102 _UnicodeSubsetEncoder(subsetMask) { 107 _UnicodeSubsetEncoder(subsetMask) {
103 this[_subsetMask] = subsetMask; 108 this[_subsetMask] = subsetMask;
104 super.Converter(); 109 super.Converter();
(...skipping 2317 matching lines...) Expand 10 before | Expand all | Expand 10 after
2422 exports.Latin1Decoder = Latin1Decoder; 2427 exports.Latin1Decoder = Latin1Decoder;
2423 exports.LineSplitter = LineSplitter; 2428 exports.LineSplitter = LineSplitter;
2424 exports.StringConversionSink = StringConversionSink; 2429 exports.StringConversionSink = StringConversionSink;
2425 exports.ClosableStringSink = ClosableStringSink; 2430 exports.ClosableStringSink = ClosableStringSink;
2426 exports.UNICODE_REPLACEMENT_CHARACTER_RUNE = UNICODE_REPLACEMENT_CHARACTER_RUN E; 2431 exports.UNICODE_REPLACEMENT_CHARACTER_RUNE = UNICODE_REPLACEMENT_CHARACTER_RUN E;
2427 exports.UNICODE_BOM_CHARACTER_RUNE = UNICODE_BOM_CHARACTER_RUNE; 2432 exports.UNICODE_BOM_CHARACTER_RUNE = UNICODE_BOM_CHARACTER_RUNE;
2428 exports.UTF8 = UTF8; 2433 exports.UTF8 = UTF8;
2429 exports.Utf8Codec = Utf8Codec; 2434 exports.Utf8Codec = Utf8Codec;
2430 exports.Utf8Encoder = Utf8Encoder; 2435 exports.Utf8Encoder = Utf8Encoder;
2431 exports.Utf8Decoder = Utf8Decoder; 2436 exports.Utf8Decoder = Utf8Decoder;
2432 })(convert || (convert = {})); 2437 })(convert, core, async, typed_data, _internal, collection);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698