OLD | NEW |
---|---|
1 dart_library.library('dart/core', null, /* Imports */[ | 1 dart_library.library('dart/core', null, /* Imports */[ |
2 "dart_runtime/dart" | 2 "dart_runtime/dart" |
3 ], /* Lazy imports */[ | 3 ], /* Lazy imports */[ |
4 'dart/_js_helper', | 4 'dart/_js_helper', |
5 'dart/_internal', | 5 'dart/_internal', |
6 'dart/collection', | 6 'dart/collection', |
7 'dart/_interceptors', | 7 'dart/_interceptors', |
8 'dart/convert' | 8 'dart/convert' |
9 ], function(exports, dart, _js_helper, _internal, collection, _interceptors, con vert) { | 9 ], function(exports, dart, _js_helper, _internal, collection, _interceptors, con vert) { |
10 'use strict'; | 10 'use strict'; |
11 let dartx = dart.dartx; | 11 let dartx = dart.dartx; |
12 class Object { | 12 exports.Object = (() => { |
13 constructor() { | 13 class Object { |
14 let name = this.constructor.name; | 14 constructor() { |
15 let result = void 0; | 15 let name = this.constructor.name; |
16 if (name in this) | 16 let result = void 0; |
17 result = this[name](...arguments); | 17 if (name in this) |
18 return result === void 0 ? this : result; | 18 result = this[name](...arguments); |
19 return result === void 0 ? this : result; | |
20 } | |
21 ['=='](other) { | |
22 return identical(this, other); | |
23 } | |
24 get hashCode() { | |
25 return _js_helper.Primitives.objectHashCode(this); | |
26 } | |
27 toString() { | |
28 return _js_helper.Primitives.objectToString(this); | |
29 } | |
30 noSuchMethod(invocation) { | |
31 dart.throw(new NoSuchMethodError(this, invocation.memberName, invocation .positionalArguments, invocation.namedArguments)); | |
32 } | |
33 get runtimeType() { | |
34 return dart.realRuntimeType(this); | |
35 } | |
19 } | 36 } |
20 ['=='](other) { | 37 dart.setSignature(Object, { |
21 return identical(this, other); | 38 constructors: () => ({Object: [exports.Object, []]}), |
22 } | 39 methods: () => ({ |
23 get hashCode() { | 40 '==': [bool, [dart.dynamic]], |
24 return _js_helper.Primitives.objectHashCode(this); | 41 toString: [String, []], |
25 } | 42 noSuchMethod: [dart.dynamic, [Invocation]] |
26 toString() { | 43 }) |
27 return _js_helper.Primitives.objectToString(this); | 44 }); |
28 } | 45 return Object; |
29 noSuchMethod(invocation) { | 46 })(); |
30 dart.throw(new NoSuchMethodError(this, invocation.memberName, invocation.p ositionalArguments, invocation.namedArguments)); | 47 class Deprecated extends exports.Object { |
31 } | |
32 get runtimeType() { | |
33 return dart.realRuntimeType(this); | |
34 } | |
35 } | |
36 dart.setSignature(Object, { | |
37 constructors: () => ({Object: [Object, []]}), | |
38 methods: () => ({ | |
39 '==': [bool, [dart.dynamic]], | |
40 toString: [String, []], | |
41 noSuchMethod: [dart.dynamic, [Invocation]] | |
42 }) | |
43 }); | |
44 class Deprecated extends Object { | |
45 Deprecated(expires) { | 48 Deprecated(expires) { |
46 this.expires = expires; | 49 this.expires = expires; |
47 } | 50 } |
48 toString() { | 51 toString() { |
49 return `Deprecated feature. Will be removed ${this.expires}`; | 52 return `Deprecated feature. Will be removed ${this.expires}`; |
50 } | 53 } |
51 } | 54 } |
52 dart.setSignature(Deprecated, { | 55 dart.setSignature(Deprecated, { |
53 constructors: () => ({Deprecated: [Deprecated, [String]]}) | 56 constructors: () => ({Deprecated: [Deprecated, [String]]}) |
54 }); | 57 }); |
55 class _Override extends Object { | 58 class _Override extends exports.Object { |
56 _Override() { | 59 _Override() { |
57 } | 60 } |
58 } | 61 } |
59 dart.setSignature(_Override, { | 62 dart.setSignature(_Override, { |
60 constructors: () => ({_Override: [_Override, []]}) | 63 constructors: () => ({_Override: [_Override, []]}) |
61 }); | 64 }); |
62 let deprecated = dart.const(new Deprecated("next release")); | 65 let deprecated = dart.const(new Deprecated("next release")); |
63 let override = dart.const(new _Override()); | 66 let override = dart.const(new _Override()); |
64 class _Proxy extends Object { | 67 class _Proxy extends exports.Object { |
65 _Proxy() { | 68 _Proxy() { |
66 } | 69 } |
67 } | 70 } |
68 dart.setSignature(_Proxy, { | 71 dart.setSignature(_Proxy, { |
69 constructors: () => ({_Proxy: [_Proxy, []]}) | 72 constructors: () => ({_Proxy: [_Proxy, []]}) |
70 }); | 73 }); |
71 let proxy = dart.const(new _Proxy()); | 74 let proxy = dart.const(new _Proxy()); |
72 dart.defineExtensionNames([ | 75 dart.defineExtensionNames([ |
73 'toString' | 76 'toString' |
74 ]); | 77 ]); |
75 class bool extends Object { | 78 class bool extends exports.Object { |
76 static fromEnvironment(name, opts) { | 79 static fromEnvironment(name, opts) { |
77 let defaultValue = opts && 'defaultValue' in opts ? opts.defaultValue : fa lse; | 80 let defaultValue = opts && 'defaultValue' in opts ? opts.defaultValue : fa lse; |
78 dart.throw(new UnsupportedError('bool.fromEnvironment can only be used as a const constructor')); | 81 dart.throw(new UnsupportedError('bool.fromEnvironment can only be used as a const constructor')); |
79 } | 82 } |
80 toString() { | 83 toString() { |
81 return this ? "true" : "false"; | 84 return this ? "true" : "false"; |
82 } | 85 } |
83 } | 86 } |
84 dart.setSignature(bool, { | 87 dart.setSignature(bool, { |
85 constructors: () => ({fromEnvironment: [bool, [String], {defaultValue: bool} ]}) | 88 constructors: () => ({fromEnvironment: [bool, [String], {defaultValue: bool} ]}) |
86 }); | 89 }); |
87 let Comparator$ = dart.generic(function(T) { | 90 let Comparator$ = dart.generic(function(T) { |
88 let Comparator = dart.typedef('Comparator', () => dart.functionType(int, [T, T])); | 91 let Comparator = dart.typedef('Comparator', () => dart.functionType(int, [T, T])); |
89 return Comparator; | 92 return Comparator; |
90 }); | 93 }); |
91 let Comparator = Comparator$(); | 94 let Comparator = Comparator$(); |
92 let Comparable$ = dart.generic(function(T) { | 95 let Comparable$ = dart.generic(function(T) { |
93 class Comparable extends Object { | 96 class Comparable extends exports.Object { |
94 static compare(a, b) { | 97 static compare(a, b) { |
95 return a[dartx.compareTo](b); | 98 return a[dartx.compareTo](b); |
96 } | 99 } |
97 } | 100 } |
98 dart.setSignature(Comparable, { | 101 dart.setSignature(Comparable, { |
99 statics: () => ({compare: [int, [Comparable$(), Comparable$()]]}), | 102 statics: () => ({compare: [int, [Comparable$(), Comparable$()]]}), |
100 names: ['compare'] | 103 names: ['compare'] |
101 }); | 104 }); |
102 return Comparable; | 105 return Comparable; |
103 }); | 106 }); |
104 let Comparable = Comparable$(); | 107 let Comparable = Comparable$(); |
105 class DateTime extends Object { | 108 class DateTime extends exports.Object { |
106 DateTime(year, month, day, hour, minute, second, millisecond) { | 109 DateTime(year, month, day, hour, minute, second, millisecond) { |
107 if (month === void 0) | 110 if (month === void 0) |
108 month = 1; | 111 month = 1; |
109 if (day === void 0) | 112 if (day === void 0) |
110 day = 1; | 113 day = 1; |
111 if (hour === void 0) | 114 if (hour === void 0) |
112 hour = 0; | 115 hour = 0; |
113 if (minute === void 0) | 116 if (minute === void 0) |
114 minute = 0; | 117 minute = 0; |
115 if (second === void 0) | 118 if (second === void 0) |
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
399 DateTime.MAY = 5; | 402 DateTime.MAY = 5; |
400 DateTime.JUNE = 6; | 403 DateTime.JUNE = 6; |
401 DateTime.JULY = 7; | 404 DateTime.JULY = 7; |
402 DateTime.AUGUST = 8; | 405 DateTime.AUGUST = 8; |
403 DateTime.SEPTEMBER = 9; | 406 DateTime.SEPTEMBER = 9; |
404 DateTime.OCTOBER = 10; | 407 DateTime.OCTOBER = 10; |
405 DateTime.NOVEMBER = 11; | 408 DateTime.NOVEMBER = 11; |
406 DateTime.DECEMBER = 12; | 409 DateTime.DECEMBER = 12; |
407 DateTime.MONTHS_PER_YEAR = 12; | 410 DateTime.MONTHS_PER_YEAR = 12; |
408 DateTime._MAX_MILLISECONDS_SINCE_EPOCH = 8640000000000000; | 411 DateTime._MAX_MILLISECONDS_SINCE_EPOCH = 8640000000000000; |
409 class num extends Object { | 412 class num extends exports.Object { |
410 static parse(input, onError) { | 413 static parse(input, onError) { |
411 if (onError === void 0) | 414 if (onError === void 0) |
412 onError = null; | 415 onError = null; |
413 let source = input[dartx.trim](); | 416 let source = input[dartx.trim](); |
414 num._parseError = false; | 417 num._parseError = false; |
415 let result = int.parse(source, {onError: num._onParseErrorInt}); | 418 let result = int.parse(source, {onError: num._onParseErrorInt}); |
416 if (!dart.notNull(num._parseError)) | 419 if (!dart.notNull(num._parseError)) |
417 return result; | 420 return result; |
418 num._parseError = false; | 421 num._parseError = false; |
419 result = double.parse(source, num._onParseErrorDouble); | 422 result = double.parse(source, num._onParseErrorDouble); |
(...skipping 30 matching lines...) Expand all Loading... | |
450 } | 453 } |
451 dart.setSignature(double, { | 454 dart.setSignature(double, { |
452 statics: () => ({parse: [double, [String], [dart.functionType(double, [Strin g])]]}), | 455 statics: () => ({parse: [double, [String], [dart.functionType(double, [Strin g])]]}), |
453 names: ['parse'] | 456 names: ['parse'] |
454 }); | 457 }); |
455 double.NAN = 0.0 / 0.0; | 458 double.NAN = 0.0 / 0.0; |
456 double.INFINITY = 1.0 / 0.0; | 459 double.INFINITY = 1.0 / 0.0; |
457 double.NEGATIVE_INFINITY = -dart.notNull(double.INFINITY); | 460 double.NEGATIVE_INFINITY = -dart.notNull(double.INFINITY); |
458 double.MIN_POSITIVE = 5e-324; | 461 double.MIN_POSITIVE = 5e-324; |
459 double.MAX_FINITE = 1.7976931348623157e+308; | 462 double.MAX_FINITE = 1.7976931348623157e+308; |
460 let _duration = dart.JsSymbol('_duration'); | 463 let _duration = Symbol('_duration'); |
461 class Duration extends Object { | 464 class Duration extends exports.Object { |
462 Duration(opts) { | 465 Duration(opts) { |
463 let days = opts && 'days' in opts ? opts.days : 0; | 466 let days = opts && 'days' in opts ? opts.days : 0; |
464 let hours = opts && 'hours' in opts ? opts.hours : 0; | 467 let hours = opts && 'hours' in opts ? opts.hours : 0; |
465 let minutes = opts && 'minutes' in opts ? opts.minutes : 0; | 468 let minutes = opts && 'minutes' in opts ? opts.minutes : 0; |
466 let seconds = opts && 'seconds' in opts ? opts.seconds : 0; | 469 let seconds = opts && 'seconds' in opts ? opts.seconds : 0; |
467 let milliseconds = opts && 'milliseconds' in opts ? opts.milliseconds : 0; | 470 let milliseconds = opts && 'milliseconds' in opts ? opts.milliseconds : 0; |
468 let microseconds = opts && 'microseconds' in opts ? opts.microseconds : 0; | 471 let microseconds = opts && 'microseconds' in opts ? opts.microseconds : 0; |
469 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)); | 472 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)); |
470 } | 473 } |
471 _microseconds(duration) { | 474 _microseconds(duration) { |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
596 Duration.MICROSECONDS_PER_MINUTE = dart.notNull(Duration.MICROSECONDS_PER_SECO ND) * dart.notNull(Duration.SECONDS_PER_MINUTE); | 599 Duration.MICROSECONDS_PER_MINUTE = dart.notNull(Duration.MICROSECONDS_PER_SECO ND) * dart.notNull(Duration.SECONDS_PER_MINUTE); |
597 Duration.MICROSECONDS_PER_HOUR = dart.notNull(Duration.MICROSECONDS_PER_MINUTE ) * dart.notNull(Duration.MINUTES_PER_HOUR); | 600 Duration.MICROSECONDS_PER_HOUR = dart.notNull(Duration.MICROSECONDS_PER_MINUTE ) * dart.notNull(Duration.MINUTES_PER_HOUR); |
598 Duration.MICROSECONDS_PER_DAY = dart.notNull(Duration.MICROSECONDS_PER_HOUR) * dart.notNull(Duration.HOURS_PER_DAY); | 601 Duration.MICROSECONDS_PER_DAY = dart.notNull(Duration.MICROSECONDS_PER_HOUR) * dart.notNull(Duration.HOURS_PER_DAY); |
599 Duration.MILLISECONDS_PER_MINUTE = dart.notNull(Duration.MILLISECONDS_PER_SECO ND) * dart.notNull(Duration.SECONDS_PER_MINUTE); | 602 Duration.MILLISECONDS_PER_MINUTE = dart.notNull(Duration.MILLISECONDS_PER_SECO ND) * dart.notNull(Duration.SECONDS_PER_MINUTE); |
600 Duration.MILLISECONDS_PER_HOUR = dart.notNull(Duration.MILLISECONDS_PER_MINUTE ) * dart.notNull(Duration.MINUTES_PER_HOUR); | 603 Duration.MILLISECONDS_PER_HOUR = dart.notNull(Duration.MILLISECONDS_PER_MINUTE ) * dart.notNull(Duration.MINUTES_PER_HOUR); |
601 Duration.MILLISECONDS_PER_DAY = dart.notNull(Duration.MILLISECONDS_PER_HOUR) * dart.notNull(Duration.HOURS_PER_DAY); | 604 Duration.MILLISECONDS_PER_DAY = dart.notNull(Duration.MILLISECONDS_PER_HOUR) * dart.notNull(Duration.HOURS_PER_DAY); |
602 Duration.SECONDS_PER_HOUR = dart.notNull(Duration.SECONDS_PER_MINUTE) * dart.n otNull(Duration.MINUTES_PER_HOUR); | 605 Duration.SECONDS_PER_HOUR = dart.notNull(Duration.SECONDS_PER_MINUTE) * dart.n otNull(Duration.MINUTES_PER_HOUR); |
603 Duration.SECONDS_PER_DAY = dart.notNull(Duration.SECONDS_PER_HOUR) * dart.notN ull(Duration.HOURS_PER_DAY); | 606 Duration.SECONDS_PER_DAY = dart.notNull(Duration.SECONDS_PER_HOUR) * dart.notN ull(Duration.HOURS_PER_DAY); |
604 Duration.MINUTES_PER_DAY = dart.notNull(Duration.MINUTES_PER_HOUR) * dart.notN ull(Duration.HOURS_PER_DAY); | 607 Duration.MINUTES_PER_DAY = dart.notNull(Duration.MINUTES_PER_HOUR) * dart.notN ull(Duration.HOURS_PER_DAY); |
605 Duration.ZERO = dart.const(new Duration({seconds: 0})); | 608 Duration.ZERO = dart.const(new Duration({seconds: 0})); |
606 class Error extends Object { | 609 exports.Error = (() => { |
607 Error() { | 610 class Error extends exports.Object { |
611 Error() { | |
612 } | |
613 static safeToString(object) { | |
614 if (dart.is(object, num) || typeof object == 'boolean' || null == object ) { | |
615 return dart.toString(object); | |
616 } | |
617 if (typeof object == 'string') { | |
618 return exports.Error._stringToSafeString(object); | |
619 } | |
620 return exports.Error._objectToString(object); | |
621 } | |
622 static _stringToSafeString(string) { | |
623 return _js_helper.jsonEncodeNative(string); | |
624 } | |
625 static _objectToString(object) { | |
626 return _js_helper.Primitives.objectToString(object); | |
627 } | |
628 get stackTrace() { | |
629 return _js_helper.Primitives.extractStackTrace(this); | |
630 } | |
608 } | 631 } |
609 static safeToString(object) { | 632 dart.setSignature(Error, { |
610 if (dart.is(object, num) || typeof object == 'boolean' || null == object) { | 633 constructors: () => ({Error: [exports.Error, []]}), |
611 return dart.toString(object); | 634 statics: () => ({ |
612 } | 635 safeToString: [String, [exports.Object]], |
613 if (typeof object == 'string') { | 636 _stringToSafeString: [String, [String]], |
614 return Error._stringToSafeString(object); | 637 _objectToString: [String, [exports.Object]] |
615 } | 638 }), |
616 return Error._objectToString(object); | 639 names: ['safeToString', '_stringToSafeString', '_objectToString'] |
617 } | 640 }); |
618 static _stringToSafeString(string) { | 641 return Error; |
619 return _js_helper.jsonEncodeNative(string); | 642 })(); |
620 } | 643 class AssertionError extends exports.Error { |
621 static _objectToString(object) { | |
622 return _js_helper.Primitives.objectToString(object); | |
623 } | |
624 get stackTrace() { | |
625 return _js_helper.Primitives.extractStackTrace(this); | |
626 } | |
627 } | |
628 dart.setSignature(Error, { | |
629 constructors: () => ({Error: [Error, []]}), | |
630 statics: () => ({ | |
631 safeToString: [String, [Object]], | |
632 _stringToSafeString: [String, [String]], | |
633 _objectToString: [String, [Object]] | |
634 }), | |
635 names: ['safeToString', '_stringToSafeString', '_objectToString'] | |
636 }); | |
637 class AssertionError extends Error { | |
638 AssertionError() { | 644 AssertionError() { |
639 super.Error(); | 645 super.Error(); |
640 } | 646 } |
641 } | 647 } |
642 class TypeError extends AssertionError {} | 648 class TypeError extends AssertionError {} |
643 class CastError extends Error { | 649 class CastError extends exports.Error { |
644 CastError() { | 650 CastError() { |
645 super.Error(); | 651 super.Error(); |
646 } | 652 } |
647 } | 653 } |
648 class NullThrownError extends Error { | 654 class NullThrownError extends exports.Error { |
649 NullThrownError() { | 655 NullThrownError() { |
650 super.Error(); | 656 super.Error(); |
651 } | 657 } |
652 toString() { | 658 toString() { |
653 return "Throw of null."; | 659 return "Throw of null."; |
654 } | 660 } |
655 } | 661 } |
656 let _hasValue = dart.JsSymbol('_hasValue'); | 662 let _hasValue = Symbol('_hasValue'); |
657 class ArgumentError extends Error { | 663 class ArgumentError extends exports.Error { |
658 ArgumentError(message) { | 664 ArgumentError(message) { |
659 if (message === void 0) | 665 if (message === void 0) |
660 message = null; | 666 message = null; |
661 this.message = message; | 667 this.message = message; |
662 this.invalidValue = null; | 668 this.invalidValue = null; |
663 this[_hasValue] = false; | 669 this[_hasValue] = false; |
664 this.name = null; | 670 this.name = null; |
665 super.Error(); | 671 super.Error(); |
666 } | 672 } |
667 value(value, name, message) { | 673 value(value, name, message) { |
(...skipping 17 matching lines...) Expand all Loading... | |
685 let result = "Invalid arguments(s)"; | 691 let result = "Invalid arguments(s)"; |
686 if (this.message != null) { | 692 if (this.message != null) { |
687 result = `${result}: ${this.message}`; | 693 result = `${result}: ${this.message}`; |
688 } | 694 } |
689 return result; | 695 return result; |
690 } | 696 } |
691 let nameString = ""; | 697 let nameString = ""; |
692 if (this.name != null) { | 698 if (this.name != null) { |
693 nameString = ` (${this.name})`; | 699 nameString = ` (${this.name})`; |
694 } | 700 } |
695 return `${this.message}${nameString}: ${Error.safeToString(this.invalidVal ue)}`; | 701 return `${this.message}${nameString}: ${exports.Error.safeToString(this.in validValue)}`; |
696 } | 702 } |
697 } | 703 } |
698 dart.defineNamedConstructor(ArgumentError, 'value'); | 704 dart.defineNamedConstructor(ArgumentError, 'value'); |
699 dart.defineNamedConstructor(ArgumentError, 'notNull'); | 705 dart.defineNamedConstructor(ArgumentError, 'notNull'); |
700 dart.setSignature(ArgumentError, { | 706 dart.setSignature(ArgumentError, { |
701 constructors: () => ({ | 707 constructors: () => ({ |
702 ArgumentError: [ArgumentError, [], [dart.dynamic]], | 708 ArgumentError: [ArgumentError, [], [dart.dynamic]], |
703 value: [ArgumentError, [dart.dynamic], [String, String]], | 709 value: [ArgumentError, [dart.dynamic], [String, String]], |
704 notNull: [ArgumentError, [], [String]] | 710 notNull: [ArgumentError, [], [String]] |
705 }) | 711 }) |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
777 if (name === void 0) | 783 if (name === void 0) |
778 name = null; | 784 name = null; |
779 if (message === void 0) | 785 if (message === void 0) |
780 message = null; | 786 message = null; |
781 if (dart.notNull(value) < 0) | 787 if (dart.notNull(value) < 0) |
782 dart.throw(new RangeError.range(value, 0, null, name, message)); | 788 dart.throw(new RangeError.range(value, 0, null, name, message)); |
783 } | 789 } |
784 toString() { | 790 toString() { |
785 if (!dart.notNull(this[_hasValue])) | 791 if (!dart.notNull(this[_hasValue])) |
786 return `RangeError: ${this.message}`; | 792 return `RangeError: ${this.message}`; |
787 let value = Error.safeToString(this.invalidValue); | 793 let value = exports.Error.safeToString(this.invalidValue); |
788 let explanation = ""; | 794 let explanation = ""; |
789 if (this.start == null) { | 795 if (this.start == null) { |
790 if (this.end != null) { | 796 if (this.end != null) { |
791 explanation = `: Not less than or equal to ${this.end}`; | 797 explanation = `: Not less than or equal to ${this.end}`; |
792 } | 798 } |
793 } else if (this.end == null) { | 799 } else if (this.end == null) { |
794 explanation = `: Not greater than or equal to ${this.start}`; | 800 explanation = `: Not greater than or equal to ${this.start}`; |
795 } else if (dart.notNull(this.end) > dart.notNull(this.start)) { | 801 } else if (dart.notNull(this.end) > dart.notNull(this.start)) { |
796 explanation = `: Not in range ${this.start}..${this.end}, inclusive.`; | 802 explanation = `: Not in range ${this.start}..${this.end}, inclusive.`; |
797 } else if (dart.notNull(this.end) < dart.notNull(this.start)) { | 803 } else if (dart.notNull(this.end) < dart.notNull(this.start)) { |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
832 super.value(invalidValue, name, message != null ? message : "Index out of range"); | 838 super.value(invalidValue, name, message != null ? message : "Index out of range"); |
833 } | 839 } |
834 get start() { | 840 get start() { |
835 return 0; | 841 return 0; |
836 } | 842 } |
837 get end() { | 843 get end() { |
838 return dart.notNull(this.length) - 1; | 844 return dart.notNull(this.length) - 1; |
839 } | 845 } |
840 toString() { | 846 toString() { |
841 dart.assert(this[_hasValue]); | 847 dart.assert(this[_hasValue]); |
842 let target = Error.safeToString(this.indexable); | 848 let target = exports.Error.safeToString(this.indexable); |
843 let explanation = `index should be less than ${this.length}`; | 849 let explanation = `index should be less than ${this.length}`; |
844 if (dart.notNull(dart.as(dart.dsend(this.invalidValue, '<', 0), bool))) { | 850 if (dart.notNull(dart.as(dart.dsend(this.invalidValue, '<', 0), bool))) { |
845 explanation = "index must not be negative"; | 851 explanation = "index must not be negative"; |
846 } | 852 } |
847 return `RangeError: ${this.message} (${target}[${this.invalidValue}]): ${e xplanation}`; | 853 return `RangeError: ${this.message} (${target}[${this.invalidValue}]): ${e xplanation}`; |
848 } | 854 } |
849 } | 855 } |
850 IndexError[dart.implements] = () => [RangeError]; | 856 IndexError[dart.implements] = () => [RangeError]; |
851 dart.setSignature(IndexError, { | 857 dart.setSignature(IndexError, { |
852 constructors: () => ({IndexError: [IndexError, [int, dart.dynamic], [String, String, int]]}) | 858 constructors: () => ({IndexError: [IndexError, [int, dart.dynamic], [String, String, int]]}) |
853 }); | 859 }); |
854 class FallThroughError extends Error { | 860 class FallThroughError extends exports.Error { |
855 FallThroughError() { | 861 FallThroughError() { |
856 super.Error(); | 862 super.Error(); |
857 } | 863 } |
858 } | 864 } |
859 dart.setSignature(FallThroughError, { | 865 dart.setSignature(FallThroughError, { |
860 constructors: () => ({FallThroughError: [FallThroughError, []]}) | 866 constructors: () => ({FallThroughError: [FallThroughError, []]}) |
861 }); | 867 }); |
862 let _className = dart.JsSymbol('_className'); | 868 let _className = Symbol('_className'); |
863 class AbstractClassInstantiationError extends Error { | 869 class AbstractClassInstantiationError extends exports.Error { |
864 AbstractClassInstantiationError(className) { | 870 AbstractClassInstantiationError(className) { |
865 this[_className] = className; | 871 this[_className] = className; |
866 super.Error(); | 872 super.Error(); |
867 } | 873 } |
868 toString() { | 874 toString() { |
869 return `Cannot instantiate abstract class: '${this[_className]}'`; | 875 return `Cannot instantiate abstract class: '${this[_className]}'`; |
870 } | 876 } |
871 } | 877 } |
872 dart.setSignature(AbstractClassInstantiationError, { | 878 dart.setSignature(AbstractClassInstantiationError, { |
873 constructors: () => ({AbstractClassInstantiationError: [AbstractClassInstant iationError, [String]]}) | 879 constructors: () => ({AbstractClassInstantiationError: [AbstractClassInstant iationError, [String]]}) |
874 }); | 880 }); |
875 let _receiver = dart.JsSymbol('_receiver'); | 881 let _receiver = Symbol('_receiver'); |
876 let _memberName = dart.JsSymbol('_memberName'); | 882 let _memberName = Symbol('_memberName'); |
877 let _arguments = dart.JsSymbol('_arguments'); | 883 let _arguments = Symbol('_arguments'); |
878 let _namedArguments = dart.JsSymbol('_namedArguments'); | 884 let _namedArguments = Symbol('_namedArguments'); |
879 let _existingArgumentNames = dart.JsSymbol('_existingArgumentNames'); | 885 let _existingArgumentNames = Symbol('_existingArgumentNames'); |
880 class NoSuchMethodError extends Error { | 886 class NoSuchMethodError extends exports.Error { |
881 NoSuchMethodError(receiver, memberName, positionalArguments, namedArguments, existingArgumentNames) { | 887 NoSuchMethodError(receiver, memberName, positionalArguments, namedArguments, existingArgumentNames) { |
882 if (existingArgumentNames === void 0) | 888 if (existingArgumentNames === void 0) |
883 existingArgumentNames = null; | 889 existingArgumentNames = null; |
884 this[_receiver] = receiver; | 890 this[_receiver] = receiver; |
885 this[_memberName] = memberName; | 891 this[_memberName] = memberName; |
886 this[_arguments] = positionalArguments; | 892 this[_arguments] = positionalArguments; |
887 this[_namedArguments] = namedArguments; | 893 this[_namedArguments] = namedArguments; |
888 this[_existingArgumentNames] = existingArgumentNames; | 894 this[_existingArgumentNames] = existingArgumentNames; |
889 super.Error(); | 895 super.Error(); |
890 } | 896 } |
891 toString() { | 897 toString() { |
892 let sb = new StringBuffer(); | 898 let sb = new StringBuffer(); |
893 let i = 0; | 899 let i = 0; |
894 if (this[_arguments] != null) { | 900 if (this[_arguments] != null) { |
895 for (; dart.notNull(i) < dart.notNull(this[_arguments][dartx.length]); i = dart.notNull(i) + 1) { | 901 for (; dart.notNull(i) < dart.notNull(this[_arguments][dartx.length]); i = dart.notNull(i) + 1) { |
896 if (dart.notNull(i) > 0) { | 902 if (dart.notNull(i) > 0) { |
897 sb.write(", "); | 903 sb.write(", "); |
898 } | 904 } |
899 sb.write(Error.safeToString(this[_arguments][dartx.get](i))); | 905 sb.write(exports.Error.safeToString(this[_arguments][dartx.get](i))); |
900 } | 906 } |
901 } | 907 } |
902 if (this[_namedArguments] != null) { | 908 if (this[_namedArguments] != null) { |
903 this[_namedArguments].forEach(dart.fn((key, value) => { | 909 this[_namedArguments].forEach(dart.fn((key, value) => { |
904 if (dart.notNull(i) > 0) { | 910 if (dart.notNull(i) > 0) { |
905 sb.write(", "); | 911 sb.write(", "); |
906 } | 912 } |
907 sb.write(_symbolToString(key)); | 913 sb.write(_symbolToString(key)); |
908 sb.write(": "); | 914 sb.write(": "); |
909 sb.write(Error.safeToString(value)); | 915 sb.write(exports.Error.safeToString(value)); |
910 i = dart.notNull(i) + 1; | 916 i = dart.notNull(i) + 1; |
911 }, dart.dynamic, [Symbol, dart.dynamic])); | 917 }, dart.dynamic, [exports.Symbol, dart.dynamic])); |
912 } | 918 } |
913 if (this[_existingArgumentNames] == null) { | 919 if (this[_existingArgumentNames] == null) { |
914 return `NoSuchMethodError : method not found: '${this[_memberName]}'\n` + `Receiver: ${Error.safeToString(this[_receiver])}\n` + `Arguments: [${sb}]`; | 920 return `NoSuchMethodError : method not found: '${this[_memberName]}'\n` + `Receiver: ${exports.Error.safeToString(this[_receiver])}\n` + `Arguments: [${ sb}]`; |
915 } else { | 921 } else { |
916 let actualParameters = dart.toString(sb); | 922 let actualParameters = dart.toString(sb); |
917 sb = new StringBuffer(); | 923 sb = new StringBuffer(); |
918 for (let i = 0; dart.notNull(i) < dart.notNull(this[_existingArgumentNam es][dartx.length]); i = dart.notNull(i) + 1) { | 924 for (let i = 0; dart.notNull(i) < dart.notNull(this[_existingArgumentNam es][dartx.length]); i = dart.notNull(i) + 1) { |
919 if (dart.notNull(i) > 0) { | 925 if (dart.notNull(i) > 0) { |
920 sb.write(", "); | 926 sb.write(", "); |
921 } | 927 } |
922 sb.write(this[_existingArgumentNames][dartx.get](i)); | 928 sb.write(this[_existingArgumentNames][dartx.get](i)); |
923 } | 929 } |
924 let formalParameters = dart.toString(sb); | 930 let formalParameters = dart.toString(sb); |
925 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})`; | 931 return "NoSuchMethodError: incorrect number of arguments passed to " + ` method named '${this[_memberName]}'\n` + `Receiver: ${exports.Error.safeToString (this[_receiver])}\n` + `Tried calling: ${this[_memberName]}(${actualParameters} )\n` + `Found: ${this[_memberName]}(${formalParameters})`; |
926 } | 932 } |
927 } | 933 } |
928 } | 934 } |
929 dart.setSignature(NoSuchMethodError, { | 935 dart.setSignature(NoSuchMethodError, { |
930 constructors: () => ({NoSuchMethodError: [NoSuchMethodError, [Object, Symbol , List, Map$(Symbol, dart.dynamic)], [List]]}) | 936 constructors: () => ({NoSuchMethodError: [NoSuchMethodError, [exports.Object , exports.Symbol, List, Map$(exports.Symbol, dart.dynamic)], [List]]}) |
931 }); | 937 }); |
932 class UnsupportedError extends Error { | 938 class UnsupportedError extends exports.Error { |
933 UnsupportedError(message) { | 939 UnsupportedError(message) { |
934 this.message = message; | 940 this.message = message; |
935 super.Error(); | 941 super.Error(); |
936 } | 942 } |
937 toString() { | 943 toString() { |
938 return `Unsupported operation: ${this.message}`; | 944 return `Unsupported operation: ${this.message}`; |
939 } | 945 } |
940 } | 946 } |
941 dart.setSignature(UnsupportedError, { | 947 dart.setSignature(UnsupportedError, { |
942 constructors: () => ({UnsupportedError: [UnsupportedError, [String]]}) | 948 constructors: () => ({UnsupportedError: [UnsupportedError, [String]]}) |
943 }); | 949 }); |
944 class UnimplementedError extends Error { | 950 class UnimplementedError extends exports.Error { |
945 UnimplementedError(message) { | 951 UnimplementedError(message) { |
946 if (message === void 0) | 952 if (message === void 0) |
947 message = null; | 953 message = null; |
948 this.message = message; | 954 this.message = message; |
949 super.Error(); | 955 super.Error(); |
950 } | 956 } |
951 toString() { | 957 toString() { |
952 return this.message != null ? `UnimplementedError: ${this.message}` : "Uni mplementedError"; | 958 return this.message != null ? `UnimplementedError: ${this.message}` : "Uni mplementedError"; |
953 } | 959 } |
954 } | 960 } |
955 UnimplementedError[dart.implements] = () => [UnsupportedError]; | 961 UnimplementedError[dart.implements] = () => [UnsupportedError]; |
956 dart.setSignature(UnimplementedError, { | 962 dart.setSignature(UnimplementedError, { |
957 constructors: () => ({UnimplementedError: [UnimplementedError, [], [String]] }) | 963 constructors: () => ({UnimplementedError: [UnimplementedError, [], [String]] }) |
958 }); | 964 }); |
959 class StateError extends Error { | 965 class StateError extends exports.Error { |
960 StateError(message) { | 966 StateError(message) { |
961 this.message = message; | 967 this.message = message; |
962 super.Error(); | 968 super.Error(); |
963 } | 969 } |
964 toString() { | 970 toString() { |
965 return `Bad state: ${this.message}`; | 971 return `Bad state: ${this.message}`; |
966 } | 972 } |
967 } | 973 } |
968 dart.setSignature(StateError, { | 974 dart.setSignature(StateError, { |
969 constructors: () => ({StateError: [StateError, [String]]}) | 975 constructors: () => ({StateError: [StateError, [String]]}) |
970 }); | 976 }); |
971 class ConcurrentModificationError extends Error { | 977 class ConcurrentModificationError extends exports.Error { |
972 ConcurrentModificationError(modifiedObject) { | 978 ConcurrentModificationError(modifiedObject) { |
973 if (modifiedObject === void 0) | 979 if (modifiedObject === void 0) |
974 modifiedObject = null; | 980 modifiedObject = null; |
975 this.modifiedObject = modifiedObject; | 981 this.modifiedObject = modifiedObject; |
976 super.Error(); | 982 super.Error(); |
977 } | 983 } |
978 toString() { | 984 toString() { |
979 if (this.modifiedObject == null) { | 985 if (this.modifiedObject == null) { |
980 return "Concurrent modification during iteration."; | 986 return "Concurrent modification during iteration."; |
981 } | 987 } |
982 return "Concurrent modification during iteration: " + `${Error.safeToStrin g(this.modifiedObject)}.`; | 988 return "Concurrent modification during iteration: " + `${exports.Error.saf eToString(this.modifiedObject)}.`; |
983 } | 989 } |
984 } | 990 } |
985 dart.setSignature(ConcurrentModificationError, { | 991 dart.setSignature(ConcurrentModificationError, { |
986 constructors: () => ({ConcurrentModificationError: [ConcurrentModificationEr ror, [], [Object]]}) | 992 constructors: () => ({ConcurrentModificationError: [ConcurrentModificationEr ror, [], [exports.Object]]}) |
987 }); | 993 }); |
988 class OutOfMemoryError extends Object { | 994 class OutOfMemoryError extends exports.Object { |
989 OutOfMemoryError() { | 995 OutOfMemoryError() { |
990 } | 996 } |
991 toString() { | 997 toString() { |
992 return "Out of Memory"; | 998 return "Out of Memory"; |
993 } | 999 } |
994 get stackTrace() { | 1000 get stackTrace() { |
995 return null; | 1001 return null; |
996 } | 1002 } |
997 } | 1003 } |
998 OutOfMemoryError[dart.implements] = () => [Error]; | 1004 OutOfMemoryError[dart.implements] = () => [exports.Error]; |
999 dart.setSignature(OutOfMemoryError, { | 1005 dart.setSignature(OutOfMemoryError, { |
1000 constructors: () => ({OutOfMemoryError: [OutOfMemoryError, []]}) | 1006 constructors: () => ({OutOfMemoryError: [OutOfMemoryError, []]}) |
1001 }); | 1007 }); |
1002 class StackOverflowError extends Object { | 1008 class StackOverflowError extends exports.Object { |
1003 StackOverflowError() { | 1009 StackOverflowError() { |
1004 } | 1010 } |
1005 toString() { | 1011 toString() { |
1006 return "Stack Overflow"; | 1012 return "Stack Overflow"; |
1007 } | 1013 } |
1008 get stackTrace() { | 1014 get stackTrace() { |
1009 return null; | 1015 return null; |
1010 } | 1016 } |
1011 } | 1017 } |
1012 StackOverflowError[dart.implements] = () => [Error]; | 1018 StackOverflowError[dart.implements] = () => [exports.Error]; |
1013 dart.setSignature(StackOverflowError, { | 1019 dart.setSignature(StackOverflowError, { |
1014 constructors: () => ({StackOverflowError: [StackOverflowError, []]}) | 1020 constructors: () => ({StackOverflowError: [StackOverflowError, []]}) |
1015 }); | 1021 }); |
1016 class CyclicInitializationError extends Error { | 1022 class CyclicInitializationError extends exports.Error { |
1017 CyclicInitializationError(variableName) { | 1023 CyclicInitializationError(variableName) { |
1018 if (variableName === void 0) | 1024 if (variableName === void 0) |
1019 variableName = null; | 1025 variableName = null; |
1020 this.variableName = variableName; | 1026 this.variableName = variableName; |
1021 super.Error(); | 1027 super.Error(); |
1022 } | 1028 } |
1023 toString() { | 1029 toString() { |
1024 return this.variableName == null ? "Reading static variable during its ini tialization" : `Reading static variable '${this.variableName}' during its initia lization`; | 1030 return this.variableName == null ? "Reading static variable during its ini tialization" : `Reading static variable '${this.variableName}' during its initia lization`; |
1025 } | 1031 } |
1026 } | 1032 } |
1027 dart.setSignature(CyclicInitializationError, { | 1033 dart.setSignature(CyclicInitializationError, { |
1028 constructors: () => ({CyclicInitializationError: [CyclicInitializationError, [], [String]]}) | 1034 constructors: () => ({CyclicInitializationError: [CyclicInitializationError, [], [String]]}) |
1029 }); | 1035 }); |
1030 class Exception extends Object { | 1036 class Exception extends exports.Object { |
1031 static new(message) { | 1037 static new(message) { |
1032 if (message === void 0) | 1038 if (message === void 0) |
1033 message = null; | 1039 message = null; |
1034 return new _ExceptionImplementation(message); | 1040 return new _ExceptionImplementation(message); |
1035 } | 1041 } |
1036 } | 1042 } |
1037 dart.setSignature(Exception, { | 1043 dart.setSignature(Exception, { |
1038 constructors: () => ({new: [Exception, [], [dart.dynamic]]}) | 1044 constructors: () => ({new: [Exception, [], [dart.dynamic]]}) |
1039 }); | 1045 }); |
1040 class _ExceptionImplementation extends Object { | 1046 class _ExceptionImplementation extends exports.Object { |
1041 _ExceptionImplementation(message) { | 1047 _ExceptionImplementation(message) { |
1042 if (message === void 0) | 1048 if (message === void 0) |
1043 message = null; | 1049 message = null; |
1044 this.message = message; | 1050 this.message = message; |
1045 } | 1051 } |
1046 toString() { | 1052 toString() { |
1047 if (this.message == null) | 1053 if (this.message == null) |
1048 return "Exception"; | 1054 return "Exception"; |
1049 return `Exception: ${this.message}`; | 1055 return `Exception: ${this.message}`; |
1050 } | 1056 } |
1051 } | 1057 } |
1052 _ExceptionImplementation[dart.implements] = () => [Exception]; | 1058 _ExceptionImplementation[dart.implements] = () => [Exception]; |
1053 dart.setSignature(_ExceptionImplementation, { | 1059 dart.setSignature(_ExceptionImplementation, { |
1054 constructors: () => ({_ExceptionImplementation: [_ExceptionImplementation, [ ], [dart.dynamic]]}) | 1060 constructors: () => ({_ExceptionImplementation: [_ExceptionImplementation, [ ], [dart.dynamic]]}) |
1055 }); | 1061 }); |
1056 class FormatException extends Object { | 1062 class FormatException extends exports.Object { |
1057 FormatException(message, source, offset) { | 1063 FormatException(message, source, offset) { |
1058 if (message === void 0) | 1064 if (message === void 0) |
1059 message = ""; | 1065 message = ""; |
1060 if (source === void 0) | 1066 if (source === void 0) |
1061 source = null; | 1067 source = null; |
1062 if (offset === void 0) | 1068 if (offset === void 0) |
1063 offset = -1; | 1069 offset = -1; |
1064 this.message = message; | 1070 this.message = message; |
1065 this.source = source; | 1071 this.source = source; |
1066 this.offset = offset; | 1072 this.offset = offset; |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1138 } | 1144 } |
1139 let slice = dart.as(dart.dsend(this.source, 'substring', start, end), Stri ng); | 1145 let slice = dart.as(dart.dsend(this.source, 'substring', start, end), Stri ng); |
1140 let markOffset = dart.notNull(offset) - dart.notNull(start) + dart.notNull (prefix[dartx.length]); | 1146 let markOffset = dart.notNull(offset) - dart.notNull(start) + dart.notNull (prefix[dartx.length]); |
1141 return `${report}${prefix}${slice}${postfix}\n${" "[dartx['*']](markOffset )}^\n`; | 1147 return `${report}${prefix}${slice}${postfix}\n${" "[dartx['*']](markOffset )}^\n`; |
1142 } | 1148 } |
1143 } | 1149 } |
1144 FormatException[dart.implements] = () => [Exception]; | 1150 FormatException[dart.implements] = () => [Exception]; |
1145 dart.setSignature(FormatException, { | 1151 dart.setSignature(FormatException, { |
1146 constructors: () => ({FormatException: [FormatException, [], [String, dart.d ynamic, int]]}) | 1152 constructors: () => ({FormatException: [FormatException, [], [String, dart.d ynamic, int]]}) |
1147 }); | 1153 }); |
1148 class IntegerDivisionByZeroException extends Object { | 1154 class IntegerDivisionByZeroException extends exports.Object { |
1149 IntegerDivisionByZeroException() { | 1155 IntegerDivisionByZeroException() { |
1150 } | 1156 } |
1151 toString() { | 1157 toString() { |
1152 return "IntegerDivisionByZeroException"; | 1158 return "IntegerDivisionByZeroException"; |
1153 } | 1159 } |
1154 } | 1160 } |
1155 IntegerDivisionByZeroException[dart.implements] = () => [Exception]; | 1161 IntegerDivisionByZeroException[dart.implements] = () => [Exception]; |
1156 dart.setSignature(IntegerDivisionByZeroException, { | 1162 dart.setSignature(IntegerDivisionByZeroException, { |
1157 constructors: () => ({IntegerDivisionByZeroException: [IntegerDivisionByZero Exception, []]}) | 1163 constructors: () => ({IntegerDivisionByZeroException: [IntegerDivisionByZero Exception, []]}) |
1158 }); | 1164 }); |
1159 let _getKey = dart.JsSymbol('_getKey'); | 1165 let _getKey = Symbol('_getKey'); |
1160 let Expando$ = dart.generic(function(T) { | 1166 let Expando$ = dart.generic(function(T) { |
1161 class Expando extends Object { | 1167 class Expando extends exports.Object { |
1162 Expando(name) { | 1168 Expando(name) { |
1163 if (name === void 0) | 1169 if (name === void 0) |
1164 name = null; | 1170 name = null; |
1165 this.name = name; | 1171 this.name = name; |
1166 } | 1172 } |
1167 toString() { | 1173 toString() { |
1168 return `Expando:${this.name}`; | 1174 return `Expando:${this.name}`; |
1169 } | 1175 } |
1170 get(object) { | 1176 get(object) { |
1171 let values = _js_helper.Primitives.getProperty(object, Expando$()._EXPAN DO_PROPERTY_NAME); | 1177 let values = _js_helper.Primitives.getProperty(object, Expando$()._EXPAN DO_PROPERTY_NAME); |
1172 return values == null ? null : dart.as(_js_helper.Primitives.getProperty (values, this[_getKey]()), T); | 1178 return values == null ? null : dart.as(_js_helper.Primitives.getProperty (values, this[_getKey]()), T); |
1173 } | 1179 } |
1174 set(object, value) { | 1180 set(object, value) { |
1175 dart.as(value, T); | 1181 dart.as(value, T); |
1176 let values = _js_helper.Primitives.getProperty(object, Expando$()._EXPAN DO_PROPERTY_NAME); | 1182 let values = _js_helper.Primitives.getProperty(object, Expando$()._EXPAN DO_PROPERTY_NAME); |
1177 if (values == null) { | 1183 if (values == null) { |
1178 values = new Object(); | 1184 values = new exports.Object(); |
1179 _js_helper.Primitives.setProperty(object, Expando$()._EXPANDO_PROPERTY _NAME, values); | 1185 _js_helper.Primitives.setProperty(object, Expando$()._EXPANDO_PROPERTY _NAME, values); |
1180 } | 1186 } |
1181 _js_helper.Primitives.setProperty(values, this[_getKey](), value); | 1187 _js_helper.Primitives.setProperty(values, this[_getKey](), value); |
1182 return value; | 1188 return value; |
1183 } | 1189 } |
1184 [_getKey]() { | 1190 [_getKey]() { |
1185 let key = dart.as(_js_helper.Primitives.getProperty(this, Expando$()._KE Y_PROPERTY_NAME), String); | 1191 let key = dart.as(_js_helper.Primitives.getProperty(this, Expando$()._KE Y_PROPERTY_NAME), String); |
1186 if (key == null) { | 1192 if (key == null) { |
1187 key = `expando$key$${(() => { | 1193 key = `expando$key$${(() => { |
1188 let x = Expando$()._keyCount; | 1194 let x = Expando$()._keyCount; |
1189 Expando$()._keyCount = dart.notNull(x) + 1; | 1195 Expando$()._keyCount = dart.notNull(x) + 1; |
1190 return x; | 1196 return x; |
1191 })()}`; | 1197 })()}`; |
1192 _js_helper.Primitives.setProperty(this, Expando$()._KEY_PROPERTY_NAME, key); | 1198 _js_helper.Primitives.setProperty(this, Expando$()._KEY_PROPERTY_NAME, key); |
1193 } | 1199 } |
1194 return key; | 1200 return key; |
1195 } | 1201 } |
1196 } | 1202 } |
1197 dart.setSignature(Expando, { | 1203 dart.setSignature(Expando, { |
1198 constructors: () => ({Expando: [Expando$(T), [], [String]]}), | 1204 constructors: () => ({Expando: [Expando$(T), [], [String]]}), |
1199 methods: () => ({ | 1205 methods: () => ({ |
1200 get: [T, [Object]], | 1206 get: [T, [exports.Object]], |
1201 set: [dart.void, [Object, T]], | 1207 set: [dart.void, [exports.Object, T]], |
1202 [_getKey]: [String, []] | 1208 [_getKey]: [String, []] |
1203 }) | 1209 }) |
1204 }); | 1210 }); |
1205 return Expando; | 1211 return Expando; |
1206 }); | 1212 }); |
1207 let Expando = Expando$(); | 1213 let Expando = Expando$(); |
1208 Expando._KEY_PROPERTY_NAME = 'expando$key'; | 1214 Expando._KEY_PROPERTY_NAME = 'expando$key'; |
1209 Expando._EXPANDO_PROPERTY_NAME = 'expando$values'; | 1215 Expando._EXPANDO_PROPERTY_NAME = 'expando$values'; |
1210 Expando._keyCount = 0; | 1216 Expando._keyCount = 0; |
1211 class Function extends Object { | 1217 class Function extends exports.Object { |
1212 static apply(f, positionalArguments, namedArguments) { | 1218 static apply(f, positionalArguments, namedArguments) { |
1213 if (namedArguments === void 0) | 1219 if (namedArguments === void 0) |
1214 namedArguments = null; | 1220 namedArguments = null; |
1215 return dart.dcall.apply(null, [f].concat(positionalArguments)); | 1221 return dart.dcall.apply(null, [f].concat(positionalArguments)); |
1216 } | 1222 } |
1217 static _toMangledNames(namedArguments) { | 1223 static _toMangledNames(namedArguments) { |
1218 let result = dart.map(); | 1224 let result = dart.map(); |
1219 namedArguments.forEach(dart.fn((symbol, value) => { | 1225 namedArguments.forEach(dart.fn((symbol, value) => { |
1220 result.set(_symbolToString(dart.as(symbol, Symbol)), value); | 1226 result.set(_symbolToString(dart.as(symbol, exports.Symbol)), value); |
1221 })); | 1227 })); |
1222 return result; | 1228 return result; |
1223 } | 1229 } |
1224 } | 1230 } |
1225 dart.setSignature(Function, { | 1231 dart.setSignature(Function, { |
1226 statics: () => ({ | 1232 statics: () => ({ |
1227 apply: [dart.dynamic, [Function, List], [Map$(Symbol, dart.dynamic)]], | 1233 apply: [dart.dynamic, [Function, List], [Map$(exports.Symbol, dart.dynamic )]], |
1228 _toMangledNames: [Map$(String, dart.dynamic), [Map$(Symbol, dart.dynamic)] ] | 1234 _toMangledNames: [Map$(String, dart.dynamic), [Map$(exports.Symbol, dart.d ynamic)]] |
1229 }), | 1235 }), |
1230 names: ['apply', '_toMangledNames'] | 1236 names: ['apply', '_toMangledNames'] |
1231 }); | 1237 }); |
1232 function identical(a, b) { | 1238 function identical(a, b) { |
1233 return _js_helper.Primitives.identicalImplementation(a, b); | 1239 return _js_helper.Primitives.identicalImplementation(a, b); |
1234 } | 1240 } |
1235 dart.fn(identical, bool, [Object, Object]); | 1241 dart.fn(identical, bool, [exports.Object, exports.Object]); |
1236 function identityHashCode(object) { | 1242 function identityHashCode(object) { |
1237 return _js_helper.objectHashCode(object); | 1243 return _js_helper.objectHashCode(object); |
1238 } | 1244 } |
1239 dart.fn(identityHashCode, () => dart.definiteFunctionType(int, [Object])); | 1245 dart.fn(identityHashCode, () => dart.definiteFunctionType(int, [exports.Object ])); |
1240 class int extends num { | 1246 class int extends num { |
1241 static fromEnvironment(name, opts) { | 1247 static fromEnvironment(name, opts) { |
1242 let defaultValue = opts && 'defaultValue' in opts ? opts.defaultValue : nu ll; | 1248 let defaultValue = opts && 'defaultValue' in opts ? opts.defaultValue : nu ll; |
1243 dart.throw(new UnsupportedError('int.fromEnvironment can only be used as a const constructor')); | 1249 dart.throw(new UnsupportedError('int.fromEnvironment can only be used as a const constructor')); |
1244 } | 1250 } |
1245 static parse(source, opts) { | 1251 static parse(source, opts) { |
1246 let radix = opts && 'radix' in opts ? opts.radix : null; | 1252 let radix = opts && 'radix' in opts ? opts.radix : null; |
1247 let onError = opts && 'onError' in opts ? opts.onError : null; | 1253 let onError = opts && 'onError' in opts ? opts.onError : null; |
1248 return _js_helper.Primitives.parseInt(source, radix, onError); | 1254 return _js_helper.Primitives.parseInt(source, radix, onError); |
1249 } | 1255 } |
1250 } | 1256 } |
1251 dart.setSignature(int, { | 1257 dart.setSignature(int, { |
1252 constructors: () => ({fromEnvironment: [int, [String], {defaultValue: int}]} ), | 1258 constructors: () => ({fromEnvironment: [int, [String], {defaultValue: int}]} ), |
1253 statics: () => ({parse: [int, [String], {radix: int, onError: dart.functionT ype(int, [String])}]}), | 1259 statics: () => ({parse: [int, [String], {radix: int, onError: dart.functionT ype(int, [String])}]}), |
1254 names: ['parse'] | 1260 names: ['parse'] |
1255 }); | 1261 }); |
1256 class Invocation extends Object { | 1262 class Invocation extends exports.Object { |
1257 get isAccessor() { | 1263 get isAccessor() { |
1258 return dart.notNull(this.isGetter) || dart.notNull(this.isSetter); | 1264 return dart.notNull(this.isGetter) || dart.notNull(this.isSetter); |
1259 } | 1265 } |
1260 } | 1266 } |
1261 let Iterable$ = dart.generic(function(E) { | 1267 let Iterable$ = dart.generic(function(E) { |
1262 dart.defineExtensionNames([ | 1268 dart.defineExtensionNames([ |
1263 'join' | 1269 'join' |
1264 ]); | 1270 ]); |
1265 class Iterable extends Object { | 1271 class Iterable extends exports.Object { |
1266 Iterable() { | 1272 Iterable() { |
1267 } | 1273 } |
1268 static generate(count, generator) { | 1274 static generate(count, generator) { |
1269 if (generator === void 0) | 1275 if (generator === void 0) |
1270 generator = null; | 1276 generator = null; |
1271 if (dart.notNull(count) <= 0) | 1277 if (dart.notNull(count) <= 0) |
1272 return new (_internal.EmptyIterable$(E))(); | 1278 return new (_internal.EmptyIterable$(E))(); |
1273 return new (exports._GeneratorIterable$(E))(count, generator); | 1279 return new (exports._GeneratorIterable$(E))(count, generator); |
1274 } | 1280 } |
1275 [dart.JsSymbol.iterator]() { | 1281 [Symbol.iterator]() { |
1276 return new dart.JsIterator(this[dartx.iterator]); | 1282 return new dart.JsIterator(this[dartx.iterator]); |
1277 } | 1283 } |
1278 [dartx.join](separator) { | 1284 [dartx.join](separator) { |
1279 if (separator === void 0) | 1285 if (separator === void 0) |
1280 separator = ""; | 1286 separator = ""; |
1281 let buffer = new StringBuffer(); | 1287 let buffer = new StringBuffer(); |
1282 buffer.writeAll(this, separator); | 1288 buffer.writeAll(this, separator); |
1283 return dart.toString(buffer); | 1289 return dart.toString(buffer); |
1284 } | 1290 } |
1285 } | 1291 } |
1286 dart.setSignature(Iterable, { | 1292 dart.setSignature(Iterable, { |
1287 constructors: () => ({ | 1293 constructors: () => ({ |
1288 Iterable: [Iterable$(E), []], | 1294 Iterable: [Iterable$(E), []], |
1289 generate: [Iterable$(E), [int], [dart.functionType(E, [int])]] | 1295 generate: [Iterable$(E), [int], [dart.functionType(E, [int])]] |
1290 }), | 1296 }), |
1291 methods: () => ({[dartx.join]: [String, [], [String]]}) | 1297 methods: () => ({[dartx.join]: [String, [], [String]]}) |
1292 }); | 1298 }); |
1293 return Iterable; | 1299 return Iterable; |
1294 }); | 1300 }); |
1295 let Iterable = Iterable$(); | 1301 let Iterable = Iterable$(); |
1296 let _Generator$ = dart.generic(function(E) { | 1302 let _Generator$ = dart.generic(function(E) { |
1297 let _Generator = dart.typedef('_Generator', () => dart.functionType(E, [int] )); | 1303 let _Generator = dart.typedef('_Generator', () => dart.functionType(E, [int] )); |
1298 return _Generator; | 1304 return _Generator; |
1299 }); | 1305 }); |
1300 let _Generator = _Generator$(); | 1306 let _Generator = _Generator$(); |
1301 let _end = dart.JsSymbol('_end'); | 1307 let _end = Symbol('_end'); |
1302 let _start = dart.JsSymbol('_start'); | 1308 let _start = Symbol('_start'); |
1303 let _generator = dart.JsSymbol('_generator'); | 1309 let _generator = Symbol('_generator'); |
1304 let _GeneratorIterable$ = dart.generic(function(E) { | 1310 let _GeneratorIterable$ = dart.generic(function(E) { |
1305 class _GeneratorIterable extends collection.IterableBase$(E) { | 1311 class _GeneratorIterable extends collection.IterableBase$(E) { |
1306 _GeneratorIterable(end, generator) { | 1312 _GeneratorIterable(end, generator) { |
1307 this[_end] = end; | 1313 this[_end] = end; |
1308 this[_start] = 0; | 1314 this[_start] = 0; |
1309 this[_generator] = dart.as(generator != null ? generator : exports._Gene ratorIterable$()._id, _Generator$(E)); | 1315 this[_generator] = dart.as(generator != null ? generator : exports._Gene ratorIterable$()._id, _Generator$(E)); |
1310 super.IterableBase(); | 1316 super.IterableBase(); |
1311 } | 1317 } |
1312 slice(start, end, generator) { | 1318 slice(start, end, generator) { |
1313 this[_start] = start; | 1319 this[_start] = start; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1354 skip: [Iterable$(E), [int]], | 1360 skip: [Iterable$(E), [int]], |
1355 take: [Iterable$(E), [int]] | 1361 take: [Iterable$(E), [int]] |
1356 }), | 1362 }), |
1357 statics: () => ({_id: [int, [int]]}), | 1363 statics: () => ({_id: [int, [int]]}), |
1358 names: ['_id'] | 1364 names: ['_id'] |
1359 }); | 1365 }); |
1360 dart.defineExtensionMembers(_GeneratorIterable, ['skip', 'take', 'iterator', 'length']); | 1366 dart.defineExtensionMembers(_GeneratorIterable, ['skip', 'take', 'iterator', 'length']); |
1361 return _GeneratorIterable; | 1367 return _GeneratorIterable; |
1362 }); | 1368 }); |
1363 dart.defineLazyClassGeneric(exports, '_GeneratorIterable', {get: _GeneratorIte rable$}); | 1369 dart.defineLazyClassGeneric(exports, '_GeneratorIterable', {get: _GeneratorIte rable$}); |
1364 let _index = dart.JsSymbol('_index'); | 1370 let _index = Symbol('_index'); |
1365 let _current = dart.JsSymbol('_current'); | 1371 let _current = Symbol('_current'); |
1366 let _GeneratorIterator$ = dart.generic(function(E) { | 1372 let _GeneratorIterator$ = dart.generic(function(E) { |
1367 class _GeneratorIterator extends Object { | 1373 class _GeneratorIterator extends exports.Object { |
1368 _GeneratorIterator(index, end, generator) { | 1374 _GeneratorIterator(index, end, generator) { |
1369 this[_index] = index; | 1375 this[_index] = index; |
1370 this[_end] = end; | 1376 this[_end] = end; |
1371 this[_generator] = generator; | 1377 this[_generator] = generator; |
1372 this[_current] = null; | 1378 this[_current] = null; |
1373 } | 1379 } |
1374 moveNext() { | 1380 moveNext() { |
1375 if (dart.notNull(this[_index]) < dart.notNull(this[_end])) { | 1381 if (dart.notNull(this[_index]) < dart.notNull(this[_end])) { |
1376 this[_current] = this[_generator](this[_index]); | 1382 this[_current] = this[_generator](this[_index]); |
1377 this[_index] = dart.notNull(this[_index]) + 1; | 1383 this[_index] = dart.notNull(this[_index]) + 1; |
1378 return true; | 1384 return true; |
1379 } else { | 1385 } else { |
1380 this[_current] = null; | 1386 this[_current] = null; |
1381 return false; | 1387 return false; |
1382 } | 1388 } |
1383 } | 1389 } |
1384 get current() { | 1390 get current() { |
1385 return this[_current]; | 1391 return this[_current]; |
1386 } | 1392 } |
1387 } | 1393 } |
1388 _GeneratorIterator[dart.implements] = () => [Iterator$(E)]; | 1394 _GeneratorIterator[dart.implements] = () => [Iterator$(E)]; |
1389 dart.setSignature(_GeneratorIterator, { | 1395 dart.setSignature(_GeneratorIterator, { |
1390 constructors: () => ({_GeneratorIterator: [_GeneratorIterator$(E), [int, i nt, _Generator$(E)]]}), | 1396 constructors: () => ({_GeneratorIterator: [_GeneratorIterator$(E), [int, i nt, _Generator$(E)]]}), |
1391 methods: () => ({moveNext: [bool, []]}) | 1397 methods: () => ({moveNext: [bool, []]}) |
1392 }); | 1398 }); |
1393 return _GeneratorIterator; | 1399 return _GeneratorIterator; |
1394 }); | 1400 }); |
1395 let _GeneratorIterator = _GeneratorIterator$(); | 1401 let _GeneratorIterator = _GeneratorIterator$(); |
1396 let BidirectionalIterator$ = dart.generic(function(E) { | 1402 let BidirectionalIterator$ = dart.generic(function(E) { |
1397 class BidirectionalIterator extends Object {} | 1403 class BidirectionalIterator extends exports.Object {} |
1398 BidirectionalIterator[dart.implements] = () => [Iterator$(E)]; | 1404 BidirectionalIterator[dart.implements] = () => [Iterator$(E)]; |
1399 return BidirectionalIterator; | 1405 return BidirectionalIterator; |
1400 }); | 1406 }); |
1401 let BidirectionalIterator = BidirectionalIterator$(); | 1407 let BidirectionalIterator = BidirectionalIterator$(); |
1402 let Iterator$ = dart.generic(function(E) { | 1408 let Iterator$ = dart.generic(function(E) { |
1403 class Iterator extends Object {} | 1409 class Iterator extends exports.Object {} |
1404 return Iterator; | 1410 return Iterator; |
1405 }); | 1411 }); |
1406 let Iterator = Iterator$(); | 1412 let Iterator = Iterator$(); |
1407 let List$ = dart.generic(function(E) { | 1413 let List$ = dart.generic(function(E) { |
1408 class List extends Object { | 1414 class List extends exports.Object { |
1409 static new(length) { | 1415 static new(length) { |
1410 if (length === void 0) | 1416 if (length === void 0) |
1411 length = null; | 1417 length = null; |
1412 let list = null; | 1418 let list = null; |
1413 if (length == null) { | 1419 if (length == null) { |
1414 list = []; | 1420 list = []; |
1415 } else { | 1421 } else { |
1416 if (!(typeof length == 'number') || dart.notNull(length) < 0) { | 1422 if (!(typeof length == 'number') || dart.notNull(length) < 0) { |
1417 dart.throw(new ArgumentError(`Length must be a non-negative integer: ${length}`)); | 1423 dart.throw(new ArgumentError(`Length must be a non-negative integer: ${length}`)); |
1418 } | 1424 } |
(...skipping 27 matching lines...) Expand all Loading... | |
1446 result = dart.list([], E); | 1452 result = dart.list([], E); |
1447 result[dartx.length] = length; | 1453 result[dartx.length] = length; |
1448 } else { | 1454 } else { |
1449 result = List$(E).new(length); | 1455 result = List$(E).new(length); |
1450 } | 1456 } |
1451 for (let i = 0; dart.notNull(i) < dart.notNull(length); i = dart.notNull (i) + 1) { | 1457 for (let i = 0; dart.notNull(i) < dart.notNull(length); i = dart.notNull (i) + 1) { |
1452 result[dartx.set](i, generator(i)); | 1458 result[dartx.set](i, generator(i)); |
1453 } | 1459 } |
1454 return result; | 1460 return result; |
1455 } | 1461 } |
1456 [dart.JsSymbol.iterator]() { | 1462 [Symbol.iterator]() { |
1457 return new dart.JsIterator(this[dartx.iterator]); | 1463 return new dart.JsIterator(this[dartx.iterator]); |
1458 } | 1464 } |
1459 } | 1465 } |
1460 List[dart.implements] = () => [Iterable$(E)]; | 1466 List[dart.implements] = () => [Iterable$(E)]; |
1461 dart.setSignature(List, { | 1467 dart.setSignature(List, { |
1462 constructors: () => ({ | 1468 constructors: () => ({ |
1463 new: [List$(E), [], [int]], | 1469 new: [List$(E), [], [int]], |
1464 filled: [List$(E), [int, E]], | 1470 filled: [List$(E), [int, E]], |
1465 from: [List$(E), [Iterable], {growable: bool}], | 1471 from: [List$(E), [Iterable], {growable: bool}], |
1466 generate: [List$(E), [int, dart.functionType(E, [int])], {growable: bool }] | 1472 generate: [List$(E), [int, dart.functionType(E, [int])], {growable: bool }] |
1467 }) | 1473 }) |
1468 }); | 1474 }); |
1469 return List; | 1475 return List; |
1470 }); | 1476 }); |
1471 let List = List$(); | 1477 let List = List$(); |
1472 let Map$ = dart.generic(function(K, V) { | 1478 let Map$ = dart.generic(function(K, V) { |
1473 class Map extends Object { | 1479 class Map extends exports.Object { |
ochafik
2015/09/15 16:58:33
This one will be seen as a redefine in ES6 as well
| |
1474 static new() { | 1480 static new() { |
1475 return collection.LinkedHashMap$(K, V).new(); | 1481 return collection.LinkedHashMap$(K, V).new(); |
1476 } | 1482 } |
1477 static from(other) { | 1483 static from(other) { |
1478 return collection.LinkedHashMap$(K, V).from(other); | 1484 return collection.LinkedHashMap$(K, V).from(other); |
1479 } | 1485 } |
1480 static identity() { | 1486 static identity() { |
1481 return collection.LinkedHashMap$(K, V).identity(); | 1487 return collection.LinkedHashMap$(K, V).identity(); |
1482 } | 1488 } |
1483 static fromIterable(iterable, opts) { | 1489 static fromIterable(iterable, opts) { |
1484 return collection.LinkedHashMap$(K, V).fromIterable(iterable, opts); | 1490 return collection.LinkedHashMap$(K, V).fromIterable(iterable, opts); |
1485 } | 1491 } |
1486 static fromIterables(keys, values) { | 1492 static fromIterables(keys, values) { |
1487 return collection.LinkedHashMap$(K, V).fromIterables(keys, values); | 1493 return collection.LinkedHashMap$(K, V).fromIterables(keys, values); |
1488 } | 1494 } |
1489 } | 1495 } |
1490 dart.setSignature(Map, { | 1496 dart.setSignature(Map, { |
1491 constructors: () => ({ | 1497 constructors: () => ({ |
1492 new: [Map$(K, V), []], | 1498 new: [Map$(K, V), []], |
1493 from: [Map$(K, V), [Map$()]], | 1499 from: [Map$(K, V), [Map$()]], |
1494 identity: [Map$(K, V), []], | 1500 identity: [Map$(K, V), []], |
1495 fromIterable: [Map$(K, V), [Iterable], {key: dart.functionType(K, [dart. dynamic]), value: dart.functionType(V, [dart.dynamic])}], | 1501 fromIterable: [Map$(K, V), [Iterable], {key: dart.functionType(K, [dart. dynamic]), value: dart.functionType(V, [dart.dynamic])}], |
1496 fromIterables: [Map$(K, V), [Iterable$(K), Iterable$(V)]] | 1502 fromIterables: [Map$(K, V), [Iterable$(K), Iterable$(V)]] |
1497 }) | 1503 }) |
1498 }); | 1504 }); |
1499 return Map; | 1505 return Map; |
1500 }); | 1506 }); |
1501 let Map = Map$(); | 1507 let Map = Map$(); |
1502 class Null extends Object { | 1508 class Null extends exports.Object { |
1503 static _uninstantiable() { | 1509 static _uninstantiable() { |
1504 dart.throw(new UnsupportedError('class Null cannot be instantiated')); | 1510 dart.throw(new UnsupportedError('class Null cannot be instantiated')); |
1505 } | 1511 } |
1506 toString() { | 1512 toString() { |
1507 return "null"; | 1513 return "null"; |
1508 } | 1514 } |
1509 } | 1515 } |
1510 dart.setSignature(Null, { | 1516 dart.setSignature(Null, { |
1511 constructors: () => ({_uninstantiable: [Null, []]}) | 1517 constructors: () => ({_uninstantiable: [Null, []]}) |
1512 }); | 1518 }); |
1513 num._parseError = false; | 1519 num._parseError = false; |
1514 class Pattern extends Object {} | 1520 class Pattern extends exports.Object {} |
1515 function print(object) { | 1521 function print(object) { |
1516 let line = `${object}`; | 1522 let line = `${object}`; |
1517 if (_internal.printToZone == null) { | 1523 if (_internal.printToZone == null) { |
1518 _internal.printToConsole(line); | 1524 _internal.printToConsole(line); |
1519 } else { | 1525 } else { |
1520 dart.dcall(_internal.printToZone, line); | 1526 dart.dcall(_internal.printToZone, line); |
1521 } | 1527 } |
1522 } | 1528 } |
1523 dart.fn(print, dart.void, [Object]); | 1529 dart.fn(print, dart.void, [exports.Object]); |
1524 class Match extends Object {} | 1530 class Match extends exports.Object {} |
1525 class RegExp extends Object { | 1531 class RegExp extends exports.Object { |
1526 static new(source, opts) { | 1532 static new(source, opts) { |
1527 let multiLine = opts && 'multiLine' in opts ? opts.multiLine : false; | 1533 let multiLine = opts && 'multiLine' in opts ? opts.multiLine : false; |
1528 let caseSensitive = opts && 'caseSensitive' in opts ? opts.caseSensitive : true; | 1534 let caseSensitive = opts && 'caseSensitive' in opts ? opts.caseSensitive : true; |
1529 return new _js_helper.JSSyntaxRegExp(source, {multiLine: multiLine, caseSe nsitive: caseSensitive}); | 1535 return new _js_helper.JSSyntaxRegExp(source, {multiLine: multiLine, caseSe nsitive: caseSensitive}); |
1530 } | 1536 } |
1531 } | 1537 } |
1532 RegExp[dart.implements] = () => [Pattern]; | 1538 RegExp[dart.implements] = () => [Pattern]; |
1533 dart.setSignature(RegExp, { | 1539 dart.setSignature(RegExp, { |
1534 constructors: () => ({new: [RegExp, [String], {multiLine: bool, caseSensitiv e: bool}]}) | 1540 constructors: () => ({new: [RegExp, [String], {multiLine: bool, caseSensitiv e: bool}]}) |
1535 }); | 1541 }); |
(...skipping 14 matching lines...) Expand all Loading... | |
1550 constructors: () => ({ | 1556 constructors: () => ({ |
1551 new: [exports.Set$(E), []], | 1557 new: [exports.Set$(E), []], |
1552 identity: [exports.Set$(E), []], | 1558 identity: [exports.Set$(E), []], |
1553 from: [exports.Set$(E), [Iterable]] | 1559 from: [exports.Set$(E), [Iterable]] |
1554 }) | 1560 }) |
1555 }); | 1561 }); |
1556 return Set; | 1562 return Set; |
1557 }); | 1563 }); |
1558 dart.defineLazyClassGeneric(exports, 'Set', {get: Set$}); | 1564 dart.defineLazyClassGeneric(exports, 'Set', {get: Set$}); |
1559 let Sink$ = dart.generic(function(T) { | 1565 let Sink$ = dart.generic(function(T) { |
1560 class Sink extends Object {} | 1566 class Sink extends exports.Object {} |
1561 return Sink; | 1567 return Sink; |
1562 }); | 1568 }); |
1563 let Sink = Sink$(); | 1569 let Sink = Sink$(); |
1564 class StackTrace extends Object {} | 1570 class StackTrace extends exports.Object {} |
1565 let _stop = dart.JsSymbol('_stop'); | 1571 let _stop = Symbol('_stop'); |
1566 class Stopwatch extends Object { | 1572 class Stopwatch extends exports.Object { |
1567 get frequency() { | 1573 get frequency() { |
1568 return Stopwatch._frequency; | 1574 return Stopwatch._frequency; |
1569 } | 1575 } |
1570 Stopwatch() { | 1576 Stopwatch() { |
1571 this[_start] = null; | 1577 this[_start] = null; |
1572 this[_stop] = null; | 1578 this[_stop] = null; |
1573 Stopwatch._initTicker(); | 1579 Stopwatch._initTicker(); |
1574 } | 1580 } |
1575 start() { | 1581 start() { |
1576 if (dart.notNull(this.isRunning)) | 1582 if (dart.notNull(this.isRunning)) |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1628 stop: [dart.void, []], | 1634 stop: [dart.void, []], |
1629 reset: [dart.void, []] | 1635 reset: [dart.void, []] |
1630 }), | 1636 }), |
1631 statics: () => ({ | 1637 statics: () => ({ |
1632 _initTicker: [dart.void, []], | 1638 _initTicker: [dart.void, []], |
1633 _now: [int, []] | 1639 _now: [int, []] |
1634 }), | 1640 }), |
1635 names: ['_initTicker', '_now'] | 1641 names: ['_initTicker', '_now'] |
1636 }); | 1642 }); |
1637 Stopwatch._frequency = null; | 1643 Stopwatch._frequency = null; |
1638 class String extends Object { | 1644 class String extends exports.Object { |
1639 static fromCharCodes(charCodes, start, end) { | 1645 static fromCharCodes(charCodes, start, end) { |
1640 if (start === void 0) | 1646 if (start === void 0) |
1641 start = 0; | 1647 start = 0; |
1642 if (end === void 0) | 1648 if (end === void 0) |
1643 end = null; | 1649 end = null; |
1644 if (!dart.is(charCodes, _interceptors.JSArray)) { | 1650 if (!dart.is(charCodes, _interceptors.JSArray)) { |
1645 return String._stringFromIterable(charCodes, start, end); | 1651 return String._stringFromIterable(charCodes, start, end); |
1646 } | 1652 } |
1647 let list = dart.as(charCodes, List); | 1653 let list = dart.as(charCodes, List); |
1648 let len = list[dartx.length]; | 1654 let len = list[dartx.length]; |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1740 } | 1746 } |
1741 dart.fn(_isLeadSurrogate, bool, [int]); | 1747 dart.fn(_isLeadSurrogate, bool, [int]); |
1742 function _isTrailSurrogate(code) { | 1748 function _isTrailSurrogate(code) { |
1743 return (dart.notNull(code) & 64512) == 56320; | 1749 return (dart.notNull(code) & 64512) == 56320; |
1744 } | 1750 } |
1745 dart.fn(_isTrailSurrogate, bool, [int]); | 1751 dart.fn(_isTrailSurrogate, bool, [int]); |
1746 function _combineSurrogatePair(start, end) { | 1752 function _combineSurrogatePair(start, end) { |
1747 return 65536 + ((dart.notNull(start) & 1023) << 10) + (dart.notNull(end) & 1 023); | 1753 return 65536 + ((dart.notNull(start) & 1023) << 10) + (dart.notNull(end) & 1 023); |
1748 } | 1754 } |
1749 dart.fn(_combineSurrogatePair, int, [int, int]); | 1755 dart.fn(_combineSurrogatePair, int, [int, int]); |
1750 let _position = dart.JsSymbol('_position'); | 1756 let _position = Symbol('_position'); |
1751 let _nextPosition = dart.JsSymbol('_nextPosition'); | 1757 let _nextPosition = Symbol('_nextPosition'); |
1752 let _currentCodePoint = dart.JsSymbol('_currentCodePoint'); | 1758 let _currentCodePoint = Symbol('_currentCodePoint'); |
1753 let _checkSplitSurrogate = dart.JsSymbol('_checkSplitSurrogate'); | 1759 let _checkSplitSurrogate = Symbol('_checkSplitSurrogate'); |
1754 class RuneIterator extends Object { | 1760 class RuneIterator extends exports.Object { |
1755 RuneIterator(string) { | 1761 RuneIterator(string) { |
1756 this.string = string; | 1762 this.string = string; |
1757 this[_position] = 0; | 1763 this[_position] = 0; |
1758 this[_nextPosition] = 0; | 1764 this[_nextPosition] = 0; |
1759 this[_currentCodePoint] = null; | 1765 this[_currentCodePoint] = null; |
1760 } | 1766 } |
1761 at(string, index) { | 1767 at(string, index) { |
1762 this.string = string; | 1768 this.string = string; |
1763 this[_position] = index; | 1769 this[_position] = index; |
1764 this[_nextPosition] = index; | 1770 this[_nextPosition] = index; |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1848 RuneIterator: [RuneIterator, [String]], | 1854 RuneIterator: [RuneIterator, [String]], |
1849 at: [RuneIterator, [String, int]] | 1855 at: [RuneIterator, [String, int]] |
1850 }), | 1856 }), |
1851 methods: () => ({ | 1857 methods: () => ({ |
1852 [_checkSplitSurrogate]: [dart.void, [int]], | 1858 [_checkSplitSurrogate]: [dart.void, [int]], |
1853 reset: [dart.void, [], [int]], | 1859 reset: [dart.void, [], [int]], |
1854 moveNext: [bool, []], | 1860 moveNext: [bool, []], |
1855 movePrevious: [bool, []] | 1861 movePrevious: [bool, []] |
1856 }) | 1862 }) |
1857 }); | 1863 }); |
1858 let _contents = dart.JsSymbol('_contents'); | 1864 let _contents = Symbol('_contents'); |
1859 let _writeString = dart.JsSymbol('_writeString'); | 1865 let _writeString = Symbol('_writeString'); |
1860 class StringBuffer extends Object { | 1866 class StringBuffer extends exports.Object { |
1861 StringBuffer(content) { | 1867 StringBuffer(content) { |
1862 if (content === void 0) | 1868 if (content === void 0) |
1863 content = ""; | 1869 content = ""; |
1864 this[_contents] = `${content}`; | 1870 this[_contents] = `${content}`; |
1865 } | 1871 } |
1866 get length() { | 1872 get length() { |
1867 return this[_contents][dartx.length]; | 1873 return this[_contents][dartx.length]; |
1868 } | 1874 } |
1869 get isEmpty() { | 1875 get isEmpty() { |
1870 return this.length == 0; | 1876 return this.length == 0; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1907 } | 1913 } |
1908 toString() { | 1914 toString() { |
1909 return _js_helper.Primitives.flattenString(this[_contents]); | 1915 return _js_helper.Primitives.flattenString(this[_contents]); |
1910 } | 1916 } |
1911 [_writeString](str) { | 1917 [_writeString](str) { |
1912 this[_contents] = _js_helper.Primitives.stringConcatUnchecked(this[_conten ts], dart.as(str, String)); | 1918 this[_contents] = _js_helper.Primitives.stringConcatUnchecked(this[_conten ts], dart.as(str, String)); |
1913 } | 1919 } |
1914 } | 1920 } |
1915 StringBuffer[dart.implements] = () => [StringSink]; | 1921 StringBuffer[dart.implements] = () => [StringSink]; |
1916 dart.setSignature(StringBuffer, { | 1922 dart.setSignature(StringBuffer, { |
1917 constructors: () => ({StringBuffer: [StringBuffer, [], [Object]]}), | 1923 constructors: () => ({StringBuffer: [StringBuffer, [], [exports.Object]]}), |
1918 methods: () => ({ | 1924 methods: () => ({ |
1919 write: [dart.void, [Object]], | 1925 write: [dart.void, [exports.Object]], |
1920 writeCharCode: [dart.void, [int]], | 1926 writeCharCode: [dart.void, [int]], |
1921 writeAll: [dart.void, [Iterable], [String]], | 1927 writeAll: [dart.void, [Iterable], [String]], |
1922 writeln: [dart.void, [], [Object]], | 1928 writeln: [dart.void, [], [exports.Object]], |
1923 clear: [dart.void, []], | 1929 clear: [dart.void, []], |
1924 [_writeString]: [dart.void, [dart.dynamic]] | 1930 [_writeString]: [dart.void, [dart.dynamic]] |
1925 }) | 1931 }) |
1926 }); | 1932 }); |
1927 class StringSink extends Object {} | 1933 class StringSink extends exports.Object {} |
1928 class Symbol extends Object { | 1934 exports.Symbol = (() => { |
1929 static new(name) { | 1935 class Symbol extends exports.Object { |
1930 return new _internal.Symbol(name); | 1936 static new(name) { |
1937 return new _internal.Symbol(name); | |
1938 } | |
1931 } | 1939 } |
1932 } | 1940 dart.setSignature(Symbol, { |
1933 dart.setSignature(Symbol, { | 1941 constructors: () => ({new: [exports.Symbol, [String]]}) |
1934 constructors: () => ({new: [Symbol, [String]]}) | 1942 }); |
1935 }); | 1943 return Symbol; |
1936 class Type extends Object {} | 1944 })(); |
1937 let _writeAuthority = dart.JsSymbol('_writeAuthority'); | 1945 class Type extends exports.Object {} |
1938 let _userInfo = dart.JsSymbol('_userInfo'); | 1946 let _writeAuthority = Symbol('_writeAuthority'); |
1939 let _host = dart.JsSymbol('_host'); | 1947 let _userInfo = Symbol('_userInfo'); |
1940 let _port = dart.JsSymbol('_port'); | 1948 let _host = Symbol('_host'); |
1941 let _path = dart.JsSymbol('_path'); | 1949 let _port = Symbol('_port'); |
1942 let _query = dart.JsSymbol('_query'); | 1950 let _path = Symbol('_path'); |
1943 let _fragment = dart.JsSymbol('_fragment'); | 1951 let _query = Symbol('_query'); |
1944 let _pathSegments = dart.JsSymbol('_pathSegments'); | 1952 let _fragment = Symbol('_fragment'); |
1945 let _queryParameters = dart.JsSymbol('_queryParameters'); | 1953 let _pathSegments = Symbol('_pathSegments'); |
1946 let _merge = dart.JsSymbol('_merge'); | 1954 let _queryParameters = Symbol('_queryParameters'); |
1947 let _hasDotSegments = dart.JsSymbol('_hasDotSegments'); | 1955 let _merge = Symbol('_merge'); |
1948 let _removeDotSegments = dart.JsSymbol('_removeDotSegments'); | 1956 let _hasDotSegments = Symbol('_hasDotSegments'); |
1949 let _toWindowsFilePath = dart.JsSymbol('_toWindowsFilePath'); | 1957 let _removeDotSegments = Symbol('_removeDotSegments'); |
1950 let _toFilePath = dart.JsSymbol('_toFilePath'); | 1958 let _toWindowsFilePath = Symbol('_toWindowsFilePath'); |
1951 let _isPathAbsolute = dart.JsSymbol('_isPathAbsolute'); | 1959 let _toFilePath = Symbol('_toFilePath'); |
1952 class Uri extends Object { | 1960 let _isPathAbsolute = Symbol('_isPathAbsolute'); |
1961 class Uri extends exports.Object { | |
1953 get authority() { | 1962 get authority() { |
1954 if (!dart.notNull(this.hasAuthority)) | 1963 if (!dart.notNull(this.hasAuthority)) |
1955 return ""; | 1964 return ""; |
1956 let sb = new StringBuffer(); | 1965 let sb = new StringBuffer(); |
1957 this[_writeAuthority](sb); | 1966 this[_writeAuthority](sb); |
1958 return dart.toString(sb); | 1967 return dart.toString(sb); |
1959 } | 1968 } |
1960 get userInfo() { | 1969 get userInfo() { |
1961 return this[_userInfo]; | 1970 return this[_userInfo]; |
1962 } | 1971 } |
(...skipping 1331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3294 Uri._subDelimitersTable = dart.const([0, 0, 32722, 11263, 65534, 34815, 65534, 18431]); | 3303 Uri._subDelimitersTable = dart.const([0, 0, 32722, 11263, 65534, 34815, 65534, 18431]); |
3295 Uri._genDelimitersTable = dart.const([0, 0, 32776, 33792, 1, 10240, 0, 0]); | 3304 Uri._genDelimitersTable = dart.const([0, 0, 32776, 33792, 1, 10240, 0, 0]); |
3296 Uri._userinfoTable = dart.const([0, 0, 32722, 12287, 65534, 34815, 65534, 1843 1]); | 3305 Uri._userinfoTable = dart.const([0, 0, 32722, 12287, 65534, 34815, 65534, 1843 1]); |
3297 Uri._regNameTable = dart.const([0, 0, 32754, 11263, 65534, 34815, 65534, 18431 ]); | 3306 Uri._regNameTable = dart.const([0, 0, 32754, 11263, 65534, 34815, 65534, 18431 ]); |
3298 Uri._pathCharTable = dart.const([0, 0, 32722, 12287, 65535, 34815, 65534, 1843 1]); | 3307 Uri._pathCharTable = dart.const([0, 0, 32722, 12287, 65535, 34815, 65534, 1843 1]); |
3299 Uri._pathCharOrSlashTable = dart.const([0, 0, 65490, 12287, 65535, 34815, 6553 4, 18431]); | 3308 Uri._pathCharOrSlashTable = dart.const([0, 0, 65490, 12287, 65535, 34815, 6553 4, 18431]); |
3300 Uri._queryCharTable = dart.const([0, 0, 65490, 45055, 65535, 34815, 65534, 184 31]); | 3309 Uri._queryCharTable = dart.const([0, 0, 65490, 45055, 65535, 34815, 65534, 184 31]); |
3301 function _symbolToString(symbol) { | 3310 function _symbolToString(symbol) { |
3302 return _internal.Symbol.getName(dart.as(symbol, _internal.Symbol)); | 3311 return _internal.Symbol.getName(dart.as(symbol, _internal.Symbol)); |
3303 } | 3312 } |
3304 dart.fn(_symbolToString, String, [Symbol]); | 3313 dart.fn(_symbolToString, String, [exports.Symbol]); |
3305 // Exports: | 3314 // Exports: |
3306 exports.Object = Object; | |
3307 exports.Deprecated = Deprecated; | 3315 exports.Deprecated = Deprecated; |
3308 exports.deprecated = deprecated; | 3316 exports.deprecated = deprecated; |
3309 exports.override = override; | 3317 exports.override = override; |
3310 exports.proxy = proxy; | 3318 exports.proxy = proxy; |
3311 exports.bool = bool; | 3319 exports.bool = bool; |
3312 exports.Comparator$ = Comparator$; | 3320 exports.Comparator$ = Comparator$; |
3313 exports.Comparator = Comparator; | 3321 exports.Comparator = Comparator; |
3314 exports.Comparable$ = Comparable$; | 3322 exports.Comparable$ = Comparable$; |
3315 exports.Comparable = Comparable; | 3323 exports.Comparable = Comparable; |
3316 exports.DateTime = DateTime; | 3324 exports.DateTime = DateTime; |
3317 exports.num = num; | 3325 exports.num = num; |
3318 exports.double = double; | 3326 exports.double = double; |
3319 exports.Duration = Duration; | 3327 exports.Duration = Duration; |
3320 exports.Error = Error; | |
3321 exports.AssertionError = AssertionError; | 3328 exports.AssertionError = AssertionError; |
3322 exports.TypeError = TypeError; | 3329 exports.TypeError = TypeError; |
3323 exports.CastError = CastError; | 3330 exports.CastError = CastError; |
3324 exports.NullThrownError = NullThrownError; | 3331 exports.NullThrownError = NullThrownError; |
3325 exports.ArgumentError = ArgumentError; | 3332 exports.ArgumentError = ArgumentError; |
3326 exports.RangeError = RangeError; | 3333 exports.RangeError = RangeError; |
3327 exports.IndexError = IndexError; | 3334 exports.IndexError = IndexError; |
3328 exports.FallThroughError = FallThroughError; | 3335 exports.FallThroughError = FallThroughError; |
3329 exports.AbstractClassInstantiationError = AbstractClassInstantiationError; | 3336 exports.AbstractClassInstantiationError = AbstractClassInstantiationError; |
3330 exports.NoSuchMethodError = NoSuchMethodError; | 3337 exports.NoSuchMethodError = NoSuchMethodError; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3362 exports.RegExp = RegExp; | 3369 exports.RegExp = RegExp; |
3363 exports.Set$ = Set$; | 3370 exports.Set$ = Set$; |
3364 exports.Sink$ = Sink$; | 3371 exports.Sink$ = Sink$; |
3365 exports.Sink = Sink; | 3372 exports.Sink = Sink; |
3366 exports.StackTrace = StackTrace; | 3373 exports.StackTrace = StackTrace; |
3367 exports.Stopwatch = Stopwatch; | 3374 exports.Stopwatch = Stopwatch; |
3368 exports.String = String; | 3375 exports.String = String; |
3369 exports.RuneIterator = RuneIterator; | 3376 exports.RuneIterator = RuneIterator; |
3370 exports.StringBuffer = StringBuffer; | 3377 exports.StringBuffer = StringBuffer; |
3371 exports.StringSink = StringSink; | 3378 exports.StringSink = StringSink; |
3372 exports.Symbol = Symbol; | |
3373 exports.Type = Type; | 3379 exports.Type = Type; |
3374 exports.Uri = Uri; | 3380 exports.Uri = Uri; |
3375 }); | 3381 }); |
OLD | NEW |