| 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 // Function _symbolToString: (Symbol) → String |
| 5 function _symbolToString(symbol) { | 5 function _symbolToString(symbol) { |
| 6 return _internal.Symbol.getName(dart.as(symbol, _internal.Symbol)); | 6 return _internal.Symbol.getName(dart.as(symbol, _internal.Symbol)); |
| 7 } | 7 } |
| 8 // Function _symbolMapToStringMap: (Map<Symbol, dynamic>) → dynamic | 8 // Function _symbolMapToStringMap: (Map<Symbol, dynamic>) → dynamic |
| 9 function _symbolMapToStringMap(map) { | 9 function _symbolMapToStringMap(map) { |
| 10 if (map === null) | 10 if (map === null) |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 subtract(duration) { | 254 subtract(duration) { |
| 255 let ms = this.millisecondsSinceEpoch; | 255 let ms = this.millisecondsSinceEpoch; |
| 256 return new DateTime.fromMillisecondsSinceEpoch(dart.notNull(ms) - dart.not
Null(duration.inMilliseconds), {isUtc: this.isUtc}); | 256 return new DateTime.fromMillisecondsSinceEpoch(dart.notNull(ms) - dart.not
Null(duration.inMilliseconds), {isUtc: this.isUtc}); |
| 257 } | 257 } |
| 258 difference(other) { | 258 difference(other) { |
| 259 let ms = this.millisecondsSinceEpoch; | 259 let ms = this.millisecondsSinceEpoch; |
| 260 let otherMs = other.millisecondsSinceEpoch; | 260 let otherMs = other.millisecondsSinceEpoch; |
| 261 return new Duration({milliseconds: dart.notNull(ms) - dart.notNull(otherMs
)}); | 261 return new Duration({milliseconds: dart.notNull(ms) - dart.notNull(otherMs
)}); |
| 262 } | 262 } |
| 263 DateTime$_internal(year, month, day, hour, minute, second, millisecond, isUt
c) { | 263 DateTime$_internal(year, month, day, hour, minute, second, millisecond, isUt
c) { |
| 264 this.isUtc = dart.as(typeof isUtc == boolean ? isUtc : dart.throw_(new Arg
umentError(isUtc)), bool); | 264 this.isUtc = typeof isUtc == boolean ? isUtc : dart.throw_(new ArgumentErr
or(isUtc)); |
| 265 this.millisecondsSinceEpoch = dart.as(_js_helper.checkInt(_js_helper.Primi
tives.valueFromDecomposedDate(year, month, day, hour, minute, second, millisecon
d, isUtc)), int); | 265 this.millisecondsSinceEpoch = dart.as(_js_helper.checkInt(_js_helper.Primi
tives.valueFromDecomposedDate(year, month, day, hour, minute, second, millisecon
d, isUtc)), int); |
| 266 } | 266 } |
| 267 DateTime$_now() { | 267 DateTime$_now() { |
| 268 this.isUtc = false; | 268 this.isUtc = false; |
| 269 this.millisecondsSinceEpoch = _js_helper.Primitives.dateNow(); | 269 this.millisecondsSinceEpoch = _js_helper.Primitives.dateNow(); |
| 270 } | 270 } |
| 271 static [_brokenDownDateToMillisecondsSinceEpoch](year, month, day, hour, min
ute, second, millisecond, isUtc) { | 271 static [_brokenDownDateToMillisecondsSinceEpoch](year, month, day, hour, min
ute, second, millisecond, isUtc) { |
| 272 return dart.as(_js_helper.Primitives.valueFromDecomposedDate(year, month,
day, hour, minute, second, millisecond, isUtc), int); | 272 return dart.as(_js_helper.Primitives.valueFromDecomposedDate(year, month,
day, hour, minute, second, millisecond, isUtc), int); |
| 273 } | 273 } |
| 274 get timeZoneName() { | 274 get timeZoneName() { |
| (...skipping 696 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 971 Expando._EXPANDO_PROPERTY_NAME = 'expando$values'; | 971 Expando._EXPANDO_PROPERTY_NAME = 'expando$values'; |
| 972 Expando._keyCount = 0; | 972 Expando._keyCount = 0; |
| 973 return Expando; | 973 return Expando; |
| 974 }); | 974 }); |
| 975 let Expando = Expando$(dynamic); | 975 let Expando = Expando$(dynamic); |
| 976 let _toMangledNames = Symbol('_toMangledNames'); | 976 let _toMangledNames = Symbol('_toMangledNames'); |
| 977 class Function extends dart.Object { | 977 class Function extends dart.Object { |
| 978 static apply(function, positionalArguments, namedArguments) { | 978 static apply(function, positionalArguments, namedArguments) { |
| 979 if (namedArguments === void 0) | 979 if (namedArguments === void 0) |
| 980 namedArguments = null; | 980 namedArguments = null; |
| 981 return _js_helper.Primitives.applyFunction(function, positionalArguments,
dart.as(namedArguments === null ? null : _toMangledNames(namedArguments), Map$(S
tring, dynamic))); | 981 return _js_helper.Primitives.applyFunction(function, positionalArguments,
namedArguments === null ? null : _toMangledNames(namedArguments)); |
| 982 } | 982 } |
| 983 static [_toMangledNames](namedArguments) { | 983 static [_toMangledNames](namedArguments) { |
| 984 let result = dart.as(dart.map(), Map$(String, dynamic)); | 984 let result = dart.as(dart.map(), Map$(String, dynamic)); |
| 985 namedArguments.forEach((symbol, value) => { | 985 namedArguments.forEach((symbol, value) => { |
| 986 result.set(_symbolToString(dart.as(symbol, Symbol)), value); | 986 result.set(_symbolToString(dart.as(symbol, Symbol)), value); |
| 987 }); | 987 }); |
| 988 return result; | 988 return result; |
| 989 } | 989 } |
| 990 } | 990 } |
| 991 // Function identical: (Object, Object) → bool | 991 // Function identical: (Object, Object) → bool |
| (...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1490 this[_currentCodePoint] = null; | 1490 this[_currentCodePoint] = null; |
| 1491 RangeError.checkValueInInterval(index, 0, string.length); | 1491 RangeError.checkValueInInterval(index, 0, string.length); |
| 1492 this[_checkSplitSurrogate](index); | 1492 this[_checkSplitSurrogate](index); |
| 1493 } | 1493 } |
| 1494 [_checkSplitSurrogate](index) { | 1494 [_checkSplitSurrogate](index) { |
| 1495 if (dart.notNull(index) > 0 && dart.notNull(index) < dart.notNull(this.str
ing.length) && dart.notNull(_isLeadSurrogate(this.string.codeUnitAt(dart.notNull
(index) - 1))) && dart.notNull(_isTrailSurrogate(this.string.codeUnitAt(index)))
) { | 1495 if (dart.notNull(index) > 0 && dart.notNull(index) < dart.notNull(this.str
ing.length) && dart.notNull(_isLeadSurrogate(this.string.codeUnitAt(dart.notNull
(index) - 1))) && dart.notNull(_isTrailSurrogate(this.string.codeUnitAt(index)))
) { |
| 1496 throw new ArgumentError(`Index inside surrogate pair: ${index}`); | 1496 throw new ArgumentError(`Index inside surrogate pair: ${index}`); |
| 1497 } | 1497 } |
| 1498 } | 1498 } |
| 1499 get rawIndex() { | 1499 get rawIndex() { |
| 1500 return dart.as(this[_position] !== this[_nextPosition] ? this[_position] :
null, int); | 1500 return this[_position] !== this[_nextPosition] ? this[_position] : null; |
| 1501 } | 1501 } |
| 1502 set rawIndex(rawIndex) { | 1502 set rawIndex(rawIndex) { |
| 1503 RangeError.checkValidIndex(rawIndex, this.string, "rawIndex"); | 1503 RangeError.checkValidIndex(rawIndex, this.string, "rawIndex"); |
| 1504 this.reset(rawIndex); | 1504 this.reset(rawIndex); |
| 1505 this.moveNext(); | 1505 this.moveNext(); |
| 1506 } | 1506 } |
| 1507 reset(rawIndex) { | 1507 reset(rawIndex) { |
| 1508 if (rawIndex === void 0) | 1508 if (rawIndex === void 0) |
| 1509 rawIndex = 0; | 1509 rawIndex = 0; |
| 1510 RangeError.checkValueInInterval(rawIndex, 0, this.string.length, "rawIndex
"); | 1510 RangeError.checkValueInInterval(rawIndex, 0, this.string.length, "rawIndex
"); |
| (...skipping 1010 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2521 let targetUserInfo = ""; | 2521 let targetUserInfo = ""; |
| 2522 let targetHost = null; | 2522 let targetHost = null; |
| 2523 let targetPort = null; | 2523 let targetPort = null; |
| 2524 let targetPath = null; | 2524 let targetPath = null; |
| 2525 let targetQuery = null; | 2525 let targetQuery = null; |
| 2526 if (reference.scheme.isNotEmpty) { | 2526 if (reference.scheme.isNotEmpty) { |
| 2527 targetScheme = reference.scheme; | 2527 targetScheme = reference.scheme; |
| 2528 if (reference.hasAuthority) { | 2528 if (reference.hasAuthority) { |
| 2529 targetUserInfo = reference.userInfo; | 2529 targetUserInfo = reference.userInfo; |
| 2530 targetHost = reference.host; | 2530 targetHost = reference.host; |
| 2531 targetPort = dart.as(reference.hasPort ? reference.port : null, int); | 2531 targetPort = reference.hasPort ? reference.port : null; |
| 2532 } | 2532 } |
| 2533 targetPath = this[_removeDotSegments](reference.path); | 2533 targetPath = this[_removeDotSegments](reference.path); |
| 2534 if (reference.hasQuery) { | 2534 if (reference.hasQuery) { |
| 2535 targetQuery = reference.query; | 2535 targetQuery = reference.query; |
| 2536 } | 2536 } |
| 2537 } else { | 2537 } else { |
| 2538 targetScheme = this.scheme; | 2538 targetScheme = this.scheme; |
| 2539 if (reference.hasAuthority) { | 2539 if (reference.hasAuthority) { |
| 2540 targetUserInfo = reference.userInfo; | 2540 targetUserInfo = reference.userInfo; |
| 2541 targetHost = reference.host; | 2541 targetHost = reference.host; |
| 2542 targetPort = _makePort(dart.as(reference.hasPort ? reference.port : nu
ll, int), targetScheme); | 2542 targetPort = _makePort(reference.hasPort ? reference.port : null, targ
etScheme); |
| 2543 targetPath = this[_removeDotSegments](reference.path); | 2543 targetPath = this[_removeDotSegments](reference.path); |
| 2544 if (reference.hasQuery) | 2544 if (reference.hasQuery) |
| 2545 targetQuery = reference.query; | 2545 targetQuery = reference.query; |
| 2546 } else { | 2546 } else { |
| 2547 if (dart.equals(reference.path, "")) { | 2547 if (dart.equals(reference.path, "")) { |
| 2548 targetPath = this[_path]; | 2548 targetPath = this[_path]; |
| 2549 if (reference.hasQuery) { | 2549 if (reference.hasQuery) { |
| 2550 targetQuery = reference.query; | 2550 targetQuery = reference.query; |
| 2551 } else { | 2551 } else { |
| 2552 targetQuery = this[_query]; | 2552 targetQuery = this[_query]; |
| 2553 } | 2553 } |
| 2554 } else { | 2554 } else { |
| 2555 if (reference.path.startsWith("/")) { | 2555 if (reference.path.startsWith("/")) { |
| 2556 targetPath = this[_removeDotSegments](reference.path); | 2556 targetPath = this[_removeDotSegments](reference.path); |
| 2557 } else { | 2557 } else { |
| 2558 targetPath = this[_removeDotSegments](this[_merge](this[_path], re
ference.path)); | 2558 targetPath = this[_removeDotSegments](this[_merge](this[_path], re
ference.path)); |
| 2559 } | 2559 } |
| 2560 if (reference.hasQuery) | 2560 if (reference.hasQuery) |
| 2561 targetQuery = reference.query; | 2561 targetQuery = reference.query; |
| 2562 } | 2562 } |
| 2563 targetUserInfo = this[_userInfo]; | 2563 targetUserInfo = this[_userInfo]; |
| 2564 targetHost = this[_host]; | 2564 targetHost = this[_host]; |
| 2565 targetPort = this[_port]; | 2565 targetPort = this[_port]; |
| 2566 } | 2566 } |
| 2567 } | 2567 } |
| 2568 let fragment = dart.as(reference.hasFragment ? reference.fragment : null,
String); | 2568 let fragment = reference.hasFragment ? reference.fragment : null; |
| 2569 return new Uri._internal(targetScheme, targetUserInfo, targetHost, targetP
ort, targetPath, targetQuery, fragment); | 2569 return new Uri._internal(targetScheme, targetUserInfo, targetHost, targetP
ort, targetPath, targetQuery, fragment); |
| 2570 } | 2570 } |
| 2571 get hasAuthority() { | 2571 get hasAuthority() { |
| 2572 return this[_host] !== null; | 2572 return this[_host] !== null; |
| 2573 } | 2573 } |
| 2574 get hasPort() { | 2574 get hasPort() { |
| 2575 return this[_port] !== null; | 2575 return this[_port] !== null; |
| 2576 } | 2576 } |
| 2577 get hasQuery() { | 2577 get hasQuery() { |
| 2578 return this[_query] !== null; | 2578 return this[_query] !== null; |
| (...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3031 exports.Stopwatch = Stopwatch; | 3031 exports.Stopwatch = Stopwatch; |
| 3032 exports.String = String; | 3032 exports.String = String; |
| 3033 exports.Runes = Runes; | 3033 exports.Runes = Runes; |
| 3034 exports.RuneIterator = RuneIterator; | 3034 exports.RuneIterator = RuneIterator; |
| 3035 exports.StringBuffer = StringBuffer; | 3035 exports.StringBuffer = StringBuffer; |
| 3036 exports.StringSink = StringSink; | 3036 exports.StringSink = StringSink; |
| 3037 exports.Symbol = Symbol; | 3037 exports.Symbol = Symbol; |
| 3038 exports.Type = Type; | 3038 exports.Type = Type; |
| 3039 exports.Uri = Uri; | 3039 exports.Uri = Uri; |
| 3040 })(core || (core = {})); | 3040 })(core || (core = {})); |
| OLD | NEW |