Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(134)

Side by Side Diff: lib/runtime/dart/core.js

Issue 1093143004: fixes #52, fields shadowing getters/setters or other fields (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « lib/runtime/dart/convert.js ('k') | lib/runtime/dart/isolate.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 var core; 1 var core;
2 (function(exports) { 2 (function(exports) {
3 'use strict'; 3 'use strict';
4 class Object { 4 class Object {
5 constructor() { 5 constructor() {
6 let name = this.constructor.name; 6 let name = this.constructor.name;
7 let init = this[name]; 7 let init = this[name];
8 let result = void 0; 8 let result = void 0;
9 if (init) 9 if (init)
10 result = init.apply(this, arguments); 10 result = init.apply(this, arguments);
(...skipping 11 matching lines...) Expand all
22 noSuchMethod(invocation) { 22 noSuchMethod(invocation) {
23 throw new NoSuchMethodError(this, invocation.memberName, invocation.positi onalArguments, invocation.namedArguments); 23 throw new NoSuchMethodError(this, invocation.memberName, invocation.positi onalArguments, invocation.namedArguments);
24 } 24 }
25 get runtimeType() { 25 get runtimeType() {
26 return _js_helper.getRuntimeType(this); 26 return _js_helper.getRuntimeType(this);
27 } 27 }
28 } 28 }
29 class JsName extends Object { 29 class JsName extends Object {
30 JsName(opts) { 30 JsName(opts) {
31 let name = opts && 'name' in opts ? opts.name : null; 31 let name = opts && 'name' in opts ? opts.name : null;
32 this.name = name; 32 dart.initField(JsName, this, 'name', name);
33 } 33 }
34 } 34 }
35 class JsPeerInterface extends Object { 35 class JsPeerInterface extends Object {
36 JsPeerInterface(opts) { 36 JsPeerInterface(opts) {
37 let name = opts && 'name' in opts ? opts.name : null; 37 let name = opts && 'name' in opts ? opts.name : null;
38 this.name = name; 38 dart.initField(JsPeerInterface, this, 'name', name);
39 } 39 }
40 } 40 }
41 class SupportJsExtensionMethod extends Object { 41 class SupportJsExtensionMethod extends Object {
42 SupportJsExtensionMethod() { 42 SupportJsExtensionMethod() {
43 } 43 }
44 } 44 }
45 class Deprecated extends Object { 45 class Deprecated extends Object {
46 Deprecated(expires) { 46 Deprecated(expires) {
47 this.expires = expires; 47 dart.initField(Deprecated, this, 'expires', expires);
48 } 48 }
49 toString() { 49 toString() {
50 return `Deprecated feature. Will be removed ${this.expires}`; 50 return `Deprecated feature. Will be removed ${this.expires}`;
51 } 51 }
52 } 52 }
53 class _Override extends Object { 53 class _Override extends Object {
54 _Override() { 54 _Override() {
55 } 55 }
56 } 56 }
57 let deprecated = new Deprecated("next release"); 57 let deprecated = new Deprecated("next release");
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 if (addOneMillisecond) { 188 if (addOneMillisecond) {
189 millisecondsSinceEpoch = dart.notNull(millisecondsSinceEpoch) + 1; 189 millisecondsSinceEpoch = dart.notNull(millisecondsSinceEpoch) + 1;
190 } 190 }
191 return new DateTime.fromMillisecondsSinceEpoch(millisecondsSinceEpoch, { isUtc: isUtc}); 191 return new DateTime.fromMillisecondsSinceEpoch(millisecondsSinceEpoch, { isUtc: isUtc});
192 } else { 192 } else {
193 throw new FormatException("Invalid date format", formattedString); 193 throw new FormatException("Invalid date format", formattedString);
194 } 194 }
195 } 195 }
196 fromMillisecondsSinceEpoch(millisecondsSinceEpoch, opts) { 196 fromMillisecondsSinceEpoch(millisecondsSinceEpoch, opts) {
197 let isUtc = opts && 'isUtc' in opts ? opts.isUtc : false; 197 let isUtc = opts && 'isUtc' in opts ? opts.isUtc : false;
198 this.millisecondsSinceEpoch = millisecondsSinceEpoch; 198 dart.initField(DateTime, this, 'millisecondsSinceEpoch', millisecondsSince Epoch);
199 this.isUtc = isUtc; 199 dart.initField(DateTime, this, 'isUtc', isUtc);
200 if (dart.notNull(millisecondsSinceEpoch.abs()) > dart.notNull(DateTime[_MA X_MILLISECONDS_SINCE_EPOCH])) { 200 if (dart.notNull(millisecondsSinceEpoch.abs()) > dart.notNull(DateTime[_MA X_MILLISECONDS_SINCE_EPOCH])) {
201 throw new ArgumentError(millisecondsSinceEpoch); 201 throw new ArgumentError(millisecondsSinceEpoch);
202 } 202 }
203 if (isUtc == null) 203 if (isUtc == null)
204 throw new ArgumentError(isUtc); 204 throw new ArgumentError(isUtc);
205 } 205 }
206 ['=='](other) { 206 ['=='](other) {
207 if (!dart.is(other, DateTime)) 207 if (!dart.is(other, DateTime))
208 return false; 208 return false;
209 return dart.equals(this.millisecondsSinceEpoch, dart.dload(other, 'millise condsSinceEpoch')) && dart.equals(this.isUtc, dart.dload(other, 'isUtc')); 209 return dart.equals(this.millisecondsSinceEpoch, dart.dload(other, 'millise condsSinceEpoch')) && dart.equals(this.isUtc, dart.dload(other, 'isUtc'));
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 subtract(duration) { 300 subtract(duration) {
301 let ms = this.millisecondsSinceEpoch; 301 let ms = this.millisecondsSinceEpoch;
302 return new DateTime.fromMillisecondsSinceEpoch(dart.notNull(ms) - dart.not Null(duration.inMilliseconds), {isUtc: this.isUtc}); 302 return new DateTime.fromMillisecondsSinceEpoch(dart.notNull(ms) - dart.not Null(duration.inMilliseconds), {isUtc: this.isUtc});
303 } 303 }
304 difference(other) { 304 difference(other) {
305 let ms = this.millisecondsSinceEpoch; 305 let ms = this.millisecondsSinceEpoch;
306 let otherMs = other.millisecondsSinceEpoch; 306 let otherMs = other.millisecondsSinceEpoch;
307 return new Duration({milliseconds: dart.notNull(ms) - dart.notNull(otherMs )}); 307 return new Duration({milliseconds: dart.notNull(ms) - dart.notNull(otherMs )});
308 } 308 }
309 [_internal](year, month, day, hour, minute, second, millisecond, isUtc) { 309 [_internal](year, month, day, hour, minute, second, millisecond, isUtc) {
310 this.isUtc = typeof isUtc == 'boolean' ? isUtc : dart.throw_(new ArgumentE rror(isUtc)); 310 dart.initField(DateTime, this, 'isUtc', typeof isUtc == 'boolean' ? isUtc : dart.throw_(new ArgumentError(isUtc)));
311 this.millisecondsSinceEpoch = dart.as(_js_helper.checkInt(_js_helper.Primi tives.valueFromDecomposedDate(year, month, day, hour, minute, second, millisecon d, isUtc)), int); 311 dart.initField(DateTime, this, 'millisecondsSinceEpoch', dart.as(_js_helpe r.checkInt(_js_helper.Primitives.valueFromDecomposedDate(year, month, day, hour, minute, second, millisecond, isUtc)), int));
312 } 312 }
313 [_now]() { 313 [_now]() {
314 this.isUtc = false; 314 dart.initField(DateTime, this, 'isUtc', false);
315 this.millisecondsSinceEpoch = _js_helper.Primitives.dateNow(); 315 dart.initField(DateTime, this, 'millisecondsSinceEpoch', _js_helper.Primit ives.dateNow());
316 } 316 }
317 static [_brokenDownDateToMillisecondsSinceEpoch](year, month, day, hour, min ute, second, millisecond, isUtc) { 317 static [_brokenDownDateToMillisecondsSinceEpoch](year, month, day, hour, min ute, second, millisecond, isUtc) {
318 return dart.as(_js_helper.Primitives.valueFromDecomposedDate(year, month, day, hour, minute, second, millisecond, isUtc), int); 318 return dart.as(_js_helper.Primitives.valueFromDecomposedDate(year, month, day, hour, minute, second, millisecond, isUtc), int);
319 } 319 }
320 get timeZoneName() { 320 get timeZoneName() {
321 if (this.isUtc) 321 if (this.isUtc)
322 return "UTC"; 322 return "UTC";
323 return _js_helper.Primitives.getTimeZoneName(this); 323 return _js_helper.Primitives.getTimeZoneName(this);
324 } 324 }
325 get timeZoneOffset() { 325 get timeZoneOffset() {
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 Duration(opts) { 429 Duration(opts) {
430 let days = opts && 'days' in opts ? opts.days : 0; 430 let days = opts && 'days' in opts ? opts.days : 0;
431 let hours = opts && 'hours' in opts ? opts.hours : 0; 431 let hours = opts && 'hours' in opts ? opts.hours : 0;
432 let minutes = opts && 'minutes' in opts ? opts.minutes : 0; 432 let minutes = opts && 'minutes' in opts ? opts.minutes : 0;
433 let seconds = opts && 'seconds' in opts ? opts.seconds : 0; 433 let seconds = opts && 'seconds' in opts ? opts.seconds : 0;
434 let milliseconds = opts && 'milliseconds' in opts ? opts.milliseconds : 0; 434 let milliseconds = opts && 'milliseconds' in opts ? opts.milliseconds : 0;
435 let microseconds = opts && 'microseconds' in opts ? opts.microseconds : 0; 435 let microseconds = opts && 'microseconds' in opts ? opts.microseconds : 0;
436 this[_microseconds](dart.notNull(days) * dart.notNull(Duration.MICROSECOND S_PER_DAY) + dart.notNull(hours) * dart.notNull(Duration.MICROSECONDS_PER_HOUR) + dart.notNull(minutes) * dart.notNull(Duration.MICROSECONDS_PER_MINUTE) + dart. notNull(seconds) * dart.notNull(Duration.MICROSECONDS_PER_SECOND) + dart.notNull (milliseconds) * dart.notNull(Duration.MICROSECONDS_PER_MILLISECOND) + dart.notN ull(microseconds)); 436 this[_microseconds](dart.notNull(days) * dart.notNull(Duration.MICROSECOND S_PER_DAY) + dart.notNull(hours) * dart.notNull(Duration.MICROSECONDS_PER_HOUR) + dart.notNull(minutes) * dart.notNull(Duration.MICROSECONDS_PER_MINUTE) + dart. notNull(seconds) * dart.notNull(Duration.MICROSECONDS_PER_SECOND) + dart.notNull (milliseconds) * dart.notNull(Duration.MICROSECONDS_PER_MILLISECOND) + dart.notN ull(microseconds));
437 } 437 }
438 [_microseconds](duration) { 438 [_microseconds](duration) {
439 this[_duration] = duration; 439 dart.initField(Duration, this, _duration, duration);
440 } 440 }
441 ['+'](other) { 441 ['+'](other) {
442 return new Duration[_microseconds](dart.notNull(this[_duration]) + dart.no tNull(other[_duration])); 442 return new Duration[_microseconds](dart.notNull(this[_duration]) + dart.no tNull(other[_duration]));
443 } 443 }
444 ['-'](other) { 444 ['-'](other) {
445 return new Duration[_microseconds](dart.notNull(this[_duration]) - dart.no tNull(other[_duration])); 445 return new Duration[_microseconds](dart.notNull(this[_duration]) - dart.no tNull(other[_duration]));
446 } 446 }
447 ['*'](factor) { 447 ['*'](factor) {
448 return new Duration[_microseconds]((dart.notNull(this[_duration]) * dart.n otNull(factor)).round()); 448 return new Duration[_microseconds]((dart.notNull(this[_duration]) * dart.n otNull(factor)).round());
449 } 449 }
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
580 class NullThrownError extends Error { 580 class NullThrownError extends Error {
581 toString() { 581 toString() {
582 return "Throw of null."; 582 return "Throw of null.";
583 } 583 }
584 } 584 }
585 let _hasValue = dart.JsSymbol('_hasValue'); 585 let _hasValue = dart.JsSymbol('_hasValue');
586 class ArgumentError extends Error { 586 class ArgumentError extends Error {
587 ArgumentError(message) { 587 ArgumentError(message) {
588 if (message === void 0) 588 if (message === void 0)
589 message = null; 589 message = null;
590 this.message = message; 590 dart.initField(ArgumentError, this, 'message', message);
591 this.invalidValue = null; 591 dart.initField(ArgumentError, this, 'invalidValue', null);
592 this[_hasValue] = false; 592 this[_hasValue] = false;
593 this.name = null; 593 dart.initField(ArgumentError, this, 'name', null);
594 super.Error(); 594 super.Error();
595 } 595 }
596 value(value, name, message) { 596 value(value, name, message) {
597 if (name === void 0) 597 if (name === void 0)
598 name = null; 598 name = null;
599 if (message === void 0) 599 if (message === void 0)
600 message = "Invalid argument"; 600 message = "Invalid argument";
601 this.name = name; 601 dart.initField(ArgumentError, this, 'name', name);
602 this.message = message; 602 dart.initField(ArgumentError, this, 'message', message);
603 this.invalidValue = value; 603 dart.initField(ArgumentError, this, 'invalidValue', value);
604 this[_hasValue] = true; 604 this[_hasValue] = true;
605 super.Error(); 605 super.Error();
606 } 606 }
607 notNull(name) { 607 notNull(name) {
608 if (name === void 0) 608 if (name === void 0)
609 name = null; 609 name = null;
610 this.value(null, name, "Must not be null"); 610 this.value(null, name, "Must not be null");
611 } 611 }
612 toString() { 612 toString() {
613 if (!dart.notNull(this[_hasValue])) { 613 if (!dart.notNull(this[_hasValue])) {
614 let result = "Invalid arguments(s)"; 614 let result = "Invalid arguments(s)";
615 if (this.message != null) { 615 if (this.message != null) {
616 result = `${result}: ${this.message}`; 616 result = `${result}: ${this.message}`;
617 } 617 }
618 return result; 618 return result;
619 } 619 }
620 let nameString = ""; 620 let nameString = "";
621 if (this.name != null) { 621 if (this.name != null) {
622 nameString = ` (${this.name})`; 622 nameString = ` (${this.name})`;
623 } 623 }
624 return `${this.message}${nameString}: ${Error.safeToString(this.invalidVal ue)}`; 624 return `${this.message}${nameString}: ${Error.safeToString(this.invalidVal ue)}`;
625 } 625 }
626 } 626 }
627 dart.defineNamedConstructor(ArgumentError, 'value'); 627 dart.defineNamedConstructor(ArgumentError, 'value');
628 dart.defineNamedConstructor(ArgumentError, 'notNull'); 628 dart.defineNamedConstructor(ArgumentError, 'notNull');
629 class RangeError extends ArgumentError { 629 class RangeError extends ArgumentError {
630 RangeError(message) { 630 RangeError(message) {
631 this.start = null; 631 dart.initField(RangeError, this, 'start', null);
632 this.end = null; 632 dart.initField(RangeError, this, 'end', null);
633 super.ArgumentError(message); 633 super.ArgumentError(message);
634 } 634 }
635 value(value, name, message) { 635 value(value, name, message) {
636 if (name === void 0) 636 if (name === void 0)
637 name = null; 637 name = null;
638 if (message === void 0) 638 if (message === void 0)
639 message = null; 639 message = null;
640 this.start = null; 640 dart.initField(RangeError, this, 'start', null);
641 this.end = null; 641 dart.initField(RangeError, this, 'end', null);
642 super.value(value, name, message != null ? message : "Value not in range") ; 642 super.value(value, name, message != null ? message : "Value not in range") ;
643 } 643 }
644 range(invalidValue, minValue, maxValue, name, message) { 644 range(invalidValue, minValue, maxValue, name, message) {
645 if (name === void 0) 645 if (name === void 0)
646 name = null; 646 name = null;
647 if (message === void 0) 647 if (message === void 0)
648 message = null; 648 message = null;
649 this.start = minValue; 649 dart.initField(RangeError, this, 'start', minValue);
650 this.end = maxValue; 650 dart.initField(RangeError, this, 'end', maxValue);
651 super.value(invalidValue, name, message != null ? message : "Invalid value "); 651 super.value(invalidValue, name, message != null ? message : "Invalid value ");
652 } 652 }
653 index(index, indexable, name, message, length) { 653 index(index, indexable, name, message, length) {
654 return new IndexError(index, indexable, name, message, length); 654 return new IndexError(index, indexable, name, message, length);
655 } 655 }
656 static checkValueInInterval(value, minValue, maxValue, name, message) { 656 static checkValueInInterval(value, minValue, maxValue, name, message) {
657 if (name === void 0) 657 if (name === void 0)
658 name = null; 658 name = null;
659 if (message === void 0) 659 if (message === void 0)
660 message = null; 660 message = null;
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
728 dart.defineNamedConstructor(RangeError, 'range'); 728 dart.defineNamedConstructor(RangeError, 'range');
729 dart.defineNamedConstructor(RangeError, 'index'); 729 dart.defineNamedConstructor(RangeError, 'index');
730 class IndexError extends ArgumentError { 730 class IndexError extends ArgumentError {
731 IndexError(invalidValue, indexable, name, message, length) { 731 IndexError(invalidValue, indexable, name, message, length) {
732 if (name === void 0) 732 if (name === void 0)
733 name = null; 733 name = null;
734 if (message === void 0) 734 if (message === void 0)
735 message = null; 735 message = null;
736 if (length === void 0) 736 if (length === void 0)
737 length = null; 737 length = null;
738 this.indexable = indexable; 738 dart.initField(IndexError, this, 'indexable', indexable);
739 this.length = dart.as(length != null ? length : dart.dload(indexable, 'len gth'), int); 739 dart.initField(IndexError, this, 'length', dart.as(length != null ? length : dart.dload(indexable, 'length'), int));
740 super.value(invalidValue, name, message != null ? message : "Index out of range"); 740 super.value(invalidValue, name, message != null ? message : "Index out of range");
741 } 741 }
742 get start() { 742 get start() {
743 return 0; 743 return 0;
744 } 744 }
745 get end() { 745 get end() {
746 return dart.notNull(this.length) - 1; 746 return dart.notNull(this.length) - 1;
747 } 747 }
748 toString() { 748 toString() {
749 dart.assert(this[_hasValue]); 749 dart.assert(this[_hasValue]);
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
822 } 822 }
823 sb.write(this[_existingArgumentNames][exports.$get](i)); 823 sb.write(this[_existingArgumentNames][exports.$get](i));
824 } 824 }
825 let formalParameters = sb.toString(); 825 let formalParameters = sb.toString();
826 return "NoSuchMethodError: incorrect number of arguments passed to " + ` method named '${this[_memberName]}'\n` + `Receiver: ${Error.safeToString(this[_r eceiver])}\n` + `Tried calling: ${this[_memberName]}(${actualParameters})\n` + ` Found: ${this[_memberName]}(${formalParameters})`; 826 return "NoSuchMethodError: incorrect number of arguments passed to " + ` method named '${this[_memberName]}'\n` + `Receiver: ${Error.safeToString(this[_r eceiver])}\n` + `Tried calling: ${this[_memberName]}(${actualParameters})\n` + ` Found: ${this[_memberName]}(${formalParameters})`;
827 } 827 }
828 } 828 }
829 } 829 }
830 class UnsupportedError extends Error { 830 class UnsupportedError extends Error {
831 UnsupportedError(message) { 831 UnsupportedError(message) {
832 this.message = message; 832 dart.initField(UnsupportedError, this, 'message', message);
833 super.Error(); 833 super.Error();
834 } 834 }
835 toString() { 835 toString() {
836 return `Unsupported operation: ${this.message}`; 836 return `Unsupported operation: ${this.message}`;
837 } 837 }
838 } 838 }
839 class UnimplementedError extends Error { 839 class UnimplementedError extends Error {
840 UnimplementedError(message) { 840 UnimplementedError(message) {
841 if (message === void 0) 841 if (message === void 0)
842 message = null; 842 message = null;
843 this.message = message; 843 dart.initField(UnimplementedError, this, 'message', message);
844 super.Error(); 844 super.Error();
845 } 845 }
846 toString() { 846 toString() {
847 return this.message != null ? `UnimplementedError: ${this.message}` : "Uni mplementedError"; 847 return this.message != null ? `UnimplementedError: ${this.message}` : "Uni mplementedError";
848 } 848 }
849 } 849 }
850 UnimplementedError[dart.implements] = () => [UnsupportedError]; 850 UnimplementedError[dart.implements] = () => [UnsupportedError];
851 class StateError extends Error { 851 class StateError extends Error {
852 StateError(message) { 852 StateError(message) {
853 this.message = message; 853 dart.initField(StateError, this, 'message', message);
854 super.Error(); 854 super.Error();
855 } 855 }
856 toString() { 856 toString() {
857 return `Bad state: ${this.message}`; 857 return `Bad state: ${this.message}`;
858 } 858 }
859 } 859 }
860 class ConcurrentModificationError extends Error { 860 class ConcurrentModificationError extends Error {
861 ConcurrentModificationError(modifiedObject) { 861 ConcurrentModificationError(modifiedObject) {
862 if (modifiedObject === void 0) 862 if (modifiedObject === void 0)
863 modifiedObject = null; 863 modifiedObject = null;
864 this.modifiedObject = modifiedObject; 864 dart.initField(ConcurrentModificationError, this, 'modifiedObject', modifi edObject);
865 super.Error(); 865 super.Error();
866 } 866 }
867 toString() { 867 toString() {
868 if (this.modifiedObject == null) { 868 if (this.modifiedObject == null) {
869 return "Concurrent modification during iteration."; 869 return "Concurrent modification during iteration.";
870 } 870 }
871 return "Concurrent modification during iteration: " + `${Error.safeToStrin g(this.modifiedObject)}.`; 871 return "Concurrent modification during iteration: " + `${Error.safeToStrin g(this.modifiedObject)}.`;
872 } 872 }
873 } 873 }
874 class OutOfMemoryError extends Object { 874 class OutOfMemoryError extends Object {
(...skipping 15 matching lines...) Expand all
890 } 890 }
891 get stackTrace() { 891 get stackTrace() {
892 return null; 892 return null;
893 } 893 }
894 } 894 }
895 StackOverflowError[dart.implements] = () => [Error]; 895 StackOverflowError[dart.implements] = () => [Error];
896 class CyclicInitializationError extends Error { 896 class CyclicInitializationError extends Error {
897 CyclicInitializationError(variableName) { 897 CyclicInitializationError(variableName) {
898 if (variableName === void 0) 898 if (variableName === void 0)
899 variableName = null; 899 variableName = null;
900 this.variableName = variableName; 900 dart.initField(CyclicInitializationError, this, 'variableName', variableNa me);
901 super.Error(); 901 super.Error();
902 } 902 }
903 toString() { 903 toString() {
904 return this.variableName == null ? "Reading static variable during its ini tialization" : `Reading static variable '${this.variableName}' during its initia lization`; 904 return this.variableName == null ? "Reading static variable during its ini tialization" : `Reading static variable '${this.variableName}' during its initia lization`;
905 } 905 }
906 } 906 }
907 class Exception extends Object { 907 class Exception extends Object {
908 Exception(message) { 908 Exception(message) {
909 if (message === void 0) 909 if (message === void 0)
910 message = null; 910 message = null;
(...skipping 14 matching lines...) Expand all
925 } 925 }
926 _ExceptionImplementation[dart.implements] = () => [Exception]; 926 _ExceptionImplementation[dart.implements] = () => [Exception];
927 class FormatException extends Object { 927 class FormatException extends Object {
928 FormatException(message, source, offset) { 928 FormatException(message, source, offset) {
929 if (message === void 0) 929 if (message === void 0)
930 message = ""; 930 message = "";
931 if (source === void 0) 931 if (source === void 0)
932 source = null; 932 source = null;
933 if (offset === void 0) 933 if (offset === void 0)
934 offset = -1; 934 offset = -1;
935 this.message = message; 935 dart.initField(FormatException, this, 'message', message);
936 this.source = source; 936 dart.initField(FormatException, this, 'source', source);
937 this.offset = offset; 937 dart.initField(FormatException, this, 'offset', offset);
938 } 938 }
939 toString() { 939 toString() {
940 let report = "FormatException"; 940 let report = "FormatException";
941 if (this.message != null && "" != this.message) { 941 if (this.message != null && "" != this.message) {
942 report = `${report}: ${this.message}`; 942 report = `${report}: ${this.message}`;
943 } 943 }
944 let offset = this.offset; 944 let offset = this.offset;
945 if (!(typeof this.source == 'string')) { 945 if (!(typeof this.source == 'string')) {
946 if (offset != -1) { 946 if (offset != -1) {
947 report = dart.notNull(report) + ` (at offset ${offset})`; 947 report = dart.notNull(report) + ` (at offset ${offset})`;
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
1023 IntegerDivisionByZeroException[dart.implements] = () => [Exception]; 1023 IntegerDivisionByZeroException[dart.implements] = () => [Exception];
1024 let _EXPANDO_PROPERTY_NAME = dart.JsSymbol('_EXPANDO_PROPERTY_NAME'); 1024 let _EXPANDO_PROPERTY_NAME = dart.JsSymbol('_EXPANDO_PROPERTY_NAME');
1025 let _getKey = dart.JsSymbol('_getKey'); 1025 let _getKey = dart.JsSymbol('_getKey');
1026 let _KEY_PROPERTY_NAME = dart.JsSymbol('_KEY_PROPERTY_NAME'); 1026 let _KEY_PROPERTY_NAME = dart.JsSymbol('_KEY_PROPERTY_NAME');
1027 let _keyCount = dart.JsSymbol('_keyCount'); 1027 let _keyCount = dart.JsSymbol('_keyCount');
1028 let Expando$ = dart.generic(function(T) { 1028 let Expando$ = dart.generic(function(T) {
1029 class Expando extends Object { 1029 class Expando extends Object {
1030 Expando(name) { 1030 Expando(name) {
1031 if (name === void 0) 1031 if (name === void 0)
1032 name = null; 1032 name = null;
1033 this.name = name; 1033 dart.initField(Expando, this, 'name', name);
1034 } 1034 }
1035 toString() { 1035 toString() {
1036 return `Expando:${this.name}`; 1036 return `Expando:${this.name}`;
1037 } 1037 }
1038 get(object) { 1038 get(object) {
1039 let values = _js_helper.Primitives.getProperty(object, Expando[_EXPANDO_ PROPERTY_NAME]); 1039 let values = _js_helper.Primitives.getProperty(object, Expando[_EXPANDO_ PROPERTY_NAME]);
1040 return dart.as(values == null ? null : _js_helper.Primitives.getProperty (values, this[_getKey]()), T); 1040 return dart.as(values == null ? null : _js_helper.Primitives.getProperty (values, this[_getKey]()), T);
1041 } 1041 }
1042 set(object, value) { 1042 set(object, value) {
1043 let values = _js_helper.Primitives.getProperty(object, Expando[_EXPANDO_ PROPERTY_NAME]); 1043 let values = _js_helper.Primitives.getProperty(object, Expando[_EXPANDO_ PROPERTY_NAME]);
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
1122 } 1122 }
1123 dart.defineNamedConstructor(Iterable, 'generate'); 1123 dart.defineNamedConstructor(Iterable, 'generate');
1124 return Iterable; 1124 return Iterable;
1125 }); 1125 });
1126 let Iterable = Iterable$(); 1126 let Iterable = Iterable$();
1127 let _Generator$ = dart.generic(function(E) { 1127 let _Generator$ = dart.generic(function(E) {
1128 let _Generator = dart.typedef('_Generator', () => dart.functionType(E, [int] )); 1128 let _Generator = dart.typedef('_Generator', () => dart.functionType(E, [int] ));
1129 return _Generator; 1129 return _Generator;
1130 }); 1130 });
1131 let _Generator = _Generator$(); 1131 let _Generator = _Generator$();
1132 let _id = dart.JsSymbol('_id');
1132 let _end = dart.JsSymbol('_end'); 1133 let _end = dart.JsSymbol('_end');
1133 let _start = dart.JsSymbol('_start'); 1134 let _start = dart.JsSymbol('_start');
1134 let _generator = dart.JsSymbol('_generator'); 1135 let _generator = dart.JsSymbol('_generator');
1135 let _id = dart.JsSymbol('_id');
1136 let $iterator = dart.JsSymbol('$iterator'); 1136 let $iterator = dart.JsSymbol('$iterator');
1137 let $skip = dart.JsSymbol('$skip'); 1137 let $skip = dart.JsSymbol('$skip');
1138 let $take = dart.JsSymbol('$take'); 1138 let $take = dart.JsSymbol('$take');
1139 let _GeneratorIterable$ = dart.generic(function(E) { 1139 let _GeneratorIterable$ = dart.generic(function(E) {
1140 class _GeneratorIterable extends collection.IterableBase$(E) { 1140 class _GeneratorIterable extends collection.IterableBase$(E) {
1141 _GeneratorIterable(end, generator) { 1141 _GeneratorIterable(end, generator) {
1142 this[_end] = end; 1142 this[_end] = end;
1143 this[_start] = 0; 1143 this[_start] = 0;
1144 this[_generator] = dart.as(generator != null ? generator : _GeneratorIte rable[_id], _Generator$(E)); 1144 this[_generator] = dart.as(generator != null ? generator : _GeneratorIte rable[_id], _Generator$(E));
1145 super.IterableBase(); 1145 super.IterableBase();
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
1347 let Sink = Sink$(); 1347 let Sink = Sink$();
1348 class StackTrace extends Object {} 1348 class StackTrace extends Object {}
1349 let _frequency = dart.JsSymbol('_frequency'); 1349 let _frequency = dart.JsSymbol('_frequency');
1350 let _stop = dart.JsSymbol('_stop'); 1350 let _stop = dart.JsSymbol('_stop');
1351 let _initTicker = dart.JsSymbol('_initTicker'); 1351 let _initTicker = dart.JsSymbol('_initTicker');
1352 class Stopwatch extends Object { 1352 class Stopwatch extends Object {
1353 get frequency() { 1353 get frequency() {
1354 return Stopwatch[_frequency]; 1354 return Stopwatch[_frequency];
1355 } 1355 }
1356 Stopwatch() { 1356 Stopwatch() {
1357 this[_start] = null; 1357 dart.initField(Stopwatch, this, _start, null);
1358 this[_stop] = null; 1358 dart.initField(Stopwatch, this, _stop, null);
1359 Stopwatch[_initTicker](); 1359 Stopwatch[_initTicker]();
1360 } 1360 }
1361 start() { 1361 start() {
1362 if (this.isRunning) 1362 if (this.isRunning)
1363 return; 1363 return;
1364 if (this[_start] == null) { 1364 if (this[_start] == null) {
1365 this[_start] = Stopwatch[_now](); 1365 this[_start] = Stopwatch[_now]();
1366 } else { 1366 } else {
1367 this[_start] = dart.notNull(Stopwatch[_now]()) - (dart.notNull(this[_sto p]) - dart.notNull(this[_start])); 1367 this[_start] = dart.notNull(Stopwatch[_now]()) - (dart.notNull(this[_sto p]) - dart.notNull(this[_start]));
1368 this[_stop] = null; 1368 this[_stop] = null;
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
1471 } 1471 }
1472 String[dart.implements] = () => [Comparable$(String), Pattern]; 1472 String[dart.implements] = () => [Comparable$(String), Pattern];
1473 dart.defineNamedConstructor(String, 'fromCharCodes'); 1473 dart.defineNamedConstructor(String, 'fromCharCodes');
1474 dart.defineNamedConstructor(String, 'fromCharCode'); 1474 dart.defineNamedConstructor(String, 'fromCharCode');
1475 dart.defineNamedConstructor(String, 'fromEnvironment'); 1475 dart.defineNamedConstructor(String, 'fromEnvironment');
1476 let $last = dart.JsSymbol('$last'); 1476 let $last = dart.JsSymbol('$last');
1477 dart.defineLazyClass(exports, { 1477 dart.defineLazyClass(exports, {
1478 get Runes() { 1478 get Runes() {
1479 class Runes extends collection.IterableBase$(int) { 1479 class Runes extends collection.IterableBase$(int) {
1480 Runes(string) { 1480 Runes(string) {
1481 this.string = string; 1481 dart.initField(Runes, this, 'string', string);
1482 super.IterableBase(); 1482 super.IterableBase();
1483 } 1483 }
1484 get [exports.$iterator]() { 1484 get [exports.$iterator]() {
1485 return new RuneIterator(this.string); 1485 return new RuneIterator(this.string);
1486 } 1486 }
1487 get [exports.$last]() { 1487 get [exports.$last]() {
1488 if (this.string.length == 0) { 1488 if (this.string.length == 0) {
1489 throw new StateError('No elements.'); 1489 throw new StateError('No elements.');
1490 } 1490 }
1491 let length = this.string.length; 1491 let length = this.string.length;
(...skipping 21 matching lines...) Expand all
1513 // Function _combineSurrogatePair: (int, int) → int 1513 // Function _combineSurrogatePair: (int, int) → int
1514 function _combineSurrogatePair(start, end) { 1514 function _combineSurrogatePair(start, end) {
1515 return 65536 + ((dart.notNull(start) & 1023) << 10) + (dart.notNull(end) & 1 023); 1515 return 65536 + ((dart.notNull(start) & 1023) << 10) + (dart.notNull(end) & 1 023);
1516 } 1516 }
1517 let _position = dart.JsSymbol('_position'); 1517 let _position = dart.JsSymbol('_position');
1518 let _nextPosition = dart.JsSymbol('_nextPosition'); 1518 let _nextPosition = dart.JsSymbol('_nextPosition');
1519 let _currentCodePoint = dart.JsSymbol('_currentCodePoint'); 1519 let _currentCodePoint = dart.JsSymbol('_currentCodePoint');
1520 let _checkSplitSurrogate = dart.JsSymbol('_checkSplitSurrogate'); 1520 let _checkSplitSurrogate = dart.JsSymbol('_checkSplitSurrogate');
1521 class RuneIterator extends Object { 1521 class RuneIterator extends Object {
1522 RuneIterator(string) { 1522 RuneIterator(string) {
1523 this.string = string; 1523 dart.initField(RuneIterator, this, 'string', string);
1524 this[_position] = 0; 1524 dart.initField(RuneIterator, this, _position, 0);
1525 this[_nextPosition] = 0; 1525 dart.initField(RuneIterator, this, _nextPosition, 0);
1526 this[_currentCodePoint] = null; 1526 dart.initField(RuneIterator, this, _currentCodePoint, null);
1527 } 1527 }
1528 at(string, index) { 1528 at(string, index) {
1529 this.string = string; 1529 dart.initField(RuneIterator, this, 'string', string);
1530 this[_position] = index; 1530 dart.initField(RuneIterator, this, _position, index);
1531 this[_nextPosition] = index; 1531 dart.initField(RuneIterator, this, _nextPosition, index);
1532 this[_currentCodePoint] = null; 1532 dart.initField(RuneIterator, this, _currentCodePoint, null);
1533 RangeError.checkValueInInterval(index, 0, string.length); 1533 RangeError.checkValueInInterval(index, 0, string.length);
1534 this[_checkSplitSurrogate](index); 1534 this[_checkSplitSurrogate](index);
1535 } 1535 }
1536 [_checkSplitSurrogate](index) { 1536 [_checkSplitSurrogate](index) {
1537 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))) ) { 1537 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))) ) {
1538 throw new ArgumentError(`Index inside surrogate pair: ${index}`); 1538 throw new ArgumentError(`Index inside surrogate pair: ${index}`);
1539 } 1539 }
1540 } 1540 }
1541 get rawIndex() { 1541 get rawIndex() {
1542 return this[_position] != this[_nextPosition] ? this[_position] : null; 1542 return this[_position] != this[_nextPosition] ? this[_position] : null;
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
1609 } 1609 }
1610 } 1610 }
1611 RuneIterator[dart.implements] = () => [BidirectionalIterator$(int)]; 1611 RuneIterator[dart.implements] = () => [BidirectionalIterator$(int)];
1612 dart.defineNamedConstructor(RuneIterator, 'at'); 1612 dart.defineNamedConstructor(RuneIterator, 'at');
1613 let _contents = dart.JsSymbol('_contents'); 1613 let _contents = dart.JsSymbol('_contents');
1614 let _writeString = dart.JsSymbol('_writeString'); 1614 let _writeString = dart.JsSymbol('_writeString');
1615 class StringBuffer extends Object { 1615 class StringBuffer extends Object {
1616 StringBuffer(content) { 1616 StringBuffer(content) {
1617 if (content === void 0) 1617 if (content === void 0)
1618 content = ""; 1618 content = "";
1619 this[_contents] = `${content}`; 1619 dart.initField(StringBuffer, this, _contents, `${content}`);
1620 } 1620 }
1621 get length() { 1621 get length() {
1622 return this[_contents].length; 1622 return this[_contents].length;
1623 } 1623 }
1624 get isEmpty() { 1624 get isEmpty() {
1625 return this.length == 0; 1625 return this.length == 0;
1626 } 1626 }
1627 get isNotEmpty() { 1627 get isNotEmpty() {
1628 return !dart.notNull(this.isEmpty); 1628 return !dart.notNull(this.isEmpty);
1629 } 1629 }
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
1702 let _makeFragment = dart.JsSymbol('_makeFragment'); 1702 let _makeFragment = dart.JsSymbol('_makeFragment');
1703 let _pathSegments = dart.JsSymbol('_pathSegments'); 1703 let _pathSegments = dart.JsSymbol('_pathSegments');
1704 let _queryParameters = dart.JsSymbol('_queryParameters'); 1704 let _queryParameters = dart.JsSymbol('_queryParameters');
1705 let _stringOrNullLength = dart.JsSymbol('_stringOrNullLength'); 1705 let _stringOrNullLength = dart.JsSymbol('_stringOrNullLength');
1706 let _makeHttpUri = dart.JsSymbol('_makeHttpUri'); 1706 let _makeHttpUri = dart.JsSymbol('_makeHttpUri');
1707 let _RIGHT_BRACKET = dart.JsSymbol('_RIGHT_BRACKET'); 1707 let _RIGHT_BRACKET = dart.JsSymbol('_RIGHT_BRACKET');
1708 let _isWindows = dart.JsSymbol('_isWindows'); 1708 let _isWindows = dart.JsSymbol('_isWindows');
1709 let _makeWindowsFileUrl = dart.JsSymbol('_makeWindowsFileUrl'); 1709 let _makeWindowsFileUrl = dart.JsSymbol('_makeWindowsFileUrl');
1710 let _makeFileUri = dart.JsSymbol('_makeFileUri'); 1710 let _makeFileUri = dart.JsSymbol('_makeFileUri');
1711 let _checkNonWindowsPathReservedCharacters = dart.JsSymbol('_checkNonWindowsPa thReservedCharacters'); 1711 let _checkNonWindowsPathReservedCharacters = dart.JsSymbol('_checkNonWindowsPa thReservedCharacters');
1712 let $forEach = dart.JsSymbol('$forEach');
1712 let _checkWindowsPathReservedCharacters = dart.JsSymbol('_checkWindowsPathRese rvedCharacters'); 1713 let _checkWindowsPathReservedCharacters = dart.JsSymbol('_checkWindowsPathRese rvedCharacters');
1713 let _checkWindowsDriveLetter = dart.JsSymbol('_checkWindowsDriveLetter'); 1714 let _checkWindowsDriveLetter = dart.JsSymbol('_checkWindowsDriveLetter');
1714 let _UPPER_CASE_A = dart.JsSymbol('_UPPER_CASE_A'); 1715 let _UPPER_CASE_A = dart.JsSymbol('_UPPER_CASE_A');
1715 let _UPPER_CASE_Z = dart.JsSymbol('_UPPER_CASE_Z'); 1716 let _UPPER_CASE_Z = dart.JsSymbol('_UPPER_CASE_Z');
1716 let _LOWER_CASE_A = dart.JsSymbol('_LOWER_CASE_A'); 1717 let _LOWER_CASE_A = dart.JsSymbol('_LOWER_CASE_A');
1717 let _LOWER_CASE_Z = dart.JsSymbol('_LOWER_CASE_Z'); 1718 let _LOWER_CASE_Z = dart.JsSymbol('_LOWER_CASE_Z');
1718 let _BACKSLASH = dart.JsSymbol('_BACKSLASH'); 1719 let _BACKSLASH = dart.JsSymbol('_BACKSLASH');
1720 let $map = dart.JsSymbol('$map');
1721 let $toList = dart.JsSymbol('$toList');
1719 let _normalizeRegName = dart.JsSymbol('_normalizeRegName'); 1722 let _normalizeRegName = dart.JsSymbol('_normalizeRegName');
1720 let _isRegNameChar = dart.JsSymbol('_isRegNameChar'); 1723 let _isRegNameChar = dart.JsSymbol('_isRegNameChar');
1721 let _PERCENT = dart.JsSymbol('_PERCENT'); 1724 let _PERCENT = dart.JsSymbol('_PERCENT');
1722 let _normalizeEscape = dart.JsSymbol('_normalizeEscape'); 1725 let _normalizeEscape = dart.JsSymbol('_normalizeEscape');
1723 let _isGeneralDelimiter = dart.JsSymbol('_isGeneralDelimiter'); 1726 let _isGeneralDelimiter = dart.JsSymbol('_isGeneralDelimiter');
1724 let _escapeChar = dart.JsSymbol('_escapeChar'); 1727 let _escapeChar = dart.JsSymbol('_escapeChar');
1725 let _isAlphabeticCharacter = dart.JsSymbol('_isAlphabeticCharacter'); 1728 let _isAlphabeticCharacter = dart.JsSymbol('_isAlphabeticCharacter');
1726 let _isSchemeCharacter = dart.JsSymbol('_isSchemeCharacter'); 1729 let _isSchemeCharacter = dart.JsSymbol('_isSchemeCharacter');
1727 let _normalize = dart.JsSymbol('_normalize'); 1730 let _normalize = dart.JsSymbol('_normalize');
1728 let _userinfoTable = dart.JsSymbol('_userinfoTable'); 1731 let _userinfoTable = dart.JsSymbol('_userinfoTable');
1729 let _pathCharOrSlashTable = dart.JsSymbol('_pathCharOrSlashTable'); 1732 let _pathCharOrSlashTable = dart.JsSymbol('_pathCharOrSlashTable');
1730 let _uriEncode = dart.JsSymbol('_uriEncode'); 1733 let _uriEncode = dart.JsSymbol('_uriEncode');
1731 let _pathCharTable = dart.JsSymbol('_pathCharTable'); 1734 let _pathCharTable = dart.JsSymbol('_pathCharTable');
1732 let _queryCharTable = dart.JsSymbol('_queryCharTable'); 1735 let _queryCharTable = dart.JsSymbol('_queryCharTable');
1733 let _isHexDigit = dart.JsSymbol('_isHexDigit'); 1736 let _isHexDigit = dart.JsSymbol('_isHexDigit');
1734 let _LOWER_CASE_F = dart.JsSymbol('_LOWER_CASE_F'); 1737 let _LOWER_CASE_F = dart.JsSymbol('_LOWER_CASE_F');
1735 let _hexValue = dart.JsSymbol('_hexValue'); 1738 let _hexValue = dart.JsSymbol('_hexValue');
1736 let _isUnreservedChar = dart.JsSymbol('_isUnreservedChar'); 1739 let _isUnreservedChar = dart.JsSymbol('_isUnreservedChar');
1737 let _unreservedTable = dart.JsSymbol('_unreservedTable'); 1740 let _unreservedTable = dart.JsSymbol('_unreservedTable');
1738 let _schemeTable = dart.JsSymbol('_schemeTable'); 1741 let _schemeTable = dart.JsSymbol('_schemeTable');
1739 let _genDelimitersTable = dart.JsSymbol('_genDelimitersTable'); 1742 let _genDelimitersTable = dart.JsSymbol('_genDelimitersTable');
1740 let _merge = dart.JsSymbol('_merge'); 1743 let _merge = dart.JsSymbol('_merge');
1741 let _DOT = dart.JsSymbol('_DOT'); 1744 let _DOT = dart.JsSymbol('_DOT');
1742 let _hasDotSegments = dart.JsSymbol('_hasDotSegments'); 1745 let _hasDotSegments = dart.JsSymbol('_hasDotSegments');
1743 let _removeDotSegments = dart.JsSymbol('_removeDotSegments'); 1746 let _removeDotSegments = dart.JsSymbol('_removeDotSegments');
1747 let $isEmpty = dart.JsSymbol('$isEmpty');
1748 let $removeLast = dart.JsSymbol('$removeLast');
1744 let _toWindowsFilePath = dart.JsSymbol('_toWindowsFilePath'); 1749 let _toWindowsFilePath = dart.JsSymbol('_toWindowsFilePath');
1745 let _toFilePath = dart.JsSymbol('_toFilePath'); 1750 let _toFilePath = dart.JsSymbol('_toFilePath');
1746 let _isPathAbsolute = dart.JsSymbol('_isPathAbsolute'); 1751 let _isPathAbsolute = dart.JsSymbol('_isPathAbsolute');
1747 let _addIfNonEmpty = dart.JsSymbol('_addIfNonEmpty'); 1752 let _addIfNonEmpty = dart.JsSymbol('_addIfNonEmpty');
1748 let _unreserved2396Table = dart.JsSymbol('_unreserved2396Table'); 1753 let _unreserved2396Table = dart.JsSymbol('_unreserved2396Table');
1749 let _uriDecode = dart.JsSymbol('_uriDecode'); 1754 let _uriDecode = dart.JsSymbol('_uriDecode');
1750 let _encodeFullTable = dart.JsSymbol('_encodeFullTable'); 1755 let _encodeFullTable = dart.JsSymbol('_encodeFullTable');
1756 let $fold = dart.JsSymbol('$fold');
1751 let _SPACE = dart.JsSymbol('_SPACE'); 1757 let _SPACE = dart.JsSymbol('_SPACE');
1752 let _PLUS = dart.JsSymbol('_PLUS'); 1758 let _PLUS = dart.JsSymbol('_PLUS');
1753 let _hexCharPairToByte = dart.JsSymbol('_hexCharPairToByte'); 1759 let _hexCharPairToByte = dart.JsSymbol('_hexCharPairToByte');
1754 let $forEach = dart.JsSymbol('$forEach');
1755 let $map = dart.JsSymbol('$map');
1756 let $toList = dart.JsSymbol('$toList');
1757 let $isEmpty = dart.JsSymbol('$isEmpty');
1758 let $removeLast = dart.JsSymbol('$removeLast');
1759 let $fold = dart.JsSymbol('$fold');
1760 class Uri extends Object { 1760 class Uri extends Object {
1761 get authority() { 1761 get authority() {
1762 if (!dart.notNull(this.hasAuthority)) 1762 if (!dart.notNull(this.hasAuthority))
1763 return ""; 1763 return "";
1764 let sb = new StringBuffer(); 1764 let sb = new StringBuffer();
1765 this[_writeAuthority](sb); 1765 this[_writeAuthority](sb);
1766 return sb.toString(); 1766 return sb.toString();
1767 } 1767 }
1768 get userInfo() { 1768 get userInfo() {
1769 return this[_userInfo]; 1769 return this[_userInfo];
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
1958 } 1958 }
1959 } else if (char == Uri[_NUMBER_SIGN]) { 1959 } else if (char == Uri[_NUMBER_SIGN]) {
1960 fragment = Uri[_makeFragment](uri, dart.notNull(index) + 1, uri.length); 1960 fragment = Uri[_makeFragment](uri, dart.notNull(index) + 1, uri.length);
1961 } 1961 }
1962 return new Uri[_internal](scheme, userinfo, host, port, path, query, fragm ent); 1962 return new Uri[_internal](scheme, userinfo, host, port, path, query, fragm ent);
1963 } 1963 }
1964 static [_fail](uri, index, message) { 1964 static [_fail](uri, index, message) {
1965 throw new FormatException(message, uri, index); 1965 throw new FormatException(message, uri, index);
1966 } 1966 }
1967 [_internal](scheme, userInfo, host, port, path, query, fragment) { 1967 [_internal](scheme, userInfo, host, port, path, query, fragment) {
1968 this.scheme = scheme; 1968 dart.initField(Uri, this, 'scheme', scheme);
1969 this[_userInfo] = userInfo; 1969 dart.initField(Uri, this, _userInfo, userInfo);
1970 this[_host] = host; 1970 dart.initField(Uri, this, _host, host);
1971 this[_port] = port; 1971 dart.initField(Uri, this, _port, port);
1972 this[_path] = path; 1972 dart.initField(Uri, this, _path, path);
1973 this[_query] = query; 1973 dart.initField(Uri, this, _query, query);
1974 this[_fragment] = fragment; 1974 dart.initField(Uri, this, _fragment, fragment);
1975 this[_pathSegments] = null; 1975 dart.initField(Uri, this, _pathSegments, null);
1976 this[_queryParameters] = null; 1976 dart.initField(Uri, this, _queryParameters, null);
1977 } 1977 }
1978 Uri(opts) { 1978 Uri(opts) {
1979 let scheme = opts && 'scheme' in opts ? opts.scheme : ""; 1979 let scheme = opts && 'scheme' in opts ? opts.scheme : "";
1980 let userInfo = opts && 'userInfo' in opts ? opts.userInfo : ""; 1980 let userInfo = opts && 'userInfo' in opts ? opts.userInfo : "";
1981 let host = opts && 'host' in opts ? opts.host : null; 1981 let host = opts && 'host' in opts ? opts.host : null;
1982 let port = opts && 'port' in opts ? opts.port : null; 1982 let port = opts && 'port' in opts ? opts.port : null;
1983 let path = opts && 'path' in opts ? opts.path : null; 1983 let path = opts && 'path' in opts ? opts.path : null;
1984 let pathSegments = opts && 'pathSegments' in opts ? opts.pathSegments : nu ll; 1984 let pathSegments = opts && 'pathSegments' in opts ? opts.pathSegments : nu ll;
1985 let query = opts && 'query' in opts ? opts.query : null; 1985 let query = opts && 'query' in opts ? opts.query : null;
1986 let queryParameters = opts && 'queryParameters' in opts ? opts.queryParame ters : null; 1986 let queryParameters = opts && 'queryParameters' in opts ? opts.queryParame ters : null;
(...skipping 1158 matching lines...) Expand 10 before | Expand all | Expand 10 after
3145 exports.Symbol = Symbol; 3145 exports.Symbol = Symbol;
3146 exports.Type = Type; 3146 exports.Type = Type;
3147 exports.$forEach = $forEach; 3147 exports.$forEach = $forEach;
3148 exports.$map = $map; 3148 exports.$map = $map;
3149 exports.$toList = $toList; 3149 exports.$toList = $toList;
3150 exports.$isEmpty = $isEmpty; 3150 exports.$isEmpty = $isEmpty;
3151 exports.$removeLast = $removeLast; 3151 exports.$removeLast = $removeLast;
3152 exports.$fold = $fold; 3152 exports.$fold = $fold;
3153 exports.Uri = Uri; 3153 exports.Uri = Uri;
3154 })(core || (core = {})); 3154 })(core || (core = {}));
OLDNEW
« no previous file with comments | « lib/runtime/dart/convert.js ('k') | lib/runtime/dart/isolate.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698