| 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 var name = this.constructor.name; | 6 var name = this.constructor.name; |
| 7 var init = this[name]; | 7 var init = this[name]; |
| 8 var result = void 0; | 8 var result = void 0; |
| 9 if (init) | 9 if (init) |
| 10 result = init.apply(this, arguments); | 10 result = init.apply(this, arguments); |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 } | 39 } |
| 40 } | 40 } |
| 41 let deprecated = new Deprecated("next release"); | 41 let deprecated = new Deprecated("next release"); |
| 42 let override = new _Override(); | 42 let override = new _Override(); |
| 43 class _Proxy extends Object { | 43 class _Proxy extends Object { |
| 44 _Proxy() { | 44 _Proxy() { |
| 45 } | 45 } |
| 46 } | 46 } |
| 47 let proxy = new _Proxy(); | 47 let proxy = new _Proxy(); |
| 48 class bool extends Object { | 48 class bool extends Object { |
| 49 bool$fromEnvironment(name, opts) { | 49 fromEnvironment(name, opts) { |
| 50 let defaultValue = opts && 'defaultValue' in opts ? opts.defaultValue : fa
lse; | 50 let defaultValue = opts && 'defaultValue' in opts ? opts.defaultValue : fa
lse; |
| 51 throw new UnsupportedError('bool.fromEnvironment can only be used as a con
st constructor'); | 51 throw new UnsupportedError('bool.fromEnvironment can only be used as a con
st constructor'); |
| 52 } | 52 } |
| 53 toString() { | 53 toString() { |
| 54 return this ? "true" : "false"; | 54 return this ? "true" : "false"; |
| 55 } | 55 } |
| 56 } | 56 } |
| 57 dart.defineNamedConstructor(bool, 'fromEnvironment'); | 57 dart.defineNamedConstructor(bool, 'fromEnvironment'); |
| 58 let Comparable$ = dart.generic(function(T) { | 58 let Comparable$ = dart.generic(function(T) { |
| 59 class Comparable extends Object { | 59 class Comparable extends Object { |
| 60 static compare(a, b) { | 60 static compare(a, b) { |
| 61 return a.compareTo(b); | 61 return a.compareTo(b); |
| 62 } | 62 } |
| 63 } | 63 } |
| 64 return Comparable; | 64 return Comparable; |
| 65 }); | 65 }); |
| 66 let Comparable = Comparable$(dart.dynamic); | 66 let Comparable = Comparable$(dart.dynamic); |
| 67 let _internal$ = dart.JsSymbol('_internal'); |
| 68 let _now = dart.JsSymbol('_now'); |
| 67 let _brokenDownDateToMillisecondsSinceEpoch = dart.JsSymbol('_brokenDownDateTo
MillisecondsSinceEpoch'); | 69 let _brokenDownDateToMillisecondsSinceEpoch = dart.JsSymbol('_brokenDownDateTo
MillisecondsSinceEpoch'); |
| 68 let _MAX_MILLISECONDS_SINCE_EPOCH = dart.JsSymbol('_MAX_MILLISECONDS_SINCE_EPO
CH'); | 70 let _MAX_MILLISECONDS_SINCE_EPOCH = dart.JsSymbol('_MAX_MILLISECONDS_SINCE_EPO
CH'); |
| 69 let _fourDigits = dart.JsSymbol('_fourDigits'); | 71 let _fourDigits = dart.JsSymbol('_fourDigits'); |
| 70 let _sixDigits = dart.JsSymbol('_sixDigits'); | 72 let _sixDigits = dart.JsSymbol('_sixDigits'); |
| 71 let _threeDigits = dart.JsSymbol('_threeDigits'); | 73 let _threeDigits = dart.JsSymbol('_threeDigits'); |
| 72 let _twoDigits = dart.JsSymbol('_twoDigits'); | 74 let _twoDigits = dart.JsSymbol('_twoDigits'); |
| 73 let _internal$ = dart.JsSymbol('_internal'); | |
| 74 let _now = dart.JsSymbol('_now'); | |
| 75 class DateTime extends Object { | 75 class DateTime extends Object { |
| 76 DateTime(year, month, day, hour, minute, second, millisecond) { | 76 DateTime(year, month, day, hour, minute, second, millisecond) { |
| 77 if (month === void 0) | 77 if (month === void 0) |
| 78 month = 1; | 78 month = 1; |
| 79 if (day === void 0) | 79 if (day === void 0) |
| 80 day = 1; | 80 day = 1; |
| 81 if (hour === void 0) | 81 if (hour === void 0) |
| 82 hour = 0; | 82 hour = 0; |
| 83 if (minute === void 0) | 83 if (minute === void 0) |
| 84 minute = 0; | 84 minute = 0; |
| 85 if (second === void 0) | 85 if (second === void 0) |
| 86 second = 0; | 86 second = 0; |
| 87 if (millisecond === void 0) | 87 if (millisecond === void 0) |
| 88 millisecond = 0; | 88 millisecond = 0; |
| 89 this.DateTime$_internal(year, month, day, hour, minute, second, millisecon
d, false); | 89 this[_internal$](year, month, day, hour, minute, second, millisecond, fals
e); |
| 90 } | 90 } |
| 91 DateTime$utc(year, month, day, hour, minute, second, millisecond) { | 91 utc(year, month, day, hour, minute, second, millisecond) { |
| 92 if (month === void 0) | 92 if (month === void 0) |
| 93 month = 1; | 93 month = 1; |
| 94 if (day === void 0) | 94 if (day === void 0) |
| 95 day = 1; | 95 day = 1; |
| 96 if (hour === void 0) | 96 if (hour === void 0) |
| 97 hour = 0; | 97 hour = 0; |
| 98 if (minute === void 0) | 98 if (minute === void 0) |
| 99 minute = 0; | 99 minute = 0; |
| 100 if (second === void 0) | 100 if (second === void 0) |
| 101 second = 0; | 101 second = 0; |
| 102 if (millisecond === void 0) | 102 if (millisecond === void 0) |
| 103 millisecond = 0; | 103 millisecond = 0; |
| 104 this.DateTime$_internal(year, month, day, hour, minute, second, millisecon
d, true); | 104 this[_internal$](year, month, day, hour, minute, second, millisecond, true
); |
| 105 } | 105 } |
| 106 DateTime$now() { | 106 now() { |
| 107 this.DateTime$_now(); | 107 this[_now](); |
| 108 } | 108 } |
| 109 static parse(formattedString) { | 109 static parse(formattedString) { |
| 110 let re = new RegExp('^([+-]?\\d{4,6})-?(\\d\\d)-?(\\d\\d)' + '(?:[ T](\\d\
\d)(?::?(\\d\\d)(?::?(\\d\\d)(.\\d{1,6})?)?)?' + '( ?[zZ]| ?([-+])(\\d\\d)(?::?(
\\d\\d))?)?)?$'); | 110 let re = new RegExp('^([+-]?\\d{4,6})-?(\\d\\d)-?(\\d\\d)' + '(?:[ T](\\d\
\d)(?::?(\\d\\d)(?::?(\\d\\d)(.\\d{1,6})?)?)?' + '( ?[zZ]| ?([-+])(\\d\\d)(?::?(
\\d\\d))?)?)?$'); |
| 111 let match = re.firstMatch(formattedString); | 111 let match = re.firstMatch(formattedString); |
| 112 if (match !== null) { | 112 if (match !== null) { |
| 113 // Function parseIntOrZero: (String) → int | 113 // Function parseIntOrZero: (String) → int |
| 114 function parseIntOrZero(matched) { | 114 function parseIntOrZero(matched) { |
| 115 if (matched === null) | 115 if (matched === null) |
| 116 return 0; | 116 return 0; |
| 117 return int.parse(matched); | 117 return int.parse(matched); |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 if (millisecondsSinceEpoch === null) { | 149 if (millisecondsSinceEpoch === null) { |
| 150 throw new FormatException("Time out of range", formattedString); | 150 throw new FormatException("Time out of range", formattedString); |
| 151 } | 151 } |
| 152 if (addOneMillisecond) | 152 if (addOneMillisecond) |
| 153 millisecondsSinceEpoch = dart.notNull(millisecondsSinceEpoch) + 1; | 153 millisecondsSinceEpoch = dart.notNull(millisecondsSinceEpoch) + 1; |
| 154 return new DateTime.fromMillisecondsSinceEpoch(millisecondsSinceEpoch, {
isUtc: isUtc}); | 154 return new DateTime.fromMillisecondsSinceEpoch(millisecondsSinceEpoch, {
isUtc: isUtc}); |
| 155 } else { | 155 } else { |
| 156 throw new FormatException("Invalid date format", formattedString); | 156 throw new FormatException("Invalid date format", formattedString); |
| 157 } | 157 } |
| 158 } | 158 } |
| 159 DateTime$fromMillisecondsSinceEpoch(millisecondsSinceEpoch, opts) { | 159 fromMillisecondsSinceEpoch(millisecondsSinceEpoch, opts) { |
| 160 let isUtc = opts && 'isUtc' in opts ? opts.isUtc : false; | 160 let isUtc = opts && 'isUtc' in opts ? opts.isUtc : false; |
| 161 this.millisecondsSinceEpoch = millisecondsSinceEpoch; | 161 this.millisecondsSinceEpoch = millisecondsSinceEpoch; |
| 162 this.isUtc = isUtc; | 162 this.isUtc = isUtc; |
| 163 if (dart.notNull(millisecondsSinceEpoch.abs()) > dart.notNull(DateTime[_MA
X_MILLISECONDS_SINCE_EPOCH])) { | 163 if (dart.notNull(millisecondsSinceEpoch.abs()) > dart.notNull(DateTime[_MA
X_MILLISECONDS_SINCE_EPOCH])) { |
| 164 throw new ArgumentError(millisecondsSinceEpoch); | 164 throw new ArgumentError(millisecondsSinceEpoch); |
| 165 } | 165 } |
| 166 if (isUtc === null) | 166 if (isUtc === null) |
| 167 throw new ArgumentError(isUtc); | 167 throw new ArgumentError(isUtc); |
| 168 } | 168 } |
| 169 ['=='](other) { | 169 ['=='](other) { |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 } | 262 } |
| 263 subtract(duration) { | 263 subtract(duration) { |
| 264 let ms = this.millisecondsSinceEpoch; | 264 let ms = this.millisecondsSinceEpoch; |
| 265 return new DateTime.fromMillisecondsSinceEpoch(dart.notNull(ms) - dart.not
Null(duration.inMilliseconds), {isUtc: this.isUtc}); | 265 return new DateTime.fromMillisecondsSinceEpoch(dart.notNull(ms) - dart.not
Null(duration.inMilliseconds), {isUtc: this.isUtc}); |
| 266 } | 266 } |
| 267 difference(other) { | 267 difference(other) { |
| 268 let ms = this.millisecondsSinceEpoch; | 268 let ms = this.millisecondsSinceEpoch; |
| 269 let otherMs = other.millisecondsSinceEpoch; | 269 let otherMs = other.millisecondsSinceEpoch; |
| 270 return new Duration({milliseconds: dart.notNull(ms) - dart.notNull(otherMs
)}); | 270 return new Duration({milliseconds: dart.notNull(ms) - dart.notNull(otherMs
)}); |
| 271 } | 271 } |
| 272 DateTime$_internal(year, month, day, hour, minute, second, millisecond, isUt
c) { | 272 [_internal$](year, month, day, hour, minute, second, millisecond, isUtc) { |
| 273 this.isUtc = typeof isUtc == 'boolean' ? isUtc : dart.throw_(new ArgumentE
rror(isUtc)); | 273 this.isUtc = typeof isUtc == 'boolean' ? isUtc : dart.throw_(new ArgumentE
rror(isUtc)); |
| 274 this.millisecondsSinceEpoch = dart.as(_js_helper.checkInt(_js_helper.Primi
tives.valueFromDecomposedDate(year, month, day, hour, minute, second, millisecon
d, isUtc)), int); | 274 this.millisecondsSinceEpoch = dart.as(_js_helper.checkInt(_js_helper.Primi
tives.valueFromDecomposedDate(year, month, day, hour, minute, second, millisecon
d, isUtc)), int); |
| 275 } | 275 } |
| 276 DateTime$_now() { | 276 [_now]() { |
| 277 this.isUtc = false; | 277 this.isUtc = false; |
| 278 this.millisecondsSinceEpoch = _js_helper.Primitives.dateNow(); | 278 this.millisecondsSinceEpoch = _js_helper.Primitives.dateNow(); |
| 279 } | 279 } |
| 280 static [_brokenDownDateToMillisecondsSinceEpoch](year, month, day, hour, min
ute, second, millisecond, isUtc) { | 280 static [_brokenDownDateToMillisecondsSinceEpoch](year, month, day, hour, min
ute, second, millisecond, isUtc) { |
| 281 return dart.as(_js_helper.Primitives.valueFromDecomposedDate(year, month,
day, hour, minute, second, millisecond, isUtc), int); | 281 return dart.as(_js_helper.Primitives.valueFromDecomposedDate(year, month,
day, hour, minute, second, millisecond, isUtc), int); |
| 282 } | 282 } |
| 283 get timeZoneName() { | 283 get timeZoneName() { |
| 284 if (this.isUtc) | 284 if (this.isUtc) |
| 285 return "UTC"; | 285 return "UTC"; |
| 286 return _js_helper.Primitives.getTimeZoneName(this); | 286 return _js_helper.Primitives.getTimeZoneName(this); |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 377 if (onError === void 0) | 377 if (onError === void 0) |
| 378 onError = null; | 378 onError = null; |
| 379 return _js_helper.Primitives.parseDouble(source, onError); | 379 return _js_helper.Primitives.parseDouble(source, onError); |
| 380 } | 380 } |
| 381 } | 381 } |
| 382 double.NAN = 0.0 / 0.0; | 382 double.NAN = 0.0 / 0.0; |
| 383 double.INFINITY = 1.0 / 0.0; | 383 double.INFINITY = 1.0 / 0.0; |
| 384 double.NEGATIVE_INFINITY = -dart.notNull(double.INFINITY); | 384 double.NEGATIVE_INFINITY = -dart.notNull(double.INFINITY); |
| 385 double.MIN_POSITIVE = 5e-324; | 385 double.MIN_POSITIVE = 5e-324; |
| 386 double.MAX_FINITE = 1.7976931348623157e+308; | 386 double.MAX_FINITE = 1.7976931348623157e+308; |
| 387 let _microseconds = dart.JsSymbol('_microseconds'); |
| 387 let _duration = dart.JsSymbol('_duration'); | 388 let _duration = dart.JsSymbol('_duration'); |
| 388 let _microseconds = dart.JsSymbol('_microseconds'); | |
| 389 class Duration extends Object { | 389 class Duration extends Object { |
| 390 Duration(opts) { | 390 Duration(opts) { |
| 391 let days = opts && 'days' in opts ? opts.days : 0; | 391 let days = opts && 'days' in opts ? opts.days : 0; |
| 392 let hours = opts && 'hours' in opts ? opts.hours : 0; | 392 let hours = opts && 'hours' in opts ? opts.hours : 0; |
| 393 let minutes = opts && 'minutes' in opts ? opts.minutes : 0; | 393 let minutes = opts && 'minutes' in opts ? opts.minutes : 0; |
| 394 let seconds = opts && 'seconds' in opts ? opts.seconds : 0; | 394 let seconds = opts && 'seconds' in opts ? opts.seconds : 0; |
| 395 let milliseconds = opts && 'milliseconds' in opts ? opts.milliseconds : 0; | 395 let milliseconds = opts && 'milliseconds' in opts ? opts.milliseconds : 0; |
| 396 let microseconds = opts && 'microseconds' in opts ? opts.microseconds : 0; | 396 let microseconds = opts && 'microseconds' in opts ? opts.microseconds : 0; |
| 397 this.Duration$_microseconds(dart.notNull(days) * dart.notNull(Duration.MIC
ROSECONDS_PER_DAY) + dart.notNull(hours) * dart.notNull(Duration.MICROSECONDS_PE
R_HOUR) + dart.notNull(minutes) * dart.notNull(Duration.MICROSECONDS_PER_MINUTE)
+ dart.notNull(seconds) * dart.notNull(Duration.MICROSECONDS_PER_SECOND) + dart
.notNull(milliseconds) * dart.notNull(Duration.MICROSECONDS_PER_MILLISECOND) + d
art.notNull(microseconds)); | 397 this[_microseconds](dart.notNull(days) * dart.notNull(Duration.MICROSECOND
S_PER_DAY) + dart.notNull(hours) * dart.notNull(Duration.MICROSECONDS_PER_HOUR)
+ dart.notNull(minutes) * dart.notNull(Duration.MICROSECONDS_PER_MINUTE) + dart.
notNull(seconds) * dart.notNull(Duration.MICROSECONDS_PER_SECOND) + dart.notNull
(milliseconds) * dart.notNull(Duration.MICROSECONDS_PER_MILLISECOND) + dart.notN
ull(microseconds)); |
| 398 } | 398 } |
| 399 Duration$_microseconds(duration$) { | 399 [_microseconds](duration$) { |
| 400 this[_duration] = duration$; | 400 this[_duration] = duration$; |
| 401 } | 401 } |
| 402 ['+'](other) { | 402 ['+'](other) { |
| 403 return new Duration._microseconds(dart.notNull(this[_duration]) + dart.not
Null(other[_duration])); | 403 return new Duration[_microseconds](dart.notNull(this[_duration]) + dart.no
tNull(other[_duration])); |
| 404 } | 404 } |
| 405 ['-'](other) { | 405 ['-'](other) { |
| 406 return new Duration._microseconds(dart.notNull(this[_duration]) - dart.not
Null(other[_duration])); | 406 return new Duration[_microseconds](dart.notNull(this[_duration]) - dart.no
tNull(other[_duration])); |
| 407 } | 407 } |
| 408 ['*'](factor) { | 408 ['*'](factor) { |
| 409 return new Duration._microseconds((dart.notNull(this[_duration]) * dart.no
tNull(factor)).round()); | 409 return new Duration[_microseconds]((dart.notNull(this[_duration]) * dart.n
otNull(factor)).round()); |
| 410 } | 410 } |
| 411 ['~/'](quotient) { | 411 ['~/'](quotient) { |
| 412 if (quotient === 0) | 412 if (quotient === 0) |
| 413 throw new IntegerDivisionByZeroException(); | 413 throw new IntegerDivisionByZeroException(); |
| 414 return new Duration._microseconds((dart.notNull(this[_duration]) / dart.no
tNull(quotient)).truncate()); | 414 return new Duration[_microseconds]((dart.notNull(this[_duration]) / dart.n
otNull(quotient)).truncate()); |
| 415 } | 415 } |
| 416 ['<'](other) { | 416 ['<'](other) { |
| 417 return dart.notNull(this[_duration]) < dart.notNull(other[_duration]); | 417 return dart.notNull(this[_duration]) < dart.notNull(other[_duration]); |
| 418 } | 418 } |
| 419 ['>'](other) { | 419 ['>'](other) { |
| 420 return dart.notNull(this[_duration]) > dart.notNull(other[_duration]); | 420 return dart.notNull(this[_duration]) > dart.notNull(other[_duration]); |
| 421 } | 421 } |
| 422 ['<='](other) { | 422 ['<='](other) { |
| 423 return dart.notNull(this[_duration]) <= dart.notNull(other[_duration]); | 423 return dart.notNull(this[_duration]) <= dart.notNull(other[_duration]); |
| 424 } | 424 } |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 480 } | 480 } |
| 481 let twoDigitMinutes = twoDigits(this.inMinutes.remainder(Duration.MINUTES_
PER_HOUR)); | 481 let twoDigitMinutes = twoDigits(this.inMinutes.remainder(Duration.MINUTES_
PER_HOUR)); |
| 482 let twoDigitSeconds = twoDigits(this.inSeconds.remainder(Duration.SECONDS_
PER_MINUTE)); | 482 let twoDigitSeconds = twoDigits(this.inSeconds.remainder(Duration.SECONDS_
PER_MINUTE)); |
| 483 let sixDigitUs = sixDigits(this.inMicroseconds.remainder(Duration.MICROSEC
ONDS_PER_SECOND)); | 483 let sixDigitUs = sixDigits(this.inMicroseconds.remainder(Duration.MICROSEC
ONDS_PER_SECOND)); |
| 484 return `${this.inHours}:${twoDigitMinutes}:${twoDigitSeconds}.${sixDigitUs
}`; | 484 return `${this.inHours}:${twoDigitMinutes}:${twoDigitSeconds}.${sixDigitUs
}`; |
| 485 } | 485 } |
| 486 get isNegative() { | 486 get isNegative() { |
| 487 return dart.notNull(this[_duration]) < 0; | 487 return dart.notNull(this[_duration]) < 0; |
| 488 } | 488 } |
| 489 abs() { | 489 abs() { |
| 490 return new Duration._microseconds(this[_duration].abs()); | 490 return new Duration[_microseconds](this[_duration].abs()); |
| 491 } | 491 } |
| 492 ['-']() { | 492 ['-']() { |
| 493 return new Duration._microseconds(-dart.notNull(this[_duration])); | 493 return new Duration[_microseconds](-dart.notNull(this[_duration])); |
| 494 } | 494 } |
| 495 } | 495 } |
| 496 dart.defineNamedConstructor(Duration, _microseconds); | 496 dart.defineNamedConstructor(Duration, _microseconds); |
| 497 Duration.MICROSECONDS_PER_MILLISECOND = 1000; | 497 Duration.MICROSECONDS_PER_MILLISECOND = 1000; |
| 498 Duration.MILLISECONDS_PER_SECOND = 1000; | 498 Duration.MILLISECONDS_PER_SECOND = 1000; |
| 499 Duration.SECONDS_PER_MINUTE = 60; | 499 Duration.SECONDS_PER_MINUTE = 60; |
| 500 Duration.MINUTES_PER_HOUR = 60; | 500 Duration.MINUTES_PER_HOUR = 60; |
| 501 Duration.HOURS_PER_DAY = 24; | 501 Duration.HOURS_PER_DAY = 24; |
| 502 Duration.MICROSECONDS_PER_SECOND = dart.notNull(Duration.MICROSECONDS_PER_MILL
ISECOND) * dart.notNull(Duration.MILLISECONDS_PER_SECOND); | 502 Duration.MICROSECONDS_PER_SECOND = dart.notNull(Duration.MICROSECONDS_PER_MILL
ISECOND) * dart.notNull(Duration.MILLISECONDS_PER_SECOND); |
| 503 Duration.MICROSECONDS_PER_MINUTE = dart.notNull(Duration.MICROSECONDS_PER_SECO
ND) * dart.notNull(Duration.SECONDS_PER_MINUTE); | 503 Duration.MICROSECONDS_PER_MINUTE = dart.notNull(Duration.MICROSECONDS_PER_SECO
ND) * dart.notNull(Duration.SECONDS_PER_MINUTE); |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 549 class ArgumentError extends Error { | 549 class ArgumentError extends Error { |
| 550 ArgumentError(message) { | 550 ArgumentError(message) { |
| 551 if (message === void 0) | 551 if (message === void 0) |
| 552 message = null; | 552 message = null; |
| 553 this.message = message; | 553 this.message = message; |
| 554 this.invalidValue = null; | 554 this.invalidValue = null; |
| 555 this[_hasValue] = false; | 555 this[_hasValue] = false; |
| 556 this.name = null; | 556 this.name = null; |
| 557 super.Error(); | 557 super.Error(); |
| 558 } | 558 } |
| 559 ArgumentError$value(value, name, message) { | 559 value(value, name, message) { |
| 560 if (name === void 0) | 560 if (name === void 0) |
| 561 name = null; | 561 name = null; |
| 562 if (message === void 0) | 562 if (message === void 0) |
| 563 message = "Invalid argument"; | 563 message = "Invalid argument"; |
| 564 this.name = name; | 564 this.name = name; |
| 565 this.message = message; | 565 this.message = message; |
| 566 this.invalidValue = value; | 566 this.invalidValue = value; |
| 567 this[_hasValue] = true; | 567 this[_hasValue] = true; |
| 568 super.Error(); | 568 super.Error(); |
| 569 } | 569 } |
| 570 ArgumentError$notNull(name) { | 570 notNull(name) { |
| 571 if (name === void 0) | 571 if (name === void 0) |
| 572 name = null; | 572 name = null; |
| 573 this.ArgumentError$value(null, name, "Must not be null"); | 573 this.value(null, name, "Must not be null"); |
| 574 } | 574 } |
| 575 toString() { | 575 toString() { |
| 576 if (!dart.notNull(this[_hasValue])) { | 576 if (!dart.notNull(this[_hasValue])) { |
| 577 let result = "Invalid arguments(s)"; | 577 let result = "Invalid arguments(s)"; |
| 578 if (this.message !== null) { | 578 if (this.message !== null) { |
| 579 result = `${result}: ${this.message}`; | 579 result = `${result}: ${this.message}`; |
| 580 } | 580 } |
| 581 return result; | 581 return result; |
| 582 } | 582 } |
| 583 let nameString = ""; | 583 let nameString = ""; |
| 584 if (this.name !== null) { | 584 if (this.name !== null) { |
| 585 nameString = ` (${this.name})`; | 585 nameString = ` (${this.name})`; |
| 586 } | 586 } |
| 587 return `${this.message}${nameString}: ${Error.safeToString(this.invalidVal
ue)}`; | 587 return `${this.message}${nameString}: ${Error.safeToString(this.invalidVal
ue)}`; |
| 588 } | 588 } |
| 589 } | 589 } |
| 590 dart.defineNamedConstructor(ArgumentError, 'value'); | 590 dart.defineNamedConstructor(ArgumentError, 'value'); |
| 591 dart.defineNamedConstructor(ArgumentError, 'notNull'); | 591 dart.defineNamedConstructor(ArgumentError, 'notNull'); |
| 592 class RangeError extends ArgumentError { | 592 class RangeError extends ArgumentError { |
| 593 RangeError(message) { | 593 RangeError(message) { |
| 594 this.start = null; | 594 this.start = null; |
| 595 this.end = null; | 595 this.end = null; |
| 596 super.ArgumentError(message); | 596 super.ArgumentError(message); |
| 597 } | 597 } |
| 598 RangeError$value(value, name, message) { | 598 value(value, name, message) { |
| 599 if (name === void 0) | 599 if (name === void 0) |
| 600 name = null; | 600 name = null; |
| 601 if (message === void 0) | 601 if (message === void 0) |
| 602 message = null; | 602 message = null; |
| 603 this.start = null; | 603 this.start = null; |
| 604 this.end = null; | 604 this.end = null; |
| 605 super.ArgumentError$value(value, name, message !== null ? message : "Value
not in range"); | 605 super.value(value, name, message !== null ? message : "Value not in range"
); |
| 606 } | 606 } |
| 607 RangeError$range(invalidValue, minValue, maxValue, name, message) { | 607 range(invalidValue, minValue, maxValue, name, message) { |
| 608 if (name === void 0) | 608 if (name === void 0) |
| 609 name = null; | 609 name = null; |
| 610 if (message === void 0) | 610 if (message === void 0) |
| 611 message = null; | 611 message = null; |
| 612 this.start = minValue; | 612 this.start = minValue; |
| 613 this.end = maxValue; | 613 this.end = maxValue; |
| 614 super.ArgumentError$value(invalidValue, name, message !== null ? message :
"Invalid value"); | 614 super.value(invalidValue, name, message !== null ? message : "Invalid valu
e"); |
| 615 } | 615 } |
| 616 RangeError$index(index, indexable, name, message, length) { | 616 index(index, indexable, name, message, length) { |
| 617 return new IndexError(index, indexable, name, message, length); | 617 return new IndexError(index, indexable, name, message, length); |
| 618 } | 618 } |
| 619 static checkValueInInterval(value, minValue, maxValue, name, message) { | 619 static checkValueInInterval(value, minValue, maxValue, name, message) { |
| 620 if (name === void 0) | 620 if (name === void 0) |
| 621 name = null; | 621 name = null; |
| 622 if (message === void 0) | 622 if (message === void 0) |
| 623 message = null; | 623 message = null; |
| 624 if (dart.notNull(value) < dart.notNull(minValue) || dart.notNull(value) >
dart.notNull(maxValue)) { | 624 if (dart.notNull(value) < dart.notNull(minValue) || dart.notNull(value) >
dart.notNull(maxValue)) { |
| 625 throw new RangeError.range(value, minValue, maxValue, name, message); | 625 throw new RangeError.range(value, minValue, maxValue, name, message); |
| 626 } | 626 } |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 693 class IndexError extends ArgumentError { | 693 class IndexError extends ArgumentError { |
| 694 IndexError(invalidValue, indexable, name, message, length) { | 694 IndexError(invalidValue, indexable, name, message, length) { |
| 695 if (name === void 0) | 695 if (name === void 0) |
| 696 name = null; | 696 name = null; |
| 697 if (message === void 0) | 697 if (message === void 0) |
| 698 message = null; | 698 message = null; |
| 699 if (length === void 0) | 699 if (length === void 0) |
| 700 length = null; | 700 length = null; |
| 701 this.indexable = indexable; | 701 this.indexable = indexable; |
| 702 this.length = dart.as(length !== null ? length : dart.dload(indexable, 'le
ngth'), int); | 702 this.length = dart.as(length !== null ? length : dart.dload(indexable, 'le
ngth'), int); |
| 703 super.ArgumentError$value(invalidValue, name, message !== null ? message :
"Index out of range"); | 703 super.value(invalidValue, name, message !== null ? message : "Index out of
range"); |
| 704 } | 704 } |
| 705 get start() { | 705 get start() { |
| 706 return 0; | 706 return 0; |
| 707 } | 707 } |
| 708 get end() { | 708 get end() { |
| 709 return dart.notNull(this.length) - 1; | 709 return dart.notNull(this.length) - 1; |
| 710 } | 710 } |
| 711 toString() { | 711 toString() { |
| 712 dart.assert(this[_hasValue]); | 712 dart.assert(this[_hasValue]); |
| 713 let target = Error.safeToString(this.indexable); | 713 let target = Error.safeToString(this.indexable); |
| (...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1033 } | 1033 } |
| 1034 // Function identical: (Object, Object) → bool | 1034 // Function identical: (Object, Object) → bool |
| 1035 function identical(a, b) { | 1035 function identical(a, b) { |
| 1036 return _js_helper.Primitives.identicalImplementation(a, b); | 1036 return _js_helper.Primitives.identicalImplementation(a, b); |
| 1037 } | 1037 } |
| 1038 // Function identityHashCode: (Object) → int | 1038 // Function identityHashCode: (Object) → int |
| 1039 function identityHashCode(object) { | 1039 function identityHashCode(object) { |
| 1040 return _js_helper.objectHashCode(object); | 1040 return _js_helper.objectHashCode(object); |
| 1041 } | 1041 } |
| 1042 class int extends num { | 1042 class int extends num { |
| 1043 int$fromEnvironment(name, opts) { | 1043 fromEnvironment(name, opts) { |
| 1044 let defaultValue = opts && 'defaultValue' in opts ? opts.defaultValue : nu
ll; | 1044 let defaultValue = opts && 'defaultValue' in opts ? opts.defaultValue : nu
ll; |
| 1045 throw new UnsupportedError('int.fromEnvironment can only be used as a cons
t constructor'); | 1045 throw new UnsupportedError('int.fromEnvironment can only be used as a cons
t constructor'); |
| 1046 } | 1046 } |
| 1047 static parse(source, opts) { | 1047 static parse(source, opts) { |
| 1048 let radix = opts && 'radix' in opts ? opts.radix : null; | 1048 let radix = opts && 'radix' in opts ? opts.radix : null; |
| 1049 let onError = opts && 'onError' in opts ? opts.onError : null; | 1049 let onError = opts && 'onError' in opts ? opts.onError : null; |
| 1050 return Number(source); | 1050 return Number(source); |
| 1051 } | 1051 } |
| 1052 } | 1052 } |
| 1053 dart.defineNamedConstructor(int, 'fromEnvironment'); | 1053 dart.defineNamedConstructor(int, 'fromEnvironment'); |
| 1054 class Invocation extends Object { | 1054 class Invocation extends Object { |
| 1055 get isAccessor() { | 1055 get isAccessor() { |
| 1056 return dart.notNull(this.isGetter) || dart.notNull(this.isSetter); | 1056 return dart.notNull(this.isGetter) || dart.notNull(this.isSetter); |
| 1057 } | 1057 } |
| 1058 } | 1058 } |
| 1059 let Iterable$ = dart.generic(function(E) { | 1059 let Iterable$ = dart.generic(function(E) { |
| 1060 class Iterable extends Object { | 1060 class Iterable extends Object { |
| 1061 Iterable() { | 1061 Iterable() { |
| 1062 } | 1062 } |
| 1063 Iterable$generate(count, generator) { | 1063 generate(count, generator) { |
| 1064 if (generator === void 0) | 1064 if (generator === void 0) |
| 1065 generator = null; | 1065 generator = null; |
| 1066 if (dart.notNull(count) <= 0) | 1066 if (dart.notNull(count) <= 0) |
| 1067 return new _internal.EmptyIterable(); | 1067 return new _internal.EmptyIterable(); |
| 1068 return new _GeneratorIterable(count, generator); | 1068 return new _GeneratorIterable(count, generator); |
| 1069 } | 1069 } |
| 1070 join(separator) { | 1070 join(separator) { |
| 1071 if (separator === void 0) | 1071 if (separator === void 0) |
| 1072 separator = ""; | 1072 separator = ""; |
| 1073 let buffer = new StringBuffer(); | 1073 let buffer = new StringBuffer(); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 1093 let _generator = dart.JsSymbol('_generator'); | 1093 let _generator = dart.JsSymbol('_generator'); |
| 1094 let _id = dart.JsSymbol('_id'); | 1094 let _id = dart.JsSymbol('_id'); |
| 1095 let _GeneratorIterable$ = dart.generic(function(E) { | 1095 let _GeneratorIterable$ = dart.generic(function(E) { |
| 1096 class _GeneratorIterable extends collection.IterableBase$(E) { | 1096 class _GeneratorIterable extends collection.IterableBase$(E) { |
| 1097 _GeneratorIterable(end$, generator) { | 1097 _GeneratorIterable(end$, generator) { |
| 1098 this[_end] = end$; | 1098 this[_end] = end$; |
| 1099 this[_start] = 0; | 1099 this[_start] = 0; |
| 1100 this[_generator] = dart.as(generator !== null ? generator : _GeneratorIt
erable[_id], _Generator); | 1100 this[_generator] = dart.as(generator !== null ? generator : _GeneratorIt
erable[_id], _Generator); |
| 1101 super.IterableBase(); | 1101 super.IterableBase(); |
| 1102 } | 1102 } |
| 1103 _GeneratorIterable$slice(start$, end$, generator$) { | 1103 slice(start$, end$, generator$) { |
| 1104 this[_start] = start$; | 1104 this[_start] = start$; |
| 1105 this[_end] = end$; | 1105 this[_end] = end$; |
| 1106 this[_generator] = generator$; | 1106 this[_generator] = generator$; |
| 1107 super.IterableBase(); | 1107 super.IterableBase(); |
| 1108 } | 1108 } |
| 1109 get iterator() { | 1109 get iterator() { |
| 1110 return new _GeneratorIterator(this[_start], this[_end], this[_generator]
); | 1110 return new _GeneratorIterator(this[_start], this[_end], this[_generator]
); |
| 1111 } | 1111 } |
| 1112 get length() { | 1112 get length() { |
| 1113 return dart.notNull(this[_end]) - dart.notNull(this[_start]); | 1113 return dart.notNull(this[_end]) - dart.notNull(this[_start]); |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1180 let List$ = dart.generic(function(E) { | 1180 let List$ = dart.generic(function(E) { |
| 1181 class List extends Object { | 1181 class List extends Object { |
| 1182 List(length) { | 1182 List(length) { |
| 1183 if (length === void 0) | 1183 if (length === void 0) |
| 1184 length = new _ListConstructorSentinel(); | 1184 length = new _ListConstructorSentinel(); |
| 1185 if (length === new _ListConstructorSentinel()) { | 1185 if (length === new _ListConstructorSentinel()) { |
| 1186 return new _interceptors.JSArray.emptyGrowable(); | 1186 return new _interceptors.JSArray.emptyGrowable(); |
| 1187 } | 1187 } |
| 1188 return new _interceptors.JSArray.fixed(length); | 1188 return new _interceptors.JSArray.fixed(length); |
| 1189 } | 1189 } |
| 1190 List$filled(length, fill) { | 1190 filled(length, fill) { |
| 1191 let result = new _interceptors.JSArray.fixed(length); | 1191 let result = new _interceptors.JSArray.fixed(length); |
| 1192 if (length !== 0 && dart.notNull(fill !== null)) { | 1192 if (length !== 0 && dart.notNull(fill !== null)) { |
| 1193 for (let i = 0; dart.notNull(i) < dart.notNull(result.length); i = dar
t.notNull(i) + 1) { | 1193 for (let i = 0; dart.notNull(i) < dart.notNull(result.length); i = dar
t.notNull(i) + 1) { |
| 1194 result.set(i, fill); | 1194 result.set(i, fill); |
| 1195 } | 1195 } |
| 1196 } | 1196 } |
| 1197 return dart.as(result, List$(E)); | 1197 return dart.as(result, List$(E)); |
| 1198 } | 1198 } |
| 1199 List$from(elements, opts) { | 1199 from(elements, opts) { |
| 1200 let growable = opts && 'growable' in opts ? opts.growable : true; | 1200 let growable = opts && 'growable' in opts ? opts.growable : true; |
| 1201 return null; | 1201 return null; |
| 1202 } | 1202 } |
| 1203 List$generate(length, generator, opts) { | 1203 generate(length, generator, opts) { |
| 1204 let growable = opts && 'growable' in opts ? opts.growable : true; | 1204 let growable = opts && 'growable' in opts ? opts.growable : true; |
| 1205 let result = null; | 1205 let result = null; |
| 1206 if (growable) { | 1206 if (growable) { |
| 1207 result = ((_$) => { | 1207 result = ((_$) => { |
| 1208 _$.length = length; | 1208 _$.length = length; |
| 1209 return _$; | 1209 return _$; |
| 1210 }).bind(this)(new List$(E).from([])); | 1210 }).bind(this)(new List$(E).from([])); |
| 1211 } else { | 1211 } else { |
| 1212 result = new List(length); | 1212 result = new List(length); |
| 1213 } | 1213 } |
| 1214 for (let i = 0; dart.notNull(i) < dart.notNull(length); i = dart.notNull
(i) + 1) { | 1214 for (let i = 0; dart.notNull(i) < dart.notNull(length); i = dart.notNull
(i) + 1) { |
| 1215 result.set(i, generator(i)); | 1215 result.set(i, generator(i)); |
| 1216 } | 1216 } |
| 1217 return result; | 1217 return result; |
| 1218 } | 1218 } |
| 1219 } | 1219 } |
| 1220 dart.defineNamedConstructor(List, 'filled'); | 1220 dart.defineNamedConstructor(List, 'filled'); |
| 1221 dart.defineNamedConstructor(List, 'from'); | 1221 dart.defineNamedConstructor(List, 'from'); |
| 1222 dart.defineNamedConstructor(List, 'generate'); | 1222 dart.defineNamedConstructor(List, 'generate'); |
| 1223 return List; | 1223 return List; |
| 1224 }); | 1224 }); |
| 1225 let List = List$(dart.dynamic); | 1225 let List = List$(dart.dynamic); |
| 1226 let Map$ = dart.generic(function(K, V) { | 1226 let Map$ = dart.generic(function(K, V) { |
| 1227 class Map extends Object { | 1227 class Map extends Object { |
| 1228 Map() { | 1228 Map() { |
| 1229 return new collection.LinkedHashMap(); | 1229 return new collection.LinkedHashMap(); |
| 1230 } | 1230 } |
| 1231 Map$from(other) { | 1231 from(other) { |
| 1232 return new collection.LinkedHashMap.from(other); | 1232 return new collection.LinkedHashMap.from(other); |
| 1233 } | 1233 } |
| 1234 Map$identity() { | 1234 identity() { |
| 1235 return new collection.LinkedHashMap.identity(); | 1235 return new collection.LinkedHashMap.identity(); |
| 1236 } | 1236 } |
| 1237 Map$fromIterable(iterable, opts) { | 1237 fromIterable(iterable, opts) { |
| 1238 return new collection.LinkedHashMap.fromIterable(iterable, opts); | 1238 return new collection.LinkedHashMap.fromIterable(iterable, opts); |
| 1239 } | 1239 } |
| 1240 Map$fromIterables(keys, values) { | 1240 fromIterables(keys, values) { |
| 1241 return new collection.LinkedHashMap.fromIterables(keys, values); | 1241 return new collection.LinkedHashMap.fromIterables(keys, values); |
| 1242 } | 1242 } |
| 1243 } | 1243 } |
| 1244 dart.defineNamedConstructor(Map, 'from'); | 1244 dart.defineNamedConstructor(Map, 'from'); |
| 1245 dart.defineNamedConstructor(Map, 'identity'); | 1245 dart.defineNamedConstructor(Map, 'identity'); |
| 1246 dart.defineNamedConstructor(Map, 'fromIterable'); | 1246 dart.defineNamedConstructor(Map, 'fromIterable'); |
| 1247 dart.defineNamedConstructor(Map, 'fromIterables'); | 1247 dart.defineNamedConstructor(Map, 'fromIterables'); |
| 1248 return Map; | 1248 return Map; |
| 1249 }); | 1249 }); |
| 1250 let Map = Map$(dart.dynamic, dart.dynamic); | 1250 let Map = Map$(dart.dynamic, dart.dynamic); |
| 1251 let _uninstantiable = dart.JsSymbol('_uninstantiable'); | 1251 let _uninstantiable = dart.JsSymbol('_uninstantiable'); |
| 1252 class Null extends Object { | 1252 class Null extends Object { |
| 1253 Null$_uninstantiable() { | 1253 [_uninstantiable]() { |
| 1254 throw new UnsupportedError('class Null cannot be instantiated'); | 1254 throw new UnsupportedError('class Null cannot be instantiated'); |
| 1255 } | 1255 } |
| 1256 toString() { | 1256 toString() { |
| 1257 return "null"; | 1257 return "null"; |
| 1258 } | 1258 } |
| 1259 } | 1259 } |
| 1260 dart.defineNamedConstructor(Null, _uninstantiable); | 1260 dart.defineNamedConstructor(Null, _uninstantiable); |
| 1261 class Pattern extends Object { | 1261 class Pattern extends Object { |
| 1262 } | 1262 } |
| 1263 // Function print: (Object) → void | 1263 // Function print: (Object) → void |
| (...skipping 12 matching lines...) Expand all Loading... |
| 1276 let multiLine = opts && 'multiLine' in opts ? opts.multiLine : false; | 1276 let multiLine = opts && 'multiLine' in opts ? opts.multiLine : false; |
| 1277 let caseSensitive = opts && 'caseSensitive' in opts ? opts.caseSensitive :
true; | 1277 let caseSensitive = opts && 'caseSensitive' in opts ? opts.caseSensitive :
true; |
| 1278 return new _js_helper.JSSyntaxRegExp(source, {multiLine: multiLine, caseSe
nsitive: caseSensitive}); | 1278 return new _js_helper.JSSyntaxRegExp(source, {multiLine: multiLine, caseSe
nsitive: caseSensitive}); |
| 1279 } | 1279 } |
| 1280 } | 1280 } |
| 1281 let Set$ = dart.generic(function(E) { | 1281 let Set$ = dart.generic(function(E) { |
| 1282 class Set extends collection.IterableBase$(E) { | 1282 class Set extends collection.IterableBase$(E) { |
| 1283 Set() { | 1283 Set() { |
| 1284 return new collection.LinkedHashSet(); | 1284 return new collection.LinkedHashSet(); |
| 1285 } | 1285 } |
| 1286 Set$identity() { | 1286 identity() { |
| 1287 return new collection.LinkedHashSet.identity(); | 1287 return new collection.LinkedHashSet.identity(); |
| 1288 } | 1288 } |
| 1289 Set$from(elements) { | 1289 from(elements) { |
| 1290 return new collection.LinkedHashSet.from(elements); | 1290 return new collection.LinkedHashSet.from(elements); |
| 1291 } | 1291 } |
| 1292 } | 1292 } |
| 1293 dart.defineNamedConstructor(Set, 'identity'); | 1293 dart.defineNamedConstructor(Set, 'identity'); |
| 1294 dart.defineNamedConstructor(Set, 'from'); | 1294 dart.defineNamedConstructor(Set, 'from'); |
| 1295 return Set; | 1295 return Set; |
| 1296 }); | 1296 }); |
| 1297 dart.defineLazyClassGeneric(exports, 'Set', {get: Set$}); | 1297 dart.defineLazyClassGeneric(exports, 'Set', {get: Set$}); |
| 1298 let Sink$ = dart.generic(function(T) { | 1298 let Sink$ = dart.generic(function(T) { |
| 1299 class Sink extends Object { | 1299 class Sink extends Object { |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1360 _js_helper.Primitives.initTicker(); | 1360 _js_helper.Primitives.initTicker(); |
| 1361 Stopwatch[_frequency] = _js_helper.Primitives.timerFrequency; | 1361 Stopwatch[_frequency] = _js_helper.Primitives.timerFrequency; |
| 1362 } | 1362 } |
| 1363 static [_now]() { | 1363 static [_now]() { |
| 1364 return dart.as(dart.dinvoke(_js_helper.Primitives, 'timerTicks'), int); | 1364 return dart.as(dart.dinvoke(_js_helper.Primitives, 'timerTicks'), int); |
| 1365 } | 1365 } |
| 1366 } | 1366 } |
| 1367 Stopwatch._frequency = null; | 1367 Stopwatch._frequency = null; |
| 1368 let _stringFromIterable = dart.JsSymbol('_stringFromIterable'); | 1368 let _stringFromIterable = dart.JsSymbol('_stringFromIterable'); |
| 1369 class String extends Object { | 1369 class String extends Object { |
| 1370 String$fromCharCodes(charCodes, start, end) { | 1370 fromCharCodes(charCodes, start, end) { |
| 1371 if (start === void 0) | 1371 if (start === void 0) |
| 1372 start = 0; | 1372 start = 0; |
| 1373 if (end === void 0) | 1373 if (end === void 0) |
| 1374 end = null; | 1374 end = null; |
| 1375 if (!dart.is(charCodes, _interceptors.JSArray)) { | 1375 if (!dart.is(charCodes, _interceptors.JSArray)) { |
| 1376 return String[_stringFromIterable](charCodes, start, end); | 1376 return String[_stringFromIterable](charCodes, start, end); |
| 1377 } | 1377 } |
| 1378 let list = dart.as(charCodes, List); | 1378 let list = dart.as(charCodes, List); |
| 1379 let len = list.length; | 1379 let len = list.length; |
| 1380 if (dart.notNull(start) < 0 || dart.notNull(start) > dart.notNull(len)) { | 1380 if (dart.notNull(start) < 0 || dart.notNull(start) > dart.notNull(len)) { |
| 1381 throw new RangeError.range(start, 0, len); | 1381 throw new RangeError.range(start, 0, len); |
| 1382 } | 1382 } |
| 1383 if (end === null) { | 1383 if (end === null) { |
| 1384 end = len; | 1384 end = len; |
| 1385 } else if (dart.notNull(end) < dart.notNull(start) || dart.notNull(end) >
dart.notNull(len)) { | 1385 } else if (dart.notNull(end) < dart.notNull(start) || dart.notNull(end) >
dart.notNull(len)) { |
| 1386 throw new RangeError.range(end, start, len); | 1386 throw new RangeError.range(end, start, len); |
| 1387 } | 1387 } |
| 1388 if (dart.notNull(start) > 0 || dart.notNull(end) < dart.notNull(len)) { | 1388 if (dart.notNull(start) > 0 || dart.notNull(end) < dart.notNull(len)) { |
| 1389 list = list.sublist(start, end); | 1389 list = list.sublist(start, end); |
| 1390 } | 1390 } |
| 1391 return _js_helper.Primitives.stringFromCharCodes(list); | 1391 return _js_helper.Primitives.stringFromCharCodes(list); |
| 1392 } | 1392 } |
| 1393 String$fromCharCode(charCode) { | 1393 fromCharCode(charCode) { |
| 1394 return _js_helper.Primitives.stringFromCharCode(charCode); | 1394 return _js_helper.Primitives.stringFromCharCode(charCode); |
| 1395 } | 1395 } |
| 1396 String$fromEnvironment(name, opts) { | 1396 fromEnvironment(name, opts) { |
| 1397 let defaultValue = opts && 'defaultValue' in opts ? opts.defaultValue : nu
ll; | 1397 let defaultValue = opts && 'defaultValue' in opts ? opts.defaultValue : nu
ll; |
| 1398 throw new UnsupportedError('String.fromEnvironment can only be used as a c
onst constructor'); | 1398 throw new UnsupportedError('String.fromEnvironment can only be used as a c
onst constructor'); |
| 1399 } | 1399 } |
| 1400 static [_stringFromIterable](charCodes, start, end) { | 1400 static [_stringFromIterable](charCodes, start, end) { |
| 1401 if (dart.notNull(start) < 0) | 1401 if (dart.notNull(start) < 0) |
| 1402 throw new RangeError.range(start, 0, charCodes.length); | 1402 throw new RangeError.range(start, 0, charCodes.length); |
| 1403 if (end !== null && dart.notNull(end) < dart.notNull(start)) { | 1403 if (end !== null && dart.notNull(end) < dart.notNull(start)) { |
| 1404 throw new RangeError.range(end, start, charCodes.length); | 1404 throw new RangeError.range(end, start, charCodes.length); |
| 1405 } | 1405 } |
| 1406 let it = charCodes.iterator; | 1406 let it = charCodes.iterator; |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1471 let _nextPosition = dart.JsSymbol('_nextPosition'); | 1471 let _nextPosition = dart.JsSymbol('_nextPosition'); |
| 1472 let _currentCodePoint = dart.JsSymbol('_currentCodePoint'); | 1472 let _currentCodePoint = dart.JsSymbol('_currentCodePoint'); |
| 1473 let _checkSplitSurrogate = dart.JsSymbol('_checkSplitSurrogate'); | 1473 let _checkSplitSurrogate = dart.JsSymbol('_checkSplitSurrogate'); |
| 1474 class RuneIterator extends Object { | 1474 class RuneIterator extends Object { |
| 1475 RuneIterator(string) { | 1475 RuneIterator(string) { |
| 1476 this.string = string; | 1476 this.string = string; |
| 1477 this[_position] = 0; | 1477 this[_position] = 0; |
| 1478 this[_nextPosition] = 0; | 1478 this[_nextPosition] = 0; |
| 1479 this[_currentCodePoint] = null; | 1479 this[_currentCodePoint] = null; |
| 1480 } | 1480 } |
| 1481 RuneIterator$at(string, index) { | 1481 at(string, index) { |
| 1482 this.string = string; | 1482 this.string = string; |
| 1483 this[_position] = index; | 1483 this[_position] = index; |
| 1484 this[_nextPosition] = index; | 1484 this[_nextPosition] = index; |
| 1485 this[_currentCodePoint] = null; | 1485 this[_currentCodePoint] = null; |
| 1486 RangeError.checkValueInInterval(index, 0, string.length); | 1486 RangeError.checkValueInInterval(index, 0, string.length); |
| 1487 this[_checkSplitSurrogate](index); | 1487 this[_checkSplitSurrogate](index); |
| 1488 } | 1488 } |
| 1489 [_checkSplitSurrogate](index) { | 1489 [_checkSplitSurrogate](index) { |
| 1490 if (dart.notNull(index) > 0 && dart.notNull(index) < dart.notNull(this.str
ing.length) && dart.notNull(_isLeadSurrogate(this.string.codeUnitAt(dart.notNull
(index) - 1))) && dart.notNull(_isTrailSurrogate(this.string.codeUnitAt(index)))
) { | 1490 if (dart.notNull(index) > 0 && dart.notNull(index) < dart.notNull(this.str
ing.length) && dart.notNull(_isLeadSurrogate(this.string.codeUnitAt(dart.notNull
(index) - 1))) && dart.notNull(_isTrailSurrogate(this.string.codeUnitAt(index)))
) { |
| 1491 throw new ArgumentError(`Index inside surrogate pair: ${index}`); | 1491 throw new ArgumentError(`Index inside surrogate pair: ${index}`); |
| (...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1899 let numberSignIndex = uri.indexOf('#', dart.notNull(index) + 1); | 1899 let numberSignIndex = uri.indexOf('#', dart.notNull(index) + 1); |
| 1900 if (dart.notNull(numberSignIndex) < 0) { | 1900 if (dart.notNull(numberSignIndex) < 0) { |
| 1901 query = Uri[_makeQuery](uri, dart.notNull(index) + 1, uri.length, null
); | 1901 query = Uri[_makeQuery](uri, dart.notNull(index) + 1, uri.length, null
); |
| 1902 } else { | 1902 } else { |
| 1903 query = Uri[_makeQuery](uri, dart.notNull(index) + 1, numberSignIndex,
null); | 1903 query = Uri[_makeQuery](uri, dart.notNull(index) + 1, numberSignIndex,
null); |
| 1904 fragment = Uri[_makeFragment](uri, dart.notNull(numberSignIndex) + 1,
uri.length); | 1904 fragment = Uri[_makeFragment](uri, dart.notNull(numberSignIndex) + 1,
uri.length); |
| 1905 } | 1905 } |
| 1906 } else if (char === Uri[_NUMBER_SIGN]) { | 1906 } else if (char === Uri[_NUMBER_SIGN]) { |
| 1907 fragment = Uri[_makeFragment](uri, dart.notNull(index) + 1, uri.length); | 1907 fragment = Uri[_makeFragment](uri, dart.notNull(index) + 1, uri.length); |
| 1908 } | 1908 } |
| 1909 return new Uri._internal(scheme, userinfo, host, port, path, query, fragme
nt); | 1909 return new Uri[_internal$](scheme, userinfo, host, port, path, query, frag
ment); |
| 1910 } | 1910 } |
| 1911 static [_fail](uri, index, message) { | 1911 static [_fail](uri, index, message) { |
| 1912 throw new FormatException(message, uri, index); | 1912 throw new FormatException(message, uri, index); |
| 1913 } | 1913 } |
| 1914 Uri$_internal(scheme, userInfo$, host$, port$, path$, query$, fragment$) { | 1914 [_internal$](scheme, userInfo$, host$, port$, path$, query$, fragment$) { |
| 1915 this.scheme = scheme; | 1915 this.scheme = scheme; |
| 1916 this[_userInfo] = userInfo$; | 1916 this[_userInfo] = userInfo$; |
| 1917 this[_host] = host$; | 1917 this[_host] = host$; |
| 1918 this[_port] = port$; | 1918 this[_port] = port$; |
| 1919 this[_path] = path$; | 1919 this[_path] = path$; |
| 1920 this[_query] = query$; | 1920 this[_query] = query$; |
| 1921 this[_fragment] = fragment$; | 1921 this[_fragment] = fragment$; |
| 1922 this[_pathSegments] = null; | 1922 this[_pathSegments] = null; |
| 1923 this[_queryParameters] = null; | 1923 this[_queryParameters] = null; |
| 1924 } | 1924 } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 1939 query = null; | 1939 query = null; |
| 1940 query = Uri[_makeQuery](query, 0, Uri[_stringOrNullLength](query), queryPa
rameters); | 1940 query = Uri[_makeQuery](query, 0, Uri[_stringOrNullLength](query), queryPa
rameters); |
| 1941 fragment = Uri[_makeFragment](fragment, 0, Uri[_stringOrNullLength](fragme
nt)); | 1941 fragment = Uri[_makeFragment](fragment, 0, Uri[_stringOrNullLength](fragme
nt)); |
| 1942 port = Uri[_makePort](port, scheme); | 1942 port = Uri[_makePort](port, scheme); |
| 1943 let isFile = dart.equals(scheme, "file"); | 1943 let isFile = dart.equals(scheme, "file"); |
| 1944 if (dart.notNull(host === null) && (dart.notNull(userInfo.isNotEmpty) || p
ort !== null || dart.notNull(isFile))) { | 1944 if (dart.notNull(host === null) && (dart.notNull(userInfo.isNotEmpty) || p
ort !== null || dart.notNull(isFile))) { |
| 1945 host = ""; | 1945 host = ""; |
| 1946 } | 1946 } |
| 1947 let ensureLeadingSlash = host !== null; | 1947 let ensureLeadingSlash = host !== null; |
| 1948 path = Uri[_makePath](path, 0, Uri[_stringOrNullLength](path), pathSegment
s, ensureLeadingSlash, isFile); | 1948 path = Uri[_makePath](path, 0, Uri[_stringOrNullLength](path), pathSegment
s, ensureLeadingSlash, isFile); |
| 1949 return new Uri._internal(scheme, userInfo, host, port, path, query, fragme
nt); | 1949 return new Uri[_internal$](scheme, userInfo, host, port, path, query, frag
ment); |
| 1950 } | 1950 } |
| 1951 Uri$http(authority, unencodedPath, queryParameters) { | 1951 http(authority, unencodedPath, queryParameters) { |
| 1952 if (queryParameters === void 0) | 1952 if (queryParameters === void 0) |
| 1953 queryParameters = null; | 1953 queryParameters = null; |
| 1954 return Uri[_makeHttpUri]("http", authority, unencodedPath, queryParameters
); | 1954 return Uri[_makeHttpUri]("http", authority, unencodedPath, queryParameters
); |
| 1955 } | 1955 } |
| 1956 Uri$https(authority, unencodedPath, queryParameters) { | 1956 https(authority, unencodedPath, queryParameters) { |
| 1957 if (queryParameters === void 0) | 1957 if (queryParameters === void 0) |
| 1958 queryParameters = null; | 1958 queryParameters = null; |
| 1959 return Uri[_makeHttpUri]("https", authority, unencodedPath, queryParameter
s); | 1959 return Uri[_makeHttpUri]("https", authority, unencodedPath, queryParameter
s); |
| 1960 } | 1960 } |
| 1961 static [_makeHttpUri](scheme, authority, unencodedPath, queryParameters) { | 1961 static [_makeHttpUri](scheme, authority, unencodedPath, queryParameters) { |
| 1962 let userInfo = ""; | 1962 let userInfo = ""; |
| 1963 let host = null; | 1963 let host = null; |
| 1964 let port = null; | 1964 let port = null; |
| 1965 if (dart.notNull(authority !== null) && dart.notNull(authority.isNotEmpty)
) { | 1965 if (dart.notNull(authority !== null) && dart.notNull(authority.isNotEmpty)
) { |
| 1966 let hostStart = 0; | 1966 let hostStart = 0; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 1994 let portString = authority.substring(dart.notNull(hostEnd) + 1); | 1994 let portString = authority.substring(dart.notNull(hostEnd) + 1); |
| 1995 if (portString.isNotEmpty) | 1995 if (portString.isNotEmpty) |
| 1996 port = int.parse(portString); | 1996 port = int.parse(portString); |
| 1997 break; | 1997 break; |
| 1998 } | 1998 } |
| 1999 } | 1999 } |
| 2000 host = authority.substring(hostStart, hostEnd); | 2000 host = authority.substring(hostStart, hostEnd); |
| 2001 } | 2001 } |
| 2002 return new Uri({scheme: scheme, userInfo: userInfo, host: dart.as(host, St
ring), port: dart.as(port, int), pathSegments: unencodedPath.split("/"), queryPa
rameters: queryParameters}); | 2002 return new Uri({scheme: scheme, userInfo: userInfo, host: dart.as(host, St
ring), port: dart.as(port, int), pathSegments: unencodedPath.split("/"), queryPa
rameters: queryParameters}); |
| 2003 } | 2003 } |
| 2004 Uri$file(path, opts) { | 2004 file(path, opts) { |
| 2005 let windows = opts && 'windows' in opts ? opts.windows : null; | 2005 let windows = opts && 'windows' in opts ? opts.windows : null; |
| 2006 windows = windows === null ? Uri[_isWindows] : windows; | 2006 windows = windows === null ? Uri[_isWindows] : windows; |
| 2007 return dart.as(windows ? Uri[_makeWindowsFileUrl](path) : Uri[_makeFileUri
](path), Uri); | 2007 return dart.as(windows ? Uri[_makeWindowsFileUrl](path) : Uri[_makeFileUri
](path), Uri); |
| 2008 } | 2008 } |
| 2009 static get base() { | 2009 static get base() { |
| 2010 let uri = _js_helper.Primitives.currentUri(); | 2010 let uri = _js_helper.Primitives.currentUri(); |
| 2011 if (uri !== null) | 2011 if (uri !== null) |
| 2012 return Uri.parse(uri); | 2012 return Uri.parse(uri); |
| 2013 throw new UnsupportedError("'Uri.base' is not supported"); | 2013 throw new UnsupportedError("'Uri.base' is not supported"); |
| 2014 } | 2014 } |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2149 if (dart.notNull(query !== null) || dart.notNull(queryParameters !== null)
) { | 2149 if (dart.notNull(query !== null) || dart.notNull(queryParameters !== null)
) { |
| 2150 query = Uri[_makeQuery](query, 0, Uri[_stringOrNullLength](query), query
Parameters); | 2150 query = Uri[_makeQuery](query, 0, Uri[_stringOrNullLength](query), query
Parameters); |
| 2151 } else if (this.hasQuery) { | 2151 } else if (this.hasQuery) { |
| 2152 query = this.query; | 2152 query = this.query; |
| 2153 } | 2153 } |
| 2154 if (fragment !== null) { | 2154 if (fragment !== null) { |
| 2155 fragment = Uri[_makeFragment](fragment, 0, fragment.length); | 2155 fragment = Uri[_makeFragment](fragment, 0, fragment.length); |
| 2156 } else if (this.hasFragment) { | 2156 } else if (this.hasFragment) { |
| 2157 fragment = this.fragment; | 2157 fragment = this.fragment; |
| 2158 } | 2158 } |
| 2159 return new Uri._internal(scheme, userInfo, host, port, path, query, fragme
nt); | 2159 return new Uri[_internal$](scheme, userInfo, host, port, path, query, frag
ment); |
| 2160 } | 2160 } |
| 2161 get pathSegments() { | 2161 get pathSegments() { |
| 2162 if (this[_pathSegments] === null) { | 2162 if (this[_pathSegments] === null) { |
| 2163 let pathToSplit = !dart.notNull(this.path.isEmpty) && this.path.codeUnit
At(0) === Uri[_SLASH] ? this.path.substring(1) : this.path; | 2163 let pathToSplit = !dart.notNull(this.path.isEmpty) && this.path.codeUnit
At(0) === Uri[_SLASH] ? this.path.substring(1) : this.path; |
| 2164 this[_pathSegments] = dart.as(new collection.UnmodifiableListView(dart.e
quals(pathToSplit, "") ? /* Unimplemented const */new List$(String).from([]) : p
athToSplit.split("/").map(Uri.decodeComponent).toList({growable: false})), List$
(String)); | 2164 this[_pathSegments] = dart.as(new collection.UnmodifiableListView(dart.e
quals(pathToSplit, "") ? /* Unimplemented const */new List$(String).from([]) : p
athToSplit.split("/").map(Uri.decodeComponent).toList({growable: false})), List$
(String)); |
| 2165 } | 2165 } |
| 2166 return this[_pathSegments]; | 2166 return this[_pathSegments]; |
| 2167 } | 2167 } |
| 2168 get queryParameters() { | 2168 get queryParameters() { |
| 2169 if (this[_queryParameters] === null) { | 2169 if (this[_queryParameters] === null) { |
| (...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2583 } | 2583 } |
| 2584 if (reference.hasQuery) | 2584 if (reference.hasQuery) |
| 2585 targetQuery = reference.query; | 2585 targetQuery = reference.query; |
| 2586 } | 2586 } |
| 2587 targetUserInfo = this[_userInfo]; | 2587 targetUserInfo = this[_userInfo]; |
| 2588 targetHost = this[_host]; | 2588 targetHost = this[_host]; |
| 2589 targetPort = this[_port]; | 2589 targetPort = this[_port]; |
| 2590 } | 2590 } |
| 2591 } | 2591 } |
| 2592 let fragment = reference.hasFragment ? reference.fragment : null; | 2592 let fragment = reference.hasFragment ? reference.fragment : null; |
| 2593 return new Uri._internal(targetScheme, targetUserInfo, targetHost, targetP
ort, targetPath, targetQuery, fragment); | 2593 return new Uri[_internal$](targetScheme, targetUserInfo, targetHost, targe
tPort, targetPath, targetQuery, fragment); |
| 2594 } | 2594 } |
| 2595 get hasAuthority() { | 2595 get hasAuthority() { |
| 2596 return this[_host] !== null; | 2596 return this[_host] !== null; |
| 2597 } | 2597 } |
| 2598 get hasPort() { | 2598 get hasPort() { |
| 2599 return this[_port] !== null; | 2599 return this[_port] !== null; |
| 2600 } | 2600 } |
| 2601 get hasQuery() { | 2601 get hasQuery() { |
| 2602 return this[_query] !== null; | 2602 return this[_query] !== null; |
| 2603 } | 2603 } |
| (...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3070 exports.StackTrace = StackTrace; | 3070 exports.StackTrace = StackTrace; |
| 3071 exports.Stopwatch = Stopwatch; | 3071 exports.Stopwatch = Stopwatch; |
| 3072 exports.String = String; | 3072 exports.String = String; |
| 3073 exports.RuneIterator = RuneIterator; | 3073 exports.RuneIterator = RuneIterator; |
| 3074 exports.StringBuffer = StringBuffer; | 3074 exports.StringBuffer = StringBuffer; |
| 3075 exports.StringSink = StringSink; | 3075 exports.StringSink = StringSink; |
| 3076 exports.Symbol = Symbol; | 3076 exports.Symbol = Symbol; |
| 3077 exports.Type = Type; | 3077 exports.Type = Type; |
| 3078 exports.Uri = Uri; | 3078 exports.Uri = Uri; |
| 3079 })(core || (core = {})); | 3079 })(core || (core = {})); |
| OLD | NEW |