| OLD | NEW |
| 1 var core = dart.defineLibrary(core, {}); | 1 var core = dart.defineLibrary(core, {}); |
| 2 var _js_helper = dart.lazyImport(_js_helper); | 2 var _js_helper = dart.lazyImport(_js_helper); |
| 3 var _internal = dart.lazyImport(_internal); | 3 var _internal = dart.lazyImport(_internal); |
| 4 var collection = dart.lazyImport(collection); | 4 var collection = dart.lazyImport(collection); |
| 5 var _interceptors = dart.lazyImport(_interceptors); | 5 var _interceptors = dart.lazyImport(_interceptors); |
| 6 var convert = dart.lazyImport(convert); | 6 var convert = dart.lazyImport(convert); |
| 7 (function(exports, _js_helper, _internal, collection, _interceptors, convert) { | 7 (function(exports, _js_helper, _internal, collection, _interceptors, convert) { |
| 8 'use strict'; | 8 'use strict'; |
| 9 class Object { | 9 class Object { |
| 10 constructor() { | 10 constructor() { |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 } | 73 } |
| 74 toString() { | 74 toString() { |
| 75 return this ? "true" : "false"; | 75 return this ? "true" : "false"; |
| 76 } | 76 } |
| 77 } | 77 } |
| 78 dart.defineNamedConstructor(bool, 'fromEnvironment'); | 78 dart.defineNamedConstructor(bool, 'fromEnvironment'); |
| 79 class Function extends Object { | 79 class Function extends Object { |
| 80 static apply(f, positionalArguments, namedArguments) { | 80 static apply(f, positionalArguments, namedArguments) { |
| 81 if (namedArguments === void 0) | 81 if (namedArguments === void 0) |
| 82 namedArguments = null; | 82 namedArguments = null; |
| 83 return _js_helper.Primitives.applyFunction(f, positionalArguments, namedAr
guments == null ? null : Function._toMangledNames(namedArguments)); | 83 return dart.dcall.apply(null, [f].concat(positionalArguments)); |
| 84 } | 84 } |
| 85 static _toMangledNames(namedArguments) { | 85 static _toMangledNames(namedArguments) { |
| 86 let result = dart.map(); | 86 let result = dart.map(); |
| 87 namedArguments.forEach((symbol, value) => { | 87 namedArguments.forEach((symbol, value) => { |
| 88 result.set(_symbolToString(dart.as(symbol, Symbol)), value); | 88 result.set(_symbolToString(dart.as(symbol, Symbol)), value); |
| 89 }); | 89 }); |
| 90 return result; | 90 return result; |
| 91 } | 91 } |
| 92 } | 92 } |
| 93 let Comparator$ = dart.generic(function(T) { | 93 let Comparator$ = dart.generic(function(T) { |
| (...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 404 } | 404 } |
| 405 num[dart.implements] = () => [Comparable$(num)]; | 405 num[dart.implements] = () => [Comparable$(num)]; |
| 406 num._parseError = false; | 406 num._parseError = false; |
| 407 class double extends num { | 407 class double extends num { |
| 408 static parse(source, onError) { | 408 static parse(source, onError) { |
| 409 if (onError === void 0) | 409 if (onError === void 0) |
| 410 onError = null; | 410 onError = null; |
| 411 return _js_helper.Primitives.parseDouble(source, onError); | 411 return _js_helper.Primitives.parseDouble(source, onError); |
| 412 } | 412 } |
| 413 } | 413 } |
| 414 double.NAN = 0.0 / 0.0; | |
| 415 double.INFINITY = 1.0 / 0.0; | |
| 416 double.NEGATIVE_INFINITY = -dart.notNull(double.INFINITY); | |
| 417 double.MIN_POSITIVE = 5e-324; | 414 double.MIN_POSITIVE = 5e-324; |
| 418 double.MAX_FINITE = 1.7976931348623157e+308; | 415 double.MAX_FINITE = 1.7976931348623157e+308; |
| 416 dart.defineLazyProperties(double, { |
| 417 get NAN() { |
| 418 return 0.0 / 0.0; |
| 419 }, |
| 420 set NAN(_) {}, |
| 421 get INFINITY() { |
| 422 return 1.0 / 0.0; |
| 423 }, |
| 424 set INFINITY(_) {}, |
| 425 get NEGATIVE_INFINITY() { |
| 426 return -dart.notNull(double.INFINITY); |
| 427 }, |
| 428 set NEGATIVE_INFINITY(_) {} |
| 429 }); |
| 419 let _duration = dart.JsSymbol('_duration'); | 430 let _duration = dart.JsSymbol('_duration'); |
| 420 class Duration extends Object { | 431 class Duration extends Object { |
| 421 Duration(opts) { | 432 Duration(opts) { |
| 422 let days = opts && 'days' in opts ? opts.days : 0; | 433 let days = opts && 'days' in opts ? opts.days : 0; |
| 423 let hours = opts && 'hours' in opts ? opts.hours : 0; | 434 let hours = opts && 'hours' in opts ? opts.hours : 0; |
| 424 let minutes = opts && 'minutes' in opts ? opts.minutes : 0; | 435 let minutes = opts && 'minutes' in opts ? opts.minutes : 0; |
| 425 let seconds = opts && 'seconds' in opts ? opts.seconds : 0; | 436 let seconds = opts && 'seconds' in opts ? opts.seconds : 0; |
| 426 let milliseconds = opts && 'milliseconds' in opts ? opts.milliseconds : 0; | 437 let milliseconds = opts && 'milliseconds' in opts ? opts.milliseconds : 0; |
| 427 let microseconds = opts && 'microseconds' in opts ? opts.microseconds : 0; | 438 let microseconds = opts && 'microseconds' in opts ? opts.microseconds : 0; |
| 428 this._microseconds(dart.notNull(days) * dart.notNull(Duration.MICROSECONDS
_PER_DAY) + dart.notNull(hours) * dart.notNull(Duration.MICROSECONDS_PER_HOUR) +
dart.notNull(minutes) * dart.notNull(Duration.MICROSECONDS_PER_MINUTE) + dart.n
otNull(seconds) * dart.notNull(Duration.MICROSECONDS_PER_SECOND) + dart.notNull(
milliseconds) * dart.notNull(Duration.MICROSECONDS_PER_MILLISECOND) + dart.notNu
ll(microseconds)); | 439 this._microseconds(dart.notNull(days) * dart.notNull(Duration.MICROSECONDS
_PER_DAY) + dart.notNull(hours) * dart.notNull(Duration.MICROSECONDS_PER_HOUR) +
dart.notNull(minutes) * dart.notNull(Duration.MICROSECONDS_PER_MINUTE) + dart.n
otNull(seconds) * dart.notNull(Duration.MICROSECONDS_PER_SECOND) + dart.notNull(
milliseconds) * dart.notNull(Duration.MICROSECONDS_PER_MILLISECOND) + dart.notNu
ll(microseconds)); |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 524 return new Duration._microseconds(-dart.notNull(this[_duration])); | 535 return new Duration._microseconds(-dart.notNull(this[_duration])); |
| 525 } | 536 } |
| 526 } | 537 } |
| 527 Duration[dart.implements] = () => [Comparable$(Duration)]; | 538 Duration[dart.implements] = () => [Comparable$(Duration)]; |
| 528 dart.defineNamedConstructor(Duration, '_microseconds'); | 539 dart.defineNamedConstructor(Duration, '_microseconds'); |
| 529 Duration.MICROSECONDS_PER_MILLISECOND = 1000; | 540 Duration.MICROSECONDS_PER_MILLISECOND = 1000; |
| 530 Duration.MILLISECONDS_PER_SECOND = 1000; | 541 Duration.MILLISECONDS_PER_SECOND = 1000; |
| 531 Duration.SECONDS_PER_MINUTE = 60; | 542 Duration.SECONDS_PER_MINUTE = 60; |
| 532 Duration.MINUTES_PER_HOUR = 60; | 543 Duration.MINUTES_PER_HOUR = 60; |
| 533 Duration.HOURS_PER_DAY = 24; | 544 Duration.HOURS_PER_DAY = 24; |
| 534 Duration.MICROSECONDS_PER_SECOND = dart.notNull(Duration.MICROSECONDS_PER_MILL
ISECOND) * dart.notNull(Duration.MILLISECONDS_PER_SECOND); | 545 dart.defineLazyProperties(Duration, { |
| 535 Duration.MICROSECONDS_PER_MINUTE = dart.notNull(Duration.MICROSECONDS_PER_SECO
ND) * dart.notNull(Duration.SECONDS_PER_MINUTE); | 546 get MICROSECONDS_PER_SECOND() { |
| 536 Duration.MICROSECONDS_PER_HOUR = dart.notNull(Duration.MICROSECONDS_PER_MINUTE
) * dart.notNull(Duration.MINUTES_PER_HOUR); | 547 return dart.notNull(Duration.MICROSECONDS_PER_MILLISECOND) * dart.notNull(
Duration.MILLISECONDS_PER_SECOND); |
| 537 Duration.MICROSECONDS_PER_DAY = dart.notNull(Duration.MICROSECONDS_PER_HOUR) *
dart.notNull(Duration.HOURS_PER_DAY); | 548 }, |
| 538 Duration.MILLISECONDS_PER_MINUTE = dart.notNull(Duration.MILLISECONDS_PER_SECO
ND) * dart.notNull(Duration.SECONDS_PER_MINUTE); | 549 set MICROSECONDS_PER_SECOND(_) {}, |
| 539 Duration.MILLISECONDS_PER_HOUR = dart.notNull(Duration.MILLISECONDS_PER_MINUTE
) * dart.notNull(Duration.MINUTES_PER_HOUR); | 550 get MICROSECONDS_PER_MINUTE() { |
| 540 Duration.MILLISECONDS_PER_DAY = dart.notNull(Duration.MILLISECONDS_PER_HOUR) *
dart.notNull(Duration.HOURS_PER_DAY); | 551 return dart.notNull(Duration.MICROSECONDS_PER_SECOND) * dart.notNull(Durat
ion.SECONDS_PER_MINUTE); |
| 541 Duration.SECONDS_PER_HOUR = dart.notNull(Duration.SECONDS_PER_MINUTE) * dart.n
otNull(Duration.MINUTES_PER_HOUR); | 552 }, |
| 542 Duration.SECONDS_PER_DAY = dart.notNull(Duration.SECONDS_PER_HOUR) * dart.notN
ull(Duration.HOURS_PER_DAY); | 553 set MICROSECONDS_PER_MINUTE(_) {}, |
| 543 Duration.MINUTES_PER_DAY = dart.notNull(Duration.MINUTES_PER_HOUR) * dart.notN
ull(Duration.HOURS_PER_DAY); | 554 get MICROSECONDS_PER_HOUR() { |
| 544 Duration.ZERO = dart.const(new Duration({seconds: 0})); | 555 return dart.notNull(Duration.MICROSECONDS_PER_MINUTE) * dart.notNull(Durat
ion.MINUTES_PER_HOUR); |
| 556 }, |
| 557 set MICROSECONDS_PER_HOUR(_) {}, |
| 558 get MICROSECONDS_PER_DAY() { |
| 559 return dart.notNull(Duration.MICROSECONDS_PER_HOUR) * dart.notNull(Duratio
n.HOURS_PER_DAY); |
| 560 }, |
| 561 set MICROSECONDS_PER_DAY(_) {}, |
| 562 get MILLISECONDS_PER_MINUTE() { |
| 563 return dart.notNull(Duration.MILLISECONDS_PER_SECOND) * dart.notNull(Durat
ion.SECONDS_PER_MINUTE); |
| 564 }, |
| 565 set MILLISECONDS_PER_MINUTE(_) {}, |
| 566 get MILLISECONDS_PER_HOUR() { |
| 567 return dart.notNull(Duration.MILLISECONDS_PER_MINUTE) * dart.notNull(Durat
ion.MINUTES_PER_HOUR); |
| 568 }, |
| 569 set MILLISECONDS_PER_HOUR(_) {}, |
| 570 get MILLISECONDS_PER_DAY() { |
| 571 return dart.notNull(Duration.MILLISECONDS_PER_HOUR) * dart.notNull(Duratio
n.HOURS_PER_DAY); |
| 572 }, |
| 573 set MILLISECONDS_PER_DAY(_) {}, |
| 574 get SECONDS_PER_HOUR() { |
| 575 return dart.notNull(Duration.SECONDS_PER_MINUTE) * dart.notNull(Duration.M
INUTES_PER_HOUR); |
| 576 }, |
| 577 set SECONDS_PER_HOUR(_) {}, |
| 578 get SECONDS_PER_DAY() { |
| 579 return dart.notNull(Duration.SECONDS_PER_HOUR) * dart.notNull(Duration.HOU
RS_PER_DAY); |
| 580 }, |
| 581 set SECONDS_PER_DAY(_) {}, |
| 582 get MINUTES_PER_DAY() { |
| 583 return dart.notNull(Duration.MINUTES_PER_HOUR) * dart.notNull(Duration.HOU
RS_PER_DAY); |
| 584 }, |
| 585 set MINUTES_PER_DAY(_) {}, |
| 586 get ZERO() { |
| 587 return dart.const(new Duration({seconds: 0})); |
| 588 }, |
| 589 set ZERO(_) {} |
| 590 }); |
| 545 class Error extends Object { | 591 class Error extends Object { |
| 546 Error() { | 592 Error() { |
| 547 } | 593 } |
| 548 static safeToString(object) { | 594 static safeToString(object) { |
| 549 if (dart.is(object, num) || typeof object == 'boolean' || dart.notNull(nul
l == object)) { | 595 if (dart.is(object, num) || typeof object == 'boolean' || dart.notNull(nul
l == object)) { |
| 550 return dart.toString(object); | 596 return dart.toString(object); |
| 551 } | 597 } |
| 552 if (typeof object == 'string') { | 598 if (typeof object == 'string') { |
| 553 return Error._stringToSafeString(object); | 599 return Error._stringToSafeString(object); |
| 554 } | 600 } |
| (...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 942 if (this.message != null && "" != this.message) { | 988 if (this.message != null && "" != this.message) { |
| 943 report = `${report}: ${this.message}`; | 989 report = `${report}: ${this.message}`; |
| 944 } | 990 } |
| 945 let offset = this.offset; | 991 let offset = this.offset; |
| 946 if (!(typeof this.source == 'string')) { | 992 if (!(typeof this.source == 'string')) { |
| 947 if (offset != -1) { | 993 if (offset != -1) { |
| 948 report = dart.notNull(report) + ` (at offset ${offset})`; | 994 report = dart.notNull(report) + ` (at offset ${offset})`; |
| 949 } | 995 } |
| 950 return report; | 996 return report; |
| 951 } | 997 } |
| 952 if (offset != -1 && (dart.notNull(offset) < 0 || int['>'](offset, dart.dlo
ad(this.source, 'length')))) { | 998 if (offset != -1 && (dart.notNull(offset) < 0 || offset['>'](dart.dload(th
is.source, 'length')))) { |
| 953 offset = -1; | 999 offset = -1; |
| 954 } | 1000 } |
| 955 if (offset == -1) { | 1001 if (offset == -1) { |
| 956 let source = dart.as(this.source, String); | 1002 let source = dart.as(this.source, String); |
| 957 if (dart.notNull(source.length) > 78) { | 1003 if (dart.notNull(source.length) > 78) { |
| 958 source = dart.notNull(source.substring(0, 75)) + "..."; | 1004 source = dart.notNull(source.substring(0, 75)) + "..."; |
| 959 } | 1005 } |
| 960 return `${report}\n${source}`; | 1006 return `${report}\n${source}`; |
| 961 } | 1007 } |
| 962 let lineNum = 1; | 1008 let lineNum = 1; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 975 lineStart = dart.notNull(i) + 1; | 1021 lineStart = dart.notNull(i) + 1; |
| 976 lastWasCR = true; | 1022 lastWasCR = true; |
| 977 } | 1023 } |
| 978 } | 1024 } |
| 979 if (dart.notNull(lineNum) > 1) { | 1025 if (dart.notNull(lineNum) > 1) { |
| 980 report = dart.notNull(report) + ` (at line ${lineNum}, character ${dart.
notNull(offset) - dart.notNull(lineStart) + 1})\n`; | 1026 report = dart.notNull(report) + ` (at line ${lineNum}, character ${dart.
notNull(offset) - dart.notNull(lineStart) + 1})\n`; |
| 981 } else { | 1027 } else { |
| 982 report = dart.notNull(report) + ` (at character ${dart.notNull(offset) +
1})\n`; | 1028 report = dart.notNull(report) + ` (at character ${dart.notNull(offset) +
1})\n`; |
| 983 } | 1029 } |
| 984 let lineEnd = dart.as(dart.dload(this.source, 'length'), int); | 1030 let lineEnd = dart.as(dart.dload(this.source, 'length'), int); |
| 985 for (let i = offset; int['<'](i, dart.dload(this.source, 'length')); i = d
art.notNull(i) + 1) { | 1031 for (let i = offset; i['<'](dart.dload(this.source, 'length')); i = dart.n
otNull(i) + 1) { |
| 986 let char = dart.as(dart.dsend(this.source, 'codeUnitAt', i), int); | 1032 let char = dart.as(dart.dsend(this.source, 'codeUnitAt', i), int); |
| 987 if (char == 10 || char == 13) { | 1033 if (char == 10 || char == 13) { |
| 988 lineEnd = i; | 1034 lineEnd = i; |
| 989 break; | 1035 break; |
| 990 } | 1036 } |
| 991 } | 1037 } |
| 992 let length = dart.notNull(lineEnd) - dart.notNull(lineStart); | 1038 let length = dart.notNull(lineEnd) - dart.notNull(lineStart); |
| 993 let start = lineStart; | 1039 let start = lineStart; |
| 994 let end = lineEnd; | 1040 let end = lineEnd; |
| 995 let prefix = ""; | 1041 let prefix = ""; |
| 996 let postfix = ""; | 1042 let postfix = ""; |
| 997 if (dart.notNull(length) > 78) { | 1043 if (dart.notNull(length) > 78) { |
| 998 let index = dart.notNull(offset) - dart.notNull(lineStart); | 1044 let index = dart.notNull(offset) - dart.notNull(lineStart); |
| 999 if (dart.notNull(index) < 75) { | 1045 if (dart.notNull(index) < 75) { |
| 1000 end = dart.notNull(start) + 75; | 1046 end = dart.notNull(start) + 75; |
| 1001 postfix = "..."; | 1047 postfix = "..."; |
| 1002 } else if (dart.notNull(end) - dart.notNull(offset) < 75) { | 1048 } else if (dart.notNull(end) - dart.notNull(offset) < 75) { |
| 1003 start = dart.notNull(end) - 75; | 1049 start = dart.notNull(end) - 75; |
| 1004 prefix = "..."; | 1050 prefix = "..."; |
| 1005 } else { | 1051 } else { |
| 1006 start = dart.notNull(offset) - 36; | 1052 start = dart.notNull(offset) - 36; |
| 1007 end = dart.notNull(offset) + 36; | 1053 end = dart.notNull(offset) + 36; |
| 1008 prefix = postfix = "..."; | 1054 prefix = postfix = "..."; |
| 1009 } | 1055 } |
| 1010 } | 1056 } |
| 1011 let slice = dart.as(dart.dsend(this.source, 'substring', start, end), Stri
ng); | 1057 let slice = dart.as(dart.dsend(this.source, 'substring', start, end), Stri
ng); |
| 1012 let markOffset = dart.notNull(offset) - dart.notNull(start) + dart.notNull
(prefix.length); | 1058 let markOffset = dart.notNull(offset) - dart.notNull(start) + dart.notNull
(prefix.length); |
| 1013 return `${report}${prefix}${slice}${postfix}\n${String['*'](" ", markOffse
t)}^\n`; | 1059 return `${report}${prefix}${slice}${postfix}\n${" "['*'](markOffset)}^\n`; |
| 1014 } | 1060 } |
| 1015 } | 1061 } |
| 1016 FormatException[dart.implements] = () => [Exception]; | 1062 FormatException[dart.implements] = () => [Exception]; |
| 1017 class IntegerDivisionByZeroException extends Object { | 1063 class IntegerDivisionByZeroException extends Object { |
| 1018 IntegerDivisionByZeroException() { | 1064 IntegerDivisionByZeroException() { |
| 1019 } | 1065 } |
| 1020 toString() { | 1066 toString() { |
| 1021 return "IntegerDivisionByZeroException"; | 1067 return "IntegerDivisionByZeroException"; |
| 1022 } | 1068 } |
| 1023 } | 1069 } |
| (...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1287 if (length != 0 && dart.notNull(fill != null)) { | 1333 if (length != 0 && dart.notNull(fill != null)) { |
| 1288 for (let i = 0; dart.notNull(i) < dart.notNull(result[$length]); i = d
art.notNull(i) + 1) { | 1334 for (let i = 0; dart.notNull(i) < dart.notNull(result[$length]); i = d
art.notNull(i) + 1) { |
| 1289 result[$set](i, fill); | 1335 result[$set](i, fill); |
| 1290 } | 1336 } |
| 1291 } | 1337 } |
| 1292 return result; | 1338 return result; |
| 1293 } | 1339 } |
| 1294 from(elements, opts) { | 1340 from(elements, opts) { |
| 1295 let growable = opts && 'growable' in opts ? opts.growable : true; | 1341 let growable = opts && 'growable' in opts ? opts.growable : true; |
| 1296 let list = new (List$(E))(); | 1342 let list = new (List$(E))(); |
| 1297 for (let e of dart.as(elements, Iterable$(E))) { | 1343 for (let e of elements) { |
| 1298 list[$add](e); | 1344 list[$add](dart.as(e, E)); |
| 1299 } | 1345 } |
| 1300 if (growable) | 1346 if (growable) |
| 1301 return list; | 1347 return list; |
| 1302 return dart.as(_internal.makeListFixedLength(list), List$(E)); | 1348 return dart.as(_internal.makeListFixedLength(list), List$(E)); |
| 1303 } | 1349 } |
| 1304 generate(length, generator, opts) { | 1350 generate(length, generator, opts) { |
| 1305 let growable = opts && 'growable' in opts ? opts.growable : true; | 1351 let growable = opts && 'growable' in opts ? opts.growable : true; |
| 1306 let result = null; | 1352 let result = null; |
| 1307 if (growable) { | 1353 if (growable) { |
| 1308 result = dart.setType([], List$(E)); | 1354 result = dart.setType([], List$(E)); |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1425 return this[$length] == 0; | 1471 return this[$length] == 0; |
| 1426 } | 1472 } |
| 1427 get [$isNotEmpty]() { | 1473 get [$isNotEmpty]() { |
| 1428 return !dart.notNull(this[$isEmpty]); | 1474 return !dart.notNull(this[$isEmpty]); |
| 1429 } | 1475 } |
| 1430 [$toString]() { | 1476 [$toString]() { |
| 1431 return collection.ListBase.listToString(this); | 1477 return collection.ListBase.listToString(this); |
| 1432 } | 1478 } |
| 1433 [$toList](opts) { | 1479 [$toList](opts) { |
| 1434 let growable = opts && 'growable' in opts ? opts.growable : true; | 1480 let growable = opts && 'growable' in opts ? opts.growable : true; |
| 1435 if (growable) { | 1481 return dart.as(dart.setType(this.slice(), core.List$(E)), List$(E)); |
| 1436 return new (_interceptors.JSArray$(E)).markGrowable(this.slice()); | |
| 1437 } else { | |
| 1438 return new (_interceptors.JSArray$(E)).markFixed(this.slice()); | |
| 1439 } | |
| 1440 } | 1482 } |
| 1441 [$toSet]() { | 1483 [$toSet]() { |
| 1442 return new (exports.Set$(E)).from(this); | 1484 return new (exports.Set$(E)).from(this); |
| 1443 } | 1485 } |
| 1444 get [$iterator]() { | 1486 get [$iterator]() { |
| 1445 return new (_internal.ListIterator$(E))(this); | 1487 return new (_internal.ListIterator$(E))(this); |
| 1446 } | 1488 } |
| 1447 get [$hashCode]() { | 1489 get [$hashCode]() { |
| 1448 return _js_helper.Primitives.objectHashCode(this); | 1490 return _js_helper.Primitives.objectHashCode(this); |
| 1449 } | 1491 } |
| (...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1919 get current() { | 1961 get current() { |
| 1920 return this[_currentCodePoint]; | 1962 return this[_currentCodePoint]; |
| 1921 } | 1963 } |
| 1922 get currentSize() { | 1964 get currentSize() { |
| 1923 return dart.notNull(this[_nextPosition]) - dart.notNull(this[_position]); | 1965 return dart.notNull(this[_nextPosition]) - dart.notNull(this[_position]); |
| 1924 } | 1966 } |
| 1925 get currentAsString() { | 1967 get currentAsString() { |
| 1926 if (this[_position] == this[_nextPosition]) | 1968 if (this[_position] == this[_nextPosition]) |
| 1927 return null; | 1969 return null; |
| 1928 if (dart.notNull(this[_position]) + 1 == this[_nextPosition]) | 1970 if (dart.notNull(this[_position]) + 1 == this[_nextPosition]) |
| 1929 return String.get(this.string, this[_position]); | 1971 return this.string.get(this[_position]); |
| 1930 return this.string.substring(this[_position], this[_nextPosition]); | 1972 return this.string.substring(this[_position], this[_nextPosition]); |
| 1931 } | 1973 } |
| 1932 moveNext() { | 1974 moveNext() { |
| 1933 this[_position] = this[_nextPosition]; | 1975 this[_position] = this[_nextPosition]; |
| 1934 if (this[_position] == this.string.length) { | 1976 if (this[_position] == this.string.length) { |
| 1935 this[_currentCodePoint] = null; | 1977 this[_currentCodePoint] = null; |
| 1936 return false; | 1978 return false; |
| 1937 } | 1979 } |
| 1938 let codeUnit = this.string.codeUnitAt(this[_position]); | 1980 let codeUnit = this.string.codeUnitAt(this[_position]); |
| 1939 let nextPosition = dart.notNull(this[_position]) + 1; | 1981 let nextPosition = dart.notNull(this[_position]) + 1; |
| (...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2412 } else { | 2454 } else { |
| 2413 path = path.substring(4); | 2455 path = path.substring(4); |
| 2414 if (dart.notNull(path.length) < 3 || path.codeUnitAt(1) != Uri._COLON
|| path.codeUnitAt(2) != Uri._BACKSLASH) { | 2456 if (dart.notNull(path.length) < 3 || path.codeUnitAt(1) != Uri._COLON
|| path.codeUnitAt(2) != Uri._BACKSLASH) { |
| 2415 throw new ArgumentError("Windows paths with \\\\?\\ prefix must be a
bsolute"); | 2457 throw new ArgumentError("Windows paths with \\\\?\\ prefix must be a
bsolute"); |
| 2416 } | 2458 } |
| 2417 } | 2459 } |
| 2418 } else { | 2460 } else { |
| 2419 path = path.replaceAll("/", "\\"); | 2461 path = path.replaceAll("/", "\\"); |
| 2420 } | 2462 } |
| 2421 let sep = "\\"; | 2463 let sep = "\\"; |
| 2422 if (dart.notNull(path.length) > 1 && String.get(path, 1) == ":") { | 2464 if (dart.notNull(path.length) > 1 && path.get(1) == ":") { |
| 2423 Uri._checkWindowsDriveLetter(path.codeUnitAt(0), true); | 2465 Uri._checkWindowsDriveLetter(path.codeUnitAt(0), true); |
| 2424 if (path.length == 2 || path.codeUnitAt(2) != Uri._BACKSLASH) { | 2466 if (path.length == 2 || path.codeUnitAt(2) != Uri._BACKSLASH) { |
| 2425 throw new ArgumentError("Windows paths with drive letter must be absol
ute"); | 2467 throw new ArgumentError("Windows paths with drive letter must be absol
ute"); |
| 2426 } | 2468 } |
| 2427 let pathSegments = path.split(sep); | 2469 let pathSegments = path.split(sep); |
| 2428 Uri._checkWindowsPathReservedCharacters(pathSegments, true, 1); | 2470 Uri._checkWindowsPathReservedCharacters(pathSegments, true, 1); |
| 2429 return new Uri({scheme: "file", pathSegments: pathSegments}); | 2471 return new Uri({scheme: "file", pathSegments: pathSegments}); |
| 2430 } | 2472 } |
| 2431 if (dart.notNull(path.length) > 0 && String.get(path, 0) == sep) { | 2473 if (dart.notNull(path.length) > 0 && path.get(0) == sep) { |
| 2432 if (dart.notNull(path.length) > 1 && String.get(path, 1) == sep) { | 2474 if (dart.notNull(path.length) > 1 && path.get(1) == sep) { |
| 2433 let pathStart = path.indexOf("\\", 2); | 2475 let pathStart = path.indexOf("\\", 2); |
| 2434 let hostPart = pathStart == -1 ? path.substring(2) : path.substring(2,
pathStart); | 2476 let hostPart = pathStart == -1 ? path.substring(2) : path.substring(2,
pathStart); |
| 2435 let pathPart = pathStart == -1 ? "" : path.substring(dart.notNull(path
Start) + 1); | 2477 let pathPart = pathStart == -1 ? "" : path.substring(dart.notNull(path
Start) + 1); |
| 2436 let pathSegments = pathPart.split(sep); | 2478 let pathSegments = pathPart.split(sep); |
| 2437 Uri._checkWindowsPathReservedCharacters(pathSegments, true); | 2479 Uri._checkWindowsPathReservedCharacters(pathSegments, true); |
| 2438 return new Uri({scheme: "file", host: hostPart, pathSegments: pathSegm
ents}); | 2480 return new Uri({scheme: "file", host: hostPart, pathSegments: pathSegm
ents}); |
| 2439 } else { | 2481 } else { |
| 2440 let pathSegments = path.split(sep); | 2482 let pathSegments = path.split(sep); |
| 2441 Uri._checkWindowsPathReservedCharacters(pathSegments, true); | 2483 Uri._checkWindowsPathReservedCharacters(pathSegments, true); |
| 2442 return new Uri({scheme: "file", pathSegments: pathSegments}); | 2484 return new Uri({scheme: "file", pathSegments: pathSegments}); |
| (...skipping 877 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3320 Uri._UPPER_CASE_A = 65; | 3362 Uri._UPPER_CASE_A = 65; |
| 3321 Uri._UPPER_CASE_F = 70; | 3363 Uri._UPPER_CASE_F = 70; |
| 3322 Uri._UPPER_CASE_Z = 90; | 3364 Uri._UPPER_CASE_Z = 90; |
| 3323 Uri._LEFT_BRACKET = 91; | 3365 Uri._LEFT_BRACKET = 91; |
| 3324 Uri._BACKSLASH = 92; | 3366 Uri._BACKSLASH = 92; |
| 3325 Uri._RIGHT_BRACKET = 93; | 3367 Uri._RIGHT_BRACKET = 93; |
| 3326 Uri._LOWER_CASE_A = 97; | 3368 Uri._LOWER_CASE_A = 97; |
| 3327 Uri._LOWER_CASE_F = 102; | 3369 Uri._LOWER_CASE_F = 102; |
| 3328 Uri._LOWER_CASE_Z = 122; | 3370 Uri._LOWER_CASE_Z = 122; |
| 3329 Uri._BAR = 124; | 3371 Uri._BAR = 124; |
| 3330 Uri._unreservedTable = dart.const([0, 0, 24576, 1023, 65534, 34815, 65534, 184
31]); | 3372 dart.defineLazyProperties(Uri, { |
| 3331 Uri._unreserved2396Table = dart.const([0, 0, 26498, 1023, 65534, 34815, 65534,
18431]); | 3373 get _unreservedTable() { |
| 3332 Uri._encodeFullTable = dart.const([0, 0, 65498, 45055, 65535, 34815, 65534, 18
431]); | 3374 return dart.const([0, 0, 24576, 1023, 65534, 34815, 65534, 18431]); |
| 3333 Uri._schemeTable = dart.const([0, 0, 26624, 1023, 65534, 2047, 65534, 2047]); | 3375 }, |
| 3334 Uri._schemeLowerTable = dart.const([0, 0, 26624, 1023, 0, 0, 65534, 2047]); | 3376 set _unreservedTable(_) {}, |
| 3335 Uri._subDelimitersTable = dart.const([0, 0, 32722, 11263, 65534, 34815, 65534,
18431]); | 3377 get _unreserved2396Table() { |
| 3336 Uri._genDelimitersTable = dart.const([0, 0, 32776, 33792, 1, 10240, 0, 0]); | 3378 return dart.const([0, 0, 26498, 1023, 65534, 34815, 65534, 18431]); |
| 3337 Uri._userinfoTable = dart.const([0, 0, 32722, 12287, 65534, 34815, 65534, 1843
1]); | 3379 }, |
| 3338 Uri._regNameTable = dart.const([0, 0, 32754, 11263, 65534, 34815, 65534, 18431
]); | 3380 set _unreserved2396Table(_) {}, |
| 3339 Uri._pathCharTable = dart.const([0, 0, 32722, 12287, 65535, 34815, 65534, 1843
1]); | 3381 get _encodeFullTable() { |
| 3340 Uri._pathCharOrSlashTable = dart.const([0, 0, 65490, 12287, 65535, 34815, 6553
4, 18431]); | 3382 return dart.const([0, 0, 65498, 45055, 65535, 34815, 65534, 18431]); |
| 3341 Uri._queryCharTable = dart.const([0, 0, 65490, 45055, 65535, 34815, 65534, 184
31]); | 3383 }, |
| 3384 set _encodeFullTable(_) {}, |
| 3385 get _schemeTable() { |
| 3386 return dart.const([0, 0, 26624, 1023, 65534, 2047, 65534, 2047]); |
| 3387 }, |
| 3388 set _schemeTable(_) {}, |
| 3389 get _schemeLowerTable() { |
| 3390 return dart.const([0, 0, 26624, 1023, 0, 0, 65534, 2047]); |
| 3391 }, |
| 3392 set _schemeLowerTable(_) {}, |
| 3393 get _subDelimitersTable() { |
| 3394 return dart.const([0, 0, 32722, 11263, 65534, 34815, 65534, 18431]); |
| 3395 }, |
| 3396 set _subDelimitersTable(_) {}, |
| 3397 get _genDelimitersTable() { |
| 3398 return dart.const([0, 0, 32776, 33792, 1, 10240, 0, 0]); |
| 3399 }, |
| 3400 set _genDelimitersTable(_) {}, |
| 3401 get _userinfoTable() { |
| 3402 return dart.const([0, 0, 32722, 12287, 65534, 34815, 65534, 18431]); |
| 3403 }, |
| 3404 set _userinfoTable(_) {}, |
| 3405 get _regNameTable() { |
| 3406 return dart.const([0, 0, 32754, 11263, 65534, 34815, 65534, 18431]); |
| 3407 }, |
| 3408 set _regNameTable(_) {}, |
| 3409 get _pathCharTable() { |
| 3410 return dart.const([0, 0, 32722, 12287, 65535, 34815, 65534, 18431]); |
| 3411 }, |
| 3412 set _pathCharTable(_) {}, |
| 3413 get _pathCharOrSlashTable() { |
| 3414 return dart.const([0, 0, 65490, 12287, 65535, 34815, 65534, 18431]); |
| 3415 }, |
| 3416 set _pathCharOrSlashTable(_) {}, |
| 3417 get _queryCharTable() { |
| 3418 return dart.const([0, 0, 65490, 45055, 65535, 34815, 65534, 18431]); |
| 3419 }, |
| 3420 set _queryCharTable(_) {} |
| 3421 }); |
| 3342 // Function _symbolToString: (Symbol) → String | 3422 // Function _symbolToString: (Symbol) → String |
| 3343 function _symbolToString(symbol) { | 3423 function _symbolToString(symbol) { |
| 3344 return _internal.Symbol.getName(dart.as(symbol, _internal.Symbol)); | 3424 return _internal.Symbol.getName(dart.as(symbol, _internal.Symbol)); |
| 3345 } | 3425 } |
| 3346 // Function _symbolMapToStringMap: (Map<Symbol, dynamic>) → dynamic | 3426 // Function _symbolMapToStringMap: (Map<Symbol, dynamic>) → dynamic |
| 3347 function _symbolMapToStringMap(map) { | 3427 function _symbolMapToStringMap(map) { |
| 3348 if (map == null) | 3428 if (map == null) |
| 3349 return null; | 3429 return null; |
| 3350 let result = new (Map$(String, dart.dynamic))(); | 3430 let result = new (Map$(String, dart.dynamic))(); |
| 3351 map.forEach((key, value) => { | 3431 map.forEach((key, value) => { |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3485 exports.Stopwatch = Stopwatch; | 3565 exports.Stopwatch = Stopwatch; |
| 3486 exports.String = String; | 3566 exports.String = String; |
| 3487 exports.RuneIterator = RuneIterator; | 3567 exports.RuneIterator = RuneIterator; |
| 3488 exports.StringBuffer = StringBuffer; | 3568 exports.StringBuffer = StringBuffer; |
| 3489 exports.StringSink = StringSink; | 3569 exports.StringSink = StringSink; |
| 3490 exports.Symbol = Symbol; | 3570 exports.Symbol = Symbol; |
| 3491 exports.Type = Type; | 3571 exports.Type = Type; |
| 3492 exports.Uri = Uri; | 3572 exports.Uri = Uri; |
| 3493 exports.SupportJsExtensionMethods = SupportJsExtensionMethods; | 3573 exports.SupportJsExtensionMethods = SupportJsExtensionMethods; |
| 3494 })(core, _js_helper, _internal, collection, _interceptors, convert); | 3574 })(core, _js_helper, _internal, collection, _interceptors, convert); |
| OLD | NEW |