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

Side by Side Diff: test/dart_codegen/expect/convert/encoding.dart

Issue 967933005: rename ddc -> dev_compiler, fixes #84 (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 9 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 part of dart.convert; 1 part of dart.convert;
2 abstract class Encoding extends Codec<String, List<int>> {const Encoding(); 2 abstract class Encoding extends Codec<String, List<int>> {const Encoding();
3 Future<String> decodeStream(Stream<List<int>> byteStream) { 3 Future<String> decodeStream(Stream<List<int>> byteStream) {
4 return ((__x5) => DDC$RT.cast(__x5, DDC$RT.type((DDC$async$.Future<dynamic> _) { 4 return ((__x5) => DEVC$RT.cast(__x5, DEVC$RT.type((DDC$async$.Future<dynamic> _) {
5 } 5 }
6 ), DDC$RT.type((DDC$async$.Future<String> _) { 6 ), DEVC$RT.type((DDC$async$.Future<String> _) {
7 } 7 }
8 ), "CastDynamic", """line 14, column 12 of dart:convert/encoding.dart: """, __ x5 is DDC$async$.Future<String>, false))(byteStream.transform(DDC$RT.cast(decode r, DDC$RT.type((Converter<List<int>, String> _) { 8 ), "CastDynamic", """line 14, column 12 of dart:convert/encoding.dart: """, __ x5 is DDC$async$.Future<String>, false))(byteStream.transform(DEVC$RT.cast(decod er, DEVC$RT.type((Converter<List<int>, String> _) {
9 } 9 }
10 ), DDC$RT.type((DDC$async$.StreamTransformer<List<int>, dynamic> _) { 10 ), DEVC$RT.type((DDC$async$.StreamTransformer<List<int>, dynamic> _) {
11 } 11 }
12 ), "CastDynamic", """line 15, column 18 of dart:convert/encoding.dart: """, de coder is DDC$async$.StreamTransformer<List<int>, dynamic>, false)).fold(new Stri ngBuffer(), (buffer, string) => buffer..write(string)).then((buffer) => buffer.t oString())); 12 ), "CastDynamic", """line 15, column 18 of dart:convert/encoding.dart: """, de coder is DDC$async$.StreamTransformer<List<int>, dynamic>, false)).fold(new Stri ngBuffer(), (buffer, string) => buffer..write(string)).then((buffer) => buffer.t oString()));
13 } 13 }
14 String get name; 14 String get name;
15 static Map<String, Encoding> _nameToEncoding = <String, Encoding> { 15 static Map<String, Encoding> _nameToEncoding = <String, Encoding> {
16 "iso_8859-1:1987" : LATIN1, "iso-ir-100" : LATIN1, "iso_8859-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-a scii" : ASCII, "us" : ASCII, "ibm367" : ASCII, "cp367" : ASCII, "csascii" : ASCI I, "ascii" : ASCII, "csutf8" : UTF8, "utf-8" : UTF8} 16 "iso_8859-1:1987" : LATIN1, "iso-ir-100" : LATIN1, "iso_8859-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-a scii" : ASCII, "us" : ASCII, "ibm367" : ASCII, "cp367" : ASCII, "csascii" : ASCI I, "ascii" : ASCII, "csutf8" : UTF8, "utf-8" : UTF8}
17 ; 17 ;
18 static Encoding getByName(String name) { 18 static Encoding getByName(String name) {
19 if (name == null) return null; 19 if (name == null) return null;
20 name = name.toLowerCase(); 20 name = name.toLowerCase();
21 return _nameToEncoding[name]; 21 return _nameToEncoding[name];
22 } 22 }
23 } 23 }
OLDNEW
« no previous file with comments | « test/dart_codegen/expect/convert/converter.dart ('k') | test/dart_codegen/expect/convert/html_escape.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698