OLD | NEW |
1 var core; | 1 var core; |
2 (function(exports) { | 2 (function(exports) { |
3 'use strict'; | 3 'use strict'; |
4 class Object { | 4 class Object { |
5 constructor() { | 5 constructor() { |
6 let name = this.constructor.name; | 6 let name = this.constructor.name; |
7 let init = this[name]; | 7 let init = this[name]; |
8 let result = void 0; | 8 let result = void 0; |
9 if (init) | 9 if (init) |
10 result = init.apply(this, arguments); | 10 result = init.apply(this, arguments); |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 this.expires = expires; | 47 this.expires = expires; |
48 } | 48 } |
49 toString() { | 49 toString() { |
50 return `Deprecated feature. Will be removed ${this.expires}`; | 50 return `Deprecated feature. Will be removed ${this.expires}`; |
51 } | 51 } |
52 } | 52 } |
53 class _Override extends Object { | 53 class _Override extends Object { |
54 _Override() { | 54 _Override() { |
55 } | 55 } |
56 } | 56 } |
57 let deprecated = new Deprecated("next release"); | 57 let deprecated = dart.const(new Deprecated("next release")); |
58 let override = new _Override(); | 58 let override = dart.const(new _Override()); |
59 class _Proxy extends Object { | 59 class _Proxy extends Object { |
60 _Proxy() { | 60 _Proxy() { |
61 } | 61 } |
62 } | 62 } |
63 let proxy = new _Proxy(); | 63 let proxy = dart.const(new _Proxy()); |
64 class bool extends Object { | 64 class bool extends Object { |
65 fromEnvironment(name, opts) { | 65 fromEnvironment(name, opts) { |
66 let defaultValue = opts && 'defaultValue' in opts ? opts.defaultValue : fa
lse; | 66 let defaultValue = opts && 'defaultValue' in opts ? opts.defaultValue : fa
lse; |
67 throw new UnsupportedError('bool.fromEnvironment can only be used as a con
st constructor'); | 67 throw new UnsupportedError('bool.fromEnvironment can only be used as a con
st constructor'); |
68 } | 68 } |
69 toString() { | 69 toString() { |
70 return this ? "true" : "false"; | 70 return this ? "true" : "false"; |
71 } | 71 } |
72 } | 72 } |
73 dart.defineNamedConstructor(bool, 'fromEnvironment'); | 73 dart.defineNamedConstructor(bool, 'fromEnvironment'); |
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
542 Duration.MICROSECONDS_PER_SECOND = dart.notNull(Duration.MICROSECONDS_PER_MILL
ISECOND) * dart.notNull(Duration.MILLISECONDS_PER_SECOND); | 542 Duration.MICROSECONDS_PER_SECOND = dart.notNull(Duration.MICROSECONDS_PER_MILL
ISECOND) * dart.notNull(Duration.MILLISECONDS_PER_SECOND); |
543 Duration.MICROSECONDS_PER_MINUTE = dart.notNull(Duration.MICROSECONDS_PER_SECO
ND) * dart.notNull(Duration.SECONDS_PER_MINUTE); | 543 Duration.MICROSECONDS_PER_MINUTE = dart.notNull(Duration.MICROSECONDS_PER_SECO
ND) * dart.notNull(Duration.SECONDS_PER_MINUTE); |
544 Duration.MICROSECONDS_PER_HOUR = dart.notNull(Duration.MICROSECONDS_PER_MINUTE
) * dart.notNull(Duration.MINUTES_PER_HOUR); | 544 Duration.MICROSECONDS_PER_HOUR = dart.notNull(Duration.MICROSECONDS_PER_MINUTE
) * dart.notNull(Duration.MINUTES_PER_HOUR); |
545 Duration.MICROSECONDS_PER_DAY = dart.notNull(Duration.MICROSECONDS_PER_HOUR) *
dart.notNull(Duration.HOURS_PER_DAY); | 545 Duration.MICROSECONDS_PER_DAY = dart.notNull(Duration.MICROSECONDS_PER_HOUR) *
dart.notNull(Duration.HOURS_PER_DAY); |
546 Duration.MILLISECONDS_PER_MINUTE = dart.notNull(Duration.MILLISECONDS_PER_SECO
ND) * dart.notNull(Duration.SECONDS_PER_MINUTE); | 546 Duration.MILLISECONDS_PER_MINUTE = dart.notNull(Duration.MILLISECONDS_PER_SECO
ND) * dart.notNull(Duration.SECONDS_PER_MINUTE); |
547 Duration.MILLISECONDS_PER_HOUR = dart.notNull(Duration.MILLISECONDS_PER_MINUTE
) * dart.notNull(Duration.MINUTES_PER_HOUR); | 547 Duration.MILLISECONDS_PER_HOUR = dart.notNull(Duration.MILLISECONDS_PER_MINUTE
) * dart.notNull(Duration.MINUTES_PER_HOUR); |
548 Duration.MILLISECONDS_PER_DAY = dart.notNull(Duration.MILLISECONDS_PER_HOUR) *
dart.notNull(Duration.HOURS_PER_DAY); | 548 Duration.MILLISECONDS_PER_DAY = dart.notNull(Duration.MILLISECONDS_PER_HOUR) *
dart.notNull(Duration.HOURS_PER_DAY); |
549 Duration.SECONDS_PER_HOUR = dart.notNull(Duration.SECONDS_PER_MINUTE) * dart.n
otNull(Duration.MINUTES_PER_HOUR); | 549 Duration.SECONDS_PER_HOUR = dart.notNull(Duration.SECONDS_PER_MINUTE) * dart.n
otNull(Duration.MINUTES_PER_HOUR); |
550 Duration.SECONDS_PER_DAY = dart.notNull(Duration.SECONDS_PER_HOUR) * dart.notN
ull(Duration.HOURS_PER_DAY); | 550 Duration.SECONDS_PER_DAY = dart.notNull(Duration.SECONDS_PER_HOUR) * dart.notN
ull(Duration.HOURS_PER_DAY); |
551 Duration.MINUTES_PER_DAY = dart.notNull(Duration.MINUTES_PER_HOUR) * dart.notN
ull(Duration.HOURS_PER_DAY); | 551 Duration.MINUTES_PER_DAY = dart.notNull(Duration.MINUTES_PER_HOUR) * dart.notN
ull(Duration.HOURS_PER_DAY); |
552 Duration.ZERO = new Duration({seconds: 0}); | 552 Duration.ZERO = dart.const(new Duration({seconds: 0})); |
553 let _stringToSafeString = dart.JsSymbol('_stringToSafeString'); | 553 let _stringToSafeString = dart.JsSymbol('_stringToSafeString'); |
554 let _objectToString = dart.JsSymbol('_objectToString'); | 554 let _objectToString = dart.JsSymbol('_objectToString'); |
555 class Error extends Object { | 555 class Error extends Object { |
556 Error() { | 556 Error() { |
557 } | 557 } |
558 static safeToString(object) { | 558 static safeToString(object) { |
559 if (dart.is(object, num) || typeof object == 'boolean' || dart.notNull(nul
l == object)) { | 559 if (dart.is(object, num) || typeof object == 'boolean' || dart.notNull(nul
l == object)) { |
560 return object.toString(); | 560 return object.toString(); |
561 } | 561 } |
562 if (typeof object == 'string') { | 562 if (typeof object == 'string') { |
(...skipping 1984 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2547 if (fragment != null) { | 2547 if (fragment != null) { |
2548 fragment = Uri[_makeFragment](fragment, 0, fragment.length); | 2548 fragment = Uri[_makeFragment](fragment, 0, fragment.length); |
2549 } else if (this.hasFragment) { | 2549 } else if (this.hasFragment) { |
2550 fragment = this.fragment; | 2550 fragment = this.fragment; |
2551 } | 2551 } |
2552 return new Uri[_internal$](scheme, userInfo, host, port, path, query, frag
ment); | 2552 return new Uri[_internal$](scheme, userInfo, host, port, path, query, frag
ment); |
2553 } | 2553 } |
2554 get pathSegments() { | 2554 get pathSegments() { |
2555 if (this[_pathSegments] == null) { | 2555 if (this[_pathSegments] == null) { |
2556 let pathToSplit = !dart.notNull(this.path.isEmpty) && this.path.codeUnit
At(0) == Uri[_SLASH] ? this.path.substring(1) : this.path; | 2556 let pathToSplit = !dart.notNull(this.path.isEmpty) && this.path.codeUnit
At(0) == Uri[_SLASH] ? this.path.substring(1) : this.path; |
2557 this[_pathSegments] = new collection.UnmodifiableListView(pathToSplit ==
"" ? /* Unimplemented const */dart.setType([], List$(String)) : pathToSplit.spl
it("/")[$map](dart.bind(Uri, 'decodeComponent'))[$toList]({growable: false})); | 2557 this[_pathSegments] = new collection.UnmodifiableListView(pathToSplit ==
"" ? dart.const(dart.setType([], List$(String))) : pathToSplit.split("/")[$map]
(dart.bind(Uri, 'decodeComponent'))[$toList]({growable: false})); |
2558 } | 2558 } |
2559 return this[_pathSegments]; | 2559 return this[_pathSegments]; |
2560 } | 2560 } |
2561 get queryParameters() { | 2561 get queryParameters() { |
2562 if (this[_queryParameters] == null) { | 2562 if (this[_queryParameters] == null) { |
2563 this[_queryParameters] = new (collection.UnmodifiableMapView$(String, St
ring))(Uri.splitQueryString(this.query)); | 2563 this[_queryParameters] = new (collection.UnmodifiableMapView$(String, St
ring))(Uri.splitQueryString(this.query)); |
2564 } | 2564 } |
2565 return this[_queryParameters]; | 2565 return this[_queryParameters]; |
2566 } | 2566 } |
2567 static [_makePort](port, scheme) { | 2567 static [_makePort](port, scheme) { |
(...skipping 797 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3365 Uri._UPPER_CASE_A = 65; | 3365 Uri._UPPER_CASE_A = 65; |
3366 Uri._UPPER_CASE_F = 70; | 3366 Uri._UPPER_CASE_F = 70; |
3367 Uri._UPPER_CASE_Z = 90; | 3367 Uri._UPPER_CASE_Z = 90; |
3368 Uri._LEFT_BRACKET = 91; | 3368 Uri._LEFT_BRACKET = 91; |
3369 Uri._BACKSLASH = 92; | 3369 Uri._BACKSLASH = 92; |
3370 Uri._RIGHT_BRACKET = 93; | 3370 Uri._RIGHT_BRACKET = 93; |
3371 Uri._LOWER_CASE_A = 97; | 3371 Uri._LOWER_CASE_A = 97; |
3372 Uri._LOWER_CASE_F = 102; | 3372 Uri._LOWER_CASE_F = 102; |
3373 Uri._LOWER_CASE_Z = 122; | 3373 Uri._LOWER_CASE_Z = 122; |
3374 Uri._BAR = 124; | 3374 Uri._BAR = 124; |
3375 Uri._unreservedTable = /* Unimplemented const */[0, 0, 24576, 1023, 65534, 348
15, 65534, 18431]; | 3375 Uri._unreservedTable = dart.const([0, 0, 24576, 1023, 65534, 34815, 65534, 184
31]); |
3376 Uri._unreserved2396Table = /* Unimplemented const */[0, 0, 26498, 1023, 65534,
34815, 65534, 18431]; | 3376 Uri._unreserved2396Table = dart.const([0, 0, 26498, 1023, 65534, 34815, 65534,
18431]); |
3377 Uri._encodeFullTable = /* Unimplemented const */[0, 0, 65498, 45055, 65535, 34
815, 65534, 18431]; | 3377 Uri._encodeFullTable = dart.const([0, 0, 65498, 45055, 65535, 34815, 65534, 18
431]); |
3378 Uri._schemeTable = /* Unimplemented const */[0, 0, 26624, 1023, 65534, 2047, 6
5534, 2047]; | 3378 Uri._schemeTable = dart.const([0, 0, 26624, 1023, 65534, 2047, 65534, 2047]); |
3379 Uri._schemeLowerTable = /* Unimplemented const */[0, 0, 26624, 1023, 0, 0, 655
34, 2047]; | 3379 Uri._schemeLowerTable = dart.const([0, 0, 26624, 1023, 0, 0, 65534, 2047]); |
3380 Uri._subDelimitersTable = /* Unimplemented const */[0, 0, 32722, 11263, 65534,
34815, 65534, 18431]; | 3380 Uri._subDelimitersTable = dart.const([0, 0, 32722, 11263, 65534, 34815, 65534,
18431]); |
3381 Uri._genDelimitersTable = /* Unimplemented const */[0, 0, 32776, 33792, 1, 102
40, 0, 0]; | 3381 Uri._genDelimitersTable = dart.const([0, 0, 32776, 33792, 1, 10240, 0, 0]); |
3382 Uri._userinfoTable = /* Unimplemented const */[0, 0, 32722, 12287, 65534, 3481
5, 65534, 18431]; | 3382 Uri._userinfoTable = dart.const([0, 0, 32722, 12287, 65534, 34815, 65534, 1843
1]); |
3383 Uri._regNameTable = /* Unimplemented const */[0, 0, 32754, 11263, 65534, 34815
, 65534, 18431]; | 3383 Uri._regNameTable = dart.const([0, 0, 32754, 11263, 65534, 34815, 65534, 18431
]); |
3384 Uri._pathCharTable = /* Unimplemented const */[0, 0, 32722, 12287, 65535, 3481
5, 65534, 18431]; | 3384 Uri._pathCharTable = dart.const([0, 0, 32722, 12287, 65535, 34815, 65534, 1843
1]); |
3385 Uri._pathCharOrSlashTable = /* Unimplemented const */[0, 0, 65490, 12287, 6553
5, 34815, 65534, 18431]; | 3385 Uri._pathCharOrSlashTable = dart.const([0, 0, 65490, 12287, 65535, 34815, 6553
4, 18431]); |
3386 Uri._queryCharTable = /* Unimplemented const */[0, 0, 65490, 45055, 65535, 348
15, 65534, 18431]; | 3386 Uri._queryCharTable = dart.const([0, 0, 65490, 45055, 65535, 34815, 65534, 184
31]); |
3387 // Function _symbolToString: (Symbol) → String | 3387 // Function _symbolToString: (Symbol) → String |
3388 function _symbolToString(symbol) { | 3388 function _symbolToString(symbol) { |
3389 return _internal.Symbol.getName(dart.as(symbol, _internal.Symbol)); | 3389 return _internal.Symbol.getName(dart.as(symbol, _internal.Symbol)); |
3390 } | 3390 } |
3391 // Function _symbolMapToStringMap: (Map<Symbol, dynamic>) → dynamic | 3391 // Function _symbolMapToStringMap: (Map<Symbol, dynamic>) → dynamic |
3392 function _symbolMapToStringMap(map) { | 3392 function _symbolMapToStringMap(map) { |
3393 if (map == null) | 3393 if (map == null) |
3394 return null; | 3394 return null; |
3395 let result = new (Map$(String, dart.dynamic))(); | 3395 let result = new (Map$(String, dart.dynamic))(); |
3396 map.forEach((key, value) => { | 3396 map.forEach((key, value) => { |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3525 exports.StackTrace = StackTrace; | 3525 exports.StackTrace = StackTrace; |
3526 exports.Stopwatch = Stopwatch; | 3526 exports.Stopwatch = Stopwatch; |
3527 exports.String = String; | 3527 exports.String = String; |
3528 exports.RuneIterator = RuneIterator; | 3528 exports.RuneIterator = RuneIterator; |
3529 exports.StringBuffer = StringBuffer; | 3529 exports.StringBuffer = StringBuffer; |
3530 exports.StringSink = StringSink; | 3530 exports.StringSink = StringSink; |
3531 exports.Symbol = Symbol; | 3531 exports.Symbol = Symbol; |
3532 exports.Type = Type; | 3532 exports.Type = Type; |
3533 exports.Uri = Uri; | 3533 exports.Uri = Uri; |
3534 })(core || (core = {})); | 3534 })(core || (core = {})); |
OLD | NEW |