OLD | NEW |
1 var _interceptors; | 1 var _interceptors; |
2 (function(exports) { | 2 (function(exports) { |
3 'use strict'; | 3 'use strict'; |
4 class Interceptor extends core.Object { | 4 class Interceptor extends core.Object { |
5 Interceptor() { | 5 Interceptor() { |
6 } | 6 } |
7 ['=='](other) { | 7 ['=='](other) { |
8 return core.identical(this, other); | 8 return core.identical(this, other); |
9 } | 9 } |
10 get hashCode() { | 10 get hashCode() { |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 skipWhile(test) { | 162 skipWhile(test) { |
163 return new _internal.IterableMixinWorkaround().skipWhile(this, test); | 163 return new _internal.IterableMixinWorkaround().skipWhile(this, test); |
164 } | 164 } |
165 reduce(combine) { | 165 reduce(combine) { |
166 return dart.as(_internal.IterableMixinWorkaround.reduce(this, combine),
E); | 166 return dart.as(_internal.IterableMixinWorkaround.reduce(this, combine),
E); |
167 } | 167 } |
168 fold(initialValue, combine) { | 168 fold(initialValue, combine) { |
169 return _internal.IterableMixinWorkaround.fold(this, initialValue, combin
e); | 169 return _internal.IterableMixinWorkaround.fold(this, initialValue, combin
e); |
170 } | 170 } |
171 firstWhere(test, opt$) { | 171 firstWhere(test, opt$) { |
172 let orElse = opt$.orElse === void 0 ? null : opt$.orElse; | 172 let orElse = opt$ && 'orElse' in opt$ ? opt$.orElse : null; |
173 return dart.as(_internal.IterableMixinWorkaround.firstWhere(this, test,
orElse), E); | 173 return dart.as(_internal.IterableMixinWorkaround.firstWhere(this, test,
orElse), E); |
174 } | 174 } |
175 lastWhere(test, opt$) { | 175 lastWhere(test, opt$) { |
176 let orElse = opt$.orElse === void 0 ? null : opt$.orElse; | 176 let orElse = opt$ && 'orElse' in opt$ ? opt$.orElse : null; |
177 return dart.as(_internal.IterableMixinWorkaround.lastWhereList(this, tes
t, orElse), E); | 177 return dart.as(_internal.IterableMixinWorkaround.lastWhereList(this, tes
t, orElse), E); |
178 } | 178 } |
179 singleWhere(test) { | 179 singleWhere(test) { |
180 return dart.as(_internal.IterableMixinWorkaround.singleWhere(this, test)
, E); | 180 return dart.as(_internal.IterableMixinWorkaround.singleWhere(this, test)
, E); |
181 } | 181 } |
182 elementAt(index) { | 182 elementAt(index) { |
183 return this.get(index); | 183 return this.get(index); |
184 } | 184 } |
185 sublist(start, end) { | 185 sublist(start, end) { |
186 if (end === void 0) | 186 if (end === void 0) |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 get isEmpty() { | 292 get isEmpty() { |
293 return this.length === 0; | 293 return this.length === 0; |
294 } | 294 } |
295 get isNotEmpty() { | 295 get isNotEmpty() { |
296 return !dart.notNull(this.isEmpty); | 296 return !dart.notNull(this.isEmpty); |
297 } | 297 } |
298 toString() { | 298 toString() { |
299 return collection.ListBase.listToString(this); | 299 return collection.ListBase.listToString(this); |
300 } | 300 } |
301 toList(opt$) { | 301 toList(opt$) { |
302 let growable = opt$.growable === void 0 ? true : opt$.growable; | 302 let growable = opt$ && 'growable' in opt$ ? opt$.growable : true; |
303 if (growable) { | 303 if (growable) { |
304 return new JSArray.markGrowable(this.slice()); | 304 return new JSArray.markGrowable(this.slice()); |
305 } else { | 305 } else { |
306 return new JSArray.markFixed(this.slice()); | 306 return new JSArray.markFixed(this.slice()); |
307 } | 307 } |
308 } | 308 } |
309 toSet() { | 309 toSet() { |
310 return new core.Set.from(this); | 310 return new core.Set.from(this); |
311 } | 311 } |
312 get iterator() { | 312 get iterator() { |
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
818 return dart.equals(other, this.substring(dart.notNull(this.length) - dart.
notNull(otherLength))); | 818 return dart.equals(other, this.substring(dart.notNull(this.length) - dart.
notNull(otherLength))); |
819 } | 819 } |
820 replaceAll(from, to) { | 820 replaceAll(from, to) { |
821 _js_helper.checkString(to); | 821 _js_helper.checkString(to); |
822 return dart.as(_js_helper.stringReplaceAllUnchecked(this, from, to), core.
String); | 822 return dart.as(_js_helper.stringReplaceAllUnchecked(this, from, to), core.
String); |
823 } | 823 } |
824 replaceAllMapped(from, convert) { | 824 replaceAllMapped(from, convert) { |
825 return this.splitMapJoin(from, {onMatch: convert}); | 825 return this.splitMapJoin(from, {onMatch: convert}); |
826 } | 826 } |
827 splitMapJoin(from, opt$) { | 827 splitMapJoin(from, opt$) { |
828 let onMatch = opt$.onMatch === void 0 ? null : opt$.onMatch; | 828 let onMatch = opt$ && 'onMatch' in opt$ ? opt$.onMatch : null; |
829 let onNonMatch = opt$.onNonMatch === void 0 ? null : opt$.onNonMatch; | 829 let onNonMatch = opt$ && 'onNonMatch' in opt$ ? opt$.onNonMatch : null; |
830 return dart.as(_js_helper.stringReplaceAllFuncUnchecked(this, from, onMatc
h, onNonMatch), core.String); | 830 return dart.as(_js_helper.stringReplaceAllFuncUnchecked(this, from, onMatc
h, onNonMatch), core.String); |
831 } | 831 } |
832 replaceFirst(from, to, startIndex) { | 832 replaceFirst(from, to, startIndex) { |
833 if (startIndex === void 0) | 833 if (startIndex === void 0) |
834 startIndex = 0; | 834 startIndex = 0; |
835 _js_helper.checkString(to); | 835 _js_helper.checkString(to); |
836 _js_helper.checkInt(startIndex); | 836 _js_helper.checkInt(startIndex); |
837 if (dart.notNull(startIndex) < 0 || dart.notNull(startIndex) > dart.notNul
l(this.length)) { | 837 if (dart.notNull(startIndex) < 0 || dart.notNull(startIndex) > dart.notNul
l(this.length)) { |
838 throw new core.RangeError.range(startIndex, 0, this.length); | 838 throw new core.RangeError.range(startIndex, 0, this.length); |
839 } | 839 } |
(...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1396 exports.JSString = JSString; | 1396 exports.JSString = JSString; |
1397 exports.getInterceptor = getInterceptor; | 1397 exports.getInterceptor = getInterceptor; |
1398 exports.getDispatchProperty = getDispatchProperty; | 1398 exports.getDispatchProperty = getDispatchProperty; |
1399 exports.setDispatchProperty = setDispatchProperty; | 1399 exports.setDispatchProperty = setDispatchProperty; |
1400 exports.makeDispatchRecord = makeDispatchRecord; | 1400 exports.makeDispatchRecord = makeDispatchRecord; |
1401 exports.dispatchRecordInterceptor = dispatchRecordInterceptor; | 1401 exports.dispatchRecordInterceptor = dispatchRecordInterceptor; |
1402 exports.dispatchRecordProto = dispatchRecordProto; | 1402 exports.dispatchRecordProto = dispatchRecordProto; |
1403 exports.dispatchRecordExtension = dispatchRecordExtension; | 1403 exports.dispatchRecordExtension = dispatchRecordExtension; |
1404 exports.dispatchRecordIndexability = dispatchRecordIndexability; | 1404 exports.dispatchRecordIndexability = dispatchRecordIndexability; |
1405 exports.getNativeInterceptor = getNativeInterceptor; | 1405 exports.getNativeInterceptor = getNativeInterceptor; |
1406 exports.mapTypeToInterceptor = mapTypeToInterceptor; | |
1407 exports.findIndexForNativeSubclassType = findIndexForNativeSubclassType; | 1406 exports.findIndexForNativeSubclassType = findIndexForNativeSubclassType; |
1408 exports.findInterceptorConstructorForType = findInterceptorConstructorForType; | 1407 exports.findInterceptorConstructorForType = findInterceptorConstructorForType; |
1409 exports.findConstructorForNativeSubclassType = findConstructorForNativeSubclas
sType; | 1408 exports.findConstructorForNativeSubclassType = findConstructorForNativeSubclas
sType; |
1410 exports.findInterceptorForType = findInterceptorForType; | 1409 exports.findInterceptorForType = findInterceptorForType; |
1411 exports.JSBool = JSBool; | 1410 exports.JSBool = JSBool; |
1412 exports.JSNull = JSNull; | 1411 exports.JSNull = JSNull; |
1413 exports.JSIndexable = JSIndexable; | 1412 exports.JSIndexable = JSIndexable; |
1414 exports.JSMutableIndexable = JSMutableIndexable; | 1413 exports.JSMutableIndexable = JSMutableIndexable; |
1415 exports.JSObject = JSObject; | 1414 exports.JSObject = JSObject; |
1416 exports.JavaScriptObject = JavaScriptObject; | 1415 exports.JavaScriptObject = JavaScriptObject; |
1417 exports.PlainJavaScriptObject = PlainJavaScriptObject; | 1416 exports.PlainJavaScriptObject = PlainJavaScriptObject; |
1418 exports.UnknownJavaScriptObject = UnknownJavaScriptObject; | 1417 exports.UnknownJavaScriptObject = UnknownJavaScriptObject; |
1419 })(_interceptors || (_interceptors = {})); | 1418 })(_interceptors || (_interceptors = {})); |
OLD | NEW |