| OLD | NEW |
| 1 var core; | 1 var core; |
| 2 (function(exports) { | 2 (function(exports) { |
| 3 'use strict'; | 3 'use strict'; |
| 4 // Function _symbolToString: (Symbol) → String | 4 class Deprecated extends Object { |
| 5 function _symbolToString(symbol) { | |
| 6 return _internal.Symbol.getName(dart.as(symbol, _internal.Symbol)); | |
| 7 } | |
| 8 // Function _symbolMapToStringMap: (Map<Symbol, dynamic>) → dynamic | |
| 9 function _symbolMapToStringMap(map) { | |
| 10 if (map === null) | |
| 11 return null; | |
| 12 let result = new Map(); | |
| 13 map.forEach((key, value) => { | |
| 14 result.set(_symbolToString(key), value); | |
| 15 }); | |
| 16 return result; | |
| 17 } | |
| 18 class _ListConstructorSentinel extends _interceptors.JSInt { | |
| 19 _ListConstructorSentinel() { | |
| 20 super.JSInt(); | |
| 21 } | |
| 22 } | |
| 23 class Deprecated extends dart.Object { | |
| 24 Deprecated(expires) { | 5 Deprecated(expires) { |
| 25 this.expires = expires; | 6 this.expires = expires; |
| 26 } | 7 } |
| 27 toString() { | 8 toString() { |
| 28 return `Deprecated feature. Will be removed ${this.expires}`; | 9 return `Deprecated feature. Will be removed ${this.expires}`; |
| 29 } | 10 } |
| 30 } | 11 } |
| 31 class _Override extends dart.Object { | 12 class _Override extends Object { |
| 32 _Override() { | 13 _Override() { |
| 33 } | 14 } |
| 34 } | 15 } |
| 35 let deprecated = new Deprecated("next release"); | 16 let deprecated = new Deprecated("next release"); |
| 36 let override = new _Override(); | 17 let override = new _Override(); |
| 37 class _Proxy extends dart.Object { | 18 class _Proxy extends Object { |
| 38 _Proxy() { | 19 _Proxy() { |
| 39 } | 20 } |
| 40 } | 21 } |
| 41 let proxy = new _Proxy(); | 22 let proxy = new _Proxy(); |
| 42 class bool extends dart.Object { | 23 class bool extends Object { |
| 43 bool$fromEnvironment(name, opt$) { | 24 bool$fromEnvironment(name, opt$) { |
| 44 let defaultValue = opt$.defaultValue === void 0 ? false : opt$.defaultValu
e; | 25 let defaultValue = opt$.defaultValue === void 0 ? false : opt$.defaultValu
e; |
| 45 throw new UnsupportedError('bool.fromEnvironment can only be used as a con
st constructor'); | 26 throw new UnsupportedError('bool.fromEnvironment can only be used as a con
st constructor'); |
| 46 } | 27 } |
| 47 toString() { | 28 toString() { |
| 48 return this ? "true" : "false"; | 29 return this ? "true" : "false"; |
| 49 } | 30 } |
| 50 } | 31 } |
| 51 dart.defineNamedConstructor(bool, 'fromEnvironment'); | 32 dart.defineNamedConstructor(bool, 'fromEnvironment'); |
| 52 let Comparable$ = dart.generic(function(T) { | 33 let Comparable$ = dart.generic(function(T) { |
| 53 class Comparable extends dart.Object { | 34 class Comparable extends Object { |
| 54 static compare(a, b) { | 35 static compare(a, b) { |
| 55 return a.compareTo(b); | 36 return a.compareTo(b); |
| 56 } | 37 } |
| 57 } | 38 } |
| 58 return Comparable; | 39 return Comparable; |
| 59 }); | 40 }); |
| 60 let Comparable = Comparable$(dynamic); | 41 let Comparable = Comparable$(dart.dynamic); |
| 61 let _fourDigits = Symbol('_fourDigits'); | 42 let _fourDigits = Symbol('_fourDigits'); |
| 62 let _sixDigits = Symbol('_sixDigits'); | 43 let _sixDigits = Symbol('_sixDigits'); |
| 63 let _threeDigits = Symbol('_threeDigits'); | 44 let _threeDigits = Symbol('_threeDigits'); |
| 64 let _twoDigits = Symbol('_twoDigits'); | 45 let _twoDigits = Symbol('_twoDigits'); |
| 65 let _brokenDownDateToMillisecondsSinceEpoch = Symbol('_brokenDownDateToMillise
condsSinceEpoch'); | 46 let _brokenDownDateToMillisecondsSinceEpoch = Symbol('_brokenDownDateToMillise
condsSinceEpoch'); |
| 66 class DateTime extends dart.Object { | 47 class DateTime extends Object { |
| 67 DateTime(year, month, day, hour, minute, second, millisecond) { | 48 DateTime(year, month, day, hour, minute, second, millisecond) { |
| 68 if (month === void 0) | 49 if (month === void 0) |
| 69 month = 1; | 50 month = 1; |
| 70 if (day === void 0) | 51 if (day === void 0) |
| 71 day = 1; | 52 day = 1; |
| 72 if (hour === void 0) | 53 if (hour === void 0) |
| 73 hour = 0; | 54 hour = 0; |
| 74 if (minute === void 0) | 55 if (minute === void 0) |
| 75 minute = 0; | 56 minute = 0; |
| 76 if (second === void 0) | 57 if (second === void 0) |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 millisecondsSinceEpoch = dart.notNull(millisecondsSinceEpoch) + 1; | 125 millisecondsSinceEpoch = dart.notNull(millisecondsSinceEpoch) + 1; |
| 145 return new DateTime.fromMillisecondsSinceEpoch(millisecondsSinceEpoch, {
isUtc: isUtc}); | 126 return new DateTime.fromMillisecondsSinceEpoch(millisecondsSinceEpoch, {
isUtc: isUtc}); |
| 146 } else { | 127 } else { |
| 147 throw new FormatException("Invalid date format", formattedString); | 128 throw new FormatException("Invalid date format", formattedString); |
| 148 } | 129 } |
| 149 } | 130 } |
| 150 DateTime$fromMillisecondsSinceEpoch(millisecondsSinceEpoch, opt$) { | 131 DateTime$fromMillisecondsSinceEpoch(millisecondsSinceEpoch, opt$) { |
| 151 let isUtc = opt$.isUtc === void 0 ? false : opt$.isUtc; | 132 let isUtc = opt$.isUtc === void 0 ? false : opt$.isUtc; |
| 152 this.millisecondsSinceEpoch = millisecondsSinceEpoch; | 133 this.millisecondsSinceEpoch = millisecondsSinceEpoch; |
| 153 this.isUtc = isUtc; | 134 this.isUtc = isUtc; |
| 154 if (dart.notNull(millisecondsSinceEpoch.abs()) > dart.notNull(_MAX_MILLISE
CONDS_SINCE_EPOCH)) { | 135 if (dart.notNull(millisecondsSinceEpoch.abs()) > dart.notNull(DateTime._MA
X_MILLISECONDS_SINCE_EPOCH)) { |
| 155 throw new ArgumentError(millisecondsSinceEpoch); | 136 throw new ArgumentError(millisecondsSinceEpoch); |
| 156 } | 137 } |
| 157 if (isUtc === null) | 138 if (isUtc === null) |
| 158 throw new ArgumentError(isUtc); | 139 throw new ArgumentError(isUtc); |
| 159 } | 140 } |
| 160 ['=='](other) { | 141 ['=='](other) { |
| 161 if (!dart.notNull(dart.is(other, DateTime))) | 142 if (!dart.notNull(dart.is(other, DateTime))) |
| 162 return false; | 143 return false; |
| 163 return this.millisecondsSinceEpoch === dart.dload(other, 'millisecondsSinc
eEpoch') && this.isUtc === dart.dload(other, 'isUtc'); | 144 return this.millisecondsSinceEpoch === dart.dload(other, 'millisecondsSinc
eEpoch') && this.isUtc === dart.dload(other, 'isUtc'); |
| 164 } | 145 } |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 DateTime._MAX_MILLISECONDS_SINCE_EPOCH = 8640000000000000; | 316 DateTime._MAX_MILLISECONDS_SINCE_EPOCH = 8640000000000000; |
| 336 class double extends num { | 317 class double extends num { |
| 337 static parse(source, onError) { | 318 static parse(source, onError) { |
| 338 if (onError === void 0) | 319 if (onError === void 0) |
| 339 onError = null; | 320 onError = null; |
| 340 return _js_helper.Primitives.parseDouble(source, onError); | 321 return _js_helper.Primitives.parseDouble(source, onError); |
| 341 } | 322 } |
| 342 } | 323 } |
| 343 double.NAN = 0.0 / 0.0; | 324 double.NAN = 0.0 / 0.0; |
| 344 double.INFINITY = 1.0 / 0.0; | 325 double.INFINITY = 1.0 / 0.0; |
| 345 double.NEGATIVE_INFINITY = -dart.notNull(INFINITY); | 326 double.NEGATIVE_INFINITY = -dart.notNull(double.INFINITY); |
| 346 double.MIN_POSITIVE = 5e-324; | 327 double.MIN_POSITIVE = 5e-324; |
| 347 double.MAX_FINITE = 1.7976931348623157e+308; | 328 double.MAX_FINITE = 1.7976931348623157e+308; |
| 348 let _duration = Symbol('_duration'); | 329 let _duration = Symbol('_duration'); |
| 349 class Duration extends dart.Object { | 330 class Duration extends Object { |
| 350 Duration(opt$) { | 331 Duration(opt$) { |
| 351 let days = opt$.days === void 0 ? 0 : opt$.days; | 332 let days = opt$.days === void 0 ? 0 : opt$.days; |
| 352 let hours = opt$.hours === void 0 ? 0 : opt$.hours; | 333 let hours = opt$.hours === void 0 ? 0 : opt$.hours; |
| 353 let minutes = opt$.minutes === void 0 ? 0 : opt$.minutes; | 334 let minutes = opt$.minutes === void 0 ? 0 : opt$.minutes; |
| 354 let seconds = opt$.seconds === void 0 ? 0 : opt$.seconds; | 335 let seconds = opt$.seconds === void 0 ? 0 : opt$.seconds; |
| 355 let milliseconds = opt$.milliseconds === void 0 ? 0 : opt$.milliseconds; | 336 let milliseconds = opt$.milliseconds === void 0 ? 0 : opt$.milliseconds; |
| 356 let microseconds = opt$.microseconds === void 0 ? 0 : opt$.microseconds; | 337 let microseconds = opt$.microseconds === void 0 ? 0 : opt$.microseconds; |
| 357 this.Duration$_microseconds(dart.notNull(days) * dart.notNull(MICROSECONDS
_PER_DAY) + dart.notNull(hours) * dart.notNull(MICROSECONDS_PER_HOUR) + dart.not
Null(minutes) * dart.notNull(MICROSECONDS_PER_MINUTE) + dart.notNull(seconds) *
dart.notNull(MICROSECONDS_PER_SECOND) + dart.notNull(milliseconds) * dart.notNul
l(MICROSECONDS_PER_MILLISECOND) + dart.notNull(microseconds)); | 338 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)); |
| 358 } | 339 } |
| 359 Duration$_microseconds($_duration) { | 340 Duration$_microseconds($_duration) { |
| 360 this[_duration] = $_duration; | 341 this[_duration] = $_duration; |
| 361 } | 342 } |
| 362 ['+'](other) { | 343 ['+'](other) { |
| 363 return new Duration._microseconds(dart.notNull(this[_duration]) + dart.not
Null(other[_duration])); | 344 return new Duration._microseconds(dart.notNull(this[_duration]) + dart.not
Null(other[_duration])); |
| 364 } | 345 } |
| 365 ['-'](other) { | 346 ['-'](other) { |
| 366 return new Duration._microseconds(dart.notNull(this[_duration]) - dart.not
Null(other[_duration])); | 347 return new Duration._microseconds(dart.notNull(this[_duration]) - dart.not
Null(other[_duration])); |
| 367 } | 348 } |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 431 } | 412 } |
| 432 // Function twoDigits: (int) → String | 413 // Function twoDigits: (int) → String |
| 433 function twoDigits(n) { | 414 function twoDigits(n) { |
| 434 if (dart.notNull(n) >= 10) | 415 if (dart.notNull(n) >= 10) |
| 435 return `${n}`; | 416 return `${n}`; |
| 436 return `0${n}`; | 417 return `0${n}`; |
| 437 } | 418 } |
| 438 if (dart.notNull(this.inMicroseconds) < 0) { | 419 if (dart.notNull(this.inMicroseconds) < 0) { |
| 439 return `-${this['unary-']()}`; | 420 return `-${this['unary-']()}`; |
| 440 } | 421 } |
| 441 let twoDigitMinutes = twoDigits(this.inMinutes.remainder(MINUTES_PER_HOUR)
); | 422 let twoDigitMinutes = twoDigits(this.inMinutes.remainder(Duration.MINUTES_
PER_HOUR)); |
| 442 let twoDigitSeconds = twoDigits(this.inSeconds.remainder(SECONDS_PER_MINUT
E)); | 423 let twoDigitSeconds = twoDigits(this.inSeconds.remainder(Duration.SECONDS_
PER_MINUTE)); |
| 443 let sixDigitUs = sixDigits(this.inMicroseconds.remainder(MICROSECONDS_PER_
SECOND)); | 424 let sixDigitUs = sixDigits(this.inMicroseconds.remainder(Duration.MICROSEC
ONDS_PER_SECOND)); |
| 444 return `${this.inHours}:${twoDigitMinutes}:${twoDigitSeconds}.${sixDigitUs
}`; | 425 return `${this.inHours}:${twoDigitMinutes}:${twoDigitSeconds}.${sixDigitUs
}`; |
| 445 } | 426 } |
| 446 get isNegative() { | 427 get isNegative() { |
| 447 return dart.notNull(this[_duration]) < 0; | 428 return dart.notNull(this[_duration]) < 0; |
| 448 } | 429 } |
| 449 abs() { | 430 abs() { |
| 450 return new Duration._microseconds(this[_duration].abs()); | 431 return new Duration._microseconds(this[_duration].abs()); |
| 451 } | 432 } |
| 452 ['-']() { | 433 ['-']() { |
| 453 return new Duration._microseconds(-dart.notNull(this[_duration])); | 434 return new Duration._microseconds(-dart.notNull(this[_duration])); |
| 454 } | 435 } |
| 455 } | 436 } |
| 456 dart.defineNamedConstructor(Duration, '_microseconds'); | 437 dart.defineNamedConstructor(Duration, '_microseconds'); |
| 457 Duration.MICROSECONDS_PER_MILLISECOND = 1000; | 438 Duration.MICROSECONDS_PER_MILLISECOND = 1000; |
| 458 Duration.MILLISECONDS_PER_SECOND = 1000; | 439 Duration.MILLISECONDS_PER_SECOND = 1000; |
| 459 Duration.SECONDS_PER_MINUTE = 60; | 440 Duration.SECONDS_PER_MINUTE = 60; |
| 460 Duration.MINUTES_PER_HOUR = 60; | 441 Duration.MINUTES_PER_HOUR = 60; |
| 461 Duration.HOURS_PER_DAY = 24; | 442 Duration.HOURS_PER_DAY = 24; |
| 462 Duration.MICROSECONDS_PER_SECOND = dart.notNull(MICROSECONDS_PER_MILLISECOND)
* dart.notNull(MILLISECONDS_PER_SECOND); | 443 Duration.MICROSECONDS_PER_SECOND = dart.notNull(Duration.MICROSECONDS_PER_MILL
ISECOND) * dart.notNull(Duration.MILLISECONDS_PER_SECOND); |
| 463 Duration.MICROSECONDS_PER_MINUTE = dart.notNull(MICROSECONDS_PER_SECOND) * dar
t.notNull(SECONDS_PER_MINUTE); | 444 Duration.MICROSECONDS_PER_MINUTE = dart.notNull(Duration.MICROSECONDS_PER_SECO
ND) * dart.notNull(Duration.SECONDS_PER_MINUTE); |
| 464 Duration.MICROSECONDS_PER_HOUR = dart.notNull(MICROSECONDS_PER_MINUTE) * dart.
notNull(MINUTES_PER_HOUR); | 445 Duration.MICROSECONDS_PER_HOUR = dart.notNull(Duration.MICROSECONDS_PER_MINUTE
) * dart.notNull(Duration.MINUTES_PER_HOUR); |
| 465 Duration.MICROSECONDS_PER_DAY = dart.notNull(MICROSECONDS_PER_HOUR) * dart.not
Null(HOURS_PER_DAY); | 446 Duration.MICROSECONDS_PER_DAY = dart.notNull(Duration.MICROSECONDS_PER_HOUR) *
dart.notNull(Duration.HOURS_PER_DAY); |
| 466 Duration.MILLISECONDS_PER_MINUTE = dart.notNull(MILLISECONDS_PER_SECOND) * dar
t.notNull(SECONDS_PER_MINUTE); | 447 Duration.MILLISECONDS_PER_MINUTE = dart.notNull(Duration.MILLISECONDS_PER_SECO
ND) * dart.notNull(Duration.SECONDS_PER_MINUTE); |
| 467 Duration.MILLISECONDS_PER_HOUR = dart.notNull(MILLISECONDS_PER_MINUTE) * dart.
notNull(MINUTES_PER_HOUR); | 448 Duration.MILLISECONDS_PER_HOUR = dart.notNull(Duration.MILLISECONDS_PER_MINUTE
) * dart.notNull(Duration.MINUTES_PER_HOUR); |
| 468 Duration.MILLISECONDS_PER_DAY = dart.notNull(MILLISECONDS_PER_HOUR) * dart.not
Null(HOURS_PER_DAY); | 449 Duration.MILLISECONDS_PER_DAY = dart.notNull(Duration.MILLISECONDS_PER_HOUR) *
dart.notNull(Duration.HOURS_PER_DAY); |
| 469 Duration.SECONDS_PER_HOUR = dart.notNull(SECONDS_PER_MINUTE) * dart.notNull(MI
NUTES_PER_HOUR); | 450 Duration.SECONDS_PER_HOUR = dart.notNull(Duration.SECONDS_PER_MINUTE) * dart.n
otNull(Duration.MINUTES_PER_HOUR); |
| 470 Duration.SECONDS_PER_DAY = dart.notNull(SECONDS_PER_HOUR) * dart.notNull(HOURS
_PER_DAY); | 451 Duration.SECONDS_PER_DAY = dart.notNull(Duration.SECONDS_PER_HOUR) * dart.notN
ull(Duration.HOURS_PER_DAY); |
| 471 Duration.MINUTES_PER_DAY = dart.notNull(MINUTES_PER_HOUR) * dart.notNull(HOURS
_PER_DAY); | 452 Duration.MINUTES_PER_DAY = dart.notNull(Duration.MINUTES_PER_HOUR) * dart.notN
ull(Duration.HOURS_PER_DAY); |
| 472 Duration.ZERO = new Duration({seconds: 0}); | 453 Duration.ZERO = new Duration({seconds: 0}); |
| 473 let _stringToSafeString = Symbol('_stringToSafeString'); | 454 let _stringToSafeString = Symbol('_stringToSafeString'); |
| 474 let _objectToString = Symbol('_objectToString'); | 455 let _objectToString = Symbol('_objectToString'); |
| 475 class Error extends dart.Object { | 456 class Error extends Object { |
| 476 Error() { | 457 Error() { |
| 477 } | 458 } |
| 478 static safeToString(object) { | 459 static safeToString(object) { |
| 479 if (dart.notNull(dart.is(object, num)) || dart.notNull(typeof object == bo
olean) || dart.notNull(null === object)) { | 460 if (dart.notNull(dart.is(object, num)) || dart.notNull(typeof object == bo
olean) || dart.notNull(null === object)) { |
| 480 return object.toString(); | 461 return object.toString(); |
| 481 } | 462 } |
| 482 if (typeof object == string) { | 463 if (typeof object == string) { |
| 483 return _stringToSafeString(object); | 464 return _stringToSafeString(object); |
| 484 } | 465 } |
| 485 return _objectToString(object); | 466 return _objectToString(object); |
| (...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 783 this.modifiedObject = modifiedObject; | 764 this.modifiedObject = modifiedObject; |
| 784 super.Error(); | 765 super.Error(); |
| 785 } | 766 } |
| 786 toString() { | 767 toString() { |
| 787 if (this.modifiedObject === null) { | 768 if (this.modifiedObject === null) { |
| 788 return "Concurrent modification during iteration."; | 769 return "Concurrent modification during iteration."; |
| 789 } | 770 } |
| 790 return "Concurrent modification during iteration: " + `${Error.safeToStrin
g(this.modifiedObject)}.`; | 771 return "Concurrent modification during iteration: " + `${Error.safeToStrin
g(this.modifiedObject)}.`; |
| 791 } | 772 } |
| 792 } | 773 } |
| 793 class OutOfMemoryError extends dart.Object { | 774 class OutOfMemoryError extends Object { |
| 794 OutOfMemoryError() { | 775 OutOfMemoryError() { |
| 795 } | 776 } |
| 796 toString() { | 777 toString() { |
| 797 return "Out of Memory"; | 778 return "Out of Memory"; |
| 798 } | 779 } |
| 799 get stackTrace() { | 780 get stackTrace() { |
| 800 return null; | 781 return null; |
| 801 } | 782 } |
| 802 } | 783 } |
| 803 class StackOverflowError extends dart.Object { | 784 class StackOverflowError extends Object { |
| 804 StackOverflowError() { | 785 StackOverflowError() { |
| 805 } | 786 } |
| 806 toString() { | 787 toString() { |
| 807 return "Stack Overflow"; | 788 return "Stack Overflow"; |
| 808 } | 789 } |
| 809 get stackTrace() { | 790 get stackTrace() { |
| 810 return null; | 791 return null; |
| 811 } | 792 } |
| 812 } | 793 } |
| 813 class CyclicInitializationError extends Error { | 794 class CyclicInitializationError extends Error { |
| 814 CyclicInitializationError(variableName) { | 795 CyclicInitializationError(variableName) { |
| 815 if (variableName === void 0) | 796 if (variableName === void 0) |
| 816 variableName = null; | 797 variableName = null; |
| 817 this.variableName = variableName; | 798 this.variableName = variableName; |
| 818 super.Error(); | 799 super.Error(); |
| 819 } | 800 } |
| 820 toString() { | 801 toString() { |
| 821 return this.variableName === null ? "Reading static variable during its in
itialization" : `Reading static variable '${this.variableName}' during its initi
alization`; | 802 return this.variableName === null ? "Reading static variable during its in
itialization" : `Reading static variable '${this.variableName}' during its initi
alization`; |
| 822 } | 803 } |
| 823 } | 804 } |
| 824 class Exception extends dart.Object { | 805 class Exception extends Object { |
| 825 Exception(message) { | 806 Exception(message) { |
| 826 if (message === void 0) | 807 if (message === void 0) |
| 827 message = null; | 808 message = null; |
| 828 return new _ExceptionImplementation(message); | 809 return new _ExceptionImplementation(message); |
| 829 } | 810 } |
| 830 } | 811 } |
| 831 class _ExceptionImplementation extends dart.Object { | 812 class _ExceptionImplementation extends Object { |
| 832 _ExceptionImplementation(message) { | 813 _ExceptionImplementation(message) { |
| 833 if (message === void 0) | 814 if (message === void 0) |
| 834 message = null; | 815 message = null; |
| 835 this.message = message; | 816 this.message = message; |
| 836 } | 817 } |
| 837 toString() { | 818 toString() { |
| 838 if (this.message === null) | 819 if (this.message === null) |
| 839 return "Exception"; | 820 return "Exception"; |
| 840 return `Exception: ${this.message}`; | 821 return `Exception: ${this.message}`; |
| 841 } | 822 } |
| 842 } | 823 } |
| 843 class FormatException extends dart.Object { | 824 class FormatException extends Object { |
| 844 FormatException(message, source, offset) { | 825 FormatException(message, source, offset) { |
| 845 if (message === void 0) | 826 if (message === void 0) |
| 846 message = ""; | 827 message = ""; |
| 847 if (source === void 0) | 828 if (source === void 0) |
| 848 source = null; | 829 source = null; |
| 849 if (offset === void 0) | 830 if (offset === void 0) |
| 850 offset = -1; | 831 offset = -1; |
| 851 this.message = message; | 832 this.message = message; |
| 852 this.source = source; | 833 this.source = source; |
| 853 this.offset = offset; | 834 this.offset = offset; |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 921 start = dart.notNull(offset) - 36; | 902 start = dart.notNull(offset) - 36; |
| 922 end = dart.notNull(offset) + 36; | 903 end = dart.notNull(offset) + 36; |
| 923 prefix = postfix = "..."; | 904 prefix = postfix = "..."; |
| 924 } | 905 } |
| 925 } | 906 } |
| 926 let slice = dart.as(dart.dinvoke(this.source, 'substring', start, end), St
ring); | 907 let slice = dart.as(dart.dinvoke(this.source, 'substring', start, end), St
ring); |
| 927 let markOffset = dart.notNull(offset) - dart.notNull(start) + dart.notNull
(prefix.length); | 908 let markOffset = dart.notNull(offset) - dart.notNull(start) + dart.notNull
(prefix.length); |
| 928 return `${report}${prefix}${slice}${postfix}\n${String['*'](" ", markOffse
t)}^\n`; | 909 return `${report}${prefix}${slice}${postfix}\n${String['*'](" ", markOffse
t)}^\n`; |
| 929 } | 910 } |
| 930 } | 911 } |
| 931 class IntegerDivisionByZeroException extends dart.Object { | 912 class IntegerDivisionByZeroException extends Object { |
| 932 IntegerDivisionByZeroException() { | 913 IntegerDivisionByZeroException() { |
| 933 } | 914 } |
| 934 toString() { | 915 toString() { |
| 935 return "IntegerDivisionByZeroException"; | 916 return "IntegerDivisionByZeroException"; |
| 936 } | 917 } |
| 937 } | 918 } |
| 938 let _getKey = Symbol('_getKey'); | 919 let _getKey = Symbol('_getKey'); |
| 939 let Expando$ = dart.generic(function(T) { | 920 let Expando$ = dart.generic(function(T) { |
| 940 class Expando extends dart.Object { | 921 class Expando extends Object { |
| 941 Expando(name) { | 922 Expando(name) { |
| 942 if (name === void 0) | 923 if (name === void 0) |
| 943 name = null; | 924 name = null; |
| 944 this.name = name; | 925 this.name = name; |
| 945 } | 926 } |
| 946 toString() { | 927 toString() { |
| 947 return `Expando:${this.name}`; | 928 return `Expando:${this.name}`; |
| 948 } | 929 } |
| 949 get(object) { | 930 get(object) { |
| 950 let values = _js_helper.Primitives.getProperty(object, _EXPANDO_PROPERTY
_NAME); | 931 let values = _js_helper.Primitives.getProperty(object, Expando._EXPANDO_
PROPERTY_NAME); |
| 951 return dart.as(values === null ? null : _js_helper.Primitives.getPropert
y(values, this[_getKey]()), T); | 932 return dart.as(values === null ? null : _js_helper.Primitives.getPropert
y(values, this[_getKey]()), T); |
| 952 } | 933 } |
| 953 set(object, value) { | 934 set(object, value) { |
| 954 let values = _js_helper.Primitives.getProperty(object, _EXPANDO_PROPERTY
_NAME); | 935 let values = _js_helper.Primitives.getProperty(object, Expando._EXPANDO_
PROPERTY_NAME); |
| 955 if (values === null) { | 936 if (values === null) { |
| 956 values = new Object(); | 937 values = new Object(); |
| 957 _js_helper.Primitives.setProperty(object, _EXPANDO_PROPERTY_NAME, valu
es); | 938 _js_helper.Primitives.setProperty(object, Expando._EXPANDO_PROPERTY_NA
ME, values); |
| 958 } | 939 } |
| 959 _js_helper.Primitives.setProperty(values, this[_getKey](), value); | 940 _js_helper.Primitives.setProperty(values, this[_getKey](), value); |
| 960 } | 941 } |
| 961 [_getKey]() { | 942 [_getKey]() { |
| 962 let key = dart.as(_js_helper.Primitives.getProperty(this, _KEY_PROPERTY_
NAME), String); | 943 let key = dart.as(_js_helper.Primitives.getProperty(this, Expando._KEY_P
ROPERTY_NAME), String); |
| 963 if (key === null) { | 944 if (key === null) { |
| 964 key = `expando$key$${(($tmp) => _keyCount = dart.notNull($tmp) + 1, $t
mp)(_keyCount)}`; | 945 key = `expando$key$${(($tmp) => _keyCount = dart.notNull($tmp) + 1, $t
mp)(_keyCount)}`; |
| 965 _js_helper.Primitives.setProperty(this, _KEY_PROPERTY_NAME, key); | 946 _js_helper.Primitives.setProperty(this, Expando._KEY_PROPERTY_NAME, ke
y); |
| 966 } | 947 } |
| 967 return key; | 948 return key; |
| 968 } | 949 } |
| 969 } | 950 } |
| 970 Expando._KEY_PROPERTY_NAME = 'expando$key'; | 951 Expando._KEY_PROPERTY_NAME = 'expando$key'; |
| 971 Expando._EXPANDO_PROPERTY_NAME = 'expando$values'; | 952 Expando._EXPANDO_PROPERTY_NAME = 'expando$values'; |
| 972 Expando._keyCount = 0; | 953 Expando._keyCount = 0; |
| 973 return Expando; | 954 return Expando; |
| 974 }); | 955 }); |
| 975 let Expando = Expando$(dynamic); | 956 let Expando = Expando$(dart.dynamic); |
| 976 let _toMangledNames = Symbol('_toMangledNames'); | 957 let _toMangledNames = Symbol('_toMangledNames'); |
| 977 class Function extends dart.Object { | 958 class Function extends Object { |
| 978 static apply(function, positionalArguments, namedArguments) { | 959 static apply(function, positionalArguments, namedArguments) { |
| 979 if (namedArguments === void 0) | 960 if (namedArguments === void 0) |
| 980 namedArguments = null; | 961 namedArguments = null; |
| 981 return _js_helper.Primitives.applyFunction(function, positionalArguments,
namedArguments === null ? null : _toMangledNames(namedArguments)); | 962 return _js_helper.Primitives.applyFunction(function, positionalArguments,
namedArguments === null ? null : _toMangledNames(namedArguments)); |
| 982 } | 963 } |
| 983 static [_toMangledNames](namedArguments) { | 964 static [_toMangledNames](namedArguments) { |
| 984 let result = dart.as(dart.map(), Map$(String, dynamic)); | 965 let result = dart.as(dart.map(), Map$(String, dynamic)); |
| 985 namedArguments.forEach((symbol, value) => { | 966 namedArguments.forEach((symbol, value) => { |
| 986 result.set(_symbolToString(dart.as(symbol, Symbol)), value); | 967 result.set(_symbolToString(dart.as(symbol, Symbol)), value); |
| 987 }); | 968 }); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 1001 let defaultValue = opt$.defaultValue === void 0 ? null : opt$.defaultValue
; | 982 let defaultValue = opt$.defaultValue === void 0 ? null : opt$.defaultValue
; |
| 1002 throw new UnsupportedError('int.fromEnvironment can only be used as a cons
t constructor'); | 983 throw new UnsupportedError('int.fromEnvironment can only be used as a cons
t constructor'); |
| 1003 } | 984 } |
| 1004 static parse(source, opt$) { | 985 static parse(source, opt$) { |
| 1005 let radix = opt$.radix === void 0 ? null : opt$.radix; | 986 let radix = opt$.radix === void 0 ? null : opt$.radix; |
| 1006 let onError = opt$.onError === void 0 ? null : opt$.onError; | 987 let onError = opt$.onError === void 0 ? null : opt$.onError; |
| 1007 return _js_helper.Primitives.parseInt(source, radix, onError); | 988 return _js_helper.Primitives.parseInt(source, radix, onError); |
| 1008 } | 989 } |
| 1009 } | 990 } |
| 1010 dart.defineNamedConstructor(int, 'fromEnvironment'); | 991 dart.defineNamedConstructor(int, 'fromEnvironment'); |
| 1011 class Invocation extends dart.Object { | 992 class Invocation extends Object { |
| 1012 get isAccessor() { | 993 get isAccessor() { |
| 1013 return dart.notNull(this.isGetter) || dart.notNull(this.isSetter); | 994 return dart.notNull(this.isGetter) || dart.notNull(this.isSetter); |
| 1014 } | 995 } |
| 1015 } | 996 } |
| 1016 let Iterable$ = dart.generic(function(E) { | 997 let Iterable$ = dart.generic(function(E) { |
| 1017 class Iterable extends dart.Object { | 998 class Iterable extends Object { |
| 1018 Iterable() { | 999 Iterable() { |
| 1019 } | 1000 } |
| 1020 Iterable$generate(count, generator) { | 1001 Iterable$generate(count, generator) { |
| 1021 if (generator === void 0) | 1002 if (generator === void 0) |
| 1022 generator = null; | 1003 generator = null; |
| 1023 if (dart.notNull(count) <= 0) | 1004 if (dart.notNull(count) <= 0) |
| 1024 return new _internal.EmptyIterable(); | 1005 return new _internal.EmptyIterable(); |
| 1025 return new _GeneratorIterable(count, generator); | 1006 return new _GeneratorIterable(count, generator); |
| 1026 } | 1007 } |
| 1027 join(separator) { | 1008 join(separator) { |
| 1028 if (separator === void 0) | 1009 if (separator === void 0) |
| 1029 separator = ""; | 1010 separator = ""; |
| 1030 let buffer = new StringBuffer(); | 1011 let buffer = new StringBuffer(); |
| 1031 buffer.writeAll(this, separator); | 1012 buffer.writeAll(this, separator); |
| 1032 return buffer.toString(); | 1013 return buffer.toString(); |
| 1033 } | 1014 } |
| 1034 [Symbol.iterator]() { | 1015 [Symbol.iterator]() { |
| 1035 var iterator = this.iterator; | 1016 var iterator = this.iterator; |
| 1036 return { | 1017 return { |
| 1037 next() { | 1018 next() { |
| 1038 var done = iterator.moveNext(); | 1019 var done = iterator.moveNext(); |
| 1039 return {done: done, current: done ? void 0 : iterator.current}; | 1020 return {done: done, current: done ? void 0 : iterator.current}; |
| 1040 } | 1021 } |
| 1041 }; | 1022 }; |
| 1042 } | 1023 } |
| 1043 } | 1024 } |
| 1044 dart.defineNamedConstructor(Iterable, 'generate'); | 1025 dart.defineNamedConstructor(Iterable, 'generate'); |
| 1045 return Iterable; | 1026 return Iterable; |
| 1046 }); | 1027 }); |
| 1047 let Iterable = Iterable$(dynamic); | 1028 let Iterable = Iterable$(dart.dynamic); |
| 1048 let _end = Symbol('_end'); | 1029 let _end = Symbol('_end'); |
| 1049 let _start = Symbol('_start'); | 1030 let _start = Symbol('_start'); |
| 1050 let _generator = Symbol('_generator'); | 1031 let _generator = Symbol('_generator'); |
| 1051 let _id = Symbol('_id'); | 1032 let _id = Symbol('_id'); |
| 1052 let _GeneratorIterable$ = dart.generic(function(E) { | 1033 let _GeneratorIterable$ = dart.generic(function(E) { |
| 1053 class _GeneratorIterable extends collection.IterableBase$(E) { | 1034 class _GeneratorIterable extends collection.IterableBase$(E) { |
| 1054 _GeneratorIterable($_end, generator) { | 1035 _GeneratorIterable($_end, generator) { |
| 1055 this[_end] = $_end; | 1036 this[_end] = $_end; |
| 1056 this[_start] = 0; | 1037 this[_start] = 0; |
| 1057 this[_generator] = dart.as(generator !== null ? generator : _id, _Genera
tor); | 1038 this[_generator] = dart.as(generator !== null ? generator : _id, _Genera
tor); |
| (...skipping 29 matching lines...) Expand all Loading... |
| 1087 return this; | 1068 return this; |
| 1088 return new _GeneratorIterable.slice(this[_start], newEnd, this[_generato
r]); | 1069 return new _GeneratorIterable.slice(this[_start], newEnd, this[_generato
r]); |
| 1089 } | 1070 } |
| 1090 static [_id](n) { | 1071 static [_id](n) { |
| 1091 return n; | 1072 return n; |
| 1092 } | 1073 } |
| 1093 } | 1074 } |
| 1094 dart.defineNamedConstructor(_GeneratorIterable, 'slice'); | 1075 dart.defineNamedConstructor(_GeneratorIterable, 'slice'); |
| 1095 return _GeneratorIterable; | 1076 return _GeneratorIterable; |
| 1096 }); | 1077 }); |
| 1097 let _GeneratorIterable = _GeneratorIterable$(dynamic); | 1078 let _GeneratorIterable = _GeneratorIterable$(dart.dynamic); |
| 1098 let _index = Symbol('_index'); | 1079 let _index = Symbol('_index'); |
| 1099 let _current = Symbol('_current'); | 1080 let _current = Symbol('_current'); |
| 1100 let _GeneratorIterator$ = dart.generic(function(E) { | 1081 let _GeneratorIterator$ = dart.generic(function(E) { |
| 1101 class _GeneratorIterator extends dart.Object { | 1082 class _GeneratorIterator extends Object { |
| 1102 _GeneratorIterator($_index, $_end, $_generator) { | 1083 _GeneratorIterator($_index, $_end, $_generator) { |
| 1103 this[_index] = $_index; | 1084 this[_index] = $_index; |
| 1104 this[_end] = $_end; | 1085 this[_end] = $_end; |
| 1105 this[_generator] = $_generator; | 1086 this[_generator] = $_generator; |
| 1106 this[_current] = null; | 1087 this[_current] = null; |
| 1107 } | 1088 } |
| 1108 moveNext() { | 1089 moveNext() { |
| 1109 if (dart.notNull(this[_index]) < dart.notNull(this[_end])) { | 1090 if (dart.notNull(this[_index]) < dart.notNull(this[_end])) { |
| 1110 this[_current] = this[_generator](this[_index]); | 1091 this[_current] = this[_generator](this[_index]); |
| 1111 this[_index] = dart.notNull(this[_index]) + 1; | 1092 this[_index] = dart.notNull(this[_index]) + 1; |
| 1112 return true; | 1093 return true; |
| 1113 } else { | 1094 } else { |
| 1114 this[_current] = null; | 1095 this[_current] = null; |
| 1115 return false; | 1096 return false; |
| 1116 } | 1097 } |
| 1117 } | 1098 } |
| 1118 get current() { | 1099 get current() { |
| 1119 return this[_current]; | 1100 return this[_current]; |
| 1120 } | 1101 } |
| 1121 } | 1102 } |
| 1122 return _GeneratorIterator; | 1103 return _GeneratorIterator; |
| 1123 }); | 1104 }); |
| 1124 let _GeneratorIterator = _GeneratorIterator$(dynamic); | 1105 let _GeneratorIterator = _GeneratorIterator$(dart.dynamic); |
| 1125 let BidirectionalIterator$ = dart.generic(function(E) { | 1106 let BidirectionalIterator$ = dart.generic(function(E) { |
| 1126 class BidirectionalIterator extends dart.Object { | 1107 class BidirectionalIterator extends Object { |
| 1127 } | 1108 } |
| 1128 return BidirectionalIterator; | 1109 return BidirectionalIterator; |
| 1129 }); | 1110 }); |
| 1130 let BidirectionalIterator = BidirectionalIterator$(dynamic); | 1111 let BidirectionalIterator = BidirectionalIterator$(dart.dynamic); |
| 1131 let Iterator$ = dart.generic(function(E) { | 1112 let Iterator$ = dart.generic(function(E) { |
| 1132 class Iterator extends dart.Object { | 1113 class Iterator extends Object { |
| 1133 } | 1114 } |
| 1134 return Iterator; | 1115 return Iterator; |
| 1135 }); | 1116 }); |
| 1136 let Iterator = Iterator$(dynamic); | 1117 let Iterator = Iterator$(dart.dynamic); |
| 1137 let List$ = dart.generic(function(E) { | 1118 let List$ = dart.generic(function(E) { |
| 1138 class List extends dart.Object { | 1119 class List extends Object { |
| 1139 List(length) { | 1120 List(length) { |
| 1140 if (length === void 0) | 1121 if (length === void 0) |
| 1141 length = new _ListConstructorSentinel(); | 1122 length = new _ListConstructorSentinel(); |
| 1142 if (length === new _ListConstructorSentinel()) { | 1123 if (length === new _ListConstructorSentinel()) { |
| 1143 return new _interceptors.JSArray.emptyGrowable(); | 1124 return new _interceptors.JSArray.emptyGrowable(); |
| 1144 } | 1125 } |
| 1145 return new _interceptors.JSArray.fixed(length); | 1126 return new _interceptors.JSArray.fixed(length); |
| 1146 } | 1127 } |
| 1147 List$filled(length, fill) { | 1128 List$filled(length, fill) { |
| 1148 let result = new _interceptors.JSArray.fixed(length); | 1129 let result = new _interceptors.JSArray.fixed(length); |
| (...skipping 29 matching lines...) Expand all Loading... |
| 1178 result.set(i, generator(i)); | 1159 result.set(i, generator(i)); |
| 1179 } | 1160 } |
| 1180 return result; | 1161 return result; |
| 1181 } | 1162 } |
| 1182 } | 1163 } |
| 1183 dart.defineNamedConstructor(List, 'filled'); | 1164 dart.defineNamedConstructor(List, 'filled'); |
| 1184 dart.defineNamedConstructor(List, 'from'); | 1165 dart.defineNamedConstructor(List, 'from'); |
| 1185 dart.defineNamedConstructor(List, 'generate'); | 1166 dart.defineNamedConstructor(List, 'generate'); |
| 1186 return List; | 1167 return List; |
| 1187 }); | 1168 }); |
| 1188 let List = List$(dynamic); | 1169 let List = List$(dart.dynamic); |
| 1189 let Map$ = dart.generic(function(K, V) { | 1170 let Map$ = dart.generic(function(K, V) { |
| 1190 class Map extends dart.Object { | 1171 class Map extends Object { |
| 1191 Map() { | 1172 Map() { |
| 1192 return new collection.LinkedHashMap(); | 1173 return new collection.LinkedHashMap(); |
| 1193 } | 1174 } |
| 1194 Map$from(other) { | 1175 Map$from(other) { |
| 1195 return new collection.LinkedHashMap.from(other); | 1176 return new collection.LinkedHashMap.from(other); |
| 1196 } | 1177 } |
| 1197 Map$identity() { | 1178 Map$identity() { |
| 1198 return new collection.LinkedHashMap.identity(); | 1179 return new collection.LinkedHashMap.identity(); |
| 1199 } | 1180 } |
| 1200 Map$fromIterable(iterable, opt$) { | 1181 Map$fromIterable(iterable, opt$) { |
| 1201 return new collection.LinkedHashMap.fromIterable(iterable, opt$); | 1182 return new collection.LinkedHashMap.fromIterable(iterable, opt$); |
| 1202 } | 1183 } |
| 1203 Map$fromIterables(keys, values) { | 1184 Map$fromIterables(keys, values) { |
| 1204 return new collection.LinkedHashMap.fromIterables(keys, values); | 1185 return new collection.LinkedHashMap.fromIterables(keys, values); |
| 1205 } | 1186 } |
| 1206 } | 1187 } |
| 1207 dart.defineNamedConstructor(Map, 'from'); | 1188 dart.defineNamedConstructor(Map, 'from'); |
| 1208 dart.defineNamedConstructor(Map, 'identity'); | 1189 dart.defineNamedConstructor(Map, 'identity'); |
| 1209 dart.defineNamedConstructor(Map, 'fromIterable'); | 1190 dart.defineNamedConstructor(Map, 'fromIterable'); |
| 1210 dart.defineNamedConstructor(Map, 'fromIterables'); | 1191 dart.defineNamedConstructor(Map, 'fromIterables'); |
| 1211 return Map; | 1192 return Map; |
| 1212 }); | 1193 }); |
| 1213 let Map = Map$(dynamic, dynamic); | 1194 let Map = Map$(dart.dynamic, dart.dynamic); |
| 1214 class Null extends dart.Object { | 1195 class Null extends Object { |
| 1215 Null$_uninstantiable() { | 1196 Null$_uninstantiable() { |
| 1216 throw new UnsupportedError('class Null cannot be instantiated'); | 1197 throw new UnsupportedError('class Null cannot be instantiated'); |
| 1217 } | 1198 } |
| 1218 toString() { | 1199 toString() { |
| 1219 return "null"; | 1200 return "null"; |
| 1220 } | 1201 } |
| 1221 } | 1202 } |
| 1222 dart.defineNamedConstructor(Null, '_uninstantiable'); | 1203 dart.defineNamedConstructor(Null, '_uninstantiable'); |
| 1223 let _onParseErrorInt = Symbol('_onParseErrorInt'); | 1204 let _onParseErrorInt = Symbol('_onParseErrorInt'); |
| 1224 let _onParseErrorDouble = Symbol('_onParseErrorDouble'); | 1205 let _onParseErrorDouble = Symbol('_onParseErrorDouble'); |
| 1225 class num extends dart.Object { | 1206 class num extends Object { |
| 1226 static parse(input, onError) { | 1207 static parse(input, onError) { |
| 1227 if (onError === void 0) | 1208 if (onError === void 0) |
| 1228 onError = null; | 1209 onError = null; |
| 1229 let source = input.trim(); | 1210 let source = input.trim(); |
| 1230 _parseError = false; | 1211 _parseError = false; |
| 1231 let result = int.parse(source, {onError: _onParseErrorInt}); | 1212 let result = int.parse(source, {onError: _onParseErrorInt}); |
| 1232 if (!dart.notNull(_parseError)) | 1213 if (!dart.notNull(_parseError)) |
| 1233 return result; | 1214 return result; |
| 1234 _parseError = false; | 1215 _parseError = false; |
| 1235 result = double.parse(source, _onParseErrorDouble); | 1216 result = double.parse(source, _onParseErrorDouble); |
| 1236 if (!dart.notNull(_parseError)) | 1217 if (!dart.notNull(_parseError)) |
| 1237 return result; | 1218 return result; |
| 1238 if (onError === null) | 1219 if (onError === null) |
| 1239 throw new FormatException(input); | 1220 throw new FormatException(input); |
| 1240 return onError(input); | 1221 return onError(input); |
| 1241 } | 1222 } |
| 1242 static [_onParseErrorInt](_) { | 1223 static [_onParseErrorInt](_) { |
| 1243 _parseError = true; | 1224 _parseError = true; |
| 1244 return 0; | 1225 return 0; |
| 1245 } | 1226 } |
| 1246 static [_onParseErrorDouble](_) { | 1227 static [_onParseErrorDouble](_) { |
| 1247 _parseError = true; | 1228 _parseError = true; |
| 1248 return 0.0; | 1229 return 0.0; |
| 1249 } | 1230 } |
| 1250 } | 1231 } |
| 1251 num._parseError = false; | 1232 num._parseError = false; |
| 1252 class Object extends dart.Object { | 1233 class Object { |
| 1253 Object() { | 1234 Object() { |
| 1235 var name = this.constructor.name; |
| 1236 var init = this[name]; |
| 1237 var result = void 0; |
| 1238 if (init) |
| 1239 result = init.apply(this, arguments); |
| 1240 return result === void 0 ? this : result; |
| 1254 } | 1241 } |
| 1255 ['=='](other) { | 1242 ['=='](other) { |
| 1256 return identical(this, other); | 1243 return identical(this, other); |
| 1257 } | 1244 } |
| 1258 get hashCode() { | 1245 get hashCode() { |
| 1259 return _js_helper.Primitives.objectHashCode(this); | 1246 return _js_helper.Primitives.objectHashCode(this); |
| 1260 } | 1247 } |
| 1261 toString() { | 1248 toString() { |
| 1262 return _js_helper.Primitives.objectToString(this); | 1249 return _js_helper.Primitives.objectToString(this); |
| 1263 } | 1250 } |
| 1264 noSuchMethod(invocation) { | 1251 noSuchMethod(invocation) { |
| 1265 throw new NoSuchMethodError(this, invocation.memberName, invocation.positi
onalArguments, invocation.namedArguments); | 1252 throw new NoSuchMethodError(this, invocation.memberName, invocation.positi
onalArguments, invocation.namedArguments); |
| 1266 } | 1253 } |
| 1267 get runtimeType() { | 1254 get runtimeType() { |
| 1268 return _js_helper.getRuntimeType(this); | 1255 return _js_helper.getRuntimeType(this); |
| 1269 } | 1256 } |
| 1270 } | 1257 } |
| 1271 class Pattern extends dart.Object { | 1258 class Pattern extends Object { |
| 1272 } | 1259 } |
| 1273 // Function print: (Object) → void | 1260 // Function print: (Object) → void |
| 1274 function print(object) { | 1261 function print(object) { |
| 1275 let line = `${object}`; | 1262 let line = `${object}`; |
| 1276 if (_internal.printToZone === null) { | 1263 if (_internal.printToZone === null) { |
| 1277 _internal.printToConsole(line); | 1264 _internal.printToConsole(line); |
| 1278 } else { | 1265 } else { |
| 1279 dart.dinvokef(_internal.printToZone, line); | 1266 dart.dinvokef(_internal.printToZone, line); |
| 1280 } | 1267 } |
| 1281 } | 1268 } |
| 1282 class Match extends dart.Object { | 1269 class Match extends Object { |
| 1283 } | 1270 } |
| 1284 class RegExp extends dart.Object { | 1271 class RegExp extends Object { |
| 1285 RegExp(source, opt$) { | 1272 RegExp(source, opt$) { |
| 1286 let multiLine = opt$.multiLine === void 0 ? false : opt$.multiLine; | 1273 let multiLine = opt$.multiLine === void 0 ? false : opt$.multiLine; |
| 1287 let caseSensitive = opt$.caseSensitive === void 0 ? true : opt$.caseSensit
ive; | 1274 let caseSensitive = opt$.caseSensitive === void 0 ? true : opt$.caseSensit
ive; |
| 1288 return new _js_helper.JSSyntaxRegExp(source, {multiLine: multiLine, caseSe
nsitive: caseSensitive}); | 1275 return new _js_helper.JSSyntaxRegExp(source, {multiLine: multiLine, caseSe
nsitive: caseSensitive}); |
| 1289 } | 1276 } |
| 1290 } | 1277 } |
| 1291 let Set$ = dart.generic(function(E) { | 1278 let Set$ = dart.generic(function(E) { |
| 1292 class Set extends collection.IterableBase$(E) { | 1279 class Set extends collection.IterableBase$(E) { |
| 1293 Set() { | 1280 Set() { |
| 1294 return new collection.LinkedHashSet(); | 1281 return new collection.LinkedHashSet(); |
| 1295 } | 1282 } |
| 1296 Set$identity() { | 1283 Set$identity() { |
| 1297 return new collection.LinkedHashSet.identity(); | 1284 return new collection.LinkedHashSet.identity(); |
| 1298 } | 1285 } |
| 1299 Set$from(elements) { | 1286 Set$from(elements) { |
| 1300 return new collection.LinkedHashSet.from(elements); | 1287 return new collection.LinkedHashSet.from(elements); |
| 1301 } | 1288 } |
| 1302 } | 1289 } |
| 1303 dart.defineNamedConstructor(Set, 'identity'); | 1290 dart.defineNamedConstructor(Set, 'identity'); |
| 1304 dart.defineNamedConstructor(Set, 'from'); | 1291 dart.defineNamedConstructor(Set, 'from'); |
| 1305 return Set; | 1292 return Set; |
| 1306 }); | 1293 }); |
| 1307 let Set = Set$(dynamic); | 1294 let Set = Set$(dart.dynamic); |
| 1308 let Sink$ = dart.generic(function(T) { | 1295 let Sink$ = dart.generic(function(T) { |
| 1309 class Sink extends dart.Object { | 1296 class Sink extends Object { |
| 1310 } | 1297 } |
| 1311 return Sink; | 1298 return Sink; |
| 1312 }); | 1299 }); |
| 1313 let Sink = Sink$(dynamic); | 1300 let Sink = Sink$(dart.dynamic); |
| 1314 class StackTrace extends dart.Object { | 1301 class StackTrace extends Object { |
| 1315 } | 1302 } |
| 1316 let _stop = Symbol('_stop'); | 1303 let _stop = Symbol('_stop'); |
| 1317 let _initTicker = Symbol('_initTicker'); | 1304 let _initTicker = Symbol('_initTicker'); |
| 1318 let _now = Symbol('_now'); | 1305 let _now = Symbol('_now'); |
| 1319 class Stopwatch extends dart.Object { | 1306 class Stopwatch extends Object { |
| 1320 get frequency() { | 1307 get frequency() { |
| 1321 return _frequency; | 1308 return _frequency; |
| 1322 } | 1309 } |
| 1323 Stopwatch() { | 1310 Stopwatch() { |
| 1324 this[_start] = null; | 1311 this[_start] = null; |
| 1325 this[_stop] = null; | 1312 this[_stop] = null; |
| 1326 _initTicker(); | 1313 _initTicker(); |
| 1327 } | 1314 } |
| 1328 start() { | 1315 start() { |
| 1329 if (this.isRunning) | 1316 if (this.isRunning) |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1369 static [_initTicker]() { | 1356 static [_initTicker]() { |
| 1370 _js_helper.Primitives.initTicker(); | 1357 _js_helper.Primitives.initTicker(); |
| 1371 _frequency = _js_helper.Primitives.timerFrequency; | 1358 _frequency = _js_helper.Primitives.timerFrequency; |
| 1372 } | 1359 } |
| 1373 static [_now]() { | 1360 static [_now]() { |
| 1374 return dart.as(dart.dinvoke(_js_helper.Primitives, 'timerTicks'), int); | 1361 return dart.as(dart.dinvoke(_js_helper.Primitives, 'timerTicks'), int); |
| 1375 } | 1362 } |
| 1376 } | 1363 } |
| 1377 Stopwatch._frequency = null; | 1364 Stopwatch._frequency = null; |
| 1378 let _stringFromIterable = Symbol('_stringFromIterable'); | 1365 let _stringFromIterable = Symbol('_stringFromIterable'); |
| 1379 class String extends dart.Object { | 1366 class String extends Object { |
| 1380 String$fromCharCodes(charCodes, start, end) { | 1367 String$fromCharCodes(charCodes, start, end) { |
| 1381 if (start === void 0) | 1368 if (start === void 0) |
| 1382 start = 0; | 1369 start = 0; |
| 1383 if (end === void 0) | 1370 if (end === void 0) |
| 1384 end = null; | 1371 end = null; |
| 1385 if (!dart.is(charCodes, _interceptors.JSArray)) { | 1372 if (!dart.is(charCodes, _interceptors.JSArray)) { |
| 1386 return _stringFromIterable(charCodes, start, end); | 1373 return _stringFromIterable(charCodes, start, end); |
| 1387 } | 1374 } |
| 1388 let list = dart.as(charCodes, List); | 1375 let list = dart.as(charCodes, List); |
| 1389 let len = list.length; | 1376 let len = list.length; |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1469 return (dart.notNull(code) & 64512) === 56320; | 1456 return (dart.notNull(code) & 64512) === 56320; |
| 1470 } | 1457 } |
| 1471 // Function _combineSurrogatePair: (int, int) → int | 1458 // Function _combineSurrogatePair: (int, int) → int |
| 1472 function _combineSurrogatePair(start, end) { | 1459 function _combineSurrogatePair(start, end) { |
| 1473 return 65536 + ((dart.notNull(start) & 1023) << 10) + (dart.notNull(end) & 1
023); | 1460 return 65536 + ((dart.notNull(start) & 1023) << 10) + (dart.notNull(end) & 1
023); |
| 1474 } | 1461 } |
| 1475 let _position = Symbol('_position'); | 1462 let _position = Symbol('_position'); |
| 1476 let _nextPosition = Symbol('_nextPosition'); | 1463 let _nextPosition = Symbol('_nextPosition'); |
| 1477 let _currentCodePoint = Symbol('_currentCodePoint'); | 1464 let _currentCodePoint = Symbol('_currentCodePoint'); |
| 1478 let _checkSplitSurrogate = Symbol('_checkSplitSurrogate'); | 1465 let _checkSplitSurrogate = Symbol('_checkSplitSurrogate'); |
| 1479 class RuneIterator extends dart.Object { | 1466 class RuneIterator extends Object { |
| 1480 RuneIterator(string) { | 1467 RuneIterator(string) { |
| 1481 this.string = string; | 1468 this.string = string; |
| 1482 this[_position] = 0; | 1469 this[_position] = 0; |
| 1483 this[_nextPosition] = 0; | 1470 this[_nextPosition] = 0; |
| 1484 this[_currentCodePoint] = null; | 1471 this[_currentCodePoint] = null; |
| 1485 } | 1472 } |
| 1486 RuneIterator$at(string, index) { | 1473 RuneIterator$at(string, index) { |
| 1487 this.string = string; | 1474 this.string = string; |
| 1488 this[_position] = index; | 1475 this[_position] = index; |
| 1489 this[_nextPosition] = index; | 1476 this[_nextPosition] = index; |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1562 } | 1549 } |
| 1563 } | 1550 } |
| 1564 this[_position] = position; | 1551 this[_position] = position; |
| 1565 this[_currentCodePoint] = codeUnit; | 1552 this[_currentCodePoint] = codeUnit; |
| 1566 return true; | 1553 return true; |
| 1567 } | 1554 } |
| 1568 } | 1555 } |
| 1569 dart.defineNamedConstructor(RuneIterator, 'at'); | 1556 dart.defineNamedConstructor(RuneIterator, 'at'); |
| 1570 let _contents = Symbol('_contents'); | 1557 let _contents = Symbol('_contents'); |
| 1571 let _writeString = Symbol('_writeString'); | 1558 let _writeString = Symbol('_writeString'); |
| 1572 class StringBuffer extends dart.Object { | 1559 class StringBuffer extends Object { |
| 1573 StringBuffer(content) { | 1560 StringBuffer(content) { |
| 1574 if (content === void 0) | 1561 if (content === void 0) |
| 1575 content = ""; | 1562 content = ""; |
| 1576 this[_contents] = `${content}`; | 1563 this[_contents] = `${content}`; |
| 1577 } | 1564 } |
| 1578 get length() { | 1565 get length() { |
| 1579 return this[_contents].length; | 1566 return this[_contents].length; |
| 1580 } | 1567 } |
| 1581 get isEmpty() { | 1568 get isEmpty() { |
| 1582 return this.length === 0; | 1569 return this.length === 0; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1617 clear() { | 1604 clear() { |
| 1618 this[_contents] = ""; | 1605 this[_contents] = ""; |
| 1619 } | 1606 } |
| 1620 toString() { | 1607 toString() { |
| 1621 return _js_helper.Primitives.flattenString(this[_contents]); | 1608 return _js_helper.Primitives.flattenString(this[_contents]); |
| 1622 } | 1609 } |
| 1623 [_writeString](str) { | 1610 [_writeString](str) { |
| 1624 this[_contents] = _js_helper.Primitives.stringConcatUnchecked(this[_conten
ts], dart.as(str, String)); | 1611 this[_contents] = _js_helper.Primitives.stringConcatUnchecked(this[_conten
ts], dart.as(str, String)); |
| 1625 } | 1612 } |
| 1626 } | 1613 } |
| 1627 class StringSink extends dart.Object { | 1614 class StringSink extends Object { |
| 1628 } | 1615 } |
| 1629 class Symbol extends dart.Object { | 1616 class Symbol extends Object { |
| 1630 Symbol(name) { | 1617 Symbol(name) { |
| 1631 return new _internal.Symbol(name); | 1618 return new _internal.Symbol(name); |
| 1632 } | 1619 } |
| 1633 } | 1620 } |
| 1634 class Type extends dart.Object { | 1621 class Type extends Object { |
| 1635 } | 1622 } |
| 1636 let _writeAuthority = Symbol('_writeAuthority'); | 1623 let _writeAuthority = Symbol('_writeAuthority'); |
| 1637 let _userInfo = Symbol('_userInfo'); | 1624 let _userInfo = Symbol('_userInfo'); |
| 1638 let _host = Symbol('_host'); | 1625 let _host = Symbol('_host'); |
| 1639 let _port = Symbol('_port'); | 1626 let _port = Symbol('_port'); |
| 1640 let _defaultPort = Symbol('_defaultPort'); | 1627 let _defaultPort = Symbol('_defaultPort'); |
| 1641 let _path = Symbol('_path'); | 1628 let _path = Symbol('_path'); |
| 1642 let _query = Symbol('_query'); | 1629 let _query = Symbol('_query'); |
| 1643 let _fragment = Symbol('_fragment'); | 1630 let _fragment = Symbol('_fragment'); |
| 1644 let _fail = Symbol('_fail'); | 1631 let _fail = Symbol('_fail'); |
| (...skipping 28 matching lines...) Expand all Loading... |
| 1673 let _hasDotSegments = Symbol('_hasDotSegments'); | 1660 let _hasDotSegments = Symbol('_hasDotSegments'); |
| 1674 let _removeDotSegments = Symbol('_removeDotSegments'); | 1661 let _removeDotSegments = Symbol('_removeDotSegments'); |
| 1675 let _toWindowsFilePath = Symbol('_toWindowsFilePath'); | 1662 let _toWindowsFilePath = Symbol('_toWindowsFilePath'); |
| 1676 let _toFilePath = Symbol('_toFilePath'); | 1663 let _toFilePath = Symbol('_toFilePath'); |
| 1677 let _isPathAbsolute = Symbol('_isPathAbsolute'); | 1664 let _isPathAbsolute = Symbol('_isPathAbsolute'); |
| 1678 let _addIfNonEmpty = Symbol('_addIfNonEmpty'); | 1665 let _addIfNonEmpty = Symbol('_addIfNonEmpty'); |
| 1679 let _uriEncode = Symbol('_uriEncode'); | 1666 let _uriEncode = Symbol('_uriEncode'); |
| 1680 let _hexCharPairToByte = Symbol('_hexCharPairToByte'); | 1667 let _hexCharPairToByte = Symbol('_hexCharPairToByte'); |
| 1681 let _uriDecode = Symbol('_uriDecode'); | 1668 let _uriDecode = Symbol('_uriDecode'); |
| 1682 let _isAlphabeticCharacter = Symbol('_isAlphabeticCharacter'); | 1669 let _isAlphabeticCharacter = Symbol('_isAlphabeticCharacter'); |
| 1683 class Uri extends dart.Object { | 1670 class Uri extends Object { |
| 1684 get authority() { | 1671 get authority() { |
| 1685 if (!dart.notNull(this.hasAuthority)) | 1672 if (!dart.notNull(this.hasAuthority)) |
| 1686 return ""; | 1673 return ""; |
| 1687 let sb = new StringBuffer(); | 1674 let sb = new StringBuffer(); |
| 1688 this[_writeAuthority](sb); | 1675 this[_writeAuthority](sb); |
| 1689 return sb.toString(); | 1676 return sb.toString(); |
| 1690 } | 1677 } |
| 1691 get userInfo() { | 1678 get userInfo() { |
| 1692 return this[_userInfo]; | 1679 return this[_userInfo]; |
| 1693 } | 1680 } |
| (...skipping 22 matching lines...) Expand all Loading... |
| 1716 } | 1703 } |
| 1717 get query() { | 1704 get query() { |
| 1718 return this[_query] === null ? "" : this[_query]; | 1705 return this[_query] === null ? "" : this[_query]; |
| 1719 } | 1706 } |
| 1720 get fragment() { | 1707 get fragment() { |
| 1721 return this[_fragment] === null ? "" : this[_fragment]; | 1708 return this[_fragment] === null ? "" : this[_fragment]; |
| 1722 } | 1709 } |
| 1723 static parse(uri) { | 1710 static parse(uri) { |
| 1724 // Function isRegName: (int) → bool | 1711 // Function isRegName: (int) → bool |
| 1725 function isRegName(ch) { | 1712 function isRegName(ch) { |
| 1726 return dart.notNull(ch) < 128 && dart.notNull(!dart.equals(dart.dbinary(
dart.dindex(_regNameTable, dart.notNull(ch) >> 4), '&', 1 << (dart.notNull(ch) &
15)), 0)); | 1713 return dart.notNull(ch) < 128 && dart.notNull(!dart.equals(dart.dbinary(
dart.dindex(Uri._regNameTable, dart.notNull(ch) >> 4), '&', 1 << (dart.notNull(c
h) & 15)), 0)); |
| 1727 } | 1714 } |
| 1728 let EOI = -1; | 1715 let EOI = -1; |
| 1729 let scheme = ""; | 1716 let scheme = ""; |
| 1730 let userinfo = ""; | 1717 let userinfo = ""; |
| 1731 let host = null; | 1718 let host = null; |
| 1732 let port = null; | 1719 let port = null; |
| 1733 let path = null; | 1720 let path = null; |
| 1734 let query = null; | 1721 let query = null; |
| 1735 let fragment = null; | 1722 let fragment = null; |
| 1736 let index = 0; | 1723 let index = 0; |
| 1737 let pathStart = 0; | 1724 let pathStart = 0; |
| 1738 let char = EOI; | 1725 let char = EOI; |
| 1739 // Function parseAuth: () → void | 1726 // Function parseAuth: () → void |
| 1740 function parseAuth() { | 1727 function parseAuth() { |
| 1741 if (index === uri.length) { | 1728 if (index === uri.length) { |
| 1742 char = EOI; | 1729 char = EOI; |
| 1743 return; | 1730 return; |
| 1744 } | 1731 } |
| 1745 let authStart = index; | 1732 let authStart = index; |
| 1746 let lastColon = -1; | 1733 let lastColon = -1; |
| 1747 let lastAt = -1; | 1734 let lastAt = -1; |
| 1748 char = uri.codeUnitAt(index); | 1735 char = uri.codeUnitAt(index); |
| 1749 while (dart.notNull(index) < dart.notNull(uri.length)) { | 1736 while (dart.notNull(index) < dart.notNull(uri.length)) { |
| 1750 char = uri.codeUnitAt(index); | 1737 char = uri.codeUnitAt(index); |
| 1751 if (char === _SLASH || char === _QUESTION || char === _NUMBER_SIGN) { | 1738 if (char === Uri._SLASH || char === Uri._QUESTION || char === Uri._NUM
BER_SIGN) { |
| 1752 break; | 1739 break; |
| 1753 } | 1740 } |
| 1754 if (char === _AT_SIGN) { | 1741 if (char === Uri._AT_SIGN) { |
| 1755 lastAt = index; | 1742 lastAt = index; |
| 1756 lastColon = -1; | 1743 lastColon = -1; |
| 1757 } else if (char === _COLON) { | 1744 } else if (char === Uri._COLON) { |
| 1758 lastColon = index; | 1745 lastColon = index; |
| 1759 } else if (char === _LEFT_BRACKET) { | 1746 } else if (char === Uri._LEFT_BRACKET) { |
| 1760 lastColon = -1; | 1747 lastColon = -1; |
| 1761 let endBracket = uri.indexOf(']', dart.notNull(index) + 1); | 1748 let endBracket = uri.indexOf(']', dart.notNull(index) + 1); |
| 1762 if (endBracket === -1) { | 1749 if (endBracket === -1) { |
| 1763 index = uri.length; | 1750 index = uri.length; |
| 1764 char = EOI; | 1751 char = EOI; |
| 1765 break; | 1752 break; |
| 1766 } else { | 1753 } else { |
| 1767 index = endBracket; | 1754 index = endBracket; |
| 1768 } | 1755 } |
| 1769 } | 1756 } |
| 1770 index = dart.notNull(index) + 1; | 1757 index = dart.notNull(index) + 1; |
| 1771 char = EOI; | 1758 char = EOI; |
| 1772 } | 1759 } |
| 1773 let hostStart = authStart; | 1760 let hostStart = authStart; |
| 1774 let hostEnd = index; | 1761 let hostEnd = index; |
| 1775 if (dart.notNull(lastAt) >= 0) { | 1762 if (dart.notNull(lastAt) >= 0) { |
| 1776 userinfo = _makeUserInfo(uri, authStart, lastAt); | 1763 userinfo = _makeUserInfo(uri, authStart, lastAt); |
| 1777 hostStart = dart.notNull(lastAt) + 1; | 1764 hostStart = dart.notNull(lastAt) + 1; |
| 1778 } | 1765 } |
| 1779 if (dart.notNull(lastColon) >= 0) { | 1766 if (dart.notNull(lastColon) >= 0) { |
| 1780 let portNumber = null; | 1767 let portNumber = null; |
| 1781 if (dart.notNull(lastColon) + 1 < dart.notNull(index)) { | 1768 if (dart.notNull(lastColon) + 1 < dart.notNull(index)) { |
| 1782 portNumber = 0; | 1769 portNumber = 0; |
| 1783 for (let i = dart.notNull(lastColon) + 1; dart.notNull(i) < dart.not
Null(index); i = dart.notNull(i) + 1) { | 1770 for (let i = dart.notNull(lastColon) + 1; dart.notNull(i) < dart.not
Null(index); i = dart.notNull(i) + 1) { |
| 1784 let digit = uri.codeUnitAt(i); | 1771 let digit = uri.codeUnitAt(i); |
| 1785 if (dart.notNull(_ZERO) > dart.notNull(digit) || dart.notNull(_NIN
E) < dart.notNull(digit)) { | 1772 if (dart.notNull(Uri._ZERO) > dart.notNull(digit) || dart.notNull(
Uri._NINE) < dart.notNull(digit)) { |
| 1786 _fail(uri, i, "Invalid port number"); | 1773 _fail(uri, i, "Invalid port number"); |
| 1787 } | 1774 } |
| 1788 portNumber = dart.notNull(portNumber) * 10 + (dart.notNull(digit)
- dart.notNull(_ZERO)); | 1775 portNumber = dart.notNull(portNumber) * 10 + (dart.notNull(digit)
- dart.notNull(Uri._ZERO)); |
| 1789 } | 1776 } |
| 1790 } | 1777 } |
| 1791 port = _makePort(portNumber, scheme); | 1778 port = _makePort(portNumber, scheme); |
| 1792 hostEnd = lastColon; | 1779 hostEnd = lastColon; |
| 1793 } | 1780 } |
| 1794 host = _makeHost(uri, hostStart, hostEnd, true); | 1781 host = _makeHost(uri, hostStart, hostEnd, true); |
| 1795 if (dart.notNull(index) < dart.notNull(uri.length)) { | 1782 if (dart.notNull(index) < dart.notNull(uri.length)) { |
| 1796 char = uri.codeUnitAt(index); | 1783 char = uri.codeUnitAt(index); |
| 1797 } | 1784 } |
| 1798 } | 1785 } |
| 1799 let NOT_IN_PATH = 0; | 1786 let NOT_IN_PATH = 0; |
| 1800 let IN_PATH = 1; | 1787 let IN_PATH = 1; |
| 1801 let ALLOW_AUTH = 2; | 1788 let ALLOW_AUTH = 2; |
| 1802 let state = NOT_IN_PATH; | 1789 let state = NOT_IN_PATH; |
| 1803 let i = index; | 1790 let i = index; |
| 1804 while (dart.notNull(i) < dart.notNull(uri.length)) { | 1791 while (dart.notNull(i) < dart.notNull(uri.length)) { |
| 1805 char = uri.codeUnitAt(i); | 1792 char = uri.codeUnitAt(i); |
| 1806 if (char === _QUESTION || char === _NUMBER_SIGN) { | 1793 if (char === Uri._QUESTION || char === Uri._NUMBER_SIGN) { |
| 1807 state = NOT_IN_PATH; | 1794 state = NOT_IN_PATH; |
| 1808 break; | 1795 break; |
| 1809 } | 1796 } |
| 1810 if (char === _SLASH) { | 1797 if (char === Uri._SLASH) { |
| 1811 state = i === 0 ? ALLOW_AUTH : IN_PATH; | 1798 state = i === 0 ? ALLOW_AUTH : IN_PATH; |
| 1812 break; | 1799 break; |
| 1813 } | 1800 } |
| 1814 if (char === _COLON) { | 1801 if (char === Uri._COLON) { |
| 1815 if (i === 0) | 1802 if (i === 0) |
| 1816 _fail(uri, 0, "Invalid empty scheme"); | 1803 _fail(uri, 0, "Invalid empty scheme"); |
| 1817 scheme = _makeScheme(uri, i); | 1804 scheme = _makeScheme(uri, i); |
| 1818 i = dart.notNull(i) + 1; | 1805 i = dart.notNull(i) + 1; |
| 1819 pathStart = i; | 1806 pathStart = i; |
| 1820 if (i === uri.length) { | 1807 if (i === uri.length) { |
| 1821 char = EOI; | 1808 char = EOI; |
| 1822 state = NOT_IN_PATH; | 1809 state = NOT_IN_PATH; |
| 1823 } else { | 1810 } else { |
| 1824 char = uri.codeUnitAt(i); | 1811 char = uri.codeUnitAt(i); |
| 1825 if (char === _QUESTION || char === _NUMBER_SIGN) { | 1812 if (char === Uri._QUESTION || char === Uri._NUMBER_SIGN) { |
| 1826 state = NOT_IN_PATH; | 1813 state = NOT_IN_PATH; |
| 1827 } else if (char === _SLASH) { | 1814 } else if (char === Uri._SLASH) { |
| 1828 state = ALLOW_AUTH; | 1815 state = ALLOW_AUTH; |
| 1829 } else { | 1816 } else { |
| 1830 state = IN_PATH; | 1817 state = IN_PATH; |
| 1831 } | 1818 } |
| 1832 } | 1819 } |
| 1833 break; | 1820 break; |
| 1834 } | 1821 } |
| 1835 i = dart.notNull(i) + 1; | 1822 i = dart.notNull(i) + 1; |
| 1836 char = EOI; | 1823 char = EOI; |
| 1837 } | 1824 } |
| 1838 index = i; | 1825 index = i; |
| 1839 if (state === ALLOW_AUTH) { | 1826 if (state === ALLOW_AUTH) { |
| 1840 dart.assert(char === _SLASH); | 1827 dart.assert(char === Uri._SLASH); |
| 1841 index = dart.notNull(index) + 1; | 1828 index = dart.notNull(index) + 1; |
| 1842 if (index === uri.length) { | 1829 if (index === uri.length) { |
| 1843 char = EOI; | 1830 char = EOI; |
| 1844 state = NOT_IN_PATH; | 1831 state = NOT_IN_PATH; |
| 1845 } else { | 1832 } else { |
| 1846 char = uri.codeUnitAt(index); | 1833 char = uri.codeUnitAt(index); |
| 1847 if (char === _SLASH) { | 1834 if (char === Uri._SLASH) { |
| 1848 index = dart.notNull(index) + 1; | 1835 index = dart.notNull(index) + 1; |
| 1849 parseAuth(); | 1836 parseAuth(); |
| 1850 pathStart = index; | 1837 pathStart = index; |
| 1851 } | 1838 } |
| 1852 if (char === _QUESTION || char === _NUMBER_SIGN || char === EOI) { | 1839 if (char === Uri._QUESTION || char === Uri._NUMBER_SIGN || char === EO
I) { |
| 1853 state = NOT_IN_PATH; | 1840 state = NOT_IN_PATH; |
| 1854 } else { | 1841 } else { |
| 1855 state = IN_PATH; | 1842 state = IN_PATH; |
| 1856 } | 1843 } |
| 1857 } | 1844 } |
| 1858 } | 1845 } |
| 1859 dart.assert(state === IN_PATH || state === NOT_IN_PATH); | 1846 dart.assert(state === IN_PATH || state === NOT_IN_PATH); |
| 1860 if (state === IN_PATH) { | 1847 if (state === IN_PATH) { |
| 1861 while ((index = dart.notNull(index) + 1) < dart.notNull(uri.length)) { | 1848 while ((index = dart.notNull(index) + 1) < dart.notNull(uri.length)) { |
| 1862 char = uri.codeUnitAt(index); | 1849 char = uri.codeUnitAt(index); |
| 1863 if (char === _QUESTION || char === _NUMBER_SIGN) { | 1850 if (char === Uri._QUESTION || char === Uri._NUMBER_SIGN) { |
| 1864 break; | 1851 break; |
| 1865 } | 1852 } |
| 1866 char = EOI; | 1853 char = EOI; |
| 1867 } | 1854 } |
| 1868 state = NOT_IN_PATH; | 1855 state = NOT_IN_PATH; |
| 1869 } | 1856 } |
| 1870 dart.assert(state === NOT_IN_PATH); | 1857 dart.assert(state === NOT_IN_PATH); |
| 1871 let isFile = dart.equals(scheme, "file"); | 1858 let isFile = dart.equals(scheme, "file"); |
| 1872 let ensureLeadingSlash = host !== null; | 1859 let ensureLeadingSlash = host !== null; |
| 1873 path = _makePath(uri, pathStart, index, null, ensureLeadingSlash, isFile); | 1860 path = _makePath(uri, pathStart, index, null, ensureLeadingSlash, isFile); |
| 1874 if (char === _QUESTION) { | 1861 if (char === Uri._QUESTION) { |
| 1875 let numberSignIndex = uri.indexOf('#', dart.notNull(index) + 1); | 1862 let numberSignIndex = uri.indexOf('#', dart.notNull(index) + 1); |
| 1876 if (dart.notNull(numberSignIndex) < 0) { | 1863 if (dart.notNull(numberSignIndex) < 0) { |
| 1877 query = _makeQuery(uri, dart.notNull(index) + 1, uri.length, null); | 1864 query = _makeQuery(uri, dart.notNull(index) + 1, uri.length, null); |
| 1878 } else { | 1865 } else { |
| 1879 query = _makeQuery(uri, dart.notNull(index) + 1, numberSignIndex, null
); | 1866 query = _makeQuery(uri, dart.notNull(index) + 1, numberSignIndex, null
); |
| 1880 fragment = _makeFragment(uri, dart.notNull(numberSignIndex) + 1, uri.l
ength); | 1867 fragment = _makeFragment(uri, dart.notNull(numberSignIndex) + 1, uri.l
ength); |
| 1881 } | 1868 } |
| 1882 } else if (char === _NUMBER_SIGN) { | 1869 } else if (char === Uri._NUMBER_SIGN) { |
| 1883 fragment = _makeFragment(uri, dart.notNull(index) + 1, uri.length); | 1870 fragment = _makeFragment(uri, dart.notNull(index) + 1, uri.length); |
| 1884 } | 1871 } |
| 1885 return new Uri._internal(scheme, userinfo, host, port, path, query, fragme
nt); | 1872 return new Uri._internal(scheme, userinfo, host, port, path, query, fragme
nt); |
| 1886 } | 1873 } |
| 1887 static [_fail](uri, index, message) { | 1874 static [_fail](uri, index, message) { |
| 1888 throw new FormatException(message, uri, index); | 1875 throw new FormatException(message, uri, index); |
| 1889 } | 1876 } |
| 1890 Uri$_internal(scheme, $_userInfo, $_host, $_port, $_path, $_query, $_fragmen
t) { | 1877 Uri$_internal(scheme, $_userInfo, $_host, $_port, $_path, $_query, $_fragmen
t) { |
| 1891 this.scheme = scheme; | 1878 this.scheme = scheme; |
| 1892 this[_userInfo] = $_userInfo; | 1879 this[_userInfo] = $_userInfo; |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1935 return _makeHttpUri("https", authority, unencodedPath, queryParameters); | 1922 return _makeHttpUri("https", authority, unencodedPath, queryParameters); |
| 1936 } | 1923 } |
| 1937 static [_makeHttpUri](scheme, authority, unencodedPath, queryParameters) { | 1924 static [_makeHttpUri](scheme, authority, unencodedPath, queryParameters) { |
| 1938 let userInfo = ""; | 1925 let userInfo = ""; |
| 1939 let host = null; | 1926 let host = null; |
| 1940 let port = null; | 1927 let port = null; |
| 1941 if (dart.notNull(authority !== null) && dart.notNull(authority.isNotEmpty)
) { | 1928 if (dart.notNull(authority !== null) && dart.notNull(authority.isNotEmpty)
) { |
| 1942 let hostStart = 0; | 1929 let hostStart = 0; |
| 1943 let hasUserInfo = false; | 1930 let hasUserInfo = false; |
| 1944 for (let i = 0; dart.notNull(i) < dart.notNull(authority.length); i = da
rt.notNull(i) + 1) { | 1931 for (let i = 0; dart.notNull(i) < dart.notNull(authority.length); i = da
rt.notNull(i) + 1) { |
| 1945 if (authority.codeUnitAt(i) === _AT_SIGN) { | 1932 if (authority.codeUnitAt(i) === Uri._AT_SIGN) { |
| 1946 hasUserInfo = true; | 1933 hasUserInfo = true; |
| 1947 userInfo = authority.substring(0, i); | 1934 userInfo = authority.substring(0, i); |
| 1948 hostStart = dart.notNull(i) + 1; | 1935 hostStart = dart.notNull(i) + 1; |
| 1949 break; | 1936 break; |
| 1950 } | 1937 } |
| 1951 } | 1938 } |
| 1952 let hostEnd = hostStart; | 1939 let hostEnd = hostStart; |
| 1953 if (dart.notNull(hostStart) < dart.notNull(authority.length) && authorit
y.codeUnitAt(hostStart) === _LEFT_BRACKET) { | 1940 if (dart.notNull(hostStart) < dart.notNull(authority.length) && authorit
y.codeUnitAt(hostStart) === Uri._LEFT_BRACKET) { |
| 1954 for (; dart.notNull(hostEnd) < dart.notNull(authority.length); hostEnd
= dart.notNull(hostEnd) + 1) { | 1941 for (; dart.notNull(hostEnd) < dart.notNull(authority.length); hostEnd
= dart.notNull(hostEnd) + 1) { |
| 1955 if (authority.codeUnitAt(hostEnd) === _RIGHT_BRACKET) | 1942 if (authority.codeUnitAt(hostEnd) === Uri._RIGHT_BRACKET) |
| 1956 break; | 1943 break; |
| 1957 } | 1944 } |
| 1958 if (hostEnd === authority.length) { | 1945 if (hostEnd === authority.length) { |
| 1959 throw new FormatException("Invalid IPv6 host entry.", authority, hos
tStart); | 1946 throw new FormatException("Invalid IPv6 host entry.", authority, hos
tStart); |
| 1960 } | 1947 } |
| 1961 parseIPv6Address(authority, dart.notNull(hostStart) + 1, hostEnd); | 1948 parseIPv6Address(authority, dart.notNull(hostStart) + 1, hostEnd); |
| 1962 hostEnd = dart.notNull(hostEnd) + 1; | 1949 hostEnd = dart.notNull(hostEnd) + 1; |
| 1963 if (hostEnd !== authority.length && authority.codeUnitAt(hostEnd) !==
_COLON) { | 1950 if (hostEnd !== authority.length && authority.codeUnitAt(hostEnd) !==
Uri._COLON) { |
| 1964 throw new FormatException("Invalid end of authority", authority, hos
tEnd); | 1951 throw new FormatException("Invalid end of authority", authority, hos
tEnd); |
| 1965 } | 1952 } |
| 1966 } | 1953 } |
| 1967 let hasPort = false; | 1954 let hasPort = false; |
| 1968 for (; dart.notNull(hostEnd) < dart.notNull(authority.length); hostEnd =
dart.notNull(hostEnd) + 1) { | 1955 for (; dart.notNull(hostEnd) < dart.notNull(authority.length); hostEnd =
dart.notNull(hostEnd) + 1) { |
| 1969 if (authority.codeUnitAt(hostEnd) === _COLON) { | 1956 if (authority.codeUnitAt(hostEnd) === Uri._COLON) { |
| 1970 let portString = authority.substring(dart.notNull(hostEnd) + 1); | 1957 let portString = authority.substring(dart.notNull(hostEnd) + 1); |
| 1971 if (portString.isNotEmpty) | 1958 if (portString.isNotEmpty) |
| 1972 port = int.parse(portString); | 1959 port = int.parse(portString); |
| 1973 break; | 1960 break; |
| 1974 } | 1961 } |
| 1975 } | 1962 } |
| 1976 host = authority.substring(hostStart, hostEnd); | 1963 host = authority.substring(hostStart, hostEnd); |
| 1977 } | 1964 } |
| 1978 return new Uri({scheme: scheme, userInfo: userInfo, host: dart.as(host, St
ring), port: dart.as(port, int), pathSegments: unencodedPath.split("/"), queryPa
rameters: queryParameters}); | 1965 return new Uri({scheme: scheme, userInfo: userInfo, host: dart.as(host, St
ring), port: dart.as(port, int), pathSegments: unencodedPath.split("/"), queryPa
rameters: queryParameters}); |
| 1979 } | 1966 } |
| (...skipping 29 matching lines...) Expand all Loading... |
| 2009 if (dart.dinvoke(segment, 'contains', new RegExp('["*/:<>?\\\\|]'))) { | 1996 if (dart.dinvoke(segment, 'contains', new RegExp('["*/:<>?\\\\|]'))) { |
| 2010 if (argumentError) { | 1997 if (argumentError) { |
| 2011 throw new ArgumentError("Illegal character in path"); | 1998 throw new ArgumentError("Illegal character in path"); |
| 2012 } else { | 1999 } else { |
| 2013 throw new UnsupportedError("Illegal character in path"); | 2000 throw new UnsupportedError("Illegal character in path"); |
| 2014 } | 2001 } |
| 2015 } | 2002 } |
| 2016 }); | 2003 }); |
| 2017 } | 2004 } |
| 2018 static [_checkWindowsDriveLetter](charCode, argumentError) { | 2005 static [_checkWindowsDriveLetter](charCode, argumentError) { |
| 2019 if (dart.notNull(_UPPER_CASE_A) <= dart.notNull(charCode) && dart.notNull(
charCode) <= dart.notNull(_UPPER_CASE_Z) || dart.notNull(_LOWER_CASE_A) <= dart.
notNull(charCode) && dart.notNull(charCode) <= dart.notNull(_LOWER_CASE_Z)) { | 2006 if (dart.notNull(Uri._UPPER_CASE_A) <= dart.notNull(charCode) && dart.notN
ull(charCode) <= dart.notNull(Uri._UPPER_CASE_Z) || dart.notNull(Uri._LOWER_CASE
_A) <= dart.notNull(charCode) && dart.notNull(charCode) <= dart.notNull(Uri._LOW
ER_CASE_Z)) { |
| 2020 return; | 2007 return; |
| 2021 } | 2008 } |
| 2022 if (argumentError) { | 2009 if (argumentError) { |
| 2023 throw new ArgumentError(String['+']("Illegal drive letter ", new String.
fromCharCode(charCode))); | 2010 throw new ArgumentError(String['+']("Illegal drive letter ", new String.
fromCharCode(charCode))); |
| 2024 } else { | 2011 } else { |
| 2025 throw new UnsupportedError(String['+']("Illegal drive letter ", new Stri
ng.fromCharCode(charCode))); | 2012 throw new UnsupportedError(String['+']("Illegal drive letter ", new Stri
ng.fromCharCode(charCode))); |
| 2026 } | 2013 } |
| 2027 } | 2014 } |
| 2028 static [_makeFileUri](path) { | 2015 static [_makeFileUri](path) { |
| 2029 let sep = "/"; | 2016 let sep = "/"; |
| 2030 if (path.startsWith(sep)) { | 2017 if (path.startsWith(sep)) { |
| 2031 return new Uri({scheme: "file", pathSegments: path.split(sep)}); | 2018 return new Uri({scheme: "file", pathSegments: path.split(sep)}); |
| 2032 } else { | 2019 } else { |
| 2033 return new Uri({pathSegments: path.split(sep)}); | 2020 return new Uri({pathSegments: path.split(sep)}); |
| 2034 } | 2021 } |
| 2035 } | 2022 } |
| 2036 static [_makeWindowsFileUrl](path) { | 2023 static [_makeWindowsFileUrl](path) { |
| 2037 if (path.startsWith("\\\\?\\")) { | 2024 if (path.startsWith("\\\\?\\")) { |
| 2038 if (path.startsWith("\\\\?\\UNC\\")) { | 2025 if (path.startsWith("\\\\?\\UNC\\")) { |
| 2039 path = `\\${path.substring(7)}`; | 2026 path = `\\${path.substring(7)}`; |
| 2040 } else { | 2027 } else { |
| 2041 path = path.substring(4); | 2028 path = path.substring(4); |
| 2042 if (dart.notNull(path.length) < 3 || path.codeUnitAt(1) !== _COLON ||
path.codeUnitAt(2) !== _BACKSLASH) { | 2029 if (dart.notNull(path.length) < 3 || path.codeUnitAt(1) !== Uri._COLON
|| path.codeUnitAt(2) !== Uri._BACKSLASH) { |
| 2043 throw new ArgumentError("Windows paths with \\\\?\\ prefix must be a
bsolute"); | 2030 throw new ArgumentError("Windows paths with \\\\?\\ prefix must be a
bsolute"); |
| 2044 } | 2031 } |
| 2045 } | 2032 } |
| 2046 } else { | 2033 } else { |
| 2047 path = path.replaceAll("/", "\\"); | 2034 path = path.replaceAll("/", "\\"); |
| 2048 } | 2035 } |
| 2049 let sep = "\\"; | 2036 let sep = "\\"; |
| 2050 if (dart.notNull(path.length) > 1 && dart.notNull(dart.equals(path.get(1),
":"))) { | 2037 if (dart.notNull(path.length) > 1 && dart.notNull(dart.equals(path.get(1),
":"))) { |
| 2051 _checkWindowsDriveLetter(path.codeUnitAt(0), true); | 2038 _checkWindowsDriveLetter(path.codeUnitAt(0), true); |
| 2052 if (path.length === 2 || path.codeUnitAt(2) !== _BACKSLASH) { | 2039 if (path.length === 2 || path.codeUnitAt(2) !== Uri._BACKSLASH) { |
| 2053 throw new ArgumentError("Windows paths with drive letter must be absol
ute"); | 2040 throw new ArgumentError("Windows paths with drive letter must be absol
ute"); |
| 2054 } | 2041 } |
| 2055 let pathSegments = path.split(sep); | 2042 let pathSegments = path.split(sep); |
| 2056 _checkWindowsPathReservedCharacters(pathSegments, true, 1); | 2043 _checkWindowsPathReservedCharacters(pathSegments, true, 1); |
| 2057 return new Uri({scheme: "file", pathSegments: pathSegments}); | 2044 return new Uri({scheme: "file", pathSegments: pathSegments}); |
| 2058 } | 2045 } |
| 2059 if (dart.notNull(path.length) > 0 && dart.notNull(dart.equals(path.get(0),
sep))) { | 2046 if (dart.notNull(path.length) > 0 && dart.notNull(dart.equals(path.get(0),
sep))) { |
| 2060 if (dart.notNull(path.length) > 1 && dart.notNull(dart.equals(path.get(1
), sep))) { | 2047 if (dart.notNull(path.length) > 1 && dart.notNull(dart.equals(path.get(1
), sep))) { |
| 2061 let pathStart = path.indexOf("\\", 2); | 2048 let pathStart = path.indexOf("\\", 2); |
| 2062 let hostPart = pathStart === -1 ? path.substring(2) : path.substring(2
, pathStart); | 2049 let hostPart = pathStart === -1 ? path.substring(2) : path.substring(2
, pathStart); |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2129 } | 2116 } |
| 2130 if (fragment !== null) { | 2117 if (fragment !== null) { |
| 2131 fragment = _makeFragment(fragment, 0, fragment.length); | 2118 fragment = _makeFragment(fragment, 0, fragment.length); |
| 2132 } else if (this.hasFragment) { | 2119 } else if (this.hasFragment) { |
| 2133 fragment = this.fragment; | 2120 fragment = this.fragment; |
| 2134 } | 2121 } |
| 2135 return new Uri._internal(scheme, userInfo, host, port, path, query, fragme
nt); | 2122 return new Uri._internal(scheme, userInfo, host, port, path, query, fragme
nt); |
| 2136 } | 2123 } |
| 2137 get pathSegments() { | 2124 get pathSegments() { |
| 2138 if (this[_pathSegments] === null) { | 2125 if (this[_pathSegments] === null) { |
| 2139 let pathToSplit = !dart.notNull(this.path.isEmpty) && this.path.codeUnit
At(0) === _SLASH ? this.path.substring(1) : this.path; | 2126 let pathToSplit = !dart.notNull(this.path.isEmpty) && this.path.codeUnit
At(0) === Uri._SLASH ? this.path.substring(1) : this.path; |
| 2140 this[_pathSegments] = dart.as(new collection.UnmodifiableListView(dart.e
quals(pathToSplit, "") ? /* Unimplemented const */new List.from([]) : pathToSpli
t.split("/").map(Uri.decodeComponent).toList({growable: false})), List$(String))
; | 2127 this[_pathSegments] = dart.as(new collection.UnmodifiableListView(dart.e
quals(pathToSplit, "") ? /* Unimplemented const */new List.from([]) : pathToSpli
t.split("/").map(Uri.decodeComponent).toList({growable: false})), List$(String))
; |
| 2141 } | 2128 } |
| 2142 return this[_pathSegments]; | 2129 return this[_pathSegments]; |
| 2143 } | 2130 } |
| 2144 get queryParameters() { | 2131 get queryParameters() { |
| 2145 if (this[_queryParameters] === null) { | 2132 if (this[_queryParameters] === null) { |
| 2146 this[_queryParameters] = dart.as(new collection.UnmodifiableMapView(spli
tQueryString(this.query)), Map$(String, String)); | 2133 this[_queryParameters] = dart.as(new collection.UnmodifiableMapView(spli
tQueryString(this.query)), Map$(String, String)); |
| 2147 } | 2134 } |
| 2148 return this[_queryParameters]; | 2135 return this[_queryParameters]; |
| 2149 } | 2136 } |
| 2150 static [_makePort](port, scheme) { | 2137 static [_makePort](port, scheme) { |
| 2151 if (port !== null && port === _defaultPort(scheme)) | 2138 if (port !== null && port === _defaultPort(scheme)) |
| 2152 return null; | 2139 return null; |
| 2153 return port; | 2140 return port; |
| 2154 } | 2141 } |
| 2155 static [_makeHost](host, start, end, strictIPv6) { | 2142 static [_makeHost](host, start, end, strictIPv6) { |
| 2156 if (host === null) | 2143 if (host === null) |
| 2157 return null; | 2144 return null; |
| 2158 if (start === end) | 2145 if (start === end) |
| 2159 return ""; | 2146 return ""; |
| 2160 if (host.codeUnitAt(start) === _LEFT_BRACKET) { | 2147 if (host.codeUnitAt(start) === Uri._LEFT_BRACKET) { |
| 2161 if (host.codeUnitAt(dart.notNull(end) - 1) !== _RIGHT_BRACKET) { | 2148 if (host.codeUnitAt(dart.notNull(end) - 1) !== Uri._RIGHT_BRACKET) { |
| 2162 _fail(host, start, 'Missing end `]` to match `[` in host'); | 2149 _fail(host, start, 'Missing end `]` to match `[` in host'); |
| 2163 } | 2150 } |
| 2164 parseIPv6Address(host, dart.notNull(start) + 1, dart.notNull(end) - 1); | 2151 parseIPv6Address(host, dart.notNull(start) + 1, dart.notNull(end) - 1); |
| 2165 return host.substring(start, end).toLowerCase(); | 2152 return host.substring(start, end).toLowerCase(); |
| 2166 } | 2153 } |
| 2167 if (!dart.notNull(strictIPv6)) { | 2154 if (!dart.notNull(strictIPv6)) { |
| 2168 for (let i = start; dart.notNull(i) < dart.notNull(end); i = dart.notNul
l(i) + 1) { | 2155 for (let i = start; dart.notNull(i) < dart.notNull(end); i = dart.notNul
l(i) + 1) { |
| 2169 if (host.codeUnitAt(i) === _COLON) { | 2156 if (host.codeUnitAt(i) === Uri._COLON) { |
| 2170 parseIPv6Address(host, start, end); | 2157 parseIPv6Address(host, start, end); |
| 2171 return `[${host}]`; | 2158 return `[${host}]`; |
| 2172 } | 2159 } |
| 2173 } | 2160 } |
| 2174 } | 2161 } |
| 2175 return _normalizeRegName(host, start, end); | 2162 return _normalizeRegName(host, start, end); |
| 2176 } | 2163 } |
| 2177 static [_isRegNameChar](char) { | 2164 static [_isRegNameChar](char) { |
| 2178 return dart.notNull(char) < 127 && dart.notNull(!dart.equals(dart.dbinary(
dart.dindex(_regNameTable, dart.notNull(char) >> 4), '&', 1 << (dart.notNull(cha
r) & 15)), 0)); | 2165 return dart.notNull(char) < 127 && dart.notNull(!dart.equals(dart.dbinary(
dart.dindex(Uri._regNameTable, dart.notNull(char) >> 4), '&', 1 << (dart.notNull
(char) & 15)), 0)); |
| 2179 } | 2166 } |
| 2180 static [_normalizeRegName](host, start, end) { | 2167 static [_normalizeRegName](host, start, end) { |
| 2181 let buffer = null; | 2168 let buffer = null; |
| 2182 let sectionStart = start; | 2169 let sectionStart = start; |
| 2183 let index = start; | 2170 let index = start; |
| 2184 let isNormalized = true; | 2171 let isNormalized = true; |
| 2185 while (dart.notNull(index) < dart.notNull(end)) { | 2172 while (dart.notNull(index) < dart.notNull(end)) { |
| 2186 let char = host.codeUnitAt(index); | 2173 let char = host.codeUnitAt(index); |
| 2187 if (char === _PERCENT) { | 2174 if (char === Uri._PERCENT) { |
| 2188 let replacement = _normalizeEscape(host, index, true); | 2175 let replacement = _normalizeEscape(host, index, true); |
| 2189 if (dart.notNull(replacement === null) && dart.notNull(isNormalized))
{ | 2176 if (dart.notNull(replacement === null) && dart.notNull(isNormalized))
{ |
| 2190 index = 3; | 2177 index = 3; |
| 2191 continue; | 2178 continue; |
| 2192 } | 2179 } |
| 2193 if (buffer === null) | 2180 if (buffer === null) |
| 2194 buffer = new StringBuffer(); | 2181 buffer = new StringBuffer(); |
| 2195 let slice = host.substring(sectionStart, index); | 2182 let slice = host.substring(sectionStart, index); |
| 2196 if (!dart.notNull(isNormalized)) | 2183 if (!dart.notNull(isNormalized)) |
| 2197 slice = slice.toLowerCase(); | 2184 slice = slice.toLowerCase(); |
| 2198 buffer.write(slice); | 2185 buffer.write(slice); |
| 2199 let sourceLength = 3; | 2186 let sourceLength = 3; |
| 2200 if (replacement === null) { | 2187 if (replacement === null) { |
| 2201 replacement = host.substring(index, dart.notNull(index) + 3); | 2188 replacement = host.substring(index, dart.notNull(index) + 3); |
| 2202 } else if (dart.equals(replacement, "%")) { | 2189 } else if (dart.equals(replacement, "%")) { |
| 2203 replacement = "%25"; | 2190 replacement = "%25"; |
| 2204 sourceLength = 1; | 2191 sourceLength = 1; |
| 2205 } | 2192 } |
| 2206 buffer.write(replacement); | 2193 buffer.write(replacement); |
| 2207 index = sourceLength; | 2194 index = sourceLength; |
| 2208 sectionStart = index; | 2195 sectionStart = index; |
| 2209 isNormalized = true; | 2196 isNormalized = true; |
| 2210 } else if (_isRegNameChar(char)) { | 2197 } else if (_isRegNameChar(char)) { |
| 2211 if (dart.notNull(isNormalized) && dart.notNull(_UPPER_CASE_A) <= dart.
notNull(char) && dart.notNull(_UPPER_CASE_Z) >= dart.notNull(char)) { | 2198 if (dart.notNull(isNormalized) && dart.notNull(Uri._UPPER_CASE_A) <= d
art.notNull(char) && dart.notNull(Uri._UPPER_CASE_Z) >= dart.notNull(char)) { |
| 2212 if (buffer === null) | 2199 if (buffer === null) |
| 2213 buffer = new StringBuffer(); | 2200 buffer = new StringBuffer(); |
| 2214 if (dart.notNull(sectionStart) < dart.notNull(index)) { | 2201 if (dart.notNull(sectionStart) < dart.notNull(index)) { |
| 2215 buffer.write(host.substring(sectionStart, index)); | 2202 buffer.write(host.substring(sectionStart, index)); |
| 2216 sectionStart = index; | 2203 sectionStart = index; |
| 2217 } | 2204 } |
| 2218 isNormalized = false; | 2205 isNormalized = false; |
| 2219 } | 2206 } |
| 2220 index = dart.notNull(index) + 1; | 2207 index = dart.notNull(index) + 1; |
| 2221 } else if (_isGeneralDelimiter(char)) { | 2208 } else if (_isGeneralDelimiter(char)) { |
| (...skipping 28 matching lines...) Expand all Loading... |
| 2250 } | 2237 } |
| 2251 return buffer.toString(); | 2238 return buffer.toString(); |
| 2252 } | 2239 } |
| 2253 static [_makeScheme](scheme, end) { | 2240 static [_makeScheme](scheme, end) { |
| 2254 if (end === 0) | 2241 if (end === 0) |
| 2255 return ""; | 2242 return ""; |
| 2256 let firstCodeUnit = scheme.codeUnitAt(0); | 2243 let firstCodeUnit = scheme.codeUnitAt(0); |
| 2257 if (!dart.notNull(_isAlphabeticCharacter(firstCodeUnit))) { | 2244 if (!dart.notNull(_isAlphabeticCharacter(firstCodeUnit))) { |
| 2258 _fail(scheme, 0, "Scheme not starting with alphabetic character"); | 2245 _fail(scheme, 0, "Scheme not starting with alphabetic character"); |
| 2259 } | 2246 } |
| 2260 let allLowercase = dart.notNull(firstCodeUnit) >= dart.notNull(_LOWER_CASE
_A); | 2247 let allLowercase = dart.notNull(firstCodeUnit) >= dart.notNull(Uri._LOWER_
CASE_A); |
| 2261 for (let i = 0; dart.notNull(i) < dart.notNull(end); i = dart.notNull(i) +
1) { | 2248 for (let i = 0; dart.notNull(i) < dart.notNull(end); i = dart.notNull(i) +
1) { |
| 2262 let codeUnit = scheme.codeUnitAt(i); | 2249 let codeUnit = scheme.codeUnitAt(i); |
| 2263 if (!dart.notNull(_isSchemeCharacter(codeUnit))) { | 2250 if (!dart.notNull(_isSchemeCharacter(codeUnit))) { |
| 2264 _fail(scheme, i, "Illegal scheme character"); | 2251 _fail(scheme, i, "Illegal scheme character"); |
| 2265 } | 2252 } |
| 2266 if (dart.notNull(codeUnit) < dart.notNull(_LOWER_CASE_A) || dart.notNull
(codeUnit) > dart.notNull(_LOWER_CASE_Z)) { | 2253 if (dart.notNull(codeUnit) < dart.notNull(Uri._LOWER_CASE_A) || dart.not
Null(codeUnit) > dart.notNull(Uri._LOWER_CASE_Z)) { |
| 2267 allLowercase = false; | 2254 allLowercase = false; |
| 2268 } | 2255 } |
| 2269 } | 2256 } |
| 2270 scheme = scheme.substring(0, end); | 2257 scheme = scheme.substring(0, end); |
| 2271 if (!dart.notNull(allLowercase)) | 2258 if (!dart.notNull(allLowercase)) |
| 2272 scheme = scheme.toLowerCase(); | 2259 scheme = scheme.toLowerCase(); |
| 2273 return scheme; | 2260 return scheme; |
| 2274 } | 2261 } |
| 2275 static [_makeUserInfo](userInfo, start, end) { | 2262 static [_makeUserInfo](userInfo, start, end) { |
| 2276 if (userInfo === null) | 2263 if (userInfo === null) |
| 2277 return ""; | 2264 return ""; |
| 2278 return _normalize(userInfo, start, end, dart.as(_userinfoTable, List$(int)
)); | 2265 return _normalize(userInfo, start, end, dart.as(Uri._userinfoTable, List$(
int))); |
| 2279 } | 2266 } |
| 2280 static [_makePath](path, start, end, pathSegments, ensureLeadingSlash, isFil
e) { | 2267 static [_makePath](path, start, end, pathSegments, ensureLeadingSlash, isFil
e) { |
| 2281 if (dart.notNull(path === null) && dart.notNull(pathSegments === null)) | 2268 if (dart.notNull(path === null) && dart.notNull(pathSegments === null)) |
| 2282 return isFile ? "/" : ""; | 2269 return isFile ? "/" : ""; |
| 2283 if (dart.notNull(path !== null) && dart.notNull(pathSegments !== null)) { | 2270 if (dart.notNull(path !== null) && dart.notNull(pathSegments !== null)) { |
| 2284 throw new ArgumentError('Both path and pathSegments specified'); | 2271 throw new ArgumentError('Both path and pathSegments specified'); |
| 2285 } | 2272 } |
| 2286 let result = null; | 2273 let result = null; |
| 2287 if (path !== null) { | 2274 if (path !== null) { |
| 2288 result = _normalize(path, start, end, dart.as(_pathCharOrSlashTable, Lis
t$(int))); | 2275 result = _normalize(path, start, end, dart.as(Uri._pathCharOrSlashTable,
List$(int))); |
| 2289 } else { | 2276 } else { |
| 2290 result = pathSegments.map((s) => _uriEncode(dart.as(_pathCharTable, List
$(int)), dart.as(s, String))).join("/"); | 2277 result = pathSegments.map((s) => _uriEncode(dart.as(Uri._pathCharTable,
List$(int)), dart.as(s, String))).join("/"); |
| 2291 } | 2278 } |
| 2292 if (dart.dload(result, 'isEmpty')) { | 2279 if (dart.dload(result, 'isEmpty')) { |
| 2293 if (isFile) | 2280 if (isFile) |
| 2294 return "/"; | 2281 return "/"; |
| 2295 } else if ((dart.notNull(isFile) || dart.notNull(ensureLeadingSlash)) && d
art.notNull(!dart.equals(dart.dinvoke(result, 'codeUnitAt', 0), _SLASH))) { | 2282 } else if ((dart.notNull(isFile) || dart.notNull(ensureLeadingSlash)) && d
art.notNull(!dart.equals(dart.dinvoke(result, 'codeUnitAt', 0), Uri._SLASH))) { |
| 2296 return `/${result}`; | 2283 return `/${result}`; |
| 2297 } | 2284 } |
| 2298 return dart.as(result, String); | 2285 return dart.as(result, String); |
| 2299 } | 2286 } |
| 2300 static [_makeQuery](query, start, end, queryParameters) { | 2287 static [_makeQuery](query, start, end, queryParameters) { |
| 2301 if (dart.notNull(query === null) && dart.notNull(queryParameters === null)
) | 2288 if (dart.notNull(query === null) && dart.notNull(queryParameters === null)
) |
| 2302 return null; | 2289 return null; |
| 2303 if (dart.notNull(query !== null) && dart.notNull(queryParameters !== null)
) { | 2290 if (dart.notNull(query !== null) && dart.notNull(queryParameters !== null)
) { |
| 2304 throw new ArgumentError('Both query and queryParameters specified'); | 2291 throw new ArgumentError('Both query and queryParameters specified'); |
| 2305 } | 2292 } |
| 2306 if (query !== null) | 2293 if (query !== null) |
| 2307 return _normalize(query, start, end, dart.as(_queryCharTable, List$(int)
)); | 2294 return _normalize(query, start, end, dart.as(Uri._queryCharTable, List$(
int))); |
| 2308 let result = new StringBuffer(); | 2295 let result = new StringBuffer(); |
| 2309 let first = true; | 2296 let first = true; |
| 2310 queryParameters.forEach(((key, value) => { | 2297 queryParameters.forEach(((key, value) => { |
| 2311 if (!dart.notNull(first)) { | 2298 if (!dart.notNull(first)) { |
| 2312 result.write("&"); | 2299 result.write("&"); |
| 2313 } | 2300 } |
| 2314 first = false; | 2301 first = false; |
| 2315 result.write(Uri.encodeQueryComponent(dart.as(key, String))); | 2302 result.write(Uri.encodeQueryComponent(dart.as(key, String))); |
| 2316 if (dart.notNull(value !== null) && dart.notNull(dart.dunary('!', dart.d
load(value, 'isEmpty')))) { | 2303 if (dart.notNull(value !== null) && dart.notNull(dart.dunary('!', dart.d
load(value, 'isEmpty')))) { |
| 2317 result.write("="); | 2304 result.write("="); |
| 2318 result.write(Uri.encodeQueryComponent(dart.as(value, String))); | 2305 result.write(Uri.encodeQueryComponent(dart.as(value, String))); |
| 2319 } | 2306 } |
| 2320 }).bind(this)); | 2307 }).bind(this)); |
| 2321 return result.toString(); | 2308 return result.toString(); |
| 2322 } | 2309 } |
| 2323 static [_makeFragment](fragment, start, end) { | 2310 static [_makeFragment](fragment, start, end) { |
| 2324 if (fragment === null) | 2311 if (fragment === null) |
| 2325 return null; | 2312 return null; |
| 2326 return _normalize(fragment, start, end, dart.as(_queryCharTable, List$(int
))); | 2313 return _normalize(fragment, start, end, dart.as(Uri._queryCharTable, List$
(int))); |
| 2327 } | 2314 } |
| 2328 static [_stringOrNullLength](s) { | 2315 static [_stringOrNullLength](s) { |
| 2329 return s === null ? 0 : s.length; | 2316 return s === null ? 0 : s.length; |
| 2330 } | 2317 } |
| 2331 static [_isHexDigit](char) { | 2318 static [_isHexDigit](char) { |
| 2332 if (dart.notNull(_NINE) >= dart.notNull(char)) | 2319 if (dart.notNull(Uri._NINE) >= dart.notNull(char)) |
| 2333 return dart.notNull(_ZERO) <= dart.notNull(char); | 2320 return dart.notNull(Uri._ZERO) <= dart.notNull(char); |
| 2334 char = 32; | 2321 char = 32; |
| 2335 return dart.notNull(_LOWER_CASE_A) <= dart.notNull(char) && dart.notNull(_
LOWER_CASE_F) >= dart.notNull(char); | 2322 return dart.notNull(Uri._LOWER_CASE_A) <= dart.notNull(char) && dart.notNu
ll(Uri._LOWER_CASE_F) >= dart.notNull(char); |
| 2336 } | 2323 } |
| 2337 static [_hexValue](char) { | 2324 static [_hexValue](char) { |
| 2338 dart.assert(_isHexDigit(char)); | 2325 dart.assert(_isHexDigit(char)); |
| 2339 if (dart.notNull(_NINE) >= dart.notNull(char)) | 2326 if (dart.notNull(Uri._NINE) >= dart.notNull(char)) |
| 2340 return dart.notNull(char) - dart.notNull(_ZERO); | 2327 return dart.notNull(char) - dart.notNull(Uri._ZERO); |
| 2341 char = 32; | 2328 char = 32; |
| 2342 return dart.notNull(char) - (dart.notNull(_LOWER_CASE_A) - 10); | 2329 return dart.notNull(char) - (dart.notNull(Uri._LOWER_CASE_A) - 10); |
| 2343 } | 2330 } |
| 2344 static [_normalizeEscape](source, index, lowerCase) { | 2331 static [_normalizeEscape](source, index, lowerCase) { |
| 2345 dart.assert(source.codeUnitAt(index) === _PERCENT); | 2332 dart.assert(source.codeUnitAt(index) === Uri._PERCENT); |
| 2346 if (dart.notNull(index) + 2 >= dart.notNull(source.length)) { | 2333 if (dart.notNull(index) + 2 >= dart.notNull(source.length)) { |
| 2347 return "%"; | 2334 return "%"; |
| 2348 } | 2335 } |
| 2349 let firstDigit = source.codeUnitAt(dart.notNull(index) + 1); | 2336 let firstDigit = source.codeUnitAt(dart.notNull(index) + 1); |
| 2350 let secondDigit = source.codeUnitAt(dart.notNull(index) + 2); | 2337 let secondDigit = source.codeUnitAt(dart.notNull(index) + 2); |
| 2351 if (!dart.notNull(_isHexDigit(firstDigit)) || !dart.notNull(_isHexDigit(se
condDigit))) { | 2338 if (!dart.notNull(_isHexDigit(firstDigit)) || !dart.notNull(_isHexDigit(se
condDigit))) { |
| 2352 return "%"; | 2339 return "%"; |
| 2353 } | 2340 } |
| 2354 let value = dart.notNull(_hexValue(firstDigit)) * 16 + dart.notNull(_hexVa
lue(secondDigit)); | 2341 let value = dart.notNull(_hexValue(firstDigit)) * 16 + dart.notNull(_hexVa
lue(secondDigit)); |
| 2355 if (_isUnreservedChar(value)) { | 2342 if (_isUnreservedChar(value)) { |
| 2356 if (dart.notNull(lowerCase) && dart.notNull(_UPPER_CASE_A) <= dart.notNu
ll(value) && dart.notNull(_UPPER_CASE_Z) >= dart.notNull(value)) { | 2343 if (dart.notNull(lowerCase) && dart.notNull(Uri._UPPER_CASE_A) <= dart.n
otNull(value) && dart.notNull(Uri._UPPER_CASE_Z) >= dart.notNull(value)) { |
| 2357 value = 32; | 2344 value = 32; |
| 2358 } | 2345 } |
| 2359 return new String.fromCharCode(value); | 2346 return new String.fromCharCode(value); |
| 2360 } | 2347 } |
| 2361 if (dart.notNull(firstDigit) >= dart.notNull(_LOWER_CASE_A) || dart.notNul
l(secondDigit) >= dart.notNull(_LOWER_CASE_A)) { | 2348 if (dart.notNull(firstDigit) >= dart.notNull(Uri._LOWER_CASE_A) || dart.no
tNull(secondDigit) >= dart.notNull(Uri._LOWER_CASE_A)) { |
| 2362 return source.substring(index, dart.notNull(index) + 3).toUpperCase(); | 2349 return source.substring(index, dart.notNull(index) + 3).toUpperCase(); |
| 2363 } | 2350 } |
| 2364 return null; | 2351 return null; |
| 2365 } | 2352 } |
| 2366 static [_isUnreservedChar](ch) { | 2353 static [_isUnreservedChar](ch) { |
| 2367 return dart.notNull(ch) < 127 && dart.notNull(!dart.equals(dart.dbinary(da
rt.dindex(_unreservedTable, dart.notNull(ch) >> 4), '&', 1 << (dart.notNull(ch)
& 15)), 0)); | 2354 return dart.notNull(ch) < 127 && dart.notNull(!dart.equals(dart.dbinary(da
rt.dindex(Uri._unreservedTable, dart.notNull(ch) >> 4), '&', 1 << (dart.notNull(
ch) & 15)), 0)); |
| 2368 } | 2355 } |
| 2369 static [_escapeChar](char) { | 2356 static [_escapeChar](char) { |
| 2370 dart.assert(dart.dbinary(char, '<=', 1114111)); | 2357 dart.assert(dart.dbinary(char, '<=', 1114111)); |
| 2371 let hexDigits = "0123456789ABCDEF"; | 2358 let hexDigits = "0123456789ABCDEF"; |
| 2372 let codeUnits = null; | 2359 let codeUnits = null; |
| 2373 if (dart.dbinary(char, '<', 128)) { | 2360 if (dart.dbinary(char, '<', 128)) { |
| 2374 codeUnits = new List(3); | 2361 codeUnits = new List(3); |
| 2375 codeUnits.set(0, _PERCENT); | 2362 codeUnits.set(0, Uri._PERCENT); |
| 2376 codeUnits.set(1, hexDigits.codeUnitAt(dart.as(dart.dbinary(char, '>>', 4
), int))); | 2363 codeUnits.set(1, hexDigits.codeUnitAt(dart.as(dart.dbinary(char, '>>', 4
), int))); |
| 2377 codeUnits.set(2, hexDigits.codeUnitAt(dart.as(dart.dbinary(char, '&', 15
), int))); | 2364 codeUnits.set(2, hexDigits.codeUnitAt(dart.as(dart.dbinary(char, '&', 15
), int))); |
| 2378 } else { | 2365 } else { |
| 2379 let flag = 192; | 2366 let flag = 192; |
| 2380 let encodedBytes = 2; | 2367 let encodedBytes = 2; |
| 2381 if (dart.dbinary(char, '>', 2047)) { | 2368 if (dart.dbinary(char, '>', 2047)) { |
| 2382 flag = 224; | 2369 flag = 224; |
| 2383 encodedBytes = 3; | 2370 encodedBytes = 3; |
| 2384 if (dart.dbinary(char, '>', 65535)) { | 2371 if (dart.dbinary(char, '>', 65535)) { |
| 2385 encodedBytes = 4; | 2372 encodedBytes = 4; |
| 2386 flag = 240; | 2373 flag = 240; |
| 2387 } | 2374 } |
| 2388 } | 2375 } |
| 2389 codeUnits = new List(3 * dart.notNull(encodedBytes)); | 2376 codeUnits = new List(3 * dart.notNull(encodedBytes)); |
| 2390 let index = 0; | 2377 let index = 0; |
| 2391 while ((encodedBytes = dart.notNull(encodedBytes) - 1) >= 0) { | 2378 while ((encodedBytes = dart.notNull(encodedBytes) - 1) >= 0) { |
| 2392 let byte = dart.as(dart.dbinary(dart.dbinary(dart.dbinary(char, '>>',
6 * dart.notNull(encodedBytes)), '&', 63), '|', flag), int); | 2379 let byte = dart.as(dart.dbinary(dart.dbinary(dart.dbinary(char, '>>',
6 * dart.notNull(encodedBytes)), '&', 63), '|', flag), int); |
| 2393 codeUnits.set(index, _PERCENT); | 2380 codeUnits.set(index, Uri._PERCENT); |
| 2394 codeUnits.set(dart.notNull(index) + 1, hexDigits.codeUnitAt(dart.notNu
ll(byte) >> 4)); | 2381 codeUnits.set(dart.notNull(index) + 1, hexDigits.codeUnitAt(dart.notNu
ll(byte) >> 4)); |
| 2395 codeUnits.set(dart.notNull(index) + 2, hexDigits.codeUnitAt(dart.notNu
ll(byte) & 15)); | 2382 codeUnits.set(dart.notNull(index) + 2, hexDigits.codeUnitAt(dart.notNu
ll(byte) & 15)); |
| 2396 index = 3; | 2383 index = 3; |
| 2397 flag = 128; | 2384 flag = 128; |
| 2398 } | 2385 } |
| 2399 } | 2386 } |
| 2400 return new String.fromCharCodes(dart.as(codeUnits, Iterable$(int))); | 2387 return new String.fromCharCodes(dart.as(codeUnits, Iterable$(int))); |
| 2401 } | 2388 } |
| 2402 static [_normalize](component, start, end, charTable) { | 2389 static [_normalize](component, start, end, charTable) { |
| 2403 let buffer = null; | 2390 let buffer = null; |
| 2404 let sectionStart = start; | 2391 let sectionStart = start; |
| 2405 let index = start; | 2392 let index = start; |
| 2406 while (dart.notNull(index) < dart.notNull(end)) { | 2393 while (dart.notNull(index) < dart.notNull(end)) { |
| 2407 let char = component.codeUnitAt(index); | 2394 let char = component.codeUnitAt(index); |
| 2408 if (dart.notNull(char) < 127 && (dart.notNull(charTable.get(dart.notNull
(char) >> 4)) & 1 << (dart.notNull(char) & 15)) !== 0) { | 2395 if (dart.notNull(char) < 127 && (dart.notNull(charTable.get(dart.notNull
(char) >> 4)) & 1 << (dart.notNull(char) & 15)) !== 0) { |
| 2409 index = dart.notNull(index) + 1; | 2396 index = dart.notNull(index) + 1; |
| 2410 } else { | 2397 } else { |
| 2411 let replacement = null; | 2398 let replacement = null; |
| 2412 let sourceLength = null; | 2399 let sourceLength = null; |
| 2413 if (char === _PERCENT) { | 2400 if (char === Uri._PERCENT) { |
| 2414 replacement = _normalizeEscape(component, index, false); | 2401 replacement = _normalizeEscape(component, index, false); |
| 2415 if (replacement === null) { | 2402 if (replacement === null) { |
| 2416 index = 3; | 2403 index = 3; |
| 2417 continue; | 2404 continue; |
| 2418 } | 2405 } |
| 2419 if (dart.equals("%", replacement)) { | 2406 if (dart.equals("%", replacement)) { |
| 2420 replacement = "%25"; | 2407 replacement = "%25"; |
| 2421 sourceLength = 1; | 2408 sourceLength = 1; |
| 2422 } else { | 2409 } else { |
| 2423 sourceLength = 3; | 2410 sourceLength = 3; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 2447 } | 2434 } |
| 2448 if (buffer === null) { | 2435 if (buffer === null) { |
| 2449 return component.substring(start, end); | 2436 return component.substring(start, end); |
| 2450 } | 2437 } |
| 2451 if (dart.notNull(sectionStart) < dart.notNull(end)) { | 2438 if (dart.notNull(sectionStart) < dart.notNull(end)) { |
| 2452 buffer.write(component.substring(sectionStart, end)); | 2439 buffer.write(component.substring(sectionStart, end)); |
| 2453 } | 2440 } |
| 2454 return buffer.toString(); | 2441 return buffer.toString(); |
| 2455 } | 2442 } |
| 2456 static [_isSchemeCharacter](ch) { | 2443 static [_isSchemeCharacter](ch) { |
| 2457 return dart.notNull(ch) < 128 && dart.notNull(!dart.equals(dart.dbinary(da
rt.dindex(_schemeTable, dart.notNull(ch) >> 4), '&', 1 << (dart.notNull(ch) & 15
)), 0)); | 2444 return dart.notNull(ch) < 128 && dart.notNull(!dart.equals(dart.dbinary(da
rt.dindex(Uri._schemeTable, dart.notNull(ch) >> 4), '&', 1 << (dart.notNull(ch)
& 15)), 0)); |
| 2458 } | 2445 } |
| 2459 static [_isGeneralDelimiter](ch) { | 2446 static [_isGeneralDelimiter](ch) { |
| 2460 return dart.notNull(ch) <= dart.notNull(_RIGHT_BRACKET) && dart.notNull(!d
art.equals(dart.dbinary(dart.dindex(_genDelimitersTable, dart.notNull(ch) >> 4),
'&', 1 << (dart.notNull(ch) & 15)), 0)); | 2447 return dart.notNull(ch) <= dart.notNull(Uri._RIGHT_BRACKET) && dart.notNul
l(!dart.equals(dart.dbinary(dart.dindex(Uri._genDelimitersTable, dart.notNull(ch
) >> 4), '&', 1 << (dart.notNull(ch) & 15)), 0)); |
| 2461 } | 2448 } |
| 2462 get isAbsolute() { | 2449 get isAbsolute() { |
| 2463 return dart.notNull(!dart.equals(this.scheme, "")) && dart.notNull(dart.eq
uals(this.fragment, "")); | 2450 return dart.notNull(!dart.equals(this.scheme, "")) && dart.notNull(dart.eq
uals(this.fragment, "")); |
| 2464 } | 2451 } |
| 2465 [_merge](base, reference) { | 2452 [_merge](base, reference) { |
| 2466 if (base.isEmpty) | 2453 if (base.isEmpty) |
| 2467 return `/${reference}`; | 2454 return `/${reference}`; |
| 2468 let backCount = 0; | 2455 let backCount = 0; |
| 2469 let refStart = 0; | 2456 let refStart = 0; |
| 2470 while (reference.startsWith("../", refStart)) { | 2457 while (reference.startsWith("../", refStart)) { |
| 2471 refStart = 3; | 2458 refStart = 3; |
| 2472 backCount = dart.notNull(backCount) + 1; | 2459 backCount = dart.notNull(backCount) + 1; |
| 2473 } | 2460 } |
| 2474 let baseEnd = base.lastIndexOf('/'); | 2461 let baseEnd = base.lastIndexOf('/'); |
| 2475 while (dart.notNull(baseEnd) > 0 && dart.notNull(backCount) > 0) { | 2462 while (dart.notNull(baseEnd) > 0 && dart.notNull(backCount) > 0) { |
| 2476 let newEnd = base.lastIndexOf('/', dart.notNull(baseEnd) - 1); | 2463 let newEnd = base.lastIndexOf('/', dart.notNull(baseEnd) - 1); |
| 2477 if (dart.notNull(newEnd) < 0) { | 2464 if (dart.notNull(newEnd) < 0) { |
| 2478 break; | 2465 break; |
| 2479 } | 2466 } |
| 2480 let delta = dart.notNull(baseEnd) - dart.notNull(newEnd); | 2467 let delta = dart.notNull(baseEnd) - dart.notNull(newEnd); |
| 2481 if ((delta === 2 || delta === 3) && base.codeUnitAt(dart.notNull(newEnd)
+ 1) === _DOT && (delta === 2 || base.codeUnitAt(dart.notNull(newEnd) + 2) ===
_DOT)) { | 2468 if ((delta === 2 || delta === 3) && base.codeUnitAt(dart.notNull(newEnd)
+ 1) === Uri._DOT && (delta === 2 || base.codeUnitAt(dart.notNull(newEnd) + 2)
=== Uri._DOT)) { |
| 2482 break; | 2469 break; |
| 2483 } | 2470 } |
| 2484 baseEnd = newEnd; | 2471 baseEnd = newEnd; |
| 2485 backCount = dart.notNull(backCount) - 1; | 2472 backCount = dart.notNull(backCount) - 1; |
| 2486 } | 2473 } |
| 2487 return String['+'](base.substring(0, dart.notNull(baseEnd) + 1), reference
.substring(dart.notNull(refStart) - 3 * dart.notNull(backCount))); | 2474 return String['+'](base.substring(0, dart.notNull(baseEnd) + 1), reference
.substring(dart.notNull(refStart) - 3 * dart.notNull(backCount))); |
| 2488 } | 2475 } |
| 2489 [_hasDotSegments](path) { | 2476 [_hasDotSegments](path) { |
| 2490 if (dart.notNull(path.length) > 0 && path.codeUnitAt(0) === _DOT) | 2477 if (dart.notNull(path.length) > 0 && path.codeUnitAt(0) === Uri._DOT) |
| 2491 return true; | 2478 return true; |
| 2492 let index = path.indexOf("/."); | 2479 let index = path.indexOf("/."); |
| 2493 return index !== -1; | 2480 return index !== -1; |
| 2494 } | 2481 } |
| 2495 [_removeDotSegments](path) { | 2482 [_removeDotSegments](path) { |
| 2496 if (!dart.notNull(this[_hasDotSegments](path))) | 2483 if (!dart.notNull(this[_hasDotSegments](path))) |
| 2497 return path; | 2484 return path; |
| 2498 let output = dart.as(new List.from([]), List$(String)); | 2485 let output = dart.as(new List.from([]), List$(String)); |
| 2499 let appendSlash = false; | 2486 let appendSlash = false; |
| 2500 for (let segment of path.split("/")) { | 2487 for (let segment of path.split("/")) { |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2613 _checkNonWindowsPathReservedCharacters(this.pathSegments, false); | 2600 _checkNonWindowsPathReservedCharacters(this.pathSegments, false); |
| 2614 let result = new StringBuffer(); | 2601 let result = new StringBuffer(); |
| 2615 if (this[_isPathAbsolute]) | 2602 if (this[_isPathAbsolute]) |
| 2616 result.write("/"); | 2603 result.write("/"); |
| 2617 result.writeAll(this.pathSegments, "/"); | 2604 result.writeAll(this.pathSegments, "/"); |
| 2618 return result.toString(); | 2605 return result.toString(); |
| 2619 } | 2606 } |
| 2620 [_toWindowsFilePath]() { | 2607 [_toWindowsFilePath]() { |
| 2621 let hasDriveLetter = false; | 2608 let hasDriveLetter = false; |
| 2622 let segments = this.pathSegments; | 2609 let segments = this.pathSegments; |
| 2623 if (dart.notNull(segments.length) > 0 && segments.get(0).length === 2 && s
egments.get(0).codeUnitAt(1) === _COLON) { | 2610 if (dart.notNull(segments.length) > 0 && segments.get(0).length === 2 && s
egments.get(0).codeUnitAt(1) === Uri._COLON) { |
| 2624 _checkWindowsDriveLetter(segments.get(0).codeUnitAt(0), false); | 2611 _checkWindowsDriveLetter(segments.get(0).codeUnitAt(0), false); |
| 2625 _checkWindowsPathReservedCharacters(segments, false, 1); | 2612 _checkWindowsPathReservedCharacters(segments, false, 1); |
| 2626 hasDriveLetter = true; | 2613 hasDriveLetter = true; |
| 2627 } else { | 2614 } else { |
| 2628 _checkWindowsPathReservedCharacters(segments, false); | 2615 _checkWindowsPathReservedCharacters(segments, false); |
| 2629 } | 2616 } |
| 2630 let result = new StringBuffer(); | 2617 let result = new StringBuffer(); |
| 2631 if (dart.notNull(this[_isPathAbsolute]) && !dart.notNull(hasDriveLetter)) | 2618 if (dart.notNull(this[_isPathAbsolute]) && !dart.notNull(hasDriveLetter)) |
| 2632 result.write("\\"); | 2619 result.write("\\"); |
| 2633 if (!dart.equals(this.host, "")) { | 2620 if (!dart.equals(this.host, "")) { |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2688 } | 2675 } |
| 2689 return combine(this.scheme, combine(this.userInfo, combine(this.host, comb
ine(this.port, combine(this.path, combine(this.query, combine(this.fragment, 1))
))))); | 2676 return combine(this.scheme, combine(this.userInfo, combine(this.host, comb
ine(this.port, combine(this.path, combine(this.query, combine(this.fragment, 1))
))))); |
| 2690 } | 2677 } |
| 2691 static [_addIfNonEmpty](sb, test, first, second) { | 2678 static [_addIfNonEmpty](sb, test, first, second) { |
| 2692 if (!dart.equals("", test)) { | 2679 if (!dart.equals("", test)) { |
| 2693 sb.write(first); | 2680 sb.write(first); |
| 2694 sb.write(second); | 2681 sb.write(second); |
| 2695 } | 2682 } |
| 2696 } | 2683 } |
| 2697 static encodeComponent(component) { | 2684 static encodeComponent(component) { |
| 2698 return _uriEncode(dart.as(_unreserved2396Table, List$(int)), component); | 2685 return _uriEncode(dart.as(Uri._unreserved2396Table, List$(int)), component
); |
| 2699 } | 2686 } |
| 2700 static encodeQueryComponent(component, opt$) { | 2687 static encodeQueryComponent(component, opt$) { |
| 2701 let encoding = opt$.encoding === void 0 ? convert.UTF8 : opt$.encoding; | 2688 let encoding = opt$.encoding === void 0 ? convert.UTF8 : opt$.encoding; |
| 2702 return _uriEncode(dart.as(_unreservedTable, List$(int)), component, {encod
ing: encoding, spaceToPlus: true}); | 2689 return _uriEncode(dart.as(Uri._unreservedTable, List$(int)), component, {e
ncoding: encoding, spaceToPlus: true}); |
| 2703 } | 2690 } |
| 2704 static decodeComponent(encodedComponent) { | 2691 static decodeComponent(encodedComponent) { |
| 2705 return _uriDecode(encodedComponent); | 2692 return _uriDecode(encodedComponent); |
| 2706 } | 2693 } |
| 2707 static decodeQueryComponent(encodedComponent, opt$) { | 2694 static decodeQueryComponent(encodedComponent, opt$) { |
| 2708 let encoding = opt$.encoding === void 0 ? convert.UTF8 : opt$.encoding; | 2695 let encoding = opt$.encoding === void 0 ? convert.UTF8 : opt$.encoding; |
| 2709 return _uriDecode(encodedComponent, {plusToSpace: true, encoding: encoding
}); | 2696 return _uriDecode(encodedComponent, {plusToSpace: true, encoding: encoding
}); |
| 2710 } | 2697 } |
| 2711 static encodeFull(uri) { | 2698 static encodeFull(uri) { |
| 2712 return _uriEncode(dart.as(_encodeFullTable, List$(int)), uri); | 2699 return _uriEncode(dart.as(Uri._encodeFullTable, List$(int)), uri); |
| 2713 } | 2700 } |
| 2714 static decodeFull(uri) { | 2701 static decodeFull(uri) { |
| 2715 return _uriDecode(uri); | 2702 return _uriDecode(uri); |
| 2716 } | 2703 } |
| 2717 static splitQueryString(query, opt$) { | 2704 static splitQueryString(query, opt$) { |
| 2718 let encoding = opt$.encoding === void 0 ? convert.UTF8 : opt$.encoding; | 2705 let encoding = opt$.encoding === void 0 ? convert.UTF8 : opt$.encoding; |
| 2719 return dart.as(query.split("&").fold(dart.map(), (map, element) => { | 2706 return dart.as(query.split("&").fold(dart.map(), (map, element) => { |
| 2720 let index = dart.as(dart.dinvoke(element, 'indexOf', "="), int); | 2707 let index = dart.as(dart.dinvoke(element, 'indexOf', "="), int); |
| 2721 if (index === -1) { | 2708 if (index === -1) { |
| 2722 if (!dart.equals(element, "")) { | 2709 if (!dart.equals(element, "")) { |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2770 error('each part must be in the range of `0x0..0xFFFF`', start); | 2757 error('each part must be in the range of `0x0..0xFFFF`', start); |
| 2771 } | 2758 } |
| 2772 return value; | 2759 return value; |
| 2773 } | 2760 } |
| 2774 if (dart.notNull(host.length) < 2) | 2761 if (dart.notNull(host.length) < 2) |
| 2775 error('address is too short'); | 2762 error('address is too short'); |
| 2776 let parts = dart.as(new List.from([]), List$(int)); | 2763 let parts = dart.as(new List.from([]), List$(int)); |
| 2777 let wildcardSeen = false; | 2764 let wildcardSeen = false; |
| 2778 let partStart = start; | 2765 let partStart = start; |
| 2779 for (let i = start; dart.notNull(i) < dart.notNull(end); i = dart.notNull(
i) + 1) { | 2766 for (let i = start; dart.notNull(i) < dart.notNull(end); i = dart.notNull(
i) + 1) { |
| 2780 if (host.codeUnitAt(i) === _COLON) { | 2767 if (host.codeUnitAt(i) === Uri._COLON) { |
| 2781 if (i === start) { | 2768 if (i === start) { |
| 2782 i = dart.notNull(i) + 1; | 2769 i = dart.notNull(i) + 1; |
| 2783 if (host.codeUnitAt(i) !== _COLON) { | 2770 if (host.codeUnitAt(i) !== Uri._COLON) { |
| 2784 error('invalid start colon.', i); | 2771 error('invalid start colon.', i); |
| 2785 } | 2772 } |
| 2786 partStart = i; | 2773 partStart = i; |
| 2787 } | 2774 } |
| 2788 if (i === partStart) { | 2775 if (i === partStart) { |
| 2789 if (wildcardSeen) { | 2776 if (wildcardSeen) { |
| 2790 error('only one wildcard `::` is allowed', i); | 2777 error('only one wildcard `::` is allowed', i); |
| 2791 } | 2778 } |
| 2792 wildcardSeen = true; | 2779 wildcardSeen = true; |
| 2793 parts.add(-1); | 2780 parts.add(-1); |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2852 let hex = '0123456789ABCDEF'; | 2839 let hex = '0123456789ABCDEF'; |
| 2853 dart.dinvoke(buffer, 'writeCharCode', hex.codeUnitAt(dart.as(dart.dbinar
y(byte, '>>', 4), int))); | 2840 dart.dinvoke(buffer, 'writeCharCode', hex.codeUnitAt(dart.as(dart.dbinar
y(byte, '>>', 4), int))); |
| 2854 dart.dinvoke(buffer, 'writeCharCode', hex.codeUnitAt(dart.as(dart.dbinar
y(byte, '&', 15), int))); | 2841 dart.dinvoke(buffer, 'writeCharCode', hex.codeUnitAt(dart.as(dart.dbinar
y(byte, '&', 15), int))); |
| 2855 } | 2842 } |
| 2856 let result = new StringBuffer(); | 2843 let result = new StringBuffer(); |
| 2857 let bytes = encoding.encode(text); | 2844 let bytes = encoding.encode(text); |
| 2858 for (let i = 0; dart.notNull(i) < dart.notNull(bytes.length); i = dart.not
Null(i) + 1) { | 2845 for (let i = 0; dart.notNull(i) < dart.notNull(bytes.length); i = dart.not
Null(i) + 1) { |
| 2859 let byte = bytes.get(i); | 2846 let byte = bytes.get(i); |
| 2860 if (dart.notNull(byte) < 128 && (dart.notNull(canonicalTable.get(dart.no
tNull(byte) >> 4)) & 1 << (dart.notNull(byte) & 15)) !== 0) { | 2847 if (dart.notNull(byte) < 128 && (dart.notNull(canonicalTable.get(dart.no
tNull(byte) >> 4)) & 1 << (dart.notNull(byte) & 15)) !== 0) { |
| 2861 result.writeCharCode(byte); | 2848 result.writeCharCode(byte); |
| 2862 } else if (dart.notNull(spaceToPlus) && byte === _SPACE) { | 2849 } else if (dart.notNull(spaceToPlus) && byte === Uri._SPACE) { |
| 2863 result.writeCharCode(_PLUS); | 2850 result.writeCharCode(Uri._PLUS); |
| 2864 } else { | 2851 } else { |
| 2865 result.writeCharCode(_PERCENT); | 2852 result.writeCharCode(Uri._PERCENT); |
| 2866 byteToHex(byte, result); | 2853 byteToHex(byte, result); |
| 2867 } | 2854 } |
| 2868 } | 2855 } |
| 2869 return result.toString(); | 2856 return result.toString(); |
| 2870 } | 2857 } |
| 2871 static [_hexCharPairToByte](s, pos) { | 2858 static [_hexCharPairToByte](s, pos) { |
| 2872 let byte = 0; | 2859 let byte = 0; |
| 2873 for (let i = 0; dart.notNull(i) < 2; i = dart.notNull(i) + 1) { | 2860 for (let i = 0; dart.notNull(i) < 2; i = dart.notNull(i) + 1) { |
| 2874 let charCode = s.codeUnitAt(dart.notNull(pos) + dart.notNull(i)); | 2861 let charCode = s.codeUnitAt(dart.notNull(pos) + dart.notNull(i)); |
| 2875 if (48 <= dart.notNull(charCode) && dart.notNull(charCode) <= 57) { | 2862 if (48 <= dart.notNull(charCode) && dart.notNull(charCode) <= 57) { |
| 2876 byte = dart.notNull(byte) * 16 + dart.notNull(charCode) - 48; | 2863 byte = dart.notNull(byte) * 16 + dart.notNull(charCode) - 48; |
| 2877 } else { | 2864 } else { |
| 2878 charCode = 32; | 2865 charCode = 32; |
| 2879 if (97 <= dart.notNull(charCode) && dart.notNull(charCode) <= 102) { | 2866 if (97 <= dart.notNull(charCode) && dart.notNull(charCode) <= 102) { |
| 2880 byte = dart.notNull(byte) * 16 + dart.notNull(charCode) - 87; | 2867 byte = dart.notNull(byte) * 16 + dart.notNull(charCode) - 87; |
| 2881 } else { | 2868 } else { |
| 2882 throw new ArgumentError("Invalid URL encoding"); | 2869 throw new ArgumentError("Invalid URL encoding"); |
| 2883 } | 2870 } |
| 2884 } | 2871 } |
| 2885 } | 2872 } |
| 2886 return byte; | 2873 return byte; |
| 2887 } | 2874 } |
| 2888 static [_uriDecode](text, opt$) { | 2875 static [_uriDecode](text, opt$) { |
| 2889 let plusToSpace = opt$.plusToSpace === void 0 ? false : opt$.plusToSpace; | 2876 let plusToSpace = opt$.plusToSpace === void 0 ? false : opt$.plusToSpace; |
| 2890 let encoding = opt$.encoding === void 0 ? convert.UTF8 : opt$.encoding; | 2877 let encoding = opt$.encoding === void 0 ? convert.UTF8 : opt$.encoding; |
| 2891 let simple = true; | 2878 let simple = true; |
| 2892 for (let i = 0; dart.notNull(i) < dart.notNull(text.length) && dart.notNul
l(simple); i = dart.notNull(i) + 1) { | 2879 for (let i = 0; dart.notNull(i) < dart.notNull(text.length) && dart.notNul
l(simple); i = dart.notNull(i) + 1) { |
| 2893 let codeUnit = text.codeUnitAt(i); | 2880 let codeUnit = text.codeUnitAt(i); |
| 2894 simple = codeUnit !== _PERCENT && codeUnit !== _PLUS; | 2881 simple = codeUnit !== Uri._PERCENT && codeUnit !== Uri._PLUS; |
| 2895 } | 2882 } |
| 2896 let bytes = null; | 2883 let bytes = null; |
| 2897 if (simple) { | 2884 if (simple) { |
| 2898 if (dart.notNull(dart.equals(encoding, convert.UTF8)) || dart.notNull(da
rt.equals(encoding, convert.LATIN1))) { | 2885 if (dart.notNull(dart.equals(encoding, convert.UTF8)) || dart.notNull(da
rt.equals(encoding, convert.LATIN1))) { |
| 2899 return text; | 2886 return text; |
| 2900 } else { | 2887 } else { |
| 2901 bytes = text.codeUnits; | 2888 bytes = text.codeUnits; |
| 2902 } | 2889 } |
| 2903 } else { | 2890 } else { |
| 2904 bytes = dart.as(new List(), List$(int)); | 2891 bytes = dart.as(new List(), List$(int)); |
| 2905 for (let i = 0; dart.notNull(i) < dart.notNull(text.length); i = dart.no
tNull(i) + 1) { | 2892 for (let i = 0; dart.notNull(i) < dart.notNull(text.length); i = dart.no
tNull(i) + 1) { |
| 2906 let codeUnit = text.codeUnitAt(i); | 2893 let codeUnit = text.codeUnitAt(i); |
| 2907 if (dart.notNull(codeUnit) > 127) { | 2894 if (dart.notNull(codeUnit) > 127) { |
| 2908 throw new ArgumentError("Illegal percent encoding in URI"); | 2895 throw new ArgumentError("Illegal percent encoding in URI"); |
| 2909 } | 2896 } |
| 2910 if (codeUnit === _PERCENT) { | 2897 if (codeUnit === Uri._PERCENT) { |
| 2911 if (dart.notNull(i) + 3 > dart.notNull(text.length)) { | 2898 if (dart.notNull(i) + 3 > dart.notNull(text.length)) { |
| 2912 throw new ArgumentError('Truncated URI'); | 2899 throw new ArgumentError('Truncated URI'); |
| 2913 } | 2900 } |
| 2914 bytes.add(_hexCharPairToByte(text, dart.notNull(i) + 1)); | 2901 bytes.add(_hexCharPairToByte(text, dart.notNull(i) + 1)); |
| 2915 i = 2; | 2902 i = 2; |
| 2916 } else if (dart.notNull(plusToSpace) && codeUnit === _PLUS) { | 2903 } else if (dart.notNull(plusToSpace) && codeUnit === Uri._PLUS) { |
| 2917 bytes.add(_SPACE); | 2904 bytes.add(Uri._SPACE); |
| 2918 } else { | 2905 } else { |
| 2919 bytes.add(codeUnit); | 2906 bytes.add(codeUnit); |
| 2920 } | 2907 } |
| 2921 } | 2908 } |
| 2922 } | 2909 } |
| 2923 return encoding.decode(bytes); | 2910 return encoding.decode(bytes); |
| 2924 } | 2911 } |
| 2925 static [_isAlphabeticCharacter](codeUnit) { | 2912 static [_isAlphabeticCharacter](codeUnit) { |
| 2926 return dart.notNull(codeUnit) >= dart.notNull(_LOWER_CASE_A) && dart.notNu
ll(codeUnit) <= dart.notNull(_LOWER_CASE_Z) || dart.notNull(codeUnit) >= dart.no
tNull(_UPPER_CASE_A) && dart.notNull(codeUnit) <= dart.notNull(_UPPER_CASE_Z); | 2913 return dart.notNull(codeUnit) >= dart.notNull(Uri._LOWER_CASE_A) && dart.n
otNull(codeUnit) <= dart.notNull(Uri._LOWER_CASE_Z) || dart.notNull(codeUnit) >=
dart.notNull(Uri._UPPER_CASE_A) && dart.notNull(codeUnit) <= dart.notNull(Uri._
UPPER_CASE_Z); |
| 2927 } | 2914 } |
| 2928 } | 2915 } |
| 2929 dart.defineNamedConstructor(Uri, '_internal'); | 2916 dart.defineNamedConstructor(Uri, '_internal'); |
| 2930 dart.defineNamedConstructor(Uri, 'http'); | 2917 dart.defineNamedConstructor(Uri, 'http'); |
| 2931 dart.defineNamedConstructor(Uri, 'https'); | 2918 dart.defineNamedConstructor(Uri, 'https'); |
| 2932 dart.defineNamedConstructor(Uri, 'file'); | 2919 dart.defineNamedConstructor(Uri, 'file'); |
| 2933 Uri._SPACE = 32; | 2920 Uri._SPACE = 32; |
| 2934 Uri._DOUBLE_QUOTE = 34; | 2921 Uri._DOUBLE_QUOTE = 34; |
| 2935 Uri._NUMBER_SIGN = 35; | 2922 Uri._NUMBER_SIGN = 35; |
| 2936 Uri._PERCENT = 37; | 2923 Uri._PERCENT = 37; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 2960 Uri._encodeFullTable = /* Unimplemented const */new List.from([0, 0, 65498, 45
055, 65535, 34815, 65534, 18431]); | 2947 Uri._encodeFullTable = /* Unimplemented const */new List.from([0, 0, 65498, 45
055, 65535, 34815, 65534, 18431]); |
| 2961 Uri._schemeTable = /* Unimplemented const */new List.from([0, 0, 26624, 1023,
65534, 2047, 65534, 2047]); | 2948 Uri._schemeTable = /* Unimplemented const */new List.from([0, 0, 26624, 1023,
65534, 2047, 65534, 2047]); |
| 2962 Uri._schemeLowerTable = /* Unimplemented const */new List.from([0, 0, 26624, 1
023, 0, 0, 65534, 2047]); | 2949 Uri._schemeLowerTable = /* Unimplemented const */new List.from([0, 0, 26624, 1
023, 0, 0, 65534, 2047]); |
| 2963 Uri._subDelimitersTable = /* Unimplemented const */new List.from([0, 0, 32722,
11263, 65534, 34815, 65534, 18431]); | 2950 Uri._subDelimitersTable = /* Unimplemented const */new List.from([0, 0, 32722,
11263, 65534, 34815, 65534, 18431]); |
| 2964 Uri._genDelimitersTable = /* Unimplemented const */new List.from([0, 0, 32776,
33792, 1, 10240, 0, 0]); | 2951 Uri._genDelimitersTable = /* Unimplemented const */new List.from([0, 0, 32776,
33792, 1, 10240, 0, 0]); |
| 2965 Uri._userinfoTable = /* Unimplemented const */new List.from([0, 0, 32722, 1228
7, 65534, 34815, 65534, 18431]); | 2952 Uri._userinfoTable = /* Unimplemented const */new List.from([0, 0, 32722, 1228
7, 65534, 34815, 65534, 18431]); |
| 2966 Uri._regNameTable = /* Unimplemented const */new List.from([0, 0, 32754, 11263
, 65534, 34815, 65534, 18431]); | 2953 Uri._regNameTable = /* Unimplemented const */new List.from([0, 0, 32754, 11263
, 65534, 34815, 65534, 18431]); |
| 2967 Uri._pathCharTable = /* Unimplemented const */new List.from([0, 0, 32722, 1228
7, 65535, 34815, 65534, 18431]); | 2954 Uri._pathCharTable = /* Unimplemented const */new List.from([0, 0, 32722, 1228
7, 65535, 34815, 65534, 18431]); |
| 2968 Uri._pathCharOrSlashTable = /* Unimplemented const */new List.from([0, 0, 6549
0, 12287, 65535, 34815, 65534, 18431]); | 2955 Uri._pathCharOrSlashTable = /* Unimplemented const */new List.from([0, 0, 6549
0, 12287, 65535, 34815, 65534, 18431]); |
| 2969 Uri._queryCharTable = /* Unimplemented const */new List.from([0, 0, 65490, 450
55, 65535, 34815, 65534, 18431]); | 2956 Uri._queryCharTable = /* Unimplemented const */new List.from([0, 0, 65490, 450
55, 65535, 34815, 65534, 18431]); |
| 2957 // Function _symbolToString: (Symbol) → String |
| 2958 function _symbolToString(symbol) { |
| 2959 return _internal.Symbol.getName(dart.as(symbol, _internal.Symbol)); |
| 2960 } |
| 2961 // Function _symbolMapToStringMap: (Map<Symbol, dynamic>) → dynamic |
| 2962 function _symbolMapToStringMap(map) { |
| 2963 if (map === null) |
| 2964 return null; |
| 2965 let result = new Map(); |
| 2966 map.forEach((key, value) => { |
| 2967 result.set(_symbolToString(key), value); |
| 2968 }); |
| 2969 return result; |
| 2970 } |
| 2971 class _ListConstructorSentinel extends _interceptors.JSInt { |
| 2972 _ListConstructorSentinel() { |
| 2973 super.JSInt(); |
| 2974 } |
| 2975 } |
| 2970 // Exports: | 2976 // Exports: |
| 2971 exports.Deprecated = Deprecated; | 2977 exports.Deprecated = Deprecated; |
| 2972 exports.deprecated = deprecated; | 2978 exports.deprecated = deprecated; |
| 2973 exports.override = override; | 2979 exports.override = override; |
| 2974 exports.proxy = proxy; | 2980 exports.proxy = proxy; |
| 2975 exports.bool = bool; | 2981 exports.bool = bool; |
| 2976 exports.Comparable = Comparable; | 2982 exports.Comparable = Comparable; |
| 2977 exports.Comparable$ = Comparable$; | 2983 exports.Comparable$ = Comparable$; |
| 2978 exports.DateTime = DateTime; | 2984 exports.DateTime = DateTime; |
| 2979 exports.double = double; | 2985 exports.double = double; |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3031 exports.Stopwatch = Stopwatch; | 3037 exports.Stopwatch = Stopwatch; |
| 3032 exports.String = String; | 3038 exports.String = String; |
| 3033 exports.Runes = Runes; | 3039 exports.Runes = Runes; |
| 3034 exports.RuneIterator = RuneIterator; | 3040 exports.RuneIterator = RuneIterator; |
| 3035 exports.StringBuffer = StringBuffer; | 3041 exports.StringBuffer = StringBuffer; |
| 3036 exports.StringSink = StringSink; | 3042 exports.StringSink = StringSink; |
| 3037 exports.Symbol = Symbol; | 3043 exports.Symbol = Symbol; |
| 3038 exports.Type = Type; | 3044 exports.Type = Type; |
| 3039 exports.Uri = Uri; | 3045 exports.Uri = Uri; |
| 3040 })(core || (core = {})); | 3046 })(core || (core = {})); |
| OLD | NEW |