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

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

Issue 1317933005: Some preliminary support for quasi-generics (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Reformat Created 5 years, 3 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
« no previous file with comments | « no previous file | lib/runtime/dart/isolate.js » ('j') | lib/src/checker/resolver.dart » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 dart_library.library('dart/convert', null, /* Imports */[ 1 dart_library.library('dart/convert', null, /* Imports */[
2 "dart_runtime/dart", 2 "dart_runtime/dart",
3 'dart/core', 3 'dart/core',
4 'dart/async', 4 'dart/async',
5 'dart/typed_data', 5 'dart/typed_data',
6 'dart/_internal', 6 'dart/_internal',
7 'dart/collection' 7 'dart/collection'
8 ], /* Lazy imports */[ 8 ], /* Lazy imports */[
9 ], function(exports, dart, core, async, typed_data, _internal, collection) { 9 ], function(exports, dart, core, async, typed_data, _internal, collection) {
10 'use strict'; 10 'use strict';
(...skipping 27 matching lines...) Expand all
38 }) 38 })
39 }); 39 });
40 return Codec; 40 return Codec;
41 }); 41 });
42 let Codec = Codec$(); 42 let Codec = Codec$();
43 class Encoding extends Codec$(core.String, core.List$(core.int)) { 43 class Encoding extends Codec$(core.String, core.List$(core.int)) {
44 Encoding() { 44 Encoding() {
45 super.Codec(); 45 super.Codec();
46 } 46 }
47 decodeStream(byteStream) { 47 decodeStream(byteStream) {
48 return dart.as(byteStream.transform(this.decoder).fold(new core.StringBuff er(), dart.fn((buffer, string) => ((() => { 48 return byteStream.transform(this.decoder).fold(new core.StringBuffer(), da rt.fn((buffer, string) => ((() => {
49 dart.dsend(buffer, 'write', string); 49 dart.dsend(buffer, 'write', string);
50 return buffer; 50 return buffer;
51 })()))).then(dart.fn(buffer => dart.toString(buffer), core.String, [dart.d ynamic])), async.Future$(core.String)); 51 })()))).then(dart.fn(buffer => dart.toString(buffer), core.String, [dart.d ynamic]));
52 } 52 }
53 static getByName(name) { 53 static getByName(name) {
54 if (name == null) 54 if (name == null)
55 return null; 55 return null;
56 name = name[dartx.toLowerCase](); 56 name = name[dartx.toLowerCase]();
57 return Encoding._nameToEncoding.get(name); 57 return Encoding._nameToEncoding.get(name);
58 } 58 }
59 } 59 }
60 dart.setSignature(Encoding, { 60 dart.setSignature(Encoding, {
61 constructors: () => ({Encoding: [Encoding, []]}), 61 constructors: () => ({Encoding: [Encoding, []]}),
(...skipping 2833 matching lines...) Expand 10 before | Expand all | Expand 10 after
2895 exports.LineSplitter = LineSplitter; 2895 exports.LineSplitter = LineSplitter;
2896 exports.StringConversionSink = StringConversionSink; 2896 exports.StringConversionSink = StringConversionSink;
2897 exports.ClosableStringSink = ClosableStringSink; 2897 exports.ClosableStringSink = ClosableStringSink;
2898 exports.UNICODE_REPLACEMENT_CHARACTER_RUNE = UNICODE_REPLACEMENT_CHARACTER_RUN E; 2898 exports.UNICODE_REPLACEMENT_CHARACTER_RUNE = UNICODE_REPLACEMENT_CHARACTER_RUN E;
2899 exports.UNICODE_BOM_CHARACTER_RUNE = UNICODE_BOM_CHARACTER_RUNE; 2899 exports.UNICODE_BOM_CHARACTER_RUNE = UNICODE_BOM_CHARACTER_RUNE;
2900 exports.Utf8Codec = Utf8Codec; 2900 exports.Utf8Codec = Utf8Codec;
2901 exports.UTF8 = UTF8; 2901 exports.UTF8 = UTF8;
2902 exports.Utf8Encoder = Utf8Encoder; 2902 exports.Utf8Encoder = Utf8Encoder;
2903 exports.Utf8Decoder = Utf8Decoder; 2903 exports.Utf8Decoder = Utf8Decoder;
2904 }); 2904 });
OLDNEW
« no previous file with comments | « no previous file | lib/runtime/dart/isolate.js » ('j') | lib/src/checker/resolver.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698