| 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'; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 noSuchMethod(invocation) { | 30 noSuchMethod(invocation) { |
| 31 throw new NoSuchMethodError(this, invocation.memberName, invocation.positi
onalArguments, invocation.namedArguments); | 31 throw new NoSuchMethodError(this, invocation.memberName, invocation.positi
onalArguments, invocation.namedArguments); |
| 32 } | 32 } |
| 33 get runtimeType() { | 33 get runtimeType() { |
| 34 return dart.realRuntimeType(this); | 34 return dart.realRuntimeType(this); |
| 35 } | 35 } |
| 36 } | 36 } |
| 37 dart.setSignature(Object, { | 37 dart.setSignature(Object, { |
| 38 constructors: () => ({Object: [Object, []]}), | 38 constructors: () => ({Object: [Object, []]}), |
| 39 methods: () => ({ | 39 methods: () => ({ |
| 40 '==': [bool, [Object]], | 40 '==': [bool, [dart.dynamic]], |
| 41 toString: [String, []], | 41 toString: [String, []], |
| 42 noSuchMethod: [Object, [Invocation]] | 42 noSuchMethod: [dart.dynamic, [Invocation]] |
| 43 }) | 43 }) |
| 44 }); | 44 }); |
| 45 class Deprecated extends Object { | 45 class Deprecated extends Object { |
| 46 Deprecated(expires) { | 46 Deprecated(expires) { |
| 47 this.expires = expires; | 47 this.expires = expires; |
| 48 } | 48 } |
| 49 toString() { | 49 toString() { |
| 50 return `Deprecated feature. Will be removed ${this.expires}`; | 50 return `Deprecated feature. Will be removed ${this.expires}`; |
| 51 } | 51 } |
| 52 } | 52 } |
| (...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 693 if (this.name != null) { | 693 if (this.name != null) { |
| 694 nameString = ` (${this.name})`; | 694 nameString = ` (${this.name})`; |
| 695 } | 695 } |
| 696 return `${this.message}${nameString}: ${Error.safeToString(this.invalidVal
ue)}`; | 696 return `${this.message}${nameString}: ${Error.safeToString(this.invalidVal
ue)}`; |
| 697 } | 697 } |
| 698 } | 698 } |
| 699 dart.defineNamedConstructor(ArgumentError, 'value'); | 699 dart.defineNamedConstructor(ArgumentError, 'value'); |
| 700 dart.defineNamedConstructor(ArgumentError, 'notNull'); | 700 dart.defineNamedConstructor(ArgumentError, 'notNull'); |
| 701 dart.setSignature(ArgumentError, { | 701 dart.setSignature(ArgumentError, { |
| 702 constructors: () => ({ | 702 constructors: () => ({ |
| 703 ArgumentError: [ArgumentError, [], [Object]], | 703 ArgumentError: [ArgumentError, [], [dart.dynamic]], |
| 704 value: [ArgumentError, [Object], [String, String]], | 704 value: [ArgumentError, [dart.dynamic], [String, String]], |
| 705 notNull: [ArgumentError, [], [String]] | 705 notNull: [ArgumentError, [], [String]] |
| 706 }) | 706 }) |
| 707 }); | 707 }); |
| 708 class RangeError extends ArgumentError { | 708 class RangeError extends ArgumentError { |
| 709 RangeError(message) { | 709 RangeError(message) { |
| 710 this.start = null; | 710 this.start = null; |
| 711 this.end = null; | 711 this.end = null; |
| 712 super.ArgumentError(message); | 712 super.ArgumentError(message); |
| 713 } | 713 } |
| 714 value(value, name, message) { | 714 value(value, name, message) { |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 800 } else { | 800 } else { |
| 801 explanation = `: Only valid value is ${this.start}`; | 801 explanation = `: Only valid value is ${this.start}`; |
| 802 } | 802 } |
| 803 return `RangeError: ${this.message} (${value})${explanation}`; | 803 return `RangeError: ${this.message} (${value})${explanation}`; |
| 804 } | 804 } |
| 805 } | 805 } |
| 806 dart.defineNamedConstructor(RangeError, 'value'); | 806 dart.defineNamedConstructor(RangeError, 'value'); |
| 807 dart.defineNamedConstructor(RangeError, 'range'); | 807 dart.defineNamedConstructor(RangeError, 'range'); |
| 808 dart.setSignature(RangeError, { | 808 dart.setSignature(RangeError, { |
| 809 constructors: () => ({ | 809 constructors: () => ({ |
| 810 RangeError: [RangeError, [Object]], | 810 RangeError: [RangeError, [dart.dynamic]], |
| 811 value: [RangeError, [num], [String, String]], | 811 value: [RangeError, [num], [String, String]], |
| 812 range: [RangeError, [num, int, int], [String, String]], | 812 range: [RangeError, [num, int, int], [String, String]], |
| 813 index: [RangeError, [int, Object], [String, String, int]] | 813 index: [RangeError, [int, dart.dynamic], [String, String, int]] |
| 814 }), | 814 }), |
| 815 statics: () => ({ | 815 statics: () => ({ |
| 816 checkValueInInterval: [dart.void, [int, int, int], [String, String]], | 816 checkValueInInterval: [dart.void, [int, int, int], [String, String]], |
| 817 checkValidIndex: [dart.void, [int, Object], [String, int, String]], | 817 checkValidIndex: [dart.void, [int, dart.dynamic], [String, int, String]], |
| 818 checkValidRange: [dart.void, [int, int, int], [String, String, String]], | 818 checkValidRange: [dart.void, [int, int, int], [String, String, String]], |
| 819 checkNotNegative: [dart.void, [int], [String, String]] | 819 checkNotNegative: [dart.void, [int], [String, String]] |
| 820 }), | 820 }), |
| 821 names: ['checkValueInInterval', 'checkValidIndex', 'checkValidRange', 'check
NotNegative'] | 821 names: ['checkValueInInterval', 'checkValidIndex', 'checkValidRange', 'check
NotNegative'] |
| 822 }); | 822 }); |
| 823 class IndexError extends ArgumentError { | 823 class IndexError extends ArgumentError { |
| 824 IndexError(invalidValue, indexable, name, message, length) { | 824 IndexError(invalidValue, indexable, name, message, length) { |
| 825 if (name === void 0) | 825 if (name === void 0) |
| 826 name = null; | 826 name = null; |
| 827 if (message === void 0) | 827 if (message === void 0) |
| (...skipping 15 matching lines...) Expand all Loading... |
| 843 let target = Error.safeToString(this.indexable); | 843 let target = Error.safeToString(this.indexable); |
| 844 let explanation = `index should be less than ${this.length}`; | 844 let explanation = `index should be less than ${this.length}`; |
| 845 if (dart.notNull(dart.as(dart.dsend(this.invalidValue, '<', 0), bool))) { | 845 if (dart.notNull(dart.as(dart.dsend(this.invalidValue, '<', 0), bool))) { |
| 846 explanation = "index must not be negative"; | 846 explanation = "index must not be negative"; |
| 847 } | 847 } |
| 848 return `RangeError: ${this.message} (${target}[${this.invalidValue}]): ${e
xplanation}`; | 848 return `RangeError: ${this.message} (${target}[${this.invalidValue}]): ${e
xplanation}`; |
| 849 } | 849 } |
| 850 } | 850 } |
| 851 IndexError[dart.implements] = () => [RangeError]; | 851 IndexError[dart.implements] = () => [RangeError]; |
| 852 dart.setSignature(IndexError, { | 852 dart.setSignature(IndexError, { |
| 853 constructors: () => ({IndexError: [IndexError, [int, Object], [String, Strin
g, int]]}) | 853 constructors: () => ({IndexError: [IndexError, [int, dart.dynamic], [String,
String, int]]}) |
| 854 }); | 854 }); |
| 855 class FallThroughError extends Error { | 855 class FallThroughError extends Error { |
| 856 FallThroughError() { | 856 FallThroughError() { |
| 857 super.Error(); | 857 super.Error(); |
| 858 } | 858 } |
| 859 } | 859 } |
| 860 dart.setSignature(FallThroughError, { | 860 dart.setSignature(FallThroughError, { |
| 861 constructors: () => ({FallThroughError: [FallThroughError, []]}) | 861 constructors: () => ({FallThroughError: [FallThroughError, []]}) |
| 862 }); | 862 }); |
| 863 let _className = dart.JsSymbol('_className'); | 863 let _className = dart.JsSymbol('_className'); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 902 } | 902 } |
| 903 if (this[_namedArguments] != null) { | 903 if (this[_namedArguments] != null) { |
| 904 this[_namedArguments].forEach(dart.fn((key, value) => { | 904 this[_namedArguments].forEach(dart.fn((key, value) => { |
| 905 if (dart.notNull(i) > 0) { | 905 if (dart.notNull(i) > 0) { |
| 906 sb.write(", "); | 906 sb.write(", "); |
| 907 } | 907 } |
| 908 sb.write(_symbolToString(key)); | 908 sb.write(_symbolToString(key)); |
| 909 sb.write(": "); | 909 sb.write(": "); |
| 910 sb.write(Error.safeToString(value)); | 910 sb.write(Error.safeToString(value)); |
| 911 i = dart.notNull(i) + 1; | 911 i = dart.notNull(i) + 1; |
| 912 }, Object, [Symbol, Object])); | 912 }, dart.dynamic, [Symbol, dart.dynamic])); |
| 913 } | 913 } |
| 914 if (this[_existingArgumentNames] == null) { | 914 if (this[_existingArgumentNames] == null) { |
| 915 return `NoSuchMethodError : method not found: '${this[_memberName]}'\n`
+ `Receiver: ${Error.safeToString(this[_receiver])}\n` + `Arguments: [${sb}]`; | 915 return `NoSuchMethodError : method not found: '${this[_memberName]}'\n`
+ `Receiver: ${Error.safeToString(this[_receiver])}\n` + `Arguments: [${sb}]`; |
| 916 } else { | 916 } else { |
| 917 let actualParameters = dart.toString(sb); | 917 let actualParameters = dart.toString(sb); |
| 918 sb = new StringBuffer(); | 918 sb = new StringBuffer(); |
| 919 for (let i = 0; dart.notNull(i) < dart.notNull(this[_existingArgumentNam
es][dartx.length]); i = dart.notNull(i) + 1) { | 919 for (let i = 0; dart.notNull(i) < dart.notNull(this[_existingArgumentNam
es][dartx.length]); i = dart.notNull(i) + 1) { |
| 920 if (dart.notNull(i) > 0) { | 920 if (dart.notNull(i) > 0) { |
| 921 sb.write(", "); | 921 sb.write(", "); |
| 922 } | 922 } |
| 923 sb.write(this[_existingArgumentNames][dartx.get](i)); | 923 sb.write(this[_existingArgumentNames][dartx.get](i)); |
| 924 } | 924 } |
| 925 let formalParameters = dart.toString(sb); | 925 let formalParameters = dart.toString(sb); |
| 926 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})`; | 926 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})`; |
| 927 } | 927 } |
| 928 } | 928 } |
| 929 } | 929 } |
| 930 dart.setSignature(NoSuchMethodError, { | 930 dart.setSignature(NoSuchMethodError, { |
| 931 constructors: () => ({NoSuchMethodError: [NoSuchMethodError, [Object, Symbol
, List, Map$(Symbol, Object)], [List]]}) | 931 constructors: () => ({NoSuchMethodError: [NoSuchMethodError, [Object, Symbol
, List, Map$(Symbol, dart.dynamic)], [List]]}) |
| 932 }); | 932 }); |
| 933 class UnsupportedError extends Error { | 933 class UnsupportedError extends Error { |
| 934 UnsupportedError(message) { | 934 UnsupportedError(message) { |
| 935 this.message = message; | 935 this.message = message; |
| 936 super.Error(); | 936 super.Error(); |
| 937 } | 937 } |
| 938 toString() { | 938 toString() { |
| 939 return `Unsupported operation: ${this.message}`; | 939 return `Unsupported operation: ${this.message}`; |
| 940 } | 940 } |
| 941 } | 941 } |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1029 constructors: () => ({CyclicInitializationError: [CyclicInitializationError,
[], [String]]}) | 1029 constructors: () => ({CyclicInitializationError: [CyclicInitializationError,
[], [String]]}) |
| 1030 }); | 1030 }); |
| 1031 class Exception extends Object { | 1031 class Exception extends Object { |
| 1032 static new(message) { | 1032 static new(message) { |
| 1033 if (message === void 0) | 1033 if (message === void 0) |
| 1034 message = null; | 1034 message = null; |
| 1035 return new _ExceptionImplementation(message); | 1035 return new _ExceptionImplementation(message); |
| 1036 } | 1036 } |
| 1037 } | 1037 } |
| 1038 dart.setSignature(Exception, { | 1038 dart.setSignature(Exception, { |
| 1039 constructors: () => ({new: [Exception, [], [Object]]}) | 1039 constructors: () => ({new: [Exception, [], [dart.dynamic]]}) |
| 1040 }); | 1040 }); |
| 1041 class _ExceptionImplementation extends Object { | 1041 class _ExceptionImplementation extends Object { |
| 1042 _ExceptionImplementation(message) { | 1042 _ExceptionImplementation(message) { |
| 1043 if (message === void 0) | 1043 if (message === void 0) |
| 1044 message = null; | 1044 message = null; |
| 1045 this.message = message; | 1045 this.message = message; |
| 1046 } | 1046 } |
| 1047 toString() { | 1047 toString() { |
| 1048 if (this.message == null) | 1048 if (this.message == null) |
| 1049 return "Exception"; | 1049 return "Exception"; |
| 1050 return `Exception: ${this.message}`; | 1050 return `Exception: ${this.message}`; |
| 1051 } | 1051 } |
| 1052 } | 1052 } |
| 1053 _ExceptionImplementation[dart.implements] = () => [Exception]; | 1053 _ExceptionImplementation[dart.implements] = () => [Exception]; |
| 1054 dart.setSignature(_ExceptionImplementation, { | 1054 dart.setSignature(_ExceptionImplementation, { |
| 1055 constructors: () => ({_ExceptionImplementation: [_ExceptionImplementation, [
], [Object]]}) | 1055 constructors: () => ({_ExceptionImplementation: [_ExceptionImplementation, [
], [dart.dynamic]]}) |
| 1056 }); | 1056 }); |
| 1057 class FormatException extends Object { | 1057 class FormatException extends Object { |
| 1058 FormatException(message, source, offset) { | 1058 FormatException(message, source, offset) { |
| 1059 if (message === void 0) | 1059 if (message === void 0) |
| 1060 message = ""; | 1060 message = ""; |
| 1061 if (source === void 0) | 1061 if (source === void 0) |
| 1062 source = null; | 1062 source = null; |
| 1063 if (offset === void 0) | 1063 if (offset === void 0) |
| 1064 offset = -1; | 1064 offset = -1; |
| 1065 this.message = message; | 1065 this.message = message; |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1137 prefix = postfix = "..."; | 1137 prefix = postfix = "..."; |
| 1138 } | 1138 } |
| 1139 } | 1139 } |
| 1140 let slice = dart.as(dart.dsend(this.source, 'substring', start, end), Stri
ng); | 1140 let slice = dart.as(dart.dsend(this.source, 'substring', start, end), Stri
ng); |
| 1141 let markOffset = dart.notNull(offset) - dart.notNull(start) + dart.notNull
(prefix[dartx.length]); | 1141 let markOffset = dart.notNull(offset) - dart.notNull(start) + dart.notNull
(prefix[dartx.length]); |
| 1142 return `${report}${prefix}${slice}${postfix}\n${" "[dartx['*']](markOffset
)}^\n`; | 1142 return `${report}${prefix}${slice}${postfix}\n${" "[dartx['*']](markOffset
)}^\n`; |
| 1143 } | 1143 } |
| 1144 } | 1144 } |
| 1145 FormatException[dart.implements] = () => [Exception]; | 1145 FormatException[dart.implements] = () => [Exception]; |
| 1146 dart.setSignature(FormatException, { | 1146 dart.setSignature(FormatException, { |
| 1147 constructors: () => ({FormatException: [FormatException, [], [String, Object
, int]]}) | 1147 constructors: () => ({FormatException: [FormatException, [], [String, dart.d
ynamic, int]]}) |
| 1148 }); | 1148 }); |
| 1149 class IntegerDivisionByZeroException extends Object { | 1149 class IntegerDivisionByZeroException extends Object { |
| 1150 IntegerDivisionByZeroException() { | 1150 IntegerDivisionByZeroException() { |
| 1151 } | 1151 } |
| 1152 toString() { | 1152 toString() { |
| 1153 return "IntegerDivisionByZeroException"; | 1153 return "IntegerDivisionByZeroException"; |
| 1154 } | 1154 } |
| 1155 } | 1155 } |
| 1156 IntegerDivisionByZeroException[dart.implements] = () => [Exception]; | 1156 IntegerDivisionByZeroException[dart.implements] = () => [Exception]; |
| 1157 dart.setSignature(IntegerDivisionByZeroException, { | 1157 dart.setSignature(IntegerDivisionByZeroException, { |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1217 static _toMangledNames(namedArguments) { | 1217 static _toMangledNames(namedArguments) { |
| 1218 let result = dart.map(); | 1218 let result = dart.map(); |
| 1219 namedArguments.forEach(dart.fn((symbol, value) => { | 1219 namedArguments.forEach(dart.fn((symbol, value) => { |
| 1220 result.set(_symbolToString(dart.as(symbol, Symbol)), value); | 1220 result.set(_symbolToString(dart.as(symbol, Symbol)), value); |
| 1221 })); | 1221 })); |
| 1222 return result; | 1222 return result; |
| 1223 } | 1223 } |
| 1224 } | 1224 } |
| 1225 dart.setSignature(Function, { | 1225 dart.setSignature(Function, { |
| 1226 statics: () => ({ | 1226 statics: () => ({ |
| 1227 apply: [Object, [Function, List], [Map$(Symbol, Object)]], | 1227 apply: [dart.dynamic, [Function, List], [Map$(Symbol, dart.dynamic)]], |
| 1228 _toMangledNames: [Map$(String, Object), [Map$(Symbol, Object)]] | 1228 _toMangledNames: [Map$(String, dart.dynamic), [Map$(Symbol, dart.dynamic)]
] |
| 1229 }), | 1229 }), |
| 1230 names: ['apply', '_toMangledNames'] | 1230 names: ['apply', '_toMangledNames'] |
| 1231 }); | 1231 }); |
| 1232 function identical(a, b) { | 1232 function identical(a, b) { |
| 1233 return _js_helper.Primitives.identicalImplementation(a, b); | 1233 return _js_helper.Primitives.identicalImplementation(a, b); |
| 1234 } | 1234 } |
| 1235 dart.fn(identical, bool, [Object, Object]); | 1235 dart.fn(identical, bool, [Object, Object]); |
| 1236 function identityHashCode(object) { | 1236 function identityHashCode(object) { |
| 1237 return _js_helper.objectHashCode(object); | 1237 return _js_helper.objectHashCode(object); |
| 1238 } | 1238 } |
| 1239 dart.fn(identityHashCode, () => dart.functionType(int, [Object])); | 1239 dart.fn(identityHashCode, () => dart.definiteFunctionType(int, [Object])); |
| 1240 class int extends num { | 1240 class int extends num { |
| 1241 static fromEnvironment(name, opts) { | 1241 static fromEnvironment(name, opts) { |
| 1242 let defaultValue = opts && 'defaultValue' in opts ? opts.defaultValue : nu
ll; | 1242 let defaultValue = opts && 'defaultValue' in opts ? opts.defaultValue : nu
ll; |
| 1243 throw new UnsupportedError('int.fromEnvironment can only be used as a cons
t constructor'); | 1243 throw new UnsupportedError('int.fromEnvironment can only be used as a cons
t constructor'); |
| 1244 } | 1244 } |
| 1245 static parse(source, opts) { | 1245 static parse(source, opts) { |
| 1246 let radix = opts && 'radix' in opts ? opts.radix : null; | 1246 let radix = opts && 'radix' in opts ? opts.radix : null; |
| 1247 let onError = opts && 'onError' in opts ? opts.onError : null; | 1247 let onError = opts && 'onError' in opts ? opts.onError : null; |
| 1248 return _js_helper.Primitives.parseInt(source, radix, onError); | 1248 return _js_helper.Primitives.parseInt(source, radix, onError); |
| 1249 } | 1249 } |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1485 } | 1485 } |
| 1486 static fromIterables(keys, values) { | 1486 static fromIterables(keys, values) { |
| 1487 return collection.LinkedHashMap$(K, V).fromIterables(keys, values); | 1487 return collection.LinkedHashMap$(K, V).fromIterables(keys, values); |
| 1488 } | 1488 } |
| 1489 } | 1489 } |
| 1490 dart.setSignature(Map, { | 1490 dart.setSignature(Map, { |
| 1491 constructors: () => ({ | 1491 constructors: () => ({ |
| 1492 new: [Map$(K, V), []], | 1492 new: [Map$(K, V), []], |
| 1493 from: [Map$(K, V), [Map$()]], | 1493 from: [Map$(K, V), [Map$()]], |
| 1494 identity: [Map$(K, V), []], | 1494 identity: [Map$(K, V), []], |
| 1495 fromIterable: [Map$(K, V), [Iterable], {key: dart.functionType(K, [dart.
bottom]), value: dart.functionType(V, [dart.bottom])}], | 1495 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)]] | 1496 fromIterables: [Map$(K, V), [Iterable$(K), Iterable$(V)]] |
| 1497 }) | 1497 }) |
| 1498 }); | 1498 }); |
| 1499 return Map; | 1499 return Map; |
| 1500 }); | 1500 }); |
| 1501 let Map = Map$(); | 1501 let Map = Map$(); |
| 1502 class Null extends Object { | 1502 class Null extends Object { |
| 1503 static _uninstantiable() { | 1503 static _uninstantiable() { |
| 1504 throw new UnsupportedError('class Null cannot be instantiated'); | 1504 throw new UnsupportedError('class Null cannot be instantiated'); |
| 1505 } | 1505 } |
| (...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1914 } | 1914 } |
| 1915 StringBuffer[dart.implements] = () => [StringSink]; | 1915 StringBuffer[dart.implements] = () => [StringSink]; |
| 1916 dart.setSignature(StringBuffer, { | 1916 dart.setSignature(StringBuffer, { |
| 1917 constructors: () => ({StringBuffer: [StringBuffer, [], [Object]]}), | 1917 constructors: () => ({StringBuffer: [StringBuffer, [], [Object]]}), |
| 1918 methods: () => ({ | 1918 methods: () => ({ |
| 1919 write: [dart.void, [Object]], | 1919 write: [dart.void, [Object]], |
| 1920 writeCharCode: [dart.void, [int]], | 1920 writeCharCode: [dart.void, [int]], |
| 1921 writeAll: [dart.void, [Iterable], [String]], | 1921 writeAll: [dart.void, [Iterable], [String]], |
| 1922 writeln: [dart.void, [], [Object]], | 1922 writeln: [dart.void, [], [Object]], |
| 1923 clear: [dart.void, []], | 1923 clear: [dart.void, []], |
| 1924 [_writeString]: [dart.void, [Object]] | 1924 [_writeString]: [dart.void, [dart.dynamic]] |
| 1925 }) | 1925 }) |
| 1926 }); | 1926 }); |
| 1927 class StringSink extends Object {} | 1927 class StringSink extends Object {} |
| 1928 class Symbol extends Object { | 1928 class Symbol extends Object { |
| 1929 static new(name) { | 1929 static new(name) { |
| 1930 return new _internal.Symbol(name); | 1930 return new _internal.Symbol(name); |
| 1931 } | 1931 } |
| 1932 } | 1932 } |
| 1933 dart.setSignature(Symbol, { | 1933 dart.setSignature(Symbol, { |
| 1934 constructors: () => ({new: [Symbol, [String]]}) | 1934 constructors: () => ({new: [Symbol, [String]]}) |
| (...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2549 static _makePath(path, start, end, pathSegments, ensureLeadingSlash, isFile)
{ | 2549 static _makePath(path, start, end, pathSegments, ensureLeadingSlash, isFile)
{ |
| 2550 if (path == null && pathSegments == null) | 2550 if (path == null && pathSegments == null) |
| 2551 return dart.notNull(isFile) ? "/" : ""; | 2551 return dart.notNull(isFile) ? "/" : ""; |
| 2552 if (path != null && pathSegments != null) { | 2552 if (path != null && pathSegments != null) { |
| 2553 throw new ArgumentError('Both path and pathSegments specified'); | 2553 throw new ArgumentError('Both path and pathSegments specified'); |
| 2554 } | 2554 } |
| 2555 let result = null; | 2555 let result = null; |
| 2556 if (path != null) { | 2556 if (path != null) { |
| 2557 result = Uri._normalize(path, start, end, dart.as(Uri._pathCharOrSlashTa
ble, List$(int))); | 2557 result = Uri._normalize(path, start, end, dart.as(Uri._pathCharOrSlashTa
ble, List$(int))); |
| 2558 } else { | 2558 } else { |
| 2559 result = pathSegments[dartx.map](dart.fn(s => Uri._uriEncode(dart.as(Uri
._pathCharTable, List$(int)), dart.as(s, String)), String, [Object]))[dartx.join
]("/"); | 2559 result = pathSegments[dartx.map](dart.fn(s => Uri._uriEncode(dart.as(Uri
._pathCharTable, List$(int)), dart.as(s, String)), String, [dart.dynamic]))[dart
x.join]("/"); |
| 2560 } | 2560 } |
| 2561 if (dart.notNull(dart.as(dart.dload(result, 'isEmpty'), bool))) { | 2561 if (dart.notNull(dart.as(dart.dload(result, 'isEmpty'), bool))) { |
| 2562 if (dart.notNull(isFile)) | 2562 if (dart.notNull(isFile)) |
| 2563 return "/"; | 2563 return "/"; |
| 2564 } else if ((dart.notNull(isFile) || dart.notNull(ensureLeadingSlash)) && !
dart.equals(dart.dsend(result, 'codeUnitAt', 0), Uri._SLASH)) { | 2564 } else if ((dart.notNull(isFile) || dart.notNull(ensureLeadingSlash)) && !
dart.equals(dart.dsend(result, 'codeUnitAt', 0), Uri._SLASH)) { |
| 2565 return `/${result}`; | 2565 return `/${result}`; |
| 2566 } | 2566 } |
| 2567 return dart.as(result, String); | 2567 return dart.as(result, String); |
| 2568 } | 2568 } |
| 2569 static _makeQuery(query, start, end, queryParameters) { | 2569 static _makeQuery(query, start, end, queryParameters) { |
| (...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2947 ['=='](other) { | 2947 ['=='](other) { |
| 2948 if (!dart.is(other, Uri)) | 2948 if (!dart.is(other, Uri)) |
| 2949 return false; | 2949 return false; |
| 2950 let uri = dart.as(other, Uri); | 2950 let uri = dart.as(other, Uri); |
| 2951 return this.scheme == uri.scheme && this.hasAuthority == uri.hasAuthority
&& this.userInfo == uri.userInfo && this.host == uri.host && this.port == uri.po
rt && this.path == uri.path && this.hasQuery == uri.hasQuery && this.query == ur
i.query && this.hasFragment == uri.hasFragment && this.fragment == uri.fragment; | 2951 return this.scheme == uri.scheme && this.hasAuthority == uri.hasAuthority
&& this.userInfo == uri.userInfo && this.host == uri.host && this.port == uri.po
rt && this.path == uri.path && this.hasQuery == uri.hasQuery && this.query == ur
i.query && this.hasFragment == uri.hasFragment && this.fragment == uri.fragment; |
| 2952 } | 2952 } |
| 2953 get hashCode() { | 2953 get hashCode() { |
| 2954 let combine = (part, current) => { | 2954 let combine = (part, current) => { |
| 2955 return dart.as(dart.dsend(dart.dsend(dart.dsend(current, '*', 31), '+',
dart.hashCode(part)), '&', 1073741823), int); | 2955 return dart.as(dart.dsend(dart.dsend(dart.dsend(current, '*', 31), '+',
dart.hashCode(part)), '&', 1073741823), int); |
| 2956 }; | 2956 }; |
| 2957 dart.fn(combine, int, [Object, Object]); | 2957 dart.fn(combine, int, [dart.dynamic, dart.dynamic]); |
| 2958 return combine(this.scheme, combine(this.userInfo, combine(this.host, comb
ine(this.port, combine(this.path, combine(this.query, combine(this.fragment, 1))
))))); | 2958 return combine(this.scheme, combine(this.userInfo, combine(this.host, comb
ine(this.port, combine(this.path, combine(this.query, combine(this.fragment, 1))
))))); |
| 2959 } | 2959 } |
| 2960 static _addIfNonEmpty(sb, test, first, second) { | 2960 static _addIfNonEmpty(sb, test, first, second) { |
| 2961 if ("" != test) { | 2961 if ("" != test) { |
| 2962 sb.write(first); | 2962 sb.write(first); |
| 2963 sb.write(second); | 2963 sb.write(second); |
| 2964 } | 2964 } |
| 2965 } | 2965 } |
| 2966 static encodeComponent(component) { | 2966 static encodeComponent(component) { |
| 2967 return Uri._uriEncode(dart.as(Uri._unreserved2396Table, List$(int)), compo
nent); | 2967 return Uri._uriEncode(dart.as(Uri._unreserved2396Table, List$(int)), compo
nent); |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3021 start = 0; | 3021 start = 0; |
| 3022 if (end === void 0) | 3022 if (end === void 0) |
| 3023 end = null; | 3023 end = null; |
| 3024 if (end == null) | 3024 if (end == null) |
| 3025 end = host[dartx.length]; | 3025 end = host[dartx.length]; |
| 3026 let error = (msg, position) => { | 3026 let error = (msg, position) => { |
| 3027 if (position === void 0) | 3027 if (position === void 0) |
| 3028 position = null; | 3028 position = null; |
| 3029 throw new FormatException(`Illegal IPv6 address, ${msg}`, host, dart.as(
position, int)); | 3029 throw new FormatException(`Illegal IPv6 address, ${msg}`, host, dart.as(
position, int)); |
| 3030 }; | 3030 }; |
| 3031 dart.fn(error, dart.void, [String], [Object]); | 3031 dart.fn(error, dart.void, [String], [dart.dynamic]); |
| 3032 let parseHex = (start, end) => { | 3032 let parseHex = (start, end) => { |
| 3033 if (dart.notNull(end) - dart.notNull(start) > 4) { | 3033 if (dart.notNull(end) - dart.notNull(start) > 4) { |
| 3034 error('an IPv6 part can only contain a maximum of 4 hex digits', start
); | 3034 error('an IPv6 part can only contain a maximum of 4 hex digits', start
); |
| 3035 } | 3035 } |
| 3036 let value = int.parse(host[dartx.substring](start, end), {radix: 16}); | 3036 let value = int.parse(host[dartx.substring](start, end), {radix: 16}); |
| 3037 if (dart.notNull(value) < 0 || dart.notNull(value) > (1 << 16) - 1) { | 3037 if (dart.notNull(value) < 0 || dart.notNull(value) > (1 << 16) - 1) { |
| 3038 error('each part must be in the range of `0x0..0xFFFF`', start); | 3038 error('each part must be in the range of `0x0..0xFFFF`', start); |
| 3039 } | 3039 } |
| 3040 return value; | 3040 return value; |
| 3041 }; | 3041 }; |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3214 toFilePath: [String, [], {windows: bool}], | 3214 toFilePath: [String, [], {windows: bool}], |
| 3215 [_toFilePath]: [String, []], | 3215 [_toFilePath]: [String, []], |
| 3216 [_toWindowsFilePath]: [String, []], | 3216 [_toWindowsFilePath]: [String, []], |
| 3217 [_writeAuthority]: [dart.void, [StringSink]] | 3217 [_writeAuthority]: [dart.void, [StringSink]] |
| 3218 }), | 3218 }), |
| 3219 statics: () => ({ | 3219 statics: () => ({ |
| 3220 _defaultPort: [int, [String]], | 3220 _defaultPort: [int, [String]], |
| 3221 parse: [Uri, [String]], | 3221 parse: [Uri, [String]], |
| 3222 _fail: [dart.void, [String, int, String]], | 3222 _fail: [dart.void, [String, int, String]], |
| 3223 _makeHttpUri: [Uri, [String, String, String, Map$(String, String)]], | 3223 _makeHttpUri: [Uri, [String, String, String, Map$(String, String)]], |
| 3224 _checkNonWindowsPathReservedCharacters: [Object, [List$(String), bool]], | 3224 _checkNonWindowsPathReservedCharacters: [dart.dynamic, [List$(String), boo
l]], |
| 3225 _checkWindowsPathReservedCharacters: [Object, [List$(String), bool], [int]
], | 3225 _checkWindowsPathReservedCharacters: [dart.dynamic, [List$(String), bool],
[int]], |
| 3226 _checkWindowsDriveLetter: [Object, [int, bool]], | 3226 _checkWindowsDriveLetter: [dart.dynamic, [int, bool]], |
| 3227 _makeFileUri: [Object, [String]], | 3227 _makeFileUri: [dart.dynamic, [String]], |
| 3228 _makeWindowsFileUrl: [Object, [String]], | 3228 _makeWindowsFileUrl: [dart.dynamic, [String]], |
| 3229 _makePort: [int, [int, String]], | 3229 _makePort: [int, [int, String]], |
| 3230 _makeHost: [String, [String, int, int, bool]], | 3230 _makeHost: [String, [String, int, int, bool]], |
| 3231 _isRegNameChar: [bool, [int]], | 3231 _isRegNameChar: [bool, [int]], |
| 3232 _normalizeRegName: [String, [String, int, int]], | 3232 _normalizeRegName: [String, [String, int, int]], |
| 3233 _makeScheme: [String, [String, int]], | 3233 _makeScheme: [String, [String, int]], |
| 3234 _makeUserInfo: [String, [String, int, int]], | 3234 _makeUserInfo: [String, [String, int, int]], |
| 3235 _makePath: [String, [String, int, int, Iterable$(String), bool, bool]], | 3235 _makePath: [String, [String, int, int, Iterable$(String), bool, bool]], |
| 3236 _makeQuery: [String, [String, int, int, Map$(String, String)]], | 3236 _makeQuery: [String, [String, int, int, Map$(String, String)]], |
| 3237 _makeFragment: [String, [String, int, int]], | 3237 _makeFragment: [String, [String, int, int]], |
| 3238 _stringOrNullLength: [int, [String]], | 3238 _stringOrNullLength: [int, [String]], |
| 3239 _isHexDigit: [bool, [int]], | 3239 _isHexDigit: [bool, [int]], |
| 3240 _hexValue: [int, [int]], | 3240 _hexValue: [int, [int]], |
| 3241 _normalizeEscape: [String, [String, int, bool]], | 3241 _normalizeEscape: [String, [String, int, bool]], |
| 3242 _isUnreservedChar: [bool, [int]], | 3242 _isUnreservedChar: [bool, [int]], |
| 3243 _escapeChar: [String, [Object]], | 3243 _escapeChar: [String, [dart.dynamic]], |
| 3244 _normalize: [String, [String, int, int, List$(int)]], | 3244 _normalize: [String, [String, int, int, List$(int)]], |
| 3245 _isSchemeCharacter: [bool, [int]], | 3245 _isSchemeCharacter: [bool, [int]], |
| 3246 _isGeneralDelimiter: [bool, [int]], | 3246 _isGeneralDelimiter: [bool, [int]], |
| 3247 _addIfNonEmpty: [dart.void, [StringBuffer, String, String, String]], | 3247 _addIfNonEmpty: [dart.void, [StringBuffer, String, String, String]], |
| 3248 encodeComponent: [String, [String]], | 3248 encodeComponent: [String, [String]], |
| 3249 encodeQueryComponent: [String, [String], {encoding: convert.Encoding}], | 3249 encodeQueryComponent: [String, [String], {encoding: convert.Encoding}], |
| 3250 decodeComponent: [String, [String]], | 3250 decodeComponent: [String, [String]], |
| 3251 decodeQueryComponent: [String, [String], {encoding: convert.Encoding}], | 3251 decodeQueryComponent: [String, [String], {encoding: convert.Encoding}], |
| 3252 encodeFull: [String, [String]], | 3252 encodeFull: [String, [String]], |
| 3253 decodeFull: [String, [String]], | 3253 decodeFull: [String, [String]], |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3366 exports.StackTrace = StackTrace; | 3366 exports.StackTrace = StackTrace; |
| 3367 exports.Stopwatch = Stopwatch; | 3367 exports.Stopwatch = Stopwatch; |
| 3368 exports.String = String; | 3368 exports.String = String; |
| 3369 exports.RuneIterator = RuneIterator; | 3369 exports.RuneIterator = RuneIterator; |
| 3370 exports.StringBuffer = StringBuffer; | 3370 exports.StringBuffer = StringBuffer; |
| 3371 exports.StringSink = StringSink; | 3371 exports.StringSink = StringSink; |
| 3372 exports.Symbol = Symbol; | 3372 exports.Symbol = Symbol; |
| 3373 exports.Type = Type; | 3373 exports.Type = Type; |
| 3374 exports.Uri = Uri; | 3374 exports.Uri = Uri; |
| 3375 }); | 3375 }); |
| OLD | NEW |