OLD | NEW |
1 dart_library.library('dart/core', null, /* Imports */[ | 1 dart_library.library('dart/core', null, /* Imports */[ |
2 'dart/_runtime' | 2 'dart/_runtime' |
3 ], /* Lazy imports */[ | 3 ], /* Lazy imports */[ |
4 'dart/_js_helper', | 4 'dart/_js_helper', |
5 'dart/_internal', | 5 'dart/_internal', |
6 'dart/collection', | 6 'dart/collection', |
7 'dart/_interceptors', | 7 'dart/_interceptors', |
8 'dart/convert' | 8 'dart/convert' |
9 ], function(exports, dart, _js_helper, _internal, collection, _interceptors, con
vert) { | 9 ], function(exports, dart, _js_helper, _internal, collection, _interceptors, con
vert) { |
10 'use strict'; | 10 'use strict'; |
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
403 } | 403 } |
404 num[dart.implements] = () => [Comparable$(num)]; | 404 num[dart.implements] = () => [Comparable$(num)]; |
405 dart.setSignature(num, { | 405 dart.setSignature(num, { |
406 statics: () => ({ | 406 statics: () => ({ |
407 parse: [num, [String], [dart.functionType(num, [String])]], | 407 parse: [num, [String], [dart.functionType(num, [String])]], |
408 _onParseErrorInt: [int, [String]], | 408 _onParseErrorInt: [int, [String]], |
409 _onParseErrorDouble: [double, [String]] | 409 _onParseErrorDouble: [double, [String]] |
410 }), | 410 }), |
411 names: ['parse', '_onParseErrorInt', '_onParseErrorDouble'] | 411 names: ['parse', '_onParseErrorInt', '_onParseErrorDouble'] |
412 }); | 412 }); |
| 413 num._parseError = false; |
413 class double extends num { | 414 class double extends num { |
414 static parse(source, onError) { | 415 static parse(source, onError) { |
415 if (onError === void 0) onError = null; | 416 if (onError === void 0) onError = null; |
416 return _js_helper.Primitives.parseDouble(source, onError); | 417 return _js_helper.Primitives.parseDouble(source, onError); |
417 } | 418 } |
418 } | 419 } |
419 dart.setSignature(double, { | 420 dart.setSignature(double, { |
420 statics: () => ({parse: [double, [String], [dart.functionType(double, [Strin
g])]]}), | 421 statics: () => ({parse: [double, [String], [dart.functionType(double, [Strin
g])]]}), |
421 names: ['parse'] | 422 names: ['parse'] |
422 }); | 423 }); |
423 double.NAN = 0.0 / 0.0; | 424 double.NAN = 0.0 / 0.0; |
424 double.INFINITY = 1.0 / 0.0; | 425 double.INFINITY = 1.0 / 0.0; |
425 double.NEGATIVE_INFINITY = -dart.notNull(double.INFINITY); | |
426 double.MIN_POSITIVE = 5e-324; | 426 double.MIN_POSITIVE = 5e-324; |
427 double.MAX_FINITE = 1.7976931348623157e+308; | 427 double.MAX_FINITE = 1.7976931348623157e+308; |
| 428 dart.defineLazyProperties(double, { |
| 429 get NEGATIVE_INFINITY() { |
| 430 return -dart.notNull(double.INFINITY); |
| 431 } |
| 432 }); |
428 const _duration = dart.JsSymbol('_duration'); | 433 const _duration = dart.JsSymbol('_duration'); |
429 class Duration extends Object { | 434 class Duration extends Object { |
430 Duration(opts) { | 435 Duration(opts) { |
431 let days = opts && 'days' in opts ? opts.days : 0; | 436 let days = opts && 'days' in opts ? opts.days : 0; |
432 let hours = opts && 'hours' in opts ? opts.hours : 0; | 437 let hours = opts && 'hours' in opts ? opts.hours : 0; |
433 let minutes = opts && 'minutes' in opts ? opts.minutes : 0; | 438 let minutes = opts && 'minutes' in opts ? opts.minutes : 0; |
434 let seconds = opts && 'seconds' in opts ? opts.seconds : 0; | 439 let seconds = opts && 'seconds' in opts ? opts.seconds : 0; |
435 let milliseconds = opts && 'milliseconds' in opts ? opts.milliseconds : 0; | 440 let milliseconds = opts && 'milliseconds' in opts ? opts.milliseconds : 0; |
436 let microseconds = opts && 'microseconds' in opts ? opts.microseconds : 0; | 441 let microseconds = opts && 'microseconds' in opts ? opts.microseconds : 0; |
437 this._microseconds(dart.notNull(days) * dart.notNull(Duration.MICROSECONDS
_PER_DAY) + dart.notNull(hours) * dart.notNull(Duration.MICROSECONDS_PER_HOUR) +
dart.notNull(minutes) * dart.notNull(Duration.MICROSECONDS_PER_MINUTE) + dart.n
otNull(seconds) * dart.notNull(Duration.MICROSECONDS_PER_SECOND) + dart.notNull(
milliseconds) * dart.notNull(Duration.MICROSECONDS_PER_MILLISECOND) + dart.notNu
ll(microseconds)); | 442 this._microseconds(dart.notNull(days) * dart.notNull(Duration.MICROSECONDS
_PER_DAY) + dart.notNull(hours) * dart.notNull(Duration.MICROSECONDS_PER_HOUR) +
dart.notNull(minutes) * dart.notNull(Duration.MICROSECONDS_PER_MINUTE) + dart.n
otNull(seconds) * dart.notNull(Duration.MICROSECONDS_PER_SECOND) + dart.notNull(
milliseconds) * dart.notNull(Duration.MICROSECONDS_PER_MILLISECOND) + dart.notNu
ll(microseconds)); |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
545 abs: [Duration, []], | 550 abs: [Duration, []], |
546 'unary-': [Duration, []] | 551 'unary-': [Duration, []] |
547 }) | 552 }) |
548 }); | 553 }); |
549 dart.defineExtensionMembers(Duration, ['compareTo']); | 554 dart.defineExtensionMembers(Duration, ['compareTo']); |
550 Duration.MICROSECONDS_PER_MILLISECOND = 1000; | 555 Duration.MICROSECONDS_PER_MILLISECOND = 1000; |
551 Duration.MILLISECONDS_PER_SECOND = 1000; | 556 Duration.MILLISECONDS_PER_SECOND = 1000; |
552 Duration.SECONDS_PER_MINUTE = 60; | 557 Duration.SECONDS_PER_MINUTE = 60; |
553 Duration.MINUTES_PER_HOUR = 60; | 558 Duration.MINUTES_PER_HOUR = 60; |
554 Duration.HOURS_PER_DAY = 24; | 559 Duration.HOURS_PER_DAY = 24; |
555 Duration.MICROSECONDS_PER_SECOND = dart.notNull(Duration.MICROSECONDS_PER_MILL
ISECOND) * dart.notNull(Duration.MILLISECONDS_PER_SECOND); | 560 dart.defineLazyProperties(Duration, { |
556 Duration.MICROSECONDS_PER_MINUTE = dart.notNull(Duration.MICROSECONDS_PER_SECO
ND) * dart.notNull(Duration.SECONDS_PER_MINUTE); | 561 get MICROSECONDS_PER_SECOND() { |
557 Duration.MICROSECONDS_PER_HOUR = dart.notNull(Duration.MICROSECONDS_PER_MINUTE
) * dart.notNull(Duration.MINUTES_PER_HOUR); | 562 return dart.notNull(Duration.MICROSECONDS_PER_MILLISECOND) * dart.notNull(
Duration.MILLISECONDS_PER_SECOND); |
558 Duration.MICROSECONDS_PER_DAY = dart.notNull(Duration.MICROSECONDS_PER_HOUR) *
dart.notNull(Duration.HOURS_PER_DAY); | 563 }, |
559 Duration.MILLISECONDS_PER_MINUTE = dart.notNull(Duration.MILLISECONDS_PER_SECO
ND) * dart.notNull(Duration.SECONDS_PER_MINUTE); | 564 get MICROSECONDS_PER_MINUTE() { |
560 Duration.MILLISECONDS_PER_HOUR = dart.notNull(Duration.MILLISECONDS_PER_MINUTE
) * dart.notNull(Duration.MINUTES_PER_HOUR); | 565 return dart.notNull(Duration.MICROSECONDS_PER_SECOND) * dart.notNull(Durat
ion.SECONDS_PER_MINUTE); |
561 Duration.MILLISECONDS_PER_DAY = dart.notNull(Duration.MILLISECONDS_PER_HOUR) *
dart.notNull(Duration.HOURS_PER_DAY); | 566 }, |
562 Duration.SECONDS_PER_HOUR = dart.notNull(Duration.SECONDS_PER_MINUTE) * dart.n
otNull(Duration.MINUTES_PER_HOUR); | 567 get MICROSECONDS_PER_HOUR() { |
563 Duration.SECONDS_PER_DAY = dart.notNull(Duration.SECONDS_PER_HOUR) * dart.notN
ull(Duration.HOURS_PER_DAY); | 568 return dart.notNull(Duration.MICROSECONDS_PER_MINUTE) * dart.notNull(Durat
ion.MINUTES_PER_HOUR); |
564 Duration.MINUTES_PER_DAY = dart.notNull(Duration.MINUTES_PER_HOUR) * dart.notN
ull(Duration.HOURS_PER_DAY); | 569 }, |
565 Duration.ZERO = dart.const(new Duration({seconds: 0})); | 570 get MICROSECONDS_PER_DAY() { |
| 571 return dart.notNull(Duration.MICROSECONDS_PER_HOUR) * dart.notNull(Duratio
n.HOURS_PER_DAY); |
| 572 }, |
| 573 get MILLISECONDS_PER_MINUTE() { |
| 574 return dart.notNull(Duration.MILLISECONDS_PER_SECOND) * dart.notNull(Durat
ion.SECONDS_PER_MINUTE); |
| 575 }, |
| 576 get MILLISECONDS_PER_HOUR() { |
| 577 return dart.notNull(Duration.MILLISECONDS_PER_MINUTE) * dart.notNull(Durat
ion.MINUTES_PER_HOUR); |
| 578 }, |
| 579 get MILLISECONDS_PER_DAY() { |
| 580 return dart.notNull(Duration.MILLISECONDS_PER_HOUR) * dart.notNull(Duratio
n.HOURS_PER_DAY); |
| 581 }, |
| 582 get SECONDS_PER_HOUR() { |
| 583 return dart.notNull(Duration.SECONDS_PER_MINUTE) * dart.notNull(Duration.M
INUTES_PER_HOUR); |
| 584 }, |
| 585 get SECONDS_PER_DAY() { |
| 586 return dart.notNull(Duration.SECONDS_PER_HOUR) * dart.notNull(Duration.HOU
RS_PER_DAY); |
| 587 }, |
| 588 get MINUTES_PER_DAY() { |
| 589 return dart.notNull(Duration.MINUTES_PER_HOUR) * dart.notNull(Duration.HOU
RS_PER_DAY); |
| 590 }, |
| 591 get ZERO() { |
| 592 return dart.const(new Duration({seconds: 0})); |
| 593 } |
| 594 }); |
566 class Error extends Object { | 595 class Error extends Object { |
567 Error() { | 596 Error() { |
568 } | 597 } |
569 static safeToString(object) { | 598 static safeToString(object) { |
570 if (typeof object == 'number' || typeof object == 'boolean' || null == obj
ect) { | 599 if (typeof object == 'number' || typeof object == 'boolean' || null == obj
ect) { |
571 return dart.toString(object); | 600 return dart.toString(object); |
572 } | 601 } |
573 if (typeof object == 'string') { | 602 if (typeof object == 'string') { |
574 return Error._stringToSafeString(object); | 603 return Error._stringToSafeString(object); |
575 } | 604 } |
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1117 } | 1146 } |
1118 } | 1147 } |
1119 dart.setSignature(Expando, { | 1148 dart.setSignature(Expando, { |
1120 constructors: () => ({Expando: [Expando$(T), [], [String]]}), | 1149 constructors: () => ({Expando: [Expando$(T), [], [String]]}), |
1121 methods: () => ({ | 1150 methods: () => ({ |
1122 get: [T, [Object]], | 1151 get: [T, [Object]], |
1123 set: [dart.void, [Object, T]], | 1152 set: [dart.void, [Object, T]], |
1124 [_getKey]: [String, []] | 1153 [_getKey]: [String, []] |
1125 }) | 1154 }) |
1126 }); | 1155 }); |
| 1156 Expando._KEY_PROPERTY_NAME = 'expando$key'; |
| 1157 Expando._EXPANDO_PROPERTY_NAME = 'expando$values'; |
| 1158 Expando._keyCount = 0; |
1127 return Expando; | 1159 return Expando; |
1128 }); | 1160 }); |
1129 let Expando = Expando$(); | 1161 let Expando = Expando$(); |
1130 Expando._KEY_PROPERTY_NAME = 'expando$key'; | |
1131 Expando._EXPANDO_PROPERTY_NAME = 'expando$values'; | |
1132 Expando._keyCount = 0; | |
1133 class Function extends Object { | 1162 class Function extends Object { |
1134 static apply(f, positionalArguments, namedArguments) { | 1163 static apply(f, positionalArguments, namedArguments) { |
1135 if (namedArguments === void 0) namedArguments = null; | 1164 if (namedArguments === void 0) namedArguments = null; |
1136 return dart.dcall.apply(null, [f].concat(positionalArguments)); | 1165 return dart.dcall.apply(null, [f].concat(positionalArguments)); |
1137 } | 1166 } |
1138 static _toMangledNames(namedArguments) { | 1167 static _toMangledNames(namedArguments) { |
1139 let result = dart.map(); | 1168 let result = dart.map(); |
1140 namedArguments.forEach(dart.fn((symbol, value) => { | 1169 namedArguments.forEach(dart.fn((symbol, value) => { |
1141 result.set(_symbolToString(symbol), value); | 1170 result.set(_symbolToString(symbol), value); |
1142 }, dart.void, [Symbol, dart.dynamic])); | 1171 }, dart.void, [Symbol, dart.dynamic])); |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1415 static _uninstantiable() { | 1444 static _uninstantiable() { |
1416 dart.throw(new UnsupportedError('class Null cannot be instantiated')); | 1445 dart.throw(new UnsupportedError('class Null cannot be instantiated')); |
1417 } | 1446 } |
1418 toString() { | 1447 toString() { |
1419 return "null"; | 1448 return "null"; |
1420 } | 1449 } |
1421 } | 1450 } |
1422 dart.setSignature(Null, { | 1451 dart.setSignature(Null, { |
1423 constructors: () => ({_uninstantiable: [Null, []]}) | 1452 constructors: () => ({_uninstantiable: [Null, []]}) |
1424 }); | 1453 }); |
1425 num._parseError = false; | |
1426 class Pattern extends Object {} | 1454 class Pattern extends Object {} |
1427 function print(object) { | 1455 function print(object) { |
1428 let line = `${object}`; | 1456 let line = `${object}`; |
1429 if (_internal.printToZone == null) { | 1457 if (_internal.printToZone == null) { |
1430 _internal.printToConsole(line); | 1458 _internal.printToConsole(line); |
1431 } else { | 1459 } else { |
1432 dart.dcall(_internal.printToZone, line); | 1460 dart.dcall(_internal.printToZone, line); |
1433 } | 1461 } |
1434 } | 1462 } |
1435 dart.fn(print, dart.void, [Object]); | 1463 dart.fn(print, dart.void, [Object]); |
(...skipping 1774 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3210 exports.StackTrace = StackTrace; | 3238 exports.StackTrace = StackTrace; |
3211 exports.Stopwatch = Stopwatch; | 3239 exports.Stopwatch = Stopwatch; |
3212 exports.String = String; | 3240 exports.String = String; |
3213 exports.RuneIterator = RuneIterator; | 3241 exports.RuneIterator = RuneIterator; |
3214 exports.StringBuffer = StringBuffer; | 3242 exports.StringBuffer = StringBuffer; |
3215 exports.StringSink = StringSink; | 3243 exports.StringSink = StringSink; |
3216 exports.Symbol = Symbol; | 3244 exports.Symbol = Symbol; |
3217 exports.Type = Type; | 3245 exports.Type = Type; |
3218 exports.Uri = Uri; | 3246 exports.Uri = Uri; |
3219 }); | 3247 }); |
OLD | NEW |