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

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

Issue 1150623004: Fix names in named parameter lists (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: 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
« no previous file with comments | « lib/runtime/dart/convert.js ('k') | lib/runtime/dart/isolate.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 var core = dart.defineLibrary(core, {}); 1 var core = dart.defineLibrary(core, {});
2 var _js_helper = dart.lazyImport(_js_helper); 2 var _js_helper = dart.lazyImport(_js_helper);
3 var _internal = dart.lazyImport(_internal); 3 var _internal = dart.lazyImport(_internal);
4 var collection = dart.lazyImport(collection); 4 var collection = dart.lazyImport(collection);
5 var _interceptors = dart.lazyImport(_interceptors); 5 var _interceptors = dart.lazyImport(_interceptors);
6 var math = dart.lazyImport(math); 6 var math = dart.lazyImport(math);
7 var convert = dart.lazyImport(convert); 7 var convert = dart.lazyImport(convert);
8 (function(exports, _js_helper, _internal, collection, _interceptors, math, conve rt) { 8 (function(exports, _js_helper, _internal, collection, _interceptors, math, conve rt) {
9 'use strict'; 9 'use strict';
10 class Object { 10 class Object {
(...skipping 29 matching lines...) Expand all
40 noSuchMethod: [Object, [Invocation]] 40 noSuchMethod: [Object, [Invocation]]
41 }) 41 })
42 }); 42 });
43 class JsName extends Object { 43 class JsName extends Object {
44 JsName(opts) { 44 JsName(opts) {
45 let name = opts && 'name' in opts ? opts.name : null; 45 let name = opts && 'name' in opts ? opts.name : null;
46 this.name = name; 46 this.name = name;
47 } 47 }
48 } 48 }
49 dart.setSignature(JsName, { 49 dart.setSignature(JsName, {
50 constructors: () => ({JsName: [JsName, [], {am: String}]}) 50 constructors: () => ({JsName: [JsName, [], {name: String}]})
51 }); 51 });
52 class JsPeerInterface extends Object { 52 class JsPeerInterface extends Object {
53 JsPeerInterface(opts) { 53 JsPeerInterface(opts) {
54 let name = opts && 'name' in opts ? opts.name : null; 54 let name = opts && 'name' in opts ? opts.name : null;
55 this.name = name; 55 this.name = name;
56 } 56 }
57 } 57 }
58 dart.setSignature(JsPeerInterface, { 58 dart.setSignature(JsPeerInterface, {
59 constructors: () => ({JsPeerInterface: [JsPeerInterface, [], {am: String}]}) 59 constructors: () => ({JsPeerInterface: [JsPeerInterface, [], {name: String}] })
60 }); 60 });
61 class SupportJsExtensionMethod extends Object { 61 class SupportJsExtensionMethod extends Object {
62 SupportJsExtensionMethod() { 62 SupportJsExtensionMethod() {
63 } 63 }
64 } 64 }
65 dart.setSignature(SupportJsExtensionMethod, { 65 dart.setSignature(SupportJsExtensionMethod, {
66 constructors: () => ({SupportJsExtensionMethod: [SupportJsExtensionMethod, [ ]]}) 66 constructors: () => ({SupportJsExtensionMethod: [SupportJsExtensionMethod, [ ]]})
67 }); 67 });
68 class Deprecated extends Object { 68 class Deprecated extends Object {
69 Deprecated(expires) { 69 Deprecated(expires) {
(...skipping 27 matching lines...) Expand all
97 fromEnvironment(name, opts) { 97 fromEnvironment(name, opts) {
98 let defaultValue = opts && 'defaultValue' in opts ? opts.defaultValue : fa lse; 98 let defaultValue = opts && 'defaultValue' in opts ? opts.defaultValue : fa lse;
99 throw new UnsupportedError('bool.fromEnvironment can only be used as a con st constructor'); 99 throw new UnsupportedError('bool.fromEnvironment can only be used as a con st constructor');
100 } 100 }
101 toString() { 101 toString() {
102 return this ? "true" : "false"; 102 return this ? "true" : "false";
103 } 103 }
104 } 104 }
105 dart.defineNamedConstructor(bool, 'fromEnvironment'); 105 dart.defineNamedConstructor(bool, 'fromEnvironment');
106 dart.setSignature(bool, { 106 dart.setSignature(bool, {
107 constructors: () => ({fromEnvironment: [bool, [String], {efaultValu: bool}]} ) 107 constructors: () => ({fromEnvironment: [bool, [String], {defaultValue: bool} ]})
108 }); 108 });
109 let Comparator$ = dart.generic(function(T) { 109 let Comparator$ = dart.generic(function(T) {
110 let Comparator = dart.typedef('Comparator', () => dart.functionType(int, [T, T])); 110 let Comparator = dart.typedef('Comparator', () => dart.functionType(int, [T, T]));
111 return Comparator; 111 return Comparator;
112 }); 112 });
113 let Comparator = Comparator$(); 113 let Comparator = Comparator$();
114 let Comparable$ = dart.generic(function(T) { 114 let Comparable$ = dart.generic(function(T) {
115 class Comparable extends Object { 115 class Comparable extends Object {
116 static compare(a, b) { 116 static compare(a, b) {
117 return a.compareTo(b); 117 return a.compareTo(b);
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 dart.defineNamedConstructor(DateTime, 'utc'); 372 dart.defineNamedConstructor(DateTime, 'utc');
373 dart.defineNamedConstructor(DateTime, 'now'); 373 dart.defineNamedConstructor(DateTime, 'now');
374 dart.defineNamedConstructor(DateTime, 'fromMillisecondsSinceEpoch'); 374 dart.defineNamedConstructor(DateTime, 'fromMillisecondsSinceEpoch');
375 dart.defineNamedConstructor(DateTime, '_internal'); 375 dart.defineNamedConstructor(DateTime, '_internal');
376 dart.defineNamedConstructor(DateTime, '_now'); 376 dart.defineNamedConstructor(DateTime, '_now');
377 dart.setSignature(DateTime, { 377 dart.setSignature(DateTime, {
378 constructors: () => ({ 378 constructors: () => ({
379 DateTime: [DateTime, [int], [int, int, int, int, int, int]], 379 DateTime: [DateTime, [int], [int, int, int, int, int, int]],
380 utc: [DateTime, [int], [int, int, int, int, int, int]], 380 utc: [DateTime, [int], [int, int, int, int, int, int]],
381 now: [DateTime, []], 381 now: [DateTime, []],
382 fromMillisecondsSinceEpoch: [DateTime, [int], {sUt: bool}], 382 fromMillisecondsSinceEpoch: [DateTime, [int], {isUtc: bool}],
383 _internal: [DateTime, [int, int, int, int, int, int, int, bool]], 383 _internal: [DateTime, [int, int, int, int, int, int, int, bool]],
384 _now: [DateTime, []] 384 _now: [DateTime, []]
385 }), 385 }),
386 methods: () => ({ 386 methods: () => ({
387 isBefore: [bool, [DateTime]], 387 isBefore: [bool, [DateTime]],
388 isAfter: [bool, [DateTime]], 388 isAfter: [bool, [DateTime]],
389 isAtSameMomentAs: [bool, [DateTime]], 389 isAtSameMomentAs: [bool, [DateTime]],
390 compareTo: [int, [DateTime]], 390 compareTo: [int, [DateTime]],
391 toLocal: [DateTime, []], 391 toLocal: [DateTime, []],
392 toUtc: [DateTime, []], 392 toUtc: [DateTime, []],
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
583 return new Duration._microseconds(this[_duration].abs()); 583 return new Duration._microseconds(this[_duration].abs());
584 } 584 }
585 ['unary-']() { 585 ['unary-']() {
586 return new Duration._microseconds(-dart.notNull(this[_duration])); 586 return new Duration._microseconds(-dart.notNull(this[_duration]));
587 } 587 }
588 } 588 }
589 Duration[dart.implements] = () => [Comparable$(Duration)]; 589 Duration[dart.implements] = () => [Comparable$(Duration)];
590 dart.defineNamedConstructor(Duration, '_microseconds'); 590 dart.defineNamedConstructor(Duration, '_microseconds');
591 dart.setSignature(Duration, { 591 dart.setSignature(Duration, {
592 constructors: () => ({ 592 constructors: () => ({
593 Duration: [Duration, [], {ay: int, our: int, inute: int, econd: int, illis econd: int, icrosecond: int}], 593 Duration: [Duration, [], {days: int, hours: int, minutes: int, seconds: in t, milliseconds: int, microseconds: int}],
594 _microseconds: [Duration, [int]] 594 _microseconds: [Duration, [int]]
595 }), 595 }),
596 methods: () => ({ 596 methods: () => ({
597 '+': [Duration, [Duration]], 597 '+': [Duration, [Duration]],
598 '-': [Duration, [Duration]], 598 '-': [Duration, [Duration]],
599 '*': [Duration, [num]], 599 '*': [Duration, [num]],
600 '~/': [Duration, [int]], 600 '~/': [Duration, [int]],
601 '<': [bool, [Duration]], 601 '<': [bool, [Duration]],
602 '>': [bool, [Duration]], 602 '>': [bool, [Duration]],
603 '<=': [bool, [Duration]], 603 '<=': [bool, [Duration]],
(...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after
1265 throw new UnsupportedError('int.fromEnvironment can only be used as a cons t constructor'); 1265 throw new UnsupportedError('int.fromEnvironment can only be used as a cons t constructor');
1266 } 1266 }
1267 static parse(source, opts) { 1267 static parse(source, opts) {
1268 let radix = opts && 'radix' in opts ? opts.radix : null; 1268 let radix = opts && 'radix' in opts ? opts.radix : null;
1269 let onError = opts && 'onError' in opts ? opts.onError : null; 1269 let onError = opts && 'onError' in opts ? opts.onError : null;
1270 return _js_helper.Primitives.parseInt(source, radix, onError); 1270 return _js_helper.Primitives.parseInt(source, radix, onError);
1271 } 1271 }
1272 } 1272 }
1273 dart.defineNamedConstructor(int, 'fromEnvironment'); 1273 dart.defineNamedConstructor(int, 'fromEnvironment');
1274 dart.setSignature(int, { 1274 dart.setSignature(int, {
1275 constructors: () => ({fromEnvironment: [int, [String], {efaultValu: int}]}), 1275 constructors: () => ({fromEnvironment: [int, [String], {defaultValue: int}]} ),
1276 statics: () => ({parse: [int, [String], {adi: int, nErro: dart.functionType( int, [String])}]}), 1276 statics: () => ({parse: [int, [String], {radix: int, onError: dart.functionT ype(int, [String])}]}),
1277 names: ['parse'] 1277 names: ['parse']
1278 }); 1278 });
1279 class Invocation extends Object { 1279 class Invocation extends Object {
1280 get isAccessor() { 1280 get isAccessor() {
1281 return dart.notNull(this.isGetter) || dart.notNull(this.isSetter); 1281 return dart.notNull(this.isGetter) || dart.notNull(this.isSetter);
1282 } 1282 }
1283 } 1283 }
1284 let $iterator = dart.JsSymbol('$iterator'); 1284 let $iterator = dart.JsSymbol('$iterator');
1285 let $join = dart.JsSymbol('$join'); 1285 let $join = dart.JsSymbol('$join');
1286 let Iterable$ = dart.generic(function(E) { 1286 let Iterable$ = dart.generic(function(E) {
(...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after
1840 } 1840 }
1841 dart.setBaseClass(List, dart.global.Array); 1841 dart.setBaseClass(List, dart.global.Array);
1842 List[dart.implements] = () => [Iterable$(E), _internal.EfficientLength]; 1842 List[dart.implements] = () => [Iterable$(E), _internal.EfficientLength];
1843 dart.defineNamedConstructor(List, 'filled'); 1843 dart.defineNamedConstructor(List, 'filled');
1844 dart.defineNamedConstructor(List, 'from'); 1844 dart.defineNamedConstructor(List, 'from');
1845 dart.defineNamedConstructor(List, 'generate'); 1845 dart.defineNamedConstructor(List, 'generate');
1846 dart.setSignature(List, { 1846 dart.setSignature(List, {
1847 constructors: () => ({ 1847 constructors: () => ({
1848 List: [List$(E), [], [int]], 1848 List: [List$(E), [], [int]],
1849 filled: [List$(E), [int, E]], 1849 filled: [List$(E), [int, E]],
1850 from: [List$(E), [Iterable], {rowabl: bool}], 1850 from: [List$(E), [Iterable], {growable: bool}],
1851 generate: [List$(E), [int, dart.functionType(E, [int])], {rowabl: bool}] 1851 generate: [List$(E), [int, dart.functionType(E, [int])], {growable: bool }]
1852 }), 1852 }),
1853 methods: () => ({ 1853 methods: () => ({
1854 [$checkMutable]: [Object, [Object]], 1854 [$checkMutable]: [Object, [Object]],
1855 [$checkGrowable]: [Object, [Object]], 1855 [$checkGrowable]: [Object, [Object]],
1856 [$where]: [Iterable$(E), [dart.functionType(bool, [E])]], 1856 [$where]: [Iterable$(E), [dart.functionType(bool, [E])]],
1857 [$expand]: [Iterable, [dart.functionType(Iterable, [E])]], 1857 [$expand]: [Iterable, [dart.functionType(Iterable, [E])]],
1858 [$forEach]: [dart.void, [dart.functionType(dart.void, [E])]], 1858 [$forEach]: [dart.void, [dart.functionType(dart.void, [E])]],
1859 [$map]: [Iterable, [dart.functionType(Object, [E])]], 1859 [$map]: [Iterable, [dart.functionType(Object, [E])]],
1860 [$join]: [String, [], [String]], 1860 [$join]: [String, [], [String]],
1861 [$take]: [Iterable$(E), [int]], 1861 [$take]: [Iterable$(E), [int]],
1862 [$takeWhile]: [Iterable$(E), [dart.functionType(bool, [E])]], 1862 [$takeWhile]: [Iterable$(E), [dart.functionType(bool, [E])]],
1863 [$skip]: [Iterable$(E), [int]], 1863 [$skip]: [Iterable$(E), [int]],
1864 [$skipWhile]: [Iterable$(E), [dart.functionType(bool, [E])]], 1864 [$skipWhile]: [Iterable$(E), [dart.functionType(bool, [E])]],
1865 [$reduce]: [E, [dart.functionType(E, [E, E])]], 1865 [$reduce]: [E, [dart.functionType(E, [E, E])]],
1866 [$fold]: [Object, [Object, dart.functionType(Object, [dart.bottom, E])]] , 1866 [$fold]: [Object, [Object, dart.functionType(Object, [dart.bottom, E])]] ,
1867 [$firstWhere]: [E, [dart.functionType(bool, [E])], {rEls: dart.functionT ype(E, [])}], 1867 [$firstWhere]: [E, [dart.functionType(bool, [E])], {orElse: dart.functio nType(E, [])}],
1868 [$lastWhere]: [E, [dart.functionType(bool, [E])], {rEls: dart.functionTy pe(E, [])}], 1868 [$lastWhere]: [E, [dart.functionType(bool, [E])], {orElse: dart.function Type(E, [])}],
1869 [$singleWhere]: [E, [dart.functionType(bool, [E])]], 1869 [$singleWhere]: [E, [dart.functionType(bool, [E])]],
1870 [$elementAt]: [E, [int]], 1870 [$elementAt]: [E, [int]],
1871 [$any]: [bool, [dart.functionType(bool, [E])]], 1871 [$any]: [bool, [dart.functionType(bool, [E])]],
1872 [$every]: [bool, [dart.functionType(bool, [E])]], 1872 [$every]: [bool, [dart.functionType(bool, [E])]],
1873 [$contains]: [bool, [Object]], 1873 [$contains]: [bool, [Object]],
1874 [$toList]: [List$(E), [], {rowabl: bool}], 1874 [$toList]: [List$(E), [], {growable: bool}],
1875 [$toSet]: [exports.Set$(E), []], 1875 [$toSet]: [exports.Set$(E), []],
1876 [$get]: [E, [int]], 1876 [$get]: [E, [int]],
1877 [$set]: [dart.void, [int, E]], 1877 [$set]: [dart.void, [int, E]],
1878 [$add]: [dart.void, [E]], 1878 [$add]: [dart.void, [E]],
1879 [$addAll]: [dart.void, [Iterable$(E)]], 1879 [$addAll]: [dart.void, [Iterable$(E)]],
1880 [$sort]: [dart.void, [], [dart.functionType(int, [E, E])]], 1880 [$sort]: [dart.void, [], [dart.functionType(int, [E, E])]],
1881 [$shuffle]: [dart.void, [], [math.Random]], 1881 [$shuffle]: [dart.void, [], [math.Random]],
1882 [$indexOf]: [int, [E], [int]], 1882 [$indexOf]: [int, [E], [int]],
1883 [$lastIndexOf]: [int, [E], [int]], 1883 [$lastIndexOf]: [int, [E], [int]],
1884 [$clear]: [dart.void, []], 1884 [$clear]: [dart.void, []],
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
1923 } 1923 }
1924 dart.defineNamedConstructor(Map, 'from'); 1924 dart.defineNamedConstructor(Map, 'from');
1925 dart.defineNamedConstructor(Map, 'identity'); 1925 dart.defineNamedConstructor(Map, 'identity');
1926 dart.defineNamedConstructor(Map, 'fromIterable'); 1926 dart.defineNamedConstructor(Map, 'fromIterable');
1927 dart.defineNamedConstructor(Map, 'fromIterables'); 1927 dart.defineNamedConstructor(Map, 'fromIterables');
1928 dart.setSignature(Map, { 1928 dart.setSignature(Map, {
1929 constructors: () => ({ 1929 constructors: () => ({
1930 Map: [Map$(K, V), []], 1930 Map: [Map$(K, V), []],
1931 from: [Map$(K, V), [Map$()]], 1931 from: [Map$(K, V), [Map$()]],
1932 identity: [Map$(K, V), []], 1932 identity: [Map$(K, V), []],
1933 fromIterable: [Map$(K, V), [Iterable], {e: dart.functionType(K, [dart.bo ttom]), alu: dart.functionType(V, [dart.bottom])}], 1933 fromIterable: [Map$(K, V), [Iterable], {key: dart.functionType(K, [dart. bottom]), value: dart.functionType(V, [dart.bottom])}],
1934 fromIterables: [Map$(K, V), [Iterable$(K), Iterable$(V)]] 1934 fromIterables: [Map$(K, V), [Iterable$(K), Iterable$(V)]]
1935 }) 1935 })
1936 }); 1936 });
1937 return Map; 1937 return Map;
1938 }); 1938 });
1939 let Map = Map$(); 1939 let Map = Map$();
1940 class Null extends Object { 1940 class Null extends Object {
1941 _uninstantiable() { 1941 _uninstantiable() {
1942 throw new UnsupportedError('class Null cannot be instantiated'); 1942 throw new UnsupportedError('class Null cannot be instantiated');
1943 } 1943 }
(...skipping 19 matching lines...) Expand all
1963 class Match extends Object {} 1963 class Match extends Object {}
1964 class RegExp extends Object { 1964 class RegExp extends Object {
1965 RegExp(source, opts) { 1965 RegExp(source, opts) {
1966 let multiLine = opts && 'multiLine' in opts ? opts.multiLine : false; 1966 let multiLine = opts && 'multiLine' in opts ? opts.multiLine : false;
1967 let caseSensitive = opts && 'caseSensitive' in opts ? opts.caseSensitive : true; 1967 let caseSensitive = opts && 'caseSensitive' in opts ? opts.caseSensitive : true;
1968 return new _js_helper.JSSyntaxRegExp(source, {multiLine: multiLine, caseSe nsitive: caseSensitive}); 1968 return new _js_helper.JSSyntaxRegExp(source, {multiLine: multiLine, caseSe nsitive: caseSensitive});
1969 } 1969 }
1970 } 1970 }
1971 RegExp[dart.implements] = () => [Pattern]; 1971 RegExp[dart.implements] = () => [Pattern];
1972 dart.setSignature(RegExp, { 1972 dart.setSignature(RegExp, {
1973 constructors: () => ({RegExp: [RegExp, [String], {ultiLin: bool, aseSensitiv : bool}]}) 1973 constructors: () => ({RegExp: [RegExp, [String], {multiLine: bool, caseSensi tive: bool}]})
1974 }); 1974 });
1975 let Set$ = dart.generic(function(E) { 1975 let Set$ = dart.generic(function(E) {
1976 class Set extends collection.IterableBase$(E) { 1976 class Set extends collection.IterableBase$(E) {
1977 Set() { 1977 Set() {
1978 return new (collection.LinkedHashSet$(E))(); 1978 return new (collection.LinkedHashSet$(E))();
1979 } 1979 }
1980 identity() { 1980 identity() {
1981 return new (collection.LinkedHashSet$(E)).identity(); 1981 return new (collection.LinkedHashSet$(E)).identity();
1982 } 1982 }
1983 from(elements) { 1983 from(elements) {
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
2135 } 2135 }
2136 } 2136 }
2137 String[dart.implements] = () => [Comparable$(String), Pattern]; 2137 String[dart.implements] = () => [Comparable$(String), Pattern];
2138 dart.defineNamedConstructor(String, 'fromCharCodes'); 2138 dart.defineNamedConstructor(String, 'fromCharCodes');
2139 dart.defineNamedConstructor(String, 'fromCharCode'); 2139 dart.defineNamedConstructor(String, 'fromCharCode');
2140 dart.defineNamedConstructor(String, 'fromEnvironment'); 2140 dart.defineNamedConstructor(String, 'fromEnvironment');
2141 dart.setSignature(String, { 2141 dart.setSignature(String, {
2142 constructors: () => ({ 2142 constructors: () => ({
2143 fromCharCodes: [String, [Iterable$(int)], [int, int]], 2143 fromCharCodes: [String, [Iterable$(int)], [int, int]],
2144 fromCharCode: [String, [int]], 2144 fromCharCode: [String, [int]],
2145 fromEnvironment: [String, [String], {efaultValu: String}] 2145 fromEnvironment: [String, [String], {defaultValue: String}]
2146 }), 2146 }),
2147 statics: () => ({_stringFromIterable: [String, [Iterable$(int), int, int]]}) , 2147 statics: () => ({_stringFromIterable: [String, [Iterable$(int), int, int]]}) ,
2148 names: ['_stringFromIterable'] 2148 names: ['_stringFromIterable']
2149 }); 2149 });
2150 dart.defineLazyClass(exports, { 2150 dart.defineLazyClass(exports, {
2151 get Runes() { 2151 get Runes() {
2152 class Runes extends collection.IterableBase$(int) { 2152 class Runes extends collection.IterableBase$(int) {
2153 Runes(string) { 2153 Runes(string) {
2154 this.string = string; 2154 this.string = string;
2155 super.IterableBase(); 2155 super.IterableBase();
(...skipping 1482 matching lines...) Expand 10 before | Expand all | Expand 10 after
3638 return dart.notNull(codeUnit) >= dart.notNull(Uri._LOWER_CASE_A) && dart.n otNull(codeUnit) <= dart.notNull(Uri._LOWER_CASE_Z) || dart.notNull(codeUnit) >= dart.notNull(Uri._UPPER_CASE_A) && dart.notNull(codeUnit) <= dart.notNull(Uri._ UPPER_CASE_Z); 3638 return dart.notNull(codeUnit) >= dart.notNull(Uri._LOWER_CASE_A) && dart.n otNull(codeUnit) <= dart.notNull(Uri._LOWER_CASE_Z) || dart.notNull(codeUnit) >= dart.notNull(Uri._UPPER_CASE_A) && dart.notNull(codeUnit) <= dart.notNull(Uri._ UPPER_CASE_Z);
3639 } 3639 }
3640 } 3640 }
3641 dart.defineNamedConstructor(Uri, '_internal'); 3641 dart.defineNamedConstructor(Uri, '_internal');
3642 dart.defineNamedConstructor(Uri, 'http'); 3642 dart.defineNamedConstructor(Uri, 'http');
3643 dart.defineNamedConstructor(Uri, 'https'); 3643 dart.defineNamedConstructor(Uri, 'https');
3644 dart.defineNamedConstructor(Uri, 'file'); 3644 dart.defineNamedConstructor(Uri, 'file');
3645 dart.setSignature(Uri, { 3645 dart.setSignature(Uri, {
3646 constructors: () => ({ 3646 constructors: () => ({
3647 _internal: [Uri, [String, String, String, num, String, String, String]], 3647 _internal: [Uri, [String, String, String, num, String, String, String]],
3648 Uri: [Uri, [], {chem: String, serInf: String, os: String, or: int, at: Str ing, athSegment: Iterable$(String), uer: String, ueryParameter: Map$(String, Str ing), ragmen: String}], 3648 Uri: [Uri, [], {scheme: String, userInfo: String, host: String, port: int, path: String, pathSegments: Iterable$(String), query: String, queryParameters: Map$(String, String), fragment: String}],
3649 http: [Uri, [String, String], [Map$(String, String)]], 3649 http: [Uri, [String, String], [Map$(String, String)]],
3650 https: [Uri, [String, String], [Map$(String, String)]], 3650 https: [Uri, [String, String], [Map$(String, String)]],
3651 file: [Uri, [String], {indow: bool}] 3651 file: [Uri, [String], {windows: bool}]
3652 }), 3652 }),
3653 methods: () => ({ 3653 methods: () => ({
3654 replace: [Uri, [], {chem: String, serInf: String, os: String, or: int, at: String, athSegment: Iterable$(String), uer: String, ueryParameter: Map$(String, String), ragmen: String}], 3654 replace: [Uri, [], {scheme: String, userInfo: String, host: String, port: int, path: String, pathSegments: Iterable$(String), query: String, queryParamete rs: Map$(String, String), fragment: String}],
3655 [_merge]: [String, [String, String]], 3655 [_merge]: [String, [String, String]],
3656 [_hasDotSegments]: [bool, [String]], 3656 [_hasDotSegments]: [bool, [String]],
3657 [_removeDotSegments]: [String, [String]], 3657 [_removeDotSegments]: [String, [String]],
3658 resolve: [Uri, [String]], 3658 resolve: [Uri, [String]],
3659 resolveUri: [Uri, [Uri]], 3659 resolveUri: [Uri, [Uri]],
3660 toFilePath: [String, [], {indow: bool}], 3660 toFilePath: [String, [], {windows: bool}],
3661 [_toFilePath]: [String, []], 3661 [_toFilePath]: [String, []],
3662 [_toWindowsFilePath]: [String, []], 3662 [_toWindowsFilePath]: [String, []],
3663 [_writeAuthority]: [dart.void, [StringSink]] 3663 [_writeAuthority]: [dart.void, [StringSink]]
3664 }), 3664 }),
3665 statics: () => ({ 3665 statics: () => ({
3666 _defaultPort: [int, [String]], 3666 _defaultPort: [int, [String]],
3667 parse: [Uri, [String]], 3667 parse: [Uri, [String]],
3668 _fail: [dart.void, [String, int, String]], 3668 _fail: [dart.void, [String, int, String]],
3669 _makeHttpUri: [Uri, [String, String, String, Map$(String, String)]], 3669 _makeHttpUri: [Uri, [String, String, String, Map$(String, String)]],
3670 _checkNonWindowsPathReservedCharacters: [Object, [List$(String), bool]], 3670 _checkNonWindowsPathReservedCharacters: [Object, [List$(String), bool]],
(...skipping 14 matching lines...) Expand all
3685 _isHexDigit: [bool, [int]], 3685 _isHexDigit: [bool, [int]],
3686 _hexValue: [int, [int]], 3686 _hexValue: [int, [int]],
3687 _normalizeEscape: [String, [String, int, bool]], 3687 _normalizeEscape: [String, [String, int, bool]],
3688 _isUnreservedChar: [bool, [int]], 3688 _isUnreservedChar: [bool, [int]],
3689 _escapeChar: [String, [Object]], 3689 _escapeChar: [String, [Object]],
3690 _normalize: [String, [String, int, int, List$(int)]], 3690 _normalize: [String, [String, int, int, List$(int)]],
3691 _isSchemeCharacter: [bool, [int]], 3691 _isSchemeCharacter: [bool, [int]],
3692 _isGeneralDelimiter: [bool, [int]], 3692 _isGeneralDelimiter: [bool, [int]],
3693 _addIfNonEmpty: [dart.void, [StringBuffer, String, String, String]], 3693 _addIfNonEmpty: [dart.void, [StringBuffer, String, String, String]],
3694 encodeComponent: [String, [String]], 3694 encodeComponent: [String, [String]],
3695 encodeQueryComponent: [String, [String], {ncodin: convert.Encoding}], 3695 encodeQueryComponent: [String, [String], {encoding: convert.Encoding}],
3696 decodeComponent: [String, [String]], 3696 decodeComponent: [String, [String]],
3697 decodeQueryComponent: [String, [String], {ncodin: convert.Encoding}], 3697 decodeQueryComponent: [String, [String], {encoding: convert.Encoding}],
3698 encodeFull: [String, [String]], 3698 encodeFull: [String, [String]],
3699 decodeFull: [String, [String]], 3699 decodeFull: [String, [String]],
3700 splitQueryString: [Map$(String, String), [String], {ncodin: convert.Encodi ng}], 3700 splitQueryString: [Map$(String, String), [String], {encoding: convert.Enco ding}],
3701 parseIPv4Address: [List$(int), [String]], 3701 parseIPv4Address: [List$(int), [String]],
3702 parseIPv6Address: [List$(int), [String], [int, int]], 3702 parseIPv6Address: [List$(int), [String], [int, int]],
3703 _uriEncode: [String, [List$(int), String], {ncodin: convert.Encoding, pace ToPlu: bool}], 3703 _uriEncode: [String, [List$(int), String], {encoding: convert.Encoding, sp aceToPlus: bool}],
3704 _hexCharPairToByte: [int, [String, int]], 3704 _hexCharPairToByte: [int, [String, int]],
3705 _uriDecode: [String, [String], {lusToSpac: bool, ncodin: convert.Encoding} ], 3705 _uriDecode: [String, [String], {plusToSpace: bool, encoding: convert.Encod ing}],
3706 _isAlphabeticCharacter: [bool, [int]] 3706 _isAlphabeticCharacter: [bool, [int]]
3707 }), 3707 }),
3708 names: ['_defaultPort', 'parse', '_fail', '_makeHttpUri', '_checkNonWindowsP athReservedCharacters', '_checkWindowsPathReservedCharacters', '_checkWindowsDri veLetter', '_makeFileUri', '_makeWindowsFileUrl', '_makePort', '_makeHost', '_is RegNameChar', '_normalizeRegName', '_makeScheme', '_makeUserInfo', '_makePath', '_makeQuery', '_makeFragment', '_stringOrNullLength', '_isHexDigit', '_hexValue' , '_normalizeEscape', '_isUnreservedChar', '_escapeChar', '_normalize', '_isSche meCharacter', '_isGeneralDelimiter', '_addIfNonEmpty', 'encodeComponent', 'encod eQueryComponent', 'decodeComponent', 'decodeQueryComponent', 'encodeFull', 'deco deFull', 'splitQueryString', 'parseIPv4Address', 'parseIPv6Address', '_uriEncode ', '_hexCharPairToByte', '_uriDecode', '_isAlphabeticCharacter'] 3708 names: ['_defaultPort', 'parse', '_fail', '_makeHttpUri', '_checkNonWindowsP athReservedCharacters', '_checkWindowsPathReservedCharacters', '_checkWindowsDri veLetter', '_makeFileUri', '_makeWindowsFileUrl', '_makePort', '_makeHost', '_is RegNameChar', '_normalizeRegName', '_makeScheme', '_makeUserInfo', '_makePath', '_makeQuery', '_makeFragment', '_stringOrNullLength', '_isHexDigit', '_hexValue' , '_normalizeEscape', '_isUnreservedChar', '_escapeChar', '_normalize', '_isSche meCharacter', '_isGeneralDelimiter', '_addIfNonEmpty', 'encodeComponent', 'encod eQueryComponent', 'decodeComponent', 'decodeQueryComponent', 'encodeFull', 'deco deFull', 'splitQueryString', 'parseIPv4Address', 'parseIPv6Address', '_uriEncode ', '_hexCharPairToByte', '_uriDecode', '_isAlphabeticCharacter']
3709 }); 3709 });
3710 Uri._SPACE = 32; 3710 Uri._SPACE = 32;
3711 Uri._DOUBLE_QUOTE = 34; 3711 Uri._DOUBLE_QUOTE = 34;
3712 Uri._NUMBER_SIGN = 35; 3712 Uri._NUMBER_SIGN = 35;
3713 Uri._PERCENT = 37; 3713 Uri._PERCENT = 37;
3714 Uri._ASTERISK = 42; 3714 Uri._ASTERISK = 42;
3715 Uri._PLUS = 43; 3715 Uri._PLUS = 43;
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
3896 exports.Stopwatch = Stopwatch; 3896 exports.Stopwatch = Stopwatch;
3897 exports.String = String; 3897 exports.String = String;
3898 exports.RuneIterator = RuneIterator; 3898 exports.RuneIterator = RuneIterator;
3899 exports.StringBuffer = StringBuffer; 3899 exports.StringBuffer = StringBuffer;
3900 exports.StringSink = StringSink; 3900 exports.StringSink = StringSink;
3901 exports.Symbol = Symbol; 3901 exports.Symbol = Symbol;
3902 exports.Type = Type; 3902 exports.Type = Type;
3903 exports.Uri = Uri; 3903 exports.Uri = Uri;
3904 exports.SupportJsExtensionMethods = SupportJsExtensionMethods; 3904 exports.SupportJsExtensionMethods = SupportJsExtensionMethods;
3905 })(core, _js_helper, _internal, collection, _interceptors, math, convert); 3905 })(core, _js_helper, _internal, collection, _interceptors, math, convert);
OLDNEW
« no previous file with comments | « lib/runtime/dart/convert.js ('k') | lib/runtime/dart/isolate.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698