| OLD | NEW |
| 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 convert = dart.lazyImport(convert); | 6 var convert = dart.lazyImport(convert); |
| 7 (function(exports, _js_helper, _internal, collection, _interceptors, convert) { | 7 (function(exports, _js_helper, _internal, collection, _interceptors, convert) { |
| 8 'use strict'; | 8 'use strict'; |
| 9 class Object { | 9 class Object { |
| 10 constructor() { | 10 constructor() { |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 } | 65 } |
| 66 dart.setSignature(_Proxy, { | 66 dart.setSignature(_Proxy, { |
| 67 constructors: () => ({_Proxy: [_Proxy, []]}) | 67 constructors: () => ({_Proxy: [_Proxy, []]}) |
| 68 }); | 68 }); |
| 69 let proxy = dart.const(new _Proxy()); | 69 let proxy = dart.const(new _Proxy()); |
| 70 class bool extends Object { | 70 class bool extends Object { |
| 71 static fromEnvironment(name, opts) { | 71 static fromEnvironment(name, opts) { |
| 72 let defaultValue = opts && 'defaultValue' in opts ? opts.defaultValue : fa
lse; | 72 let defaultValue = opts && 'defaultValue' in opts ? opts.defaultValue : fa
lse; |
| 73 throw new UnsupportedError('bool.fromEnvironment can only be used as a con
st constructor'); | 73 throw new UnsupportedError('bool.fromEnvironment can only be used as a con
st constructor'); |
| 74 } | 74 } |
| 75 toString() { | 75 [dart.extensionMember('toString')]() { |
| 76 return this ? "true" : "false"; | 76 return this ? "true" : "false"; |
| 77 } | 77 } |
| 78 } | 78 } |
| 79 dart.setSignature(bool, { | 79 dart.setSignature(bool, { |
| 80 constructors: () => ({fromEnvironment: [bool, [String], {defaultValue: bool}
]}) | 80 constructors: () => ({fromEnvironment: [bool, [String], {defaultValue: bool}
]}) |
| 81 }); | 81 }); |
| 82 let Comparator$ = dart.generic(function(T) { | 82 let Comparator$ = dart.generic(function(T) { |
| 83 let Comparator = dart.typedef('Comparator', () => dart.functionType(int, [T,
T])); | 83 let Comparator = dart.typedef('Comparator', () => dart.functionType(int, [T,
T])); |
| 84 return Comparator; | 84 return Comparator; |
| 85 }); | 85 }); |
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 return dart.as(_js_helper.Primitives.getSeconds(this), int); | 335 return dart.as(_js_helper.Primitives.getSeconds(this), int); |
| 336 } | 336 } |
| 337 get millisecond() { | 337 get millisecond() { |
| 338 return dart.as(_js_helper.Primitives.getMilliseconds(this), int); | 338 return dart.as(_js_helper.Primitives.getMilliseconds(this), int); |
| 339 } | 339 } |
| 340 get weekday() { | 340 get weekday() { |
| 341 return dart.as(_js_helper.Primitives.getWeekday(this), int); | 341 return dart.as(_js_helper.Primitives.getWeekday(this), int); |
| 342 } | 342 } |
| 343 } | 343 } |
| 344 DateTime[dart.implements] = () => [Comparable]; | 344 DateTime[dart.implements] = () => [Comparable]; |
| 345 dart.defineExtensionMembers(DateTime, ['compareTo']); | |
| 346 dart.defineNamedConstructor(DateTime, 'utc'); | 345 dart.defineNamedConstructor(DateTime, 'utc'); |
| 347 dart.defineNamedConstructor(DateTime, 'now'); | 346 dart.defineNamedConstructor(DateTime, 'now'); |
| 348 dart.defineNamedConstructor(DateTime, 'fromMillisecondsSinceEpoch'); | 347 dart.defineNamedConstructor(DateTime, 'fromMillisecondsSinceEpoch'); |
| 349 dart.defineNamedConstructor(DateTime, '_internal'); | 348 dart.defineNamedConstructor(DateTime, '_internal'); |
| 350 dart.defineNamedConstructor(DateTime, '_now'); | 349 dart.defineNamedConstructor(DateTime, '_now'); |
| 351 dart.setSignature(DateTime, { | 350 dart.setSignature(DateTime, { |
| 352 constructors: () => ({ | 351 constructors: () => ({ |
| 353 DateTime: [DateTime, [int], [int, int, int, int, int, int]], | 352 DateTime: [DateTime, [int], [int, int, int, int, int, int]], |
| 354 utc: [DateTime, [int], [int, int, int, int, int, int]], | 353 utc: [DateTime, [int], [int, int, int, int, int, int]], |
| 355 now: [DateTime, []], | 354 now: [DateTime, []], |
| (...skipping 16 matching lines...) Expand all Loading... |
| 372 statics: () => ({ | 371 statics: () => ({ |
| 373 parse: [DateTime, [String]], | 372 parse: [DateTime, [String]], |
| 374 _fourDigits: [String, [int]], | 373 _fourDigits: [String, [int]], |
| 375 _sixDigits: [String, [int]], | 374 _sixDigits: [String, [int]], |
| 376 _threeDigits: [String, [int]], | 375 _threeDigits: [String, [int]], |
| 377 _twoDigits: [String, [int]], | 376 _twoDigits: [String, [int]], |
| 378 _brokenDownDateToMillisecondsSinceEpoch: [int, [int, int, int, int, int, i
nt, int, bool]] | 377 _brokenDownDateToMillisecondsSinceEpoch: [int, [int, int, int, int, int, i
nt, int, bool]] |
| 379 }), | 378 }), |
| 380 names: ['parse', '_fourDigits', '_sixDigits', '_threeDigits', '_twoDigits',
'_brokenDownDateToMillisecondsSinceEpoch'] | 379 names: ['parse', '_fourDigits', '_sixDigits', '_threeDigits', '_twoDigits',
'_brokenDownDateToMillisecondsSinceEpoch'] |
| 381 }); | 380 }); |
| 381 dart.defineExtensionMembers(DateTime, ['compareTo']); |
| 382 DateTime.MONDAY = 1; | 382 DateTime.MONDAY = 1; |
| 383 DateTime.TUESDAY = 2; | 383 DateTime.TUESDAY = 2; |
| 384 DateTime.WEDNESDAY = 3; | 384 DateTime.WEDNESDAY = 3; |
| 385 DateTime.THURSDAY = 4; | 385 DateTime.THURSDAY = 4; |
| 386 DateTime.FRIDAY = 5; | 386 DateTime.FRIDAY = 5; |
| 387 DateTime.SATURDAY = 6; | 387 DateTime.SATURDAY = 6; |
| 388 DateTime.SUNDAY = 7; | 388 DateTime.SUNDAY = 7; |
| 389 DateTime.DAYS_PER_WEEK = 7; | 389 DateTime.DAYS_PER_WEEK = 7; |
| 390 DateTime.JANUARY = 1; | 390 DateTime.JANUARY = 1; |
| 391 DateTime.FEBRUARY = 2; | 391 DateTime.FEBRUARY = 2; |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 554 return dart.notNull(this[_duration]) < 0; | 554 return dart.notNull(this[_duration]) < 0; |
| 555 } | 555 } |
| 556 abs() { | 556 abs() { |
| 557 return new Duration._microseconds(this[_duration][dartx.abs]()); | 557 return new Duration._microseconds(this[_duration][dartx.abs]()); |
| 558 } | 558 } |
| 559 ['unary-']() { | 559 ['unary-']() { |
| 560 return new Duration._microseconds(-dart.notNull(this[_duration])); | 560 return new Duration._microseconds(-dart.notNull(this[_duration])); |
| 561 } | 561 } |
| 562 } | 562 } |
| 563 Duration[dart.implements] = () => [Comparable$(Duration)]; | 563 Duration[dart.implements] = () => [Comparable$(Duration)]; |
| 564 dart.defineExtensionMembers(Duration, ['compareTo']); | |
| 565 dart.defineNamedConstructor(Duration, '_microseconds'); | 564 dart.defineNamedConstructor(Duration, '_microseconds'); |
| 566 dart.setSignature(Duration, { | 565 dart.setSignature(Duration, { |
| 567 constructors: () => ({ | 566 constructors: () => ({ |
| 568 Duration: [Duration, [], {days: int, hours: int, minutes: int, seconds: in
t, milliseconds: int, microseconds: int}], | 567 Duration: [Duration, [], {days: int, hours: int, minutes: int, seconds: in
t, milliseconds: int, microseconds: int}], |
| 569 _microseconds: [Duration, [int]] | 568 _microseconds: [Duration, [int]] |
| 570 }), | 569 }), |
| 571 methods: () => ({ | 570 methods: () => ({ |
| 572 '+': [Duration, [Duration]], | 571 '+': [Duration, [Duration]], |
| 573 '-': [Duration, [Duration]], | 572 '-': [Duration, [Duration]], |
| 574 '*': [Duration, [num]], | 573 '*': [Duration, [num]], |
| 575 '~/': [Duration, [int]], | 574 '~/': [Duration, [int]], |
| 576 '<': [bool, [Duration]], | 575 '<': [bool, [Duration]], |
| 577 '>': [bool, [Duration]], | 576 '>': [bool, [Duration]], |
| 578 '<=': [bool, [Duration]], | 577 '<=': [bool, [Duration]], |
| 579 '>=': [bool, [Duration]], | 578 '>=': [bool, [Duration]], |
| 580 compareTo: [int, [Duration]], | 579 compareTo: [int, [Duration]], |
| 581 abs: [Duration, []], | 580 abs: [Duration, []], |
| 582 'unary-': [Duration, []] | 581 'unary-': [Duration, []] |
| 583 }) | 582 }) |
| 584 }); | 583 }); |
| 584 dart.defineExtensionMembers(Duration, ['compareTo']); |
| 585 Duration.MICROSECONDS_PER_MILLISECOND = 1000; | 585 Duration.MICROSECONDS_PER_MILLISECOND = 1000; |
| 586 Duration.MILLISECONDS_PER_SECOND = 1000; | 586 Duration.MILLISECONDS_PER_SECOND = 1000; |
| 587 Duration.SECONDS_PER_MINUTE = 60; | 587 Duration.SECONDS_PER_MINUTE = 60; |
| 588 Duration.MINUTES_PER_HOUR = 60; | 588 Duration.MINUTES_PER_HOUR = 60; |
| 589 Duration.HOURS_PER_DAY = 24; | 589 Duration.HOURS_PER_DAY = 24; |
| 590 Duration.MICROSECONDS_PER_SECOND = dart.notNull(Duration.MICROSECONDS_PER_MILL
ISECOND) * dart.notNull(Duration.MILLISECONDS_PER_SECOND); | 590 Duration.MICROSECONDS_PER_SECOND = dart.notNull(Duration.MICROSECONDS_PER_MILL
ISECOND) * dart.notNull(Duration.MILLISECONDS_PER_SECOND); |
| 591 Duration.MICROSECONDS_PER_MINUTE = dart.notNull(Duration.MICROSECONDS_PER_SECO
ND) * dart.notNull(Duration.SECONDS_PER_MINUTE); | 591 Duration.MICROSECONDS_PER_MINUTE = dart.notNull(Duration.MICROSECONDS_PER_SECO
ND) * dart.notNull(Duration.SECONDS_PER_MINUTE); |
| 592 Duration.MICROSECONDS_PER_HOUR = dart.notNull(Duration.MICROSECONDS_PER_MINUTE
) * dart.notNull(Duration.MINUTES_PER_HOUR); | 592 Duration.MICROSECONDS_PER_HOUR = dart.notNull(Duration.MICROSECONDS_PER_MINUTE
) * dart.notNull(Duration.MINUTES_PER_HOUR); |
| 593 Duration.MICROSECONDS_PER_DAY = dart.notNull(Duration.MICROSECONDS_PER_HOUR) *
dart.notNull(Duration.HOURS_PER_DAY); | 593 Duration.MICROSECONDS_PER_DAY = dart.notNull(Duration.MICROSECONDS_PER_HOUR) *
dart.notNull(Duration.HOURS_PER_DAY); |
| 594 Duration.MILLISECONDS_PER_MINUTE = dart.notNull(Duration.MILLISECONDS_PER_SECO
ND) * dart.notNull(Duration.SECONDS_PER_MINUTE); | 594 Duration.MILLISECONDS_PER_MINUTE = dart.notNull(Duration.MILLISECONDS_PER_SECO
ND) * dart.notNull(Duration.SECONDS_PER_MINUTE); |
| (...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1259 static generate(count, generator) { | 1259 static generate(count, generator) { |
| 1260 if (generator === void 0) | 1260 if (generator === void 0) |
| 1261 generator = null; | 1261 generator = null; |
| 1262 if (dart.notNull(count) <= 0) | 1262 if (dart.notNull(count) <= 0) |
| 1263 return new (_internal.EmptyIterable$(E))(); | 1263 return new (_internal.EmptyIterable$(E))(); |
| 1264 return new (exports._GeneratorIterable$(E))(count, generator); | 1264 return new (exports._GeneratorIterable$(E))(count, generator); |
| 1265 } | 1265 } |
| 1266 [dart.JsSymbol.iterator]() { | 1266 [dart.JsSymbol.iterator]() { |
| 1267 return new dart.JsIterator(this[dartx.iterator]); | 1267 return new dart.JsIterator(this[dartx.iterator]); |
| 1268 } | 1268 } |
| 1269 join(separator) { | 1269 [dart.extensionMember('join')](separator) { |
| 1270 if (separator === void 0) | 1270 if (separator === void 0) |
| 1271 separator = ""; | 1271 separator = ""; |
| 1272 let buffer = new StringBuffer(); | 1272 let buffer = new StringBuffer(); |
| 1273 buffer.writeAll(this, separator); | 1273 buffer.writeAll(this, separator); |
| 1274 return dart.toString(buffer); | 1274 return dart.toString(buffer); |
| 1275 } | 1275 } |
| 1276 } | 1276 } |
| 1277 dart.setSignature(Iterable, { | 1277 dart.setSignature(Iterable, { |
| 1278 constructors: () => ({ | 1278 constructors: () => ({ |
| 1279 Iterable: [Iterable$(E), []], | 1279 Iterable: [Iterable$(E), []], |
| 1280 generate: [Iterable$(E), [int], [dart.functionType(E, [int])]] | 1280 generate: [Iterable$(E), [int], [dart.functionType(E, [int])]] |
| 1281 }), | 1281 }), |
| 1282 methods: () => ({join: [String, [], [String]]}) | 1282 methods: () => ({[dartx.join]: [String, [], [String]]}) |
| 1283 }); | 1283 }); |
| 1284 return Iterable; | 1284 return Iterable; |
| 1285 }); | 1285 }); |
| 1286 let Iterable = Iterable$(); | 1286 let Iterable = Iterable$(); |
| 1287 let _Generator$ = dart.generic(function(E) { | 1287 let _Generator$ = dart.generic(function(E) { |
| 1288 let _Generator = dart.typedef('_Generator', () => dart.functionType(E, [int]
)); | 1288 let _Generator = dart.typedef('_Generator', () => dart.functionType(E, [int]
)); |
| 1289 return _Generator; | 1289 return _Generator; |
| 1290 }); | 1290 }); |
| 1291 let _Generator = _Generator$(); | 1291 let _Generator = _Generator$(); |
| 1292 let _end = dart.JsSymbol('_end'); | 1292 let _end = dart.JsSymbol('_end'); |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1328 let newEnd = dart.notNull(this[_start]) + dart.notNull(count); | 1328 let newEnd = dart.notNull(this[_start]) + dart.notNull(count); |
| 1329 if (dart.notNull(newEnd) >= dart.notNull(this[_end])) | 1329 if (dart.notNull(newEnd) >= dart.notNull(this[_end])) |
| 1330 return this; | 1330 return this; |
| 1331 return new (exports._GeneratorIterable$(E)).slice(this[_start], newEnd,
this[_generator]); | 1331 return new (exports._GeneratorIterable$(E)).slice(this[_start], newEnd,
this[_generator]); |
| 1332 } | 1332 } |
| 1333 static _id(n) { | 1333 static _id(n) { |
| 1334 return n; | 1334 return n; |
| 1335 } | 1335 } |
| 1336 } | 1336 } |
| 1337 _GeneratorIterable[dart.implements] = () => [_internal.EfficientLength]; | 1337 _GeneratorIterable[dart.implements] = () => [_internal.EfficientLength]; |
| 1338 dart.defineExtensionMembers(_GeneratorIterable, ['skip', 'take', 'iterator',
'length']); | |
| 1339 dart.defineNamedConstructor(_GeneratorIterable, 'slice'); | 1338 dart.defineNamedConstructor(_GeneratorIterable, 'slice'); |
| 1340 dart.setSignature(_GeneratorIterable, { | 1339 dart.setSignature(_GeneratorIterable, { |
| 1341 constructors: () => ({ | 1340 constructors: () => ({ |
| 1342 _GeneratorIterable: [exports._GeneratorIterable$(E), [int, dart.function
Type(E, [int])]], | 1341 _GeneratorIterable: [exports._GeneratorIterable$(E), [int, dart.function
Type(E, [int])]], |
| 1343 slice: [exports._GeneratorIterable$(E), [int, int, _Generator$(E)]] | 1342 slice: [exports._GeneratorIterable$(E), [int, int, _Generator$(E)]] |
| 1344 }), | 1343 }), |
| 1345 methods: () => ({ | 1344 methods: () => ({ |
| 1346 skip: [Iterable$(E), [int]], | 1345 skip: [Iterable$(E), [int]], |
| 1347 take: [Iterable$(E), [int]] | 1346 take: [Iterable$(E), [int]] |
| 1348 }), | 1347 }), |
| 1349 statics: () => ({_id: [int, [int]]}), | 1348 statics: () => ({_id: [int, [int]]}), |
| 1350 names: ['_id'] | 1349 names: ['_id'] |
| 1351 }); | 1350 }); |
| 1351 dart.defineExtensionMembers(_GeneratorIterable, ['skip', 'take', 'iterator',
'length']); |
| 1352 return _GeneratorIterable; | 1352 return _GeneratorIterable; |
| 1353 }); | 1353 }); |
| 1354 dart.defineLazyClassGeneric(exports, '_GeneratorIterable', {get: _GeneratorIte
rable$}); | 1354 dart.defineLazyClassGeneric(exports, '_GeneratorIterable', {get: _GeneratorIte
rable$}); |
| 1355 let _index = dart.JsSymbol('_index'); | 1355 let _index = dart.JsSymbol('_index'); |
| 1356 let _current = dart.JsSymbol('_current'); | 1356 let _current = dart.JsSymbol('_current'); |
| 1357 let _GeneratorIterator$ = dart.generic(function(E) { | 1357 let _GeneratorIterator$ = dart.generic(function(E) { |
| 1358 class _GeneratorIterator extends Object { | 1358 class _GeneratorIterator extends Object { |
| 1359 _GeneratorIterator(index, end, generator) { | 1359 _GeneratorIterator(index, end, generator) { |
| 1360 this[_index] = index; | 1360 this[_index] = index; |
| 1361 this[_end] = end; | 1361 this[_end] = end; |
| (...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1715 if (_isLeadSurrogate(previousCode)) { | 1715 if (_isLeadSurrogate(previousCode)) { |
| 1716 return _combineSurrogatePair(previousCode, code); | 1716 return _combineSurrogatePair(previousCode, code); |
| 1717 } | 1717 } |
| 1718 } | 1718 } |
| 1719 return code; | 1719 return code; |
| 1720 } | 1720 } |
| 1721 } | 1721 } |
| 1722 dart.setSignature(Runes, { | 1722 dart.setSignature(Runes, { |
| 1723 constructors: () => ({Runes: [exports.Runes, [String]]}) | 1723 constructors: () => ({Runes: [exports.Runes, [String]]}) |
| 1724 }); | 1724 }); |
| 1725 dart.defineExtensionMembers(Runes, ['iterator', 'last']); |
| 1725 return Runes; | 1726 return Runes; |
| 1726 } | 1727 } |
| 1727 }); | 1728 }); |
| 1728 function _isLeadSurrogate(code) { | 1729 function _isLeadSurrogate(code) { |
| 1729 return (dart.notNull(code) & 64512) == 55296; | 1730 return (dart.notNull(code) & 64512) == 55296; |
| 1730 } | 1731 } |
| 1731 dart.fn(_isLeadSurrogate, bool, [int]); | 1732 dart.fn(_isLeadSurrogate, bool, [int]); |
| 1732 function _isTrailSurrogate(code) { | 1733 function _isTrailSurrogate(code) { |
| 1733 return (dart.notNull(code) & 64512) == 56320; | 1734 return (dart.notNull(code) & 64512) == 56320; |
| 1734 } | 1735 } |
| (...skipping 1621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3356 exports.StackTrace = StackTrace; | 3357 exports.StackTrace = StackTrace; |
| 3357 exports.Stopwatch = Stopwatch; | 3358 exports.Stopwatch = Stopwatch; |
| 3358 exports.String = String; | 3359 exports.String = String; |
| 3359 exports.RuneIterator = RuneIterator; | 3360 exports.RuneIterator = RuneIterator; |
| 3360 exports.StringBuffer = StringBuffer; | 3361 exports.StringBuffer = StringBuffer; |
| 3361 exports.StringSink = StringSink; | 3362 exports.StringSink = StringSink; |
| 3362 exports.Symbol = Symbol; | 3363 exports.Symbol = Symbol; |
| 3363 exports.Type = Type; | 3364 exports.Type = Type; |
| 3364 exports.Uri = Uri; | 3365 exports.Uri = Uri; |
| 3365 })(core, _js_helper, _internal, collection, _interceptors, convert); | 3366 })(core, _js_helper, _internal, collection, _interceptors, convert); |
| OLD | NEW |