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

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

Issue 1182653002: Refactor runtime into libraries, better type reps (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Address comments 2 Created 5 years, 6 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 | « lib/runtime/dart/collection.js ('k') | lib/runtime/dart/core.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 dart.library('dart/convert', null, /* Imports */[ 1 dart_library.library('dart/convert', null, /* Imports */[
2 "dart_runtime/dart",
2 'dart/core', 3 'dart/core',
3 'dart/async', 4 'dart/async',
4 'dart/typed_data', 5 'dart/typed_data',
5 'dart/_internal', 6 'dart/_internal',
6 'dart/collection' 7 'dart/collection'
7 ], /* Lazy imports */[ 8 ], /* Lazy imports */[
8 ], function(exports, core, async, typed_data, _internal, collection) { 9 ], function(exports, dart, core, async, typed_data, _internal, collection) {
9 'use strict'; 10 'use strict';
11 let dartx = dart.dartx;
10 let Codec$ = dart.generic(function(S, T) { 12 let Codec$ = dart.generic(function(S, T) {
11 class Codec extends core.Object { 13 class Codec extends core.Object {
12 Codec() { 14 Codec() {
13 } 15 }
14 encode(input) { 16 encode(input) {
15 dart.as(input, S); 17 dart.as(input, S);
16 return this.encoder.convert(input); 18 return this.encoder.convert(input);
17 } 19 }
18 decode(encoded) { 20 decode(encoded) {
19 dart.as(encoded, T); 21 dart.as(encoded, T);
(...skipping 2872 matching lines...) Expand 10 before | Expand all | Expand 10 after
2892 exports.LineSplitter = LineSplitter; 2894 exports.LineSplitter = LineSplitter;
2893 exports.StringConversionSink = StringConversionSink; 2895 exports.StringConversionSink = StringConversionSink;
2894 exports.ClosableStringSink = ClosableStringSink; 2896 exports.ClosableStringSink = ClosableStringSink;
2895 exports.UNICODE_REPLACEMENT_CHARACTER_RUNE = UNICODE_REPLACEMENT_CHARACTER_RUN E; 2897 exports.UNICODE_REPLACEMENT_CHARACTER_RUNE = UNICODE_REPLACEMENT_CHARACTER_RUN E;
2896 exports.UNICODE_BOM_CHARACTER_RUNE = UNICODE_BOM_CHARACTER_RUNE; 2898 exports.UNICODE_BOM_CHARACTER_RUNE = UNICODE_BOM_CHARACTER_RUNE;
2897 exports.Utf8Codec = Utf8Codec; 2899 exports.Utf8Codec = Utf8Codec;
2898 exports.UTF8 = UTF8; 2900 exports.UTF8 = UTF8;
2899 exports.Utf8Encoder = Utf8Encoder; 2901 exports.Utf8Encoder = Utf8Encoder;
2900 exports.Utf8Decoder = Utf8Decoder; 2902 exports.Utf8Decoder = Utf8Decoder;
2901 }); 2903 });
OLDNEW
« no previous file with comments | « lib/runtime/dart/collection.js ('k') | lib/runtime/dart/core.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698