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

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

Issue 1152583002: Add constructors to signatures (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 7 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 = dart.defineLibrary(core, {}); 1 var core = dart.defineLibrary(core, {});
2 var _js_helper = dart.lazyImport(_js_helper); 2 var _js_helper = dart.lazyImport(_js_helper);
3 var _internal = dart.lazyImport(_internal); 3 var _internal = dart.lazyImport(_internal);
4 var collection = dart.lazyImport(collection); 4 var collection = dart.lazyImport(collection);
5 var _interceptors = dart.lazyImport(_interceptors); 5 var _interceptors = dart.lazyImport(_interceptors);
6 var math = dart.lazyImport(math); 6 var math = dart.lazyImport(math);
7 var convert = dart.lazyImport(convert); 7 var convert = dart.lazyImport(convert);
8 (function(exports, _js_helper, _internal, collection, _interceptors, math, conve rt) { 8 (function(exports, _js_helper, _internal, collection, _interceptors, math, conve rt) {
9 'use strict'; 9 'use strict';
10 class Object { 10 class Object {
(...skipping 15 matching lines...) Expand all
26 return _js_helper.Primitives.objectToString(this); 26 return _js_helper.Primitives.objectToString(this);
27 } 27 }
28 noSuchMethod(invocation) { 28 noSuchMethod(invocation) {
29 throw new NoSuchMethodError(this, invocation.memberName, invocation.positi onalArguments, invocation.namedArguments); 29 throw new NoSuchMethodError(this, invocation.memberName, invocation.positi onalArguments, invocation.namedArguments);
30 } 30 }
31 get runtimeType() { 31 get runtimeType() {
32 return dart.realRuntimeType(this); 32 return dart.realRuntimeType(this);
33 } 33 }
34 } 34 }
35 dart.setSignature(Object, { 35 dart.setSignature(Object, {
36 constructors: () => ({Object: [Object, []]}),
36 methods: () => ({ 37 methods: () => ({
37 '==': [bool, [Object]], 38 '==': [bool, [Object]],
38 toString: [String, []], 39 toString: [String, []],
39 noSuchMethod: [Object, [Invocation]] 40 noSuchMethod: [Object, [Invocation]]
40 }) 41 })
41 }); 42 });
42 class JsName extends Object { 43 class JsName extends Object {
43 JsName(opts) { 44 JsName(opts) {
44 let name = opts && 'name' in opts ? opts.name : null; 45 let name = opts && 'name' in opts ? opts.name : null;
45 this.name = name; 46 this.name = name;
46 } 47 }
47 } 48 }
49 dart.setSignature(JsName, {
50 constructors: () => ({JsName: [JsName, [], {am: String}]})
51 });
48 class JsPeerInterface extends Object { 52 class JsPeerInterface extends Object {
49 JsPeerInterface(opts) { 53 JsPeerInterface(opts) {
50 let name = opts && 'name' in opts ? opts.name : null; 54 let name = opts && 'name' in opts ? opts.name : null;
51 this.name = name; 55 this.name = name;
52 } 56 }
53 } 57 }
58 dart.setSignature(JsPeerInterface, {
59 constructors: () => ({JsPeerInterface: [JsPeerInterface, [], {am: String}]})
60 });
54 class SupportJsExtensionMethod extends Object { 61 class SupportJsExtensionMethod extends Object {
55 SupportJsExtensionMethod() { 62 SupportJsExtensionMethod() {
56 } 63 }
57 } 64 }
65 dart.setSignature(SupportJsExtensionMethod, {
66 constructors: () => ({SupportJsExtensionMethod: [SupportJsExtensionMethod, [ ]]})
67 });
58 class Deprecated extends Object { 68 class Deprecated extends Object {
59 Deprecated(expires) { 69 Deprecated(expires) {
60 this.expires = expires; 70 this.expires = expires;
61 } 71 }
62 toString() { 72 toString() {
63 return `Deprecated feature. Will be removed ${this.expires}`; 73 return `Deprecated feature. Will be removed ${this.expires}`;
64 } 74 }
65 } 75 }
76 dart.setSignature(Deprecated, {
77 constructors: () => ({Deprecated: [Deprecated, [String]]})
78 });
66 class _Override extends Object { 79 class _Override extends Object {
67 _Override() { 80 _Override() {
68 } 81 }
69 } 82 }
83 dart.setSignature(_Override, {
84 constructors: () => ({_Override: [_Override, []]})
85 });
70 let deprecated = dart.const(new Deprecated("next release")); 86 let deprecated = dart.const(new Deprecated("next release"));
71 let override = dart.const(new _Override()); 87 let override = dart.const(new _Override());
72 class _Proxy extends Object { 88 class _Proxy extends Object {
73 _Proxy() { 89 _Proxy() {
74 } 90 }
75 } 91 }
92 dart.setSignature(_Proxy, {
93 constructors: () => ({_Proxy: [_Proxy, []]})
94 });
76 let proxy = dart.const(new _Proxy()); 95 let proxy = dart.const(new _Proxy());
77 class bool extends Object { 96 class bool extends Object {
78 fromEnvironment(name, opts) { 97 fromEnvironment(name, opts) {
79 let defaultValue = opts && 'defaultValue' in opts ? opts.defaultValue : fa lse; 98 let defaultValue = opts && 'defaultValue' in opts ? opts.defaultValue : fa lse;
80 throw new UnsupportedError('bool.fromEnvironment can only be used as a con st constructor'); 99 throw new UnsupportedError('bool.fromEnvironment can only be used as a con st constructor');
81 } 100 }
82 toString() { 101 toString() {
83 return this ? "true" : "false"; 102 return this ? "true" : "false";
84 } 103 }
85 } 104 }
86 dart.defineNamedConstructor(bool, 'fromEnvironment'); 105 dart.defineNamedConstructor(bool, 'fromEnvironment');
106 dart.setSignature(bool, {
107 constructors: () => ({fromEnvironment: [bool, [String], {efaultValu: bool}]} )
108 });
87 let Comparator$ = dart.generic(function(T) { 109 let Comparator$ = dart.generic(function(T) {
88 let Comparator = dart.typedef('Comparator', () => dart.functionType(int, [T, T])); 110 let Comparator = dart.typedef('Comparator', () => dart.functionType(int, [T, T]));
89 return Comparator; 111 return Comparator;
90 }); 112 });
91 let Comparator = Comparator$(); 113 let Comparator = Comparator$();
92 let Comparable$ = dart.generic(function(T) { 114 let Comparable$ = dart.generic(function(T) {
93 class Comparable extends Object { 115 class Comparable extends Object {
94 static compare(a, b) { 116 static compare(a, b) {
95 return a.compareTo(b); 117 return a.compareTo(b);
96 } 118 }
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 return dart.as(_js_helper.Primitives.getWeekday(this), int); 368 return dart.as(_js_helper.Primitives.getWeekday(this), int);
347 } 369 }
348 } 370 }
349 DateTime[dart.implements] = () => [Comparable]; 371 DateTime[dart.implements] = () => [Comparable];
350 dart.defineNamedConstructor(DateTime, 'utc'); 372 dart.defineNamedConstructor(DateTime, 'utc');
351 dart.defineNamedConstructor(DateTime, 'now'); 373 dart.defineNamedConstructor(DateTime, 'now');
352 dart.defineNamedConstructor(DateTime, 'fromMillisecondsSinceEpoch'); 374 dart.defineNamedConstructor(DateTime, 'fromMillisecondsSinceEpoch');
353 dart.defineNamedConstructor(DateTime, '_internal'); 375 dart.defineNamedConstructor(DateTime, '_internal');
354 dart.defineNamedConstructor(DateTime, '_now'); 376 dart.defineNamedConstructor(DateTime, '_now');
355 dart.setSignature(DateTime, { 377 dart.setSignature(DateTime, {
378 constructors: () => ({
379 DateTime: [DateTime, [int], [int, int, int, int, int, int]],
380 utc: [DateTime, [int], [int, int, int, int, int, int]],
381 now: [DateTime, []],
382 fromMillisecondsSinceEpoch: [DateTime, [int], {sUt: bool}],
383 _internal: [DateTime, [int, int, int, int, int, int, int, bool]],
384 _now: [DateTime, []]
385 }),
356 methods: () => ({ 386 methods: () => ({
357 isBefore: [bool, [DateTime]], 387 isBefore: [bool, [DateTime]],
358 isAfter: [bool, [DateTime]], 388 isAfter: [bool, [DateTime]],
359 isAtSameMomentAs: [bool, [DateTime]], 389 isAtSameMomentAs: [bool, [DateTime]],
360 compareTo: [int, [DateTime]], 390 compareTo: [int, [DateTime]],
361 toLocal: [DateTime, []], 391 toLocal: [DateTime, []],
362 toUtc: [DateTime, []], 392 toUtc: [DateTime, []],
363 toIso8601String: [String, []], 393 toIso8601String: [String, []],
364 add: [DateTime, [Duration]], 394 add: [DateTime, [Duration]],
365 subtract: [DateTime, [Duration]], 395 subtract: [DateTime, [Duration]],
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
552 abs() { 582 abs() {
553 return new Duration._microseconds(this[_duration].abs()); 583 return new Duration._microseconds(this[_duration].abs());
554 } 584 }
555 ['unary-']() { 585 ['unary-']() {
556 return new Duration._microseconds(-dart.notNull(this[_duration])); 586 return new Duration._microseconds(-dart.notNull(this[_duration]));
557 } 587 }
558 } 588 }
559 Duration[dart.implements] = () => [Comparable$(Duration)]; 589 Duration[dart.implements] = () => [Comparable$(Duration)];
560 dart.defineNamedConstructor(Duration, '_microseconds'); 590 dart.defineNamedConstructor(Duration, '_microseconds');
561 dart.setSignature(Duration, { 591 dart.setSignature(Duration, {
592 constructors: () => ({
593 Duration: [Duration, [], {ay: int, our: int, inute: int, econd: int, illis econd: int, icrosecond: int}],
vsm 2015/05/21 21:21:17 Looks like the param names are getting cut off.
Leaf 2015/05/21 21:35:19 Yes, I'm looking into this. I'll either add a fix
594 _microseconds: [Duration, [int]]
595 }),
562 methods: () => ({ 596 methods: () => ({
563 '+': [Duration, [Duration]], 597 '+': [Duration, [Duration]],
564 '-': [Duration, [Duration]], 598 '-': [Duration, [Duration]],
565 '*': [Duration, [num]], 599 '*': [Duration, [num]],
566 '~/': [Duration, [int]], 600 '~/': [Duration, [int]],
567 '<': [bool, [Duration]], 601 '<': [bool, [Duration]],
568 '>': [bool, [Duration]], 602 '>': [bool, [Duration]],
569 '<=': [bool, [Duration]], 603 '<=': [bool, [Duration]],
570 '>=': [bool, [Duration]], 604 '>=': [bool, [Duration]],
571 compareTo: [int, [Duration]], 605 compareTo: [int, [Duration]],
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
605 return _js_helper.jsonEncodeNative(string); 639 return _js_helper.jsonEncodeNative(string);
606 } 640 }
607 static _objectToString(object) { 641 static _objectToString(object) {
608 return _js_helper.Primitives.objectToString(object); 642 return _js_helper.Primitives.objectToString(object);
609 } 643 }
610 get stackTrace() { 644 get stackTrace() {
611 return _js_helper.Primitives.extractStackTrace(this); 645 return _js_helper.Primitives.extractStackTrace(this);
612 } 646 }
613 } 647 }
614 dart.setSignature(Error, { 648 dart.setSignature(Error, {
649 constructors: () => ({Error: [Error, []]}),
615 statics: () => ({ 650 statics: () => ({
616 safeToString: [String, [Object]], 651 safeToString: [String, [Object]],
617 _stringToSafeString: [String, [String]], 652 _stringToSafeString: [String, [String]],
618 _objectToString: [String, [Object]] 653 _objectToString: [String, [Object]]
619 }), 654 }),
620 names: ['safeToString', '_stringToSafeString', '_objectToString'] 655 names: ['safeToString', '_stringToSafeString', '_objectToString']
621 }); 656 });
622 class AssertionError extends Error { 657 class AssertionError extends Error {
623 AssertionError() { 658 AssertionError() {
624 super.Error(); 659 super.Error();
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
675 } 710 }
676 let nameString = ""; 711 let nameString = "";
677 if (this.name != null) { 712 if (this.name != null) {
678 nameString = ` (${this.name})`; 713 nameString = ` (${this.name})`;
679 } 714 }
680 return `${this.message}${nameString}: ${Error.safeToString(this.invalidVal ue)}`; 715 return `${this.message}${nameString}: ${Error.safeToString(this.invalidVal ue)}`;
681 } 716 }
682 } 717 }
683 dart.defineNamedConstructor(ArgumentError, 'value'); 718 dart.defineNamedConstructor(ArgumentError, 'value');
684 dart.defineNamedConstructor(ArgumentError, 'notNull'); 719 dart.defineNamedConstructor(ArgumentError, 'notNull');
720 dart.setSignature(ArgumentError, {
721 constructors: () => ({
722 ArgumentError: [ArgumentError, [], [Object]],
723 value: [ArgumentError, [Object], [String, String]],
724 notNull: [ArgumentError, [], [String]]
725 })
726 });
685 class RangeError extends ArgumentError { 727 class RangeError extends ArgumentError {
686 RangeError(message) { 728 RangeError(message) {
687 this.start = null; 729 this.start = null;
688 this.end = null; 730 this.end = null;
689 super.ArgumentError(message); 731 super.ArgumentError(message);
690 } 732 }
691 value(value, name, message) { 733 value(value, name, message) {
692 if (name === void 0) 734 if (name === void 0)
693 name = null; 735 name = null;
694 if (message === void 0) 736 if (message === void 0)
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
777 } else { 819 } else {
778 explanation = `: Only valid value is ${this.start}`; 820 explanation = `: Only valid value is ${this.start}`;
779 } 821 }
780 return `RangeError: ${this.message} (${value})${explanation}`; 822 return `RangeError: ${this.message} (${value})${explanation}`;
781 } 823 }
782 } 824 }
783 dart.defineNamedConstructor(RangeError, 'value'); 825 dart.defineNamedConstructor(RangeError, 'value');
784 dart.defineNamedConstructor(RangeError, 'range'); 826 dart.defineNamedConstructor(RangeError, 'range');
785 dart.defineNamedConstructor(RangeError, 'index'); 827 dart.defineNamedConstructor(RangeError, 'index');
786 dart.setSignature(RangeError, { 828 dart.setSignature(RangeError, {
829 constructors: () => ({
830 RangeError: [RangeError, [Object]],
831 value: [RangeError, [num], [String, String]],
832 range: [RangeError, [num, int, int], [String, String]],
833 index: [RangeError, [int, Object], [String, String, int]]
834 }),
787 statics: () => ({ 835 statics: () => ({
788 checkValueInInterval: [dart.void, [int, int, int], [String, String]], 836 checkValueInInterval: [dart.void, [int, int, int], [String, String]],
789 checkValidIndex: [dart.void, [int, Object], [String, int, String]], 837 checkValidIndex: [dart.void, [int, Object], [String, int, String]],
790 checkValidRange: [dart.void, [int, int, int], [String, String, String]], 838 checkValidRange: [dart.void, [int, int, int], [String, String, String]],
791 checkNotNegative: [dart.void, [int], [String, String]] 839 checkNotNegative: [dart.void, [int], [String, String]]
792 }), 840 }),
793 names: ['checkValueInInterval', 'checkValidIndex', 'checkValidRange', 'check NotNegative'] 841 names: ['checkValueInInterval', 'checkValidIndex', 'checkValidRange', 'check NotNegative']
794 }); 842 });
795 class IndexError extends ArgumentError { 843 class IndexError extends ArgumentError {
796 IndexError(invalidValue, indexable, name, message, length) { 844 IndexError(invalidValue, indexable, name, message, length) {
(...skipping 17 matching lines...) Expand all
814 dart.assert(this[_hasValue]); 862 dart.assert(this[_hasValue]);
815 let target = Error.safeToString(this.indexable); 863 let target = Error.safeToString(this.indexable);
816 let explanation = `index should be less than ${this.length}`; 864 let explanation = `index should be less than ${this.length}`;
817 if (dart.dsend(this.invalidValue, '<', 0)) { 865 if (dart.dsend(this.invalidValue, '<', 0)) {
818 explanation = "index must not be negative"; 866 explanation = "index must not be negative";
819 } 867 }
820 return `RangeError: ${this.message} (${target}[${this.invalidValue}]): ${e xplanation}`; 868 return `RangeError: ${this.message} (${target}[${this.invalidValue}]): ${e xplanation}`;
821 } 869 }
822 } 870 }
823 IndexError[dart.implements] = () => [RangeError]; 871 IndexError[dart.implements] = () => [RangeError];
872 dart.setSignature(IndexError, {
873 constructors: () => ({IndexError: [IndexError, [int, Object], [String, Strin g, int]]})
874 });
824 class FallThroughError extends Error { 875 class FallThroughError extends Error {
825 FallThroughError() { 876 FallThroughError() {
826 super.Error(); 877 super.Error();
827 } 878 }
828 } 879 }
880 dart.setSignature(FallThroughError, {
881 constructors: () => ({FallThroughError: [FallThroughError, []]})
882 });
829 let _className = dart.JsSymbol('_className'); 883 let _className = dart.JsSymbol('_className');
830 class AbstractClassInstantiationError extends Error { 884 class AbstractClassInstantiationError extends Error {
831 AbstractClassInstantiationError(className) { 885 AbstractClassInstantiationError(className) {
832 this[_className] = className; 886 this[_className] = className;
833 super.Error(); 887 super.Error();
834 } 888 }
835 toString() { 889 toString() {
836 return `Cannot instantiate abstract class: '${this[_className]}'`; 890 return `Cannot instantiate abstract class: '${this[_className]}'`;
837 } 891 }
838 } 892 }
893 dart.setSignature(AbstractClassInstantiationError, {
894 constructors: () => ({AbstractClassInstantiationError: [AbstractClassInstant iationError, [String]]})
895 });
839 let _receiver = dart.JsSymbol('_receiver'); 896 let _receiver = dart.JsSymbol('_receiver');
840 let _memberName = dart.JsSymbol('_memberName'); 897 let _memberName = dart.JsSymbol('_memberName');
841 let _arguments = dart.JsSymbol('_arguments'); 898 let _arguments = dart.JsSymbol('_arguments');
842 let _namedArguments = dart.JsSymbol('_namedArguments'); 899 let _namedArguments = dart.JsSymbol('_namedArguments');
843 let _existingArgumentNames = dart.JsSymbol('_existingArgumentNames'); 900 let _existingArgumentNames = dart.JsSymbol('_existingArgumentNames');
844 let $length = dart.JsSymbol('$length'); 901 let $length = dart.JsSymbol('$length');
845 let $get = dart.JsSymbol('$get'); 902 let $get = dart.JsSymbol('$get');
846 class NoSuchMethodError extends Error { 903 class NoSuchMethodError extends Error {
847 NoSuchMethodError(receiver, memberName, positionalArguments, namedArguments, existingArgumentNames) { 904 NoSuchMethodError(receiver, memberName, positionalArguments, namedArguments, existingArgumentNames) {
848 if (existingArgumentNames === void 0) 905 if (existingArgumentNames === void 0)
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
885 if (dart.notNull(i) > 0) { 942 if (dart.notNull(i) > 0) {
886 sb.write(", "); 943 sb.write(", ");
887 } 944 }
888 sb.write(this[_existingArgumentNames][$get](i)); 945 sb.write(this[_existingArgumentNames][$get](i));
889 } 946 }
890 let formalParameters = dart.toString(sb); 947 let formalParameters = dart.toString(sb);
891 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})`; 948 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})`;
892 } 949 }
893 } 950 }
894 } 951 }
952 dart.setSignature(NoSuchMethodError, {
953 constructors: () => ({NoSuchMethodError: [NoSuchMethodError, [Object, Symbol , List, Map$(Symbol, Object)], [List]]})
954 });
895 class UnsupportedError extends Error { 955 class UnsupportedError extends Error {
896 UnsupportedError(message) { 956 UnsupportedError(message) {
897 this.message = message; 957 this.message = message;
898 super.Error(); 958 super.Error();
899 } 959 }
900 toString() { 960 toString() {
901 return `Unsupported operation: ${this.message}`; 961 return `Unsupported operation: ${this.message}`;
902 } 962 }
903 } 963 }
964 dart.setSignature(UnsupportedError, {
965 constructors: () => ({UnsupportedError: [UnsupportedError, [String]]})
966 });
904 class UnimplementedError extends Error { 967 class UnimplementedError extends Error {
905 UnimplementedError(message) { 968 UnimplementedError(message) {
906 if (message === void 0) 969 if (message === void 0)
907 message = null; 970 message = null;
908 this.message = message; 971 this.message = message;
909 super.Error(); 972 super.Error();
910 } 973 }
911 toString() { 974 toString() {
912 return this.message != null ? `UnimplementedError: ${this.message}` : "Uni mplementedError"; 975 return this.message != null ? `UnimplementedError: ${this.message}` : "Uni mplementedError";
913 } 976 }
914 } 977 }
915 UnimplementedError[dart.implements] = () => [UnsupportedError]; 978 UnimplementedError[dart.implements] = () => [UnsupportedError];
979 dart.setSignature(UnimplementedError, {
980 constructors: () => ({UnimplementedError: [UnimplementedError, [], [String]] })
981 });
916 class StateError extends Error { 982 class StateError extends Error {
917 StateError(message) { 983 StateError(message) {
918 this.message = message; 984 this.message = message;
919 super.Error(); 985 super.Error();
920 } 986 }
921 toString() { 987 toString() {
922 return `Bad state: ${this.message}`; 988 return `Bad state: ${this.message}`;
923 } 989 }
924 } 990 }
991 dart.setSignature(StateError, {
992 constructors: () => ({StateError: [StateError, [String]]})
993 });
925 class ConcurrentModificationError extends Error { 994 class ConcurrentModificationError extends Error {
926 ConcurrentModificationError(modifiedObject) { 995 ConcurrentModificationError(modifiedObject) {
927 if (modifiedObject === void 0) 996 if (modifiedObject === void 0)
928 modifiedObject = null; 997 modifiedObject = null;
929 this.modifiedObject = modifiedObject; 998 this.modifiedObject = modifiedObject;
930 super.Error(); 999 super.Error();
931 } 1000 }
932 toString() { 1001 toString() {
933 if (this.modifiedObject == null) { 1002 if (this.modifiedObject == null) {
934 return "Concurrent modification during iteration."; 1003 return "Concurrent modification during iteration.";
935 } 1004 }
936 return "Concurrent modification during iteration: " + `${Error.safeToStrin g(this.modifiedObject)}.`; 1005 return "Concurrent modification during iteration: " + `${Error.safeToStrin g(this.modifiedObject)}.`;
937 } 1006 }
938 } 1007 }
1008 dart.setSignature(ConcurrentModificationError, {
1009 constructors: () => ({ConcurrentModificationError: [ConcurrentModificationEr ror, [], [Object]]})
1010 });
939 class OutOfMemoryError extends Object { 1011 class OutOfMemoryError extends Object {
940 OutOfMemoryError() { 1012 OutOfMemoryError() {
941 } 1013 }
942 toString() { 1014 toString() {
943 return "Out of Memory"; 1015 return "Out of Memory";
944 } 1016 }
945 get stackTrace() { 1017 get stackTrace() {
946 return null; 1018 return null;
947 } 1019 }
948 } 1020 }
949 OutOfMemoryError[dart.implements] = () => [Error]; 1021 OutOfMemoryError[dart.implements] = () => [Error];
1022 dart.setSignature(OutOfMemoryError, {
1023 constructors: () => ({OutOfMemoryError: [OutOfMemoryError, []]})
1024 });
950 class StackOverflowError extends Object { 1025 class StackOverflowError extends Object {
951 StackOverflowError() { 1026 StackOverflowError() {
952 } 1027 }
953 toString() { 1028 toString() {
954 return "Stack Overflow"; 1029 return "Stack Overflow";
955 } 1030 }
956 get stackTrace() { 1031 get stackTrace() {
957 return null; 1032 return null;
958 } 1033 }
959 } 1034 }
960 StackOverflowError[dart.implements] = () => [Error]; 1035 StackOverflowError[dart.implements] = () => [Error];
1036 dart.setSignature(StackOverflowError, {
1037 constructors: () => ({StackOverflowError: [StackOverflowError, []]})
1038 });
961 class CyclicInitializationError extends Error { 1039 class CyclicInitializationError extends Error {
962 CyclicInitializationError(variableName) { 1040 CyclicInitializationError(variableName) {
963 if (variableName === void 0) 1041 if (variableName === void 0)
964 variableName = null; 1042 variableName = null;
965 this.variableName = variableName; 1043 this.variableName = variableName;
966 super.Error(); 1044 super.Error();
967 } 1045 }
968 toString() { 1046 toString() {
969 return this.variableName == null ? "Reading static variable during its ini tialization" : `Reading static variable '${this.variableName}' during its initia lization`; 1047 return this.variableName == null ? "Reading static variable during its ini tialization" : `Reading static variable '${this.variableName}' during its initia lization`;
970 } 1048 }
971 } 1049 }
1050 dart.setSignature(CyclicInitializationError, {
1051 constructors: () => ({CyclicInitializationError: [CyclicInitializationError, [], [String]]})
1052 });
972 class Exception extends Object { 1053 class Exception extends Object {
973 Exception(message) { 1054 Exception(message) {
974 if (message === void 0) 1055 if (message === void 0)
975 message = null; 1056 message = null;
976 return new _ExceptionImplementation(message); 1057 return new _ExceptionImplementation(message);
977 } 1058 }
978 } 1059 }
1060 dart.setSignature(Exception, {
1061 constructors: () => ({Exception: [Exception, [], [Object]]})
1062 });
979 class _ExceptionImplementation extends Object { 1063 class _ExceptionImplementation extends Object {
980 _ExceptionImplementation(message) { 1064 _ExceptionImplementation(message) {
981 if (message === void 0) 1065 if (message === void 0)
982 message = null; 1066 message = null;
983 this.message = message; 1067 this.message = message;
984 } 1068 }
985 toString() { 1069 toString() {
986 if (this.message == null) 1070 if (this.message == null)
987 return "Exception"; 1071 return "Exception";
988 return `Exception: ${this.message}`; 1072 return `Exception: ${this.message}`;
989 } 1073 }
990 } 1074 }
991 _ExceptionImplementation[dart.implements] = () => [Exception]; 1075 _ExceptionImplementation[dart.implements] = () => [Exception];
1076 dart.setSignature(_ExceptionImplementation, {
1077 constructors: () => ({_ExceptionImplementation: [_ExceptionImplementation, [ ], [Object]]})
1078 });
992 class FormatException extends Object { 1079 class FormatException extends Object {
993 FormatException(message, source, offset) { 1080 FormatException(message, source, offset) {
994 if (message === void 0) 1081 if (message === void 0)
995 message = ""; 1082 message = "";
996 if (source === void 0) 1083 if (source === void 0)
997 source = null; 1084 source = null;
998 if (offset === void 0) 1085 if (offset === void 0)
999 offset = -1; 1086 offset = -1;
1000 this.message = message; 1087 this.message = message;
1001 this.source = source; 1088 this.source = source;
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
1071 end = dart.notNull(offset) + 36; 1158 end = dart.notNull(offset) + 36;
1072 prefix = postfix = "..."; 1159 prefix = postfix = "...";
1073 } 1160 }
1074 } 1161 }
1075 let slice = dart.as(dart.dsend(this.source, 'substring', start, end), Stri ng); 1162 let slice = dart.as(dart.dsend(this.source, 'substring', start, end), Stri ng);
1076 let markOffset = dart.notNull(offset) - dart.notNull(start) + dart.notNull (prefix.length); 1163 let markOffset = dart.notNull(offset) - dart.notNull(start) + dart.notNull (prefix.length);
1077 return `${report}${prefix}${slice}${postfix}\n${" "['*'](markOffset)}^\n`; 1164 return `${report}${prefix}${slice}${postfix}\n${" "['*'](markOffset)}^\n`;
1078 } 1165 }
1079 } 1166 }
1080 FormatException[dart.implements] = () => [Exception]; 1167 FormatException[dart.implements] = () => [Exception];
1168 dart.setSignature(FormatException, {
1169 constructors: () => ({FormatException: [FormatException, [], [String, Object , int]]})
1170 });
1081 class IntegerDivisionByZeroException extends Object { 1171 class IntegerDivisionByZeroException extends Object {
1082 IntegerDivisionByZeroException() { 1172 IntegerDivisionByZeroException() {
1083 } 1173 }
1084 toString() { 1174 toString() {
1085 return "IntegerDivisionByZeroException"; 1175 return "IntegerDivisionByZeroException";
1086 } 1176 }
1087 } 1177 }
1088 IntegerDivisionByZeroException[dart.implements] = () => [Exception]; 1178 IntegerDivisionByZeroException[dart.implements] = () => [Exception];
1179 dart.setSignature(IntegerDivisionByZeroException, {
1180 constructors: () => ({IntegerDivisionByZeroException: [IntegerDivisionByZero Exception, []]})
1181 });
1089 let _getKey = dart.JsSymbol('_getKey'); 1182 let _getKey = dart.JsSymbol('_getKey');
1090 let Expando$ = dart.generic(function(T) { 1183 let Expando$ = dart.generic(function(T) {
1091 class Expando extends Object { 1184 class Expando extends Object {
1092 Expando(name) { 1185 Expando(name) {
1093 if (name === void 0) 1186 if (name === void 0)
1094 name = null; 1187 name = null;
1095 this.name = name; 1188 this.name = name;
1096 } 1189 }
1097 toString() { 1190 toString() {
1098 return `Expando:${this.name}`; 1191 return `Expando:${this.name}`;
(...skipping 18 matching lines...) Expand all
1117 let x = Expando$()._keyCount; 1210 let x = Expando$()._keyCount;
1118 Expando$()._keyCount = dart.notNull(x) + 1; 1211 Expando$()._keyCount = dart.notNull(x) + 1;
1119 return x; 1212 return x;
1120 })()}`; 1213 })()}`;
1121 _js_helper.Primitives.setProperty(this, Expando$()._KEY_PROPERTY_NAME, key); 1214 _js_helper.Primitives.setProperty(this, Expando$()._KEY_PROPERTY_NAME, key);
1122 } 1215 }
1123 return key; 1216 return key;
1124 } 1217 }
1125 } 1218 }
1126 dart.setSignature(Expando, { 1219 dart.setSignature(Expando, {
1220 constructors: () => ({Expando: [Expando$(T), [], [String]]}),
1127 methods: () => ({ 1221 methods: () => ({
1128 get: [T, [Object]], 1222 get: [T, [Object]],
1129 set: [dart.void, [Object, T]], 1223 set: [dart.void, [Object, T]],
1130 [_getKey]: [String, []] 1224 [_getKey]: [String, []]
1131 }) 1225 })
1132 }); 1226 });
1133 return Expando; 1227 return Expando;
1134 }); 1228 });
1135 let Expando = Expando$(); 1229 let Expando = Expando$();
1136 Expando._KEY_PROPERTY_NAME = 'expando$key'; 1230 Expando._KEY_PROPERTY_NAME = 'expando$key';
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
1171 throw new UnsupportedError('int.fromEnvironment can only be used as a cons t constructor'); 1265 throw new UnsupportedError('int.fromEnvironment can only be used as a cons t constructor');
1172 } 1266 }
1173 static parse(source, opts) { 1267 static parse(source, opts) {
1174 let radix = opts && 'radix' in opts ? opts.radix : null; 1268 let radix = opts && 'radix' in opts ? opts.radix : null;
1175 let onError = opts && 'onError' in opts ? opts.onError : null; 1269 let onError = opts && 'onError' in opts ? opts.onError : null;
1176 return _js_helper.Primitives.parseInt(source, radix, onError); 1270 return _js_helper.Primitives.parseInt(source, radix, onError);
1177 } 1271 }
1178 } 1272 }
1179 dart.defineNamedConstructor(int, 'fromEnvironment'); 1273 dart.defineNamedConstructor(int, 'fromEnvironment');
1180 dart.setSignature(int, { 1274 dart.setSignature(int, {
1275 constructors: () => ({fromEnvironment: [int, [String], {efaultValu: int}]}),
1181 statics: () => ({parse: [int, [String], {adi: int, nErro: dart.functionType( int, [String])}]}), 1276 statics: () => ({parse: [int, [String], {adi: int, nErro: dart.functionType( int, [String])}]}),
vsm 2015/05/21 21:21:17 Looks like this bug is from an earlier CL - "nErro
Leaf 2015/05/21 21:35:19 Acknowledged.
1182 names: ['parse'] 1277 names: ['parse']
1183 }); 1278 });
1184 class Invocation extends Object { 1279 class Invocation extends Object {
1185 get isAccessor() { 1280 get isAccessor() {
1186 return dart.notNull(this.isGetter) || dart.notNull(this.isSetter); 1281 return dart.notNull(this.isGetter) || dart.notNull(this.isSetter);
1187 } 1282 }
1188 } 1283 }
1189 let $iterator = dart.JsSymbol('$iterator'); 1284 let $iterator = dart.JsSymbol('$iterator');
1190 let $join = dart.JsSymbol('$join'); 1285 let $join = dart.JsSymbol('$join');
1191 let Iterable$ = dart.generic(function(E) { 1286 let Iterable$ = dart.generic(function(E) {
(...skipping 13 matching lines...) Expand all
1205 [$join](separator) { 1300 [$join](separator) {
1206 if (separator === void 0) 1301 if (separator === void 0)
1207 separator = ""; 1302 separator = "";
1208 let buffer = new StringBuffer(); 1303 let buffer = new StringBuffer();
1209 buffer.writeAll(this, separator); 1304 buffer.writeAll(this, separator);
1210 return dart.toString(buffer); 1305 return dart.toString(buffer);
1211 } 1306 }
1212 } 1307 }
1213 dart.defineNamedConstructor(Iterable, 'generate'); 1308 dart.defineNamedConstructor(Iterable, 'generate');
1214 dart.setSignature(Iterable, { 1309 dart.setSignature(Iterable, {
1310 constructors: () => ({
1311 Iterable: [Iterable$(E), []],
1312 generate: [Iterable$(E), [int], [dart.functionType(E, [int])]]
1313 }),
1215 methods: () => ({[$join]: [String, [], [String]]}) 1314 methods: () => ({[$join]: [String, [], [String]]})
1216 }); 1315 });
1217 return Iterable; 1316 return Iterable;
1218 }); 1317 });
1219 let Iterable = Iterable$(); 1318 let Iterable = Iterable$();
1220 let _Generator$ = dart.generic(function(E) { 1319 let _Generator$ = dart.generic(function(E) {
1221 let _Generator = dart.typedef('_Generator', () => dart.functionType(E, [int] )); 1320 let _Generator = dart.typedef('_Generator', () => dart.functionType(E, [int] ));
1222 return _Generator; 1321 return _Generator;
1223 }); 1322 });
1224 let _Generator = _Generator$(); 1323 let _Generator = _Generator$();
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
1265 return this; 1364 return this;
1266 return new (exports._GeneratorIterable$(E)).slice(this[_start], newEnd, this[_generator]); 1365 return new (exports._GeneratorIterable$(E)).slice(this[_start], newEnd, this[_generator]);
1267 } 1366 }
1268 static _id(n) { 1367 static _id(n) {
1269 return n; 1368 return n;
1270 } 1369 }
1271 } 1370 }
1272 _GeneratorIterable[dart.implements] = () => [_internal.EfficientLength]; 1371 _GeneratorIterable[dart.implements] = () => [_internal.EfficientLength];
1273 dart.defineNamedConstructor(_GeneratorIterable, 'slice'); 1372 dart.defineNamedConstructor(_GeneratorIterable, 'slice');
1274 dart.setSignature(_GeneratorIterable, { 1373 dart.setSignature(_GeneratorIterable, {
1374 constructors: () => ({
1375 _GeneratorIterable: [exports._GeneratorIterable$(E), [int, dart.function Type(E, [int])]],
1376 slice: [exports._GeneratorIterable$(E), [int, int, _Generator$(E)]]
1377 }),
1275 methods: () => ({ 1378 methods: () => ({
1276 [$skip]: [Iterable$(E), [int]], 1379 [$skip]: [Iterable$(E), [int]],
1277 [$take]: [Iterable$(E), [int]] 1380 [$take]: [Iterable$(E), [int]]
1278 }), 1381 }),
1279 statics: () => ({_id: [int, [int]]}), 1382 statics: () => ({_id: [int, [int]]}),
1280 names: ['_id'] 1383 names: ['_id']
1281 }); 1384 });
1282 return _GeneratorIterable; 1385 return _GeneratorIterable;
1283 }); 1386 });
1284 dart.defineLazyClassGeneric(exports, '_GeneratorIterable', {get: _GeneratorIte rable$}); 1387 dart.defineLazyClassGeneric(exports, '_GeneratorIterable', {get: _GeneratorIte rable$});
(...skipping 16 matching lines...) Expand all
1301 this[_current] = null; 1404 this[_current] = null;
1302 return false; 1405 return false;
1303 } 1406 }
1304 } 1407 }
1305 get current() { 1408 get current() {
1306 return this[_current]; 1409 return this[_current];
1307 } 1410 }
1308 } 1411 }
1309 _GeneratorIterator[dart.implements] = () => [Iterator$(E)]; 1412 _GeneratorIterator[dart.implements] = () => [Iterator$(E)];
1310 dart.setSignature(_GeneratorIterator, { 1413 dart.setSignature(_GeneratorIterator, {
1414 constructors: () => ({_GeneratorIterator: [_GeneratorIterator$(E), [int, i nt, _Generator$(E)]]}),
1311 methods: () => ({moveNext: [bool, []]}) 1415 methods: () => ({moveNext: [bool, []]})
1312 }); 1416 });
1313 return _GeneratorIterator; 1417 return _GeneratorIterator;
1314 }); 1418 });
1315 let _GeneratorIterator = _GeneratorIterator$(); 1419 let _GeneratorIterator = _GeneratorIterator$();
1316 let BidirectionalIterator$ = dart.generic(function(E) { 1420 let BidirectionalIterator$ = dart.generic(function(E) {
1317 class BidirectionalIterator extends Object {} 1421 class BidirectionalIterator extends Object {}
1318 BidirectionalIterator[dart.implements] = () => [Iterator$(E)]; 1422 BidirectionalIterator[dart.implements] = () => [Iterator$(E)];
1319 return BidirectionalIterator; 1423 return BidirectionalIterator;
1320 }); 1424 });
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
1733 [$asMap]() { 1837 [$asMap]() {
1734 return new (_internal.IterableMixinWorkaround$(E))().asMapList(this); 1838 return new (_internal.IterableMixinWorkaround$(E))().asMapList(this);
1735 } 1839 }
1736 } 1840 }
1737 dart.setBaseClass(List, dart.global.Array); 1841 dart.setBaseClass(List, dart.global.Array);
1738 List[dart.implements] = () => [Iterable$(E), _internal.EfficientLength]; 1842 List[dart.implements] = () => [Iterable$(E), _internal.EfficientLength];
1739 dart.defineNamedConstructor(List, 'filled'); 1843 dart.defineNamedConstructor(List, 'filled');
1740 dart.defineNamedConstructor(List, 'from'); 1844 dart.defineNamedConstructor(List, 'from');
1741 dart.defineNamedConstructor(List, 'generate'); 1845 dart.defineNamedConstructor(List, 'generate');
1742 dart.setSignature(List, { 1846 dart.setSignature(List, {
1847 constructors: () => ({
1848 List: [List$(E), [], [int]],
1849 filled: [List$(E), [int, E]],
1850 from: [List$(E), [Iterable], {rowabl: bool}],
1851 generate: [List$(E), [int, dart.functionType(E, [int])], {rowabl: bool}]
1852 }),
1743 methods: () => ({ 1853 methods: () => ({
1744 [$checkMutable]: [Object, [Object]], 1854 [$checkMutable]: [Object, [Object]],
1745 [$checkGrowable]: [Object, [Object]], 1855 [$checkGrowable]: [Object, [Object]],
1746 [$where]: [Iterable$(E), [dart.functionType(bool, [E])]], 1856 [$where]: [Iterable$(E), [dart.functionType(bool, [E])]],
1747 [$expand]: [Iterable, [dart.functionType(Iterable, [E])]], 1857 [$expand]: [Iterable, [dart.functionType(Iterable, [E])]],
1748 [$forEach]: [dart.void, [dart.functionType(dart.void, [E])]], 1858 [$forEach]: [dart.void, [dart.functionType(dart.void, [E])]],
1749 [$map]: [Iterable, [dart.functionType(Object, [E])]], 1859 [$map]: [Iterable, [dart.functionType(Object, [E])]],
1750 [$join]: [String, [], [String]], 1860 [$join]: [String, [], [String]],
1751 [$take]: [Iterable$(E), [int]], 1861 [$take]: [Iterable$(E), [int]],
1752 [$takeWhile]: [Iterable$(E), [dart.functionType(bool, [E])]], 1862 [$takeWhile]: [Iterable$(E), [dart.functionType(bool, [E])]],
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
1808 return new (collection.LinkedHashMap$(K, V)).fromIterable(iterable, opts ); 1918 return new (collection.LinkedHashMap$(K, V)).fromIterable(iterable, opts );
1809 } 1919 }
1810 fromIterables(keys, values) { 1920 fromIterables(keys, values) {
1811 return new (collection.LinkedHashMap$(K, V)).fromIterables(keys, values) ; 1921 return new (collection.LinkedHashMap$(K, V)).fromIterables(keys, values) ;
1812 } 1922 }
1813 } 1923 }
1814 dart.defineNamedConstructor(Map, 'from'); 1924 dart.defineNamedConstructor(Map, 'from');
1815 dart.defineNamedConstructor(Map, 'identity'); 1925 dart.defineNamedConstructor(Map, 'identity');
1816 dart.defineNamedConstructor(Map, 'fromIterable'); 1926 dart.defineNamedConstructor(Map, 'fromIterable');
1817 dart.defineNamedConstructor(Map, 'fromIterables'); 1927 dart.defineNamedConstructor(Map, 'fromIterables');
1928 dart.setSignature(Map, {
1929 constructors: () => ({
1930 Map: [Map$(K, V), []],
1931 from: [Map$(K, V), [Map$()]],
1932 identity: [Map$(K, V), []],
1933 fromIterable: [Map$(K, V), [Iterable], {e: dart.functionType(K, [dart.bo ttom]), alu: dart.functionType(V, [dart.bottom])}],
1934 fromIterables: [Map$(K, V), [Iterable$(K), Iterable$(V)]]
1935 })
1936 });
1818 return Map; 1937 return Map;
1819 }); 1938 });
1820 let Map = Map$(); 1939 let Map = Map$();
1821 class Null extends Object { 1940 class Null extends Object {
1822 _uninstantiable() { 1941 _uninstantiable() {
1823 throw new UnsupportedError('class Null cannot be instantiated'); 1942 throw new UnsupportedError('class Null cannot be instantiated');
1824 } 1943 }
1825 toString() { 1944 toString() {
1826 return "null"; 1945 return "null";
1827 } 1946 }
1828 } 1947 }
1829 dart.defineNamedConstructor(Null, '_uninstantiable'); 1948 dart.defineNamedConstructor(Null, '_uninstantiable');
1949 dart.setSignature(Null, {
1950 constructors: () => ({_uninstantiable: [Null, []]})
1951 });
1830 num._parseError = false; 1952 num._parseError = false;
1831 class Pattern extends Object {} 1953 class Pattern extends Object {}
1832 function print(object) { 1954 function print(object) {
1833 let line = `${object}`; 1955 let line = `${object}`;
1834 if (_internal.printToZone == null) { 1956 if (_internal.printToZone == null) {
1835 _internal.printToConsole(line); 1957 _internal.printToConsole(line);
1836 } else { 1958 } else {
1837 dart.dcall(_internal.printToZone, line); 1959 dart.dcall(_internal.printToZone, line);
1838 } 1960 }
1839 } 1961 }
1840 dart.fn(print, dart.void, [Object]); 1962 dart.fn(print, dart.void, [Object]);
1841 class Match extends Object {} 1963 class Match extends Object {}
1842 class RegExp extends Object { 1964 class RegExp extends Object {
1843 RegExp(source, opts) { 1965 RegExp(source, opts) {
1844 let multiLine = opts && 'multiLine' in opts ? opts.multiLine : false; 1966 let multiLine = opts && 'multiLine' in opts ? opts.multiLine : false;
1845 let caseSensitive = opts && 'caseSensitive' in opts ? opts.caseSensitive : true; 1967 let caseSensitive = opts && 'caseSensitive' in opts ? opts.caseSensitive : true;
1846 return new _js_helper.JSSyntaxRegExp(source, {multiLine: multiLine, caseSe nsitive: caseSensitive}); 1968 return new _js_helper.JSSyntaxRegExp(source, {multiLine: multiLine, caseSe nsitive: caseSensitive});
1847 } 1969 }
1848 } 1970 }
1849 RegExp[dart.implements] = () => [Pattern]; 1971 RegExp[dart.implements] = () => [Pattern];
1972 dart.setSignature(RegExp, {
1973 constructors: () => ({RegExp: [RegExp, [String], {ultiLin: bool, aseSensitiv : bool}]})
1974 });
1850 let Set$ = dart.generic(function(E) { 1975 let Set$ = dart.generic(function(E) {
1851 class Set extends collection.IterableBase$(E) { 1976 class Set extends collection.IterableBase$(E) {
1852 Set() { 1977 Set() {
1853 return new (collection.LinkedHashSet$(E))(); 1978 return new (collection.LinkedHashSet$(E))();
1854 } 1979 }
1855 identity() { 1980 identity() {
1856 return new (collection.LinkedHashSet$(E)).identity(); 1981 return new (collection.LinkedHashSet$(E)).identity();
1857 } 1982 }
1858 from(elements) { 1983 from(elements) {
1859 return new (collection.LinkedHashSet$(E)).from(elements); 1984 return new (collection.LinkedHashSet$(E)).from(elements);
1860 } 1985 }
1861 } 1986 }
1862 Set[dart.implements] = () => [_internal.EfficientLength]; 1987 Set[dart.implements] = () => [_internal.EfficientLength];
1863 dart.defineNamedConstructor(Set, 'identity'); 1988 dart.defineNamedConstructor(Set, 'identity');
1864 dart.defineNamedConstructor(Set, 'from'); 1989 dart.defineNamedConstructor(Set, 'from');
1990 dart.setSignature(Set, {
1991 constructors: () => ({
1992 Set: [exports.Set$(E), []],
1993 identity: [exports.Set$(E), []],
1994 from: [exports.Set$(E), [Iterable]]
1995 })
1996 });
1865 return Set; 1997 return Set;
1866 }); 1998 });
1867 dart.defineLazyClassGeneric(exports, 'Set', {get: Set$}); 1999 dart.defineLazyClassGeneric(exports, 'Set', {get: Set$});
1868 let Sink$ = dart.generic(function(T) { 2000 let Sink$ = dart.generic(function(T) {
1869 class Sink extends Object {} 2001 class Sink extends Object {}
1870 return Sink; 2002 return Sink;
1871 }); 2003 });
1872 let Sink = Sink$(); 2004 let Sink = Sink$();
1873 class StackTrace extends Object {} 2005 class StackTrace extends Object {}
1874 let _stop = dart.JsSymbol('_stop'); 2006 let _stop = dart.JsSymbol('_stop');
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
1924 } 2056 }
1925 static _initTicker() { 2057 static _initTicker() {
1926 _js_helper.Primitives.initTicker(); 2058 _js_helper.Primitives.initTicker();
1927 Stopwatch._frequency = _js_helper.Primitives.timerFrequency; 2059 Stopwatch._frequency = _js_helper.Primitives.timerFrequency;
1928 } 2060 }
1929 static _now() { 2061 static _now() {
1930 return dart.as(dart.dcall(_js_helper.Primitives.timerTicks), int); 2062 return dart.as(dart.dcall(_js_helper.Primitives.timerTicks), int);
1931 } 2063 }
1932 } 2064 }
1933 dart.setSignature(Stopwatch, { 2065 dart.setSignature(Stopwatch, {
2066 constructors: () => ({Stopwatch: [Stopwatch, []]}),
1934 methods: () => ({ 2067 methods: () => ({
1935 start: [dart.void, []], 2068 start: [dart.void, []],
1936 stop: [dart.void, []], 2069 stop: [dart.void, []],
1937 reset: [dart.void, []] 2070 reset: [dart.void, []]
1938 }), 2071 }),
1939 statics: () => ({ 2072 statics: () => ({
1940 _initTicker: [dart.void, []], 2073 _initTicker: [dart.void, []],
1941 _now: [int, []] 2074 _now: [int, []]
1942 }), 2075 }),
1943 names: ['_initTicker', '_now'] 2076 names: ['_initTicker', '_now']
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
1999 } 2132 }
2000 } 2133 }
2001 return _js_helper.Primitives.stringFromCharCodes(list); 2134 return _js_helper.Primitives.stringFromCharCodes(list);
2002 } 2135 }
2003 } 2136 }
2004 String[dart.implements] = () => [Comparable$(String), Pattern]; 2137 String[dart.implements] = () => [Comparable$(String), Pattern];
2005 dart.defineNamedConstructor(String, 'fromCharCodes'); 2138 dart.defineNamedConstructor(String, 'fromCharCodes');
2006 dart.defineNamedConstructor(String, 'fromCharCode'); 2139 dart.defineNamedConstructor(String, 'fromCharCode');
2007 dart.defineNamedConstructor(String, 'fromEnvironment'); 2140 dart.defineNamedConstructor(String, 'fromEnvironment');
2008 dart.setSignature(String, { 2141 dart.setSignature(String, {
2142 constructors: () => ({
2143 fromCharCodes: [String, [Iterable$(int)], [int, int]],
2144 fromCharCode: [String, [int]],
2145 fromEnvironment: [String, [String], {efaultValu: String}]
2146 }),
2009 statics: () => ({_stringFromIterable: [String, [Iterable$(int), int, int]]}) , 2147 statics: () => ({_stringFromIterable: [String, [Iterable$(int), int, int]]}) ,
2010 names: ['_stringFromIterable'] 2148 names: ['_stringFromIterable']
2011 }); 2149 });
2012 dart.defineLazyClass(exports, { 2150 dart.defineLazyClass(exports, {
2013 get Runes() { 2151 get Runes() {
2014 class Runes extends collection.IterableBase$(int) { 2152 class Runes extends collection.IterableBase$(int) {
2015 Runes(string) { 2153 Runes(string) {
2016 this.string = string; 2154 this.string = string;
2017 super.IterableBase(); 2155 super.IterableBase();
2018 } 2156 }
2019 get [$iterator]() { 2157 get [$iterator]() {
2020 return new RuneIterator(this.string); 2158 return new RuneIterator(this.string);
2021 } 2159 }
2022 get [$last]() { 2160 get [$last]() {
2023 if (this.string.length == 0) { 2161 if (this.string.length == 0) {
2024 throw new StateError('No elements.'); 2162 throw new StateError('No elements.');
2025 } 2163 }
2026 let length = this.string.length; 2164 let length = this.string.length;
2027 let code = this.string.codeUnitAt(dart.notNull(length) - 1); 2165 let code = this.string.codeUnitAt(dart.notNull(length) - 1);
2028 if (dart.notNull(_isTrailSurrogate(code)) && dart.notNull(this.string. length) > 1) { 2166 if (dart.notNull(_isTrailSurrogate(code)) && dart.notNull(this.string. length) > 1) {
2029 let previousCode = this.string.codeUnitAt(dart.notNull(length) - 2); 2167 let previousCode = this.string.codeUnitAt(dart.notNull(length) - 2);
2030 if (_isLeadSurrogate(previousCode)) { 2168 if (_isLeadSurrogate(previousCode)) {
2031 return _combineSurrogatePair(previousCode, code); 2169 return _combineSurrogatePair(previousCode, code);
2032 } 2170 }
2033 } 2171 }
2034 return code; 2172 return code;
2035 } 2173 }
2036 } 2174 }
2175 dart.setSignature(Runes, {
2176 constructors: () => ({Runes: [exports.Runes, [String]]})
2177 });
2037 return Runes; 2178 return Runes;
2038 } 2179 }
2039 }); 2180 });
2040 function _isLeadSurrogate(code) { 2181 function _isLeadSurrogate(code) {
2041 return (dart.notNull(code) & 64512) == 55296; 2182 return (dart.notNull(code) & 64512) == 55296;
2042 } 2183 }
2043 dart.fn(_isLeadSurrogate, bool, [int]); 2184 dart.fn(_isLeadSurrogate, bool, [int]);
2044 function _isTrailSurrogate(code) { 2185 function _isTrailSurrogate(code) {
2045 return (dart.notNull(code) & 64512) == 56320; 2186 return (dart.notNull(code) & 64512) == 56320;
2046 } 2187 }
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
2139 } 2280 }
2140 } 2281 }
2141 this[_position] = position; 2282 this[_position] = position;
2142 this[_currentCodePoint] = codeUnit; 2283 this[_currentCodePoint] = codeUnit;
2143 return true; 2284 return true;
2144 } 2285 }
2145 } 2286 }
2146 RuneIterator[dart.implements] = () => [BidirectionalIterator$(int)]; 2287 RuneIterator[dart.implements] = () => [BidirectionalIterator$(int)];
2147 dart.defineNamedConstructor(RuneIterator, 'at'); 2288 dart.defineNamedConstructor(RuneIterator, 'at');
2148 dart.setSignature(RuneIterator, { 2289 dart.setSignature(RuneIterator, {
2290 constructors: () => ({
2291 RuneIterator: [RuneIterator, [String]],
2292 at: [RuneIterator, [String, int]]
2293 }),
2149 methods: () => ({ 2294 methods: () => ({
2150 [_checkSplitSurrogate]: [dart.void, [int]], 2295 [_checkSplitSurrogate]: [dart.void, [int]],
2151 reset: [dart.void, [], [int]], 2296 reset: [dart.void, [], [int]],
2152 moveNext: [bool, []], 2297 moveNext: [bool, []],
2153 movePrevious: [bool, []] 2298 movePrevious: [bool, []]
2154 }) 2299 })
2155 }); 2300 });
2156 let _contents = dart.JsSymbol('_contents'); 2301 let _contents = dart.JsSymbol('_contents');
2157 let _writeString = dart.JsSymbol('_writeString'); 2302 let _writeString = dart.JsSymbol('_writeString');
2158 class StringBuffer extends Object { 2303 class StringBuffer extends Object {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
2205 } 2350 }
2206 toString() { 2351 toString() {
2207 return _js_helper.Primitives.flattenString(this[_contents]); 2352 return _js_helper.Primitives.flattenString(this[_contents]);
2208 } 2353 }
2209 [_writeString](str) { 2354 [_writeString](str) {
2210 this[_contents] = _js_helper.Primitives.stringConcatUnchecked(this[_conten ts], dart.as(str, String)); 2355 this[_contents] = _js_helper.Primitives.stringConcatUnchecked(this[_conten ts], dart.as(str, String));
2211 } 2356 }
2212 } 2357 }
2213 StringBuffer[dart.implements] = () => [StringSink]; 2358 StringBuffer[dart.implements] = () => [StringSink];
2214 dart.setSignature(StringBuffer, { 2359 dart.setSignature(StringBuffer, {
2360 constructors: () => ({StringBuffer: [StringBuffer, [], [Object]]}),
2215 methods: () => ({ 2361 methods: () => ({
2216 write: [dart.void, [Object]], 2362 write: [dart.void, [Object]],
2217 writeCharCode: [dart.void, [int]], 2363 writeCharCode: [dart.void, [int]],
2218 writeAll: [dart.void, [Iterable], [String]], 2364 writeAll: [dart.void, [Iterable], [String]],
2219 writeln: [dart.void, [], [Object]], 2365 writeln: [dart.void, [], [Object]],
2220 clear: [dart.void, []], 2366 clear: [dart.void, []],
2221 [_writeString]: [dart.void, [Object]] 2367 [_writeString]: [dart.void, [Object]]
2222 }) 2368 })
2223 }); 2369 });
2224 class StringSink extends Object {} 2370 class StringSink extends Object {}
2225 class Symbol extends Object { 2371 class Symbol extends Object {
2226 Symbol(name) { 2372 Symbol(name) {
2227 return new _internal.Symbol(name); 2373 return new _internal.Symbol(name);
2228 } 2374 }
2229 } 2375 }
2376 dart.setSignature(Symbol, {
2377 constructors: () => ({Symbol: [Symbol, [String]]})
2378 });
2230 class Type extends Object {} 2379 class Type extends Object {}
2231 let _writeAuthority = dart.JsSymbol('_writeAuthority'); 2380 let _writeAuthority = dart.JsSymbol('_writeAuthority');
2232 let _userInfo = dart.JsSymbol('_userInfo'); 2381 let _userInfo = dart.JsSymbol('_userInfo');
2233 let _host = dart.JsSymbol('_host'); 2382 let _host = dart.JsSymbol('_host');
2234 let _port = dart.JsSymbol('_port'); 2383 let _port = dart.JsSymbol('_port');
2235 let _path = dart.JsSymbol('_path'); 2384 let _path = dart.JsSymbol('_path');
2236 let _query = dart.JsSymbol('_query'); 2385 let _query = dart.JsSymbol('_query');
2237 let _fragment = dart.JsSymbol('_fragment'); 2386 let _fragment = dart.JsSymbol('_fragment');
2238 let _pathSegments = dart.JsSymbol('_pathSegments'); 2387 let _pathSegments = dart.JsSymbol('_pathSegments');
2239 let _queryParameters = dart.JsSymbol('_queryParameters'); 2388 let _queryParameters = dart.JsSymbol('_queryParameters');
(...skipping 1247 matching lines...) Expand 10 before | Expand all | Expand 10 after
3487 } 3636 }
3488 static _isAlphabeticCharacter(codeUnit) { 3637 static _isAlphabeticCharacter(codeUnit) {
3489 return dart.notNull(codeUnit) >= dart.notNull(Uri._LOWER_CASE_A) && dart.n otNull(codeUnit) <= dart.notNull(Uri._LOWER_CASE_Z) || dart.notNull(codeUnit) >= dart.notNull(Uri._UPPER_CASE_A) && dart.notNull(codeUnit) <= dart.notNull(Uri._ UPPER_CASE_Z); 3638 return dart.notNull(codeUnit) >= dart.notNull(Uri._LOWER_CASE_A) && dart.n otNull(codeUnit) <= dart.notNull(Uri._LOWER_CASE_Z) || dart.notNull(codeUnit) >= dart.notNull(Uri._UPPER_CASE_A) && dart.notNull(codeUnit) <= dart.notNull(Uri._ UPPER_CASE_Z);
3490 } 3639 }
3491 } 3640 }
3492 dart.defineNamedConstructor(Uri, '_internal'); 3641 dart.defineNamedConstructor(Uri, '_internal');
3493 dart.defineNamedConstructor(Uri, 'http'); 3642 dart.defineNamedConstructor(Uri, 'http');
3494 dart.defineNamedConstructor(Uri, 'https'); 3643 dart.defineNamedConstructor(Uri, 'https');
3495 dart.defineNamedConstructor(Uri, 'file'); 3644 dart.defineNamedConstructor(Uri, 'file');
3496 dart.setSignature(Uri, { 3645 dart.setSignature(Uri, {
3646 constructors: () => ({
3647 _internal: [Uri, [String, String, String, num, String, String, String]],
3648 Uri: [Uri, [], {chem: String, serInf: String, os: String, or: int, at: Str ing, athSegment: Iterable$(String), uer: String, ueryParameter: Map$(String, Str ing), ragmen: String}],
3649 http: [Uri, [String, String], [Map$(String, String)]],
3650 https: [Uri, [String, String], [Map$(String, String)]],
3651 file: [Uri, [String], {indow: bool}]
3652 }),
3497 methods: () => ({ 3653 methods: () => ({
3498 replace: [Uri, [], {chem: String, serInf: String, os: String, or: int, at: String, athSegment: Iterable$(String), uer: String, ueryParameter: Map$(String, String), ragmen: String}], 3654 replace: [Uri, [], {chem: String, serInf: String, os: String, or: int, at: String, athSegment: Iterable$(String), uer: String, ueryParameter: Map$(String, String), ragmen: String}],
3499 [_merge]: [String, [String, String]], 3655 [_merge]: [String, [String, String]],
3500 [_hasDotSegments]: [bool, [String]], 3656 [_hasDotSegments]: [bool, [String]],
3501 [_removeDotSegments]: [String, [String]], 3657 [_removeDotSegments]: [String, [String]],
3502 resolve: [Uri, [String]], 3658 resolve: [Uri, [String]],
3503 resolveUri: [Uri, [Uri]], 3659 resolveUri: [Uri, [Uri]],
3504 toFilePath: [String, [], {indow: bool}], 3660 toFilePath: [String, [], {indow: bool}],
3505 [_toFilePath]: [String, []], 3661 [_toFilePath]: [String, []],
3506 [_toWindowsFilePath]: [String, []], 3662 [_toWindowsFilePath]: [String, []],
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
3599 map.forEach(dart.fn((key, value) => { 3755 map.forEach(dart.fn((key, value) => {
3600 result.set(_symbolToString(key), value); 3756 result.set(_symbolToString(key), value);
3601 }, Object, [Symbol, Object])); 3757 }, Object, [Symbol, Object]));
3602 return result; 3758 return result;
3603 } 3759 }
3604 dart.fn(_symbolMapToStringMap, Object, [Map$(Symbol, Object)]); 3760 dart.fn(_symbolMapToStringMap, Object, [Map$(Symbol, Object)]);
3605 class SupportJsExtensionMethods extends Object { 3761 class SupportJsExtensionMethods extends Object {
3606 SupportJsExtensionMethods() { 3762 SupportJsExtensionMethods() {
3607 } 3763 }
3608 } 3764 }
3765 dart.setSignature(SupportJsExtensionMethods, {
3766 constructors: () => ({SupportJsExtensionMethods: [SupportJsExtensionMethods, []]})
3767 });
3609 class _ListConstructorSentinel extends Object { 3768 class _ListConstructorSentinel extends Object {
3610 _ListConstructorSentinel() { 3769 _ListConstructorSentinel() {
3611 } 3770 }
3612 } 3771 }
3772 dart.setSignature(_ListConstructorSentinel, {
3773 constructors: () => ({_ListConstructorSentinel: [_ListConstructorSentinel, [ ]]})
3774 });
3613 // Exports: 3775 // Exports:
3614 exports.Object = Object; 3776 exports.Object = Object;
3615 exports.JsName = JsName; 3777 exports.JsName = JsName;
3616 exports.JsPeerInterface = JsPeerInterface; 3778 exports.JsPeerInterface = JsPeerInterface;
3617 exports.SupportJsExtensionMethod = SupportJsExtensionMethod; 3779 exports.SupportJsExtensionMethod = SupportJsExtensionMethod;
3618 exports.Deprecated = Deprecated; 3780 exports.Deprecated = Deprecated;
3619 exports.deprecated = deprecated; 3781 exports.deprecated = deprecated;
3620 exports.override = override; 3782 exports.override = override;
3621 exports.proxy = proxy; 3783 exports.proxy = proxy;
3622 exports.bool = bool; 3784 exports.bool = bool;
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
3734 exports.Stopwatch = Stopwatch; 3896 exports.Stopwatch = Stopwatch;
3735 exports.String = String; 3897 exports.String = String;
3736 exports.RuneIterator = RuneIterator; 3898 exports.RuneIterator = RuneIterator;
3737 exports.StringBuffer = StringBuffer; 3899 exports.StringBuffer = StringBuffer;
3738 exports.StringSink = StringSink; 3900 exports.StringSink = StringSink;
3739 exports.Symbol = Symbol; 3901 exports.Symbol = Symbol;
3740 exports.Type = Type; 3902 exports.Type = Type;
3741 exports.Uri = Uri; 3903 exports.Uri = Uri;
3742 exports.SupportJsExtensionMethods = SupportJsExtensionMethods; 3904 exports.SupportJsExtensionMethods = SupportJsExtensionMethods;
3743 })(core, _js_helper, _internal, collection, _interceptors, math, convert); 3905 })(core, _js_helper, _internal, collection, _interceptors, math, convert);
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