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

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

Issue 1611753002: fixes #415, correct type for map literals (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: add TODO Created 4 years, 10 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/_runtime.js ('k') | lib/runtime/dart/html.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.library('dart/convert', null, /* Imports */[ 1 dart_library.library('dart/convert', null, /* Imports */[
2 'dart/_runtime', 2 'dart/_runtime',
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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 } 57 }
58 } 58 }
59 dart.setSignature(Encoding, { 59 dart.setSignature(Encoding, {
60 constructors: () => ({Encoding: [Encoding, []]}), 60 constructors: () => ({Encoding: [Encoding, []]}),
61 methods: () => ({decodeStream: [async.Future$(core.String), [async.Stream$(c ore.List$(core.int))]]}), 61 methods: () => ({decodeStream: [async.Future$(core.String), [async.Stream$(c ore.List$(core.int))]]}),
62 statics: () => ({getByName: [Encoding, [core.String]]}), 62 statics: () => ({getByName: [Encoding, [core.String]]}),
63 names: ['getByName'] 63 names: ['getByName']
64 }); 64 });
65 dart.defineLazyProperties(Encoding, { 65 dart.defineLazyProperties(Encoding, {
66 get _nameToEncoding() { 66 get _nameToEncoding() {
67 return dart.map({"iso_8859-1:1987": LATIN1, "iso-ir-100": LATIN1, "iso_885 9-1": LATIN1, "iso-8859-1": LATIN1, latin1: LATIN1, l1: LATIN1, ibm819: LATIN1, cp819: LATIN1, csisolatin1: LATIN1, "iso-ir-6": ASCII, "ansi_x3.4-1968": ASCII, "ansi_x3.4-1986": ASCII, "iso_646.irv:1991": ASCII, "iso646-us": ASCII, "us-asci i": ASCII, us: ASCII, ibm367: ASCII, cp367: ASCII, csascii: ASCII, ascii: ASCII, csutf8: UTF8, "utf-8": UTF8}); 67 return dart.map({"iso_8859-1:1987": LATIN1, "iso-ir-100": LATIN1, "iso_885 9-1": LATIN1, "iso-8859-1": LATIN1, latin1: LATIN1, l1: LATIN1, ibm819: LATIN1, cp819: LATIN1, csisolatin1: LATIN1, "iso-ir-6": ASCII, "ansi_x3.4-1968": ASCII, "ansi_x3.4-1986": ASCII, "iso_646.irv:1991": ASCII, "iso646-us": ASCII, "us-asci i": ASCII, us: ASCII, ibm367: ASCII, cp367: ASCII, csascii: ASCII, ascii: ASCII, csutf8: UTF8, "utf-8": UTF8}, core.String, Encoding);
68 }, 68 },
69 set _nameToEncoding(_) {} 69 set _nameToEncoding(_) {}
70 }); 70 });
71 const _allowInvalid = Symbol('_allowInvalid'); 71 const _allowInvalid = Symbol('_allowInvalid');
72 class AsciiCodec extends Encoding { 72 class AsciiCodec extends Encoding {
73 AsciiCodec(opts) { 73 AsciiCodec(opts) {
74 let allowInvalid = opts && 'allowInvalid' in opts ? opts.allowInvalid : fa lse; 74 let allowInvalid = opts && 'allowInvalid' in opts ? opts.allowInvalid : fa lse;
75 this[_allowInvalid] = allowInvalid; 75 this[_allowInvalid] = allowInvalid;
76 super.Encoding(); 76 super.Encoding();
77 } 77 }
(...skipping 2734 matching lines...) Expand 10 before | Expand all | Expand 10 after
2812 exports.LineSplitter = LineSplitter; 2812 exports.LineSplitter = LineSplitter;
2813 exports.StringConversionSink = StringConversionSink; 2813 exports.StringConversionSink = StringConversionSink;
2814 exports.ClosableStringSink = ClosableStringSink; 2814 exports.ClosableStringSink = ClosableStringSink;
2815 exports.UNICODE_REPLACEMENT_CHARACTER_RUNE = UNICODE_REPLACEMENT_CHARACTER_RUN E; 2815 exports.UNICODE_REPLACEMENT_CHARACTER_RUNE = UNICODE_REPLACEMENT_CHARACTER_RUN E;
2816 exports.UNICODE_BOM_CHARACTER_RUNE = UNICODE_BOM_CHARACTER_RUNE; 2816 exports.UNICODE_BOM_CHARACTER_RUNE = UNICODE_BOM_CHARACTER_RUNE;
2817 exports.Utf8Codec = Utf8Codec; 2817 exports.Utf8Codec = Utf8Codec;
2818 exports.UTF8 = UTF8; 2818 exports.UTF8 = UTF8;
2819 exports.Utf8Encoder = Utf8Encoder; 2819 exports.Utf8Encoder = Utf8Encoder;
2820 exports.Utf8Decoder = Utf8Decoder; 2820 exports.Utf8Decoder = Utf8Decoder;
2821 }); 2821 });
OLDNEW
« no previous file with comments | « lib/runtime/dart/_runtime.js ('k') | lib/runtime/dart/html.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698