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 { |
| 5 Interceptor() { |
| 6 } |
| 7 ['=='](other) { |
| 8 return core.identical(this, other); |
| 9 } |
| 10 get hashCode() { |
| 11 return _js_helper.Primitives.objectHashCode(this); |
| 12 } |
| 13 toString() { |
| 14 return _js_helper.Primitives.objectToString(this); |
| 15 } |
| 16 noSuchMethod(invocation) { |
| 17 throw new core.NoSuchMethodError(this, invocation.memberName, invocation.p
ositionalArguments, invocation.namedArguments); |
| 18 } |
| 19 get runtimeType() { |
| 20 return _js_helper.getRuntimeType(this); |
| 21 } |
| 22 } |
4 let JSArray$ = dart.generic(function(E) { | 23 let JSArray$ = dart.generic(function(E) { |
5 class JSArray extends Interceptor { | 24 class JSArray extends Interceptor { |
6 JSArray() { | 25 JSArray() { |
7 super.Interceptor(); | 26 super.Interceptor(); |
8 } | 27 } |
9 JSArray$fixed(length) { | 28 JSArray$fixed(length) { |
10 if (dart.notNull(!(typeof length == number)) || dart.notNull(length) < 0
) { | 29 if (dart.notNull(!(typeof length == number)) || dart.notNull(length) < 0
) { |
11 throw new core.ArgumentError(`Length must be a non-negative integer: $
{length}`); | 30 throw new core.ArgumentError(`Length must be a non-negative integer: $
{length}`); |
12 } | 31 } |
13 return new JSArray.markFixed(new Array(length)); | 32 return new JSArray.markFixed(new Array(length)); |
(...skipping 1273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1287 let constructorFn = constructorMap[name]; | 1306 let constructorFn = constructorMap[name]; |
1288 return constructorFn; | 1307 return constructorFn; |
1289 } | 1308 } |
1290 // Function findInterceptorForType: (Type) → dynamic | 1309 // Function findInterceptorForType: (Type) → dynamic |
1291 function findInterceptorForType(type) { | 1310 function findInterceptorForType(type) { |
1292 let constructor = findInterceptorConstructorForType(type); | 1311 let constructor = findInterceptorConstructorForType(type); |
1293 if (constructor === null) | 1312 if (constructor === null) |
1294 return null; | 1313 return null; |
1295 return constructor.prototype; | 1314 return constructor.prototype; |
1296 } | 1315 } |
1297 class Interceptor extends core.Object { | |
1298 Interceptor() { | |
1299 } | |
1300 ['=='](other) { | |
1301 return core.identical(this, other); | |
1302 } | |
1303 get hashCode() { | |
1304 return _js_helper.Primitives.objectHashCode(this); | |
1305 } | |
1306 toString() { | |
1307 return _js_helper.Primitives.objectToString(this); | |
1308 } | |
1309 noSuchMethod(invocation) { | |
1310 throw new core.NoSuchMethodError(this, invocation.memberName, invocation.p
ositionalArguments, invocation.namedArguments); | |
1311 } | |
1312 get runtimeType() { | |
1313 return _js_helper.getRuntimeType(this); | |
1314 } | |
1315 } | |
1316 class JSBool extends Interceptor { | 1316 class JSBool extends Interceptor { |
1317 JSBool() { | 1317 JSBool() { |
1318 super.Interceptor(); | 1318 super.Interceptor(); |
1319 } | 1319 } |
1320 toString() { | 1320 toString() { |
1321 return String(this); | 1321 return String(this); |
1322 } | 1322 } |
1323 get hashCode() { | 1323 get hashCode() { |
1324 return this ? 2 * 3 * 23 * 3761 : 269 * 811; | 1324 return this ? 2 * 3 * 23 * 3761 : 269 * 811; |
1325 } | 1325 } |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1373 UnknownJavaScriptObject() { | 1373 UnknownJavaScriptObject() { |
1374 super.JavaScriptObject(); | 1374 super.JavaScriptObject(); |
1375 } | 1375 } |
1376 toString() { | 1376 toString() { |
1377 return String(this); | 1377 return String(this); |
1378 } | 1378 } |
1379 } | 1379 } |
1380 // Exports: | 1380 // Exports: |
1381 exports.JSArray = JSArray; | 1381 exports.JSArray = JSArray; |
1382 exports.JSArray$ = JSArray$; | 1382 exports.JSArray$ = JSArray$; |
| 1383 exports.Interceptor = Interceptor; |
1383 exports.JSMutableArray = JSMutableArray; | 1384 exports.JSMutableArray = JSMutableArray; |
1384 exports.JSMutableArray$ = JSMutableArray$; | 1385 exports.JSMutableArray$ = JSMutableArray$; |
1385 exports.JSFixedArray = JSFixedArray; | 1386 exports.JSFixedArray = JSFixedArray; |
1386 exports.JSFixedArray$ = JSFixedArray$; | 1387 exports.JSFixedArray$ = JSFixedArray$; |
1387 exports.JSExtendableArray = JSExtendableArray; | 1388 exports.JSExtendableArray = JSExtendableArray; |
1388 exports.JSExtendableArray$ = JSExtendableArray$; | 1389 exports.JSExtendableArray$ = JSExtendableArray$; |
1389 exports.JSNumber = JSNumber; | 1390 exports.JSNumber = JSNumber; |
1390 exports.JSInt = JSInt; | 1391 exports.JSInt = JSInt; |
1391 exports.JSDouble = JSDouble; | 1392 exports.JSDouble = JSDouble; |
1392 exports.JSPositiveInt = JSPositiveInt; | 1393 exports.JSPositiveInt = JSPositiveInt; |
1393 exports.JSUInt32 = JSUInt32; | 1394 exports.JSUInt32 = JSUInt32; |
1394 exports.JSUInt31 = JSUInt31; | 1395 exports.JSUInt31 = JSUInt31; |
1395 exports.JSString = JSString; | 1396 exports.JSString = JSString; |
1396 exports.getInterceptor = getInterceptor; | 1397 exports.getInterceptor = getInterceptor; |
1397 exports.getDispatchProperty = getDispatchProperty; | 1398 exports.getDispatchProperty = getDispatchProperty; |
1398 exports.setDispatchProperty = setDispatchProperty; | 1399 exports.setDispatchProperty = setDispatchProperty; |
1399 exports.makeDispatchRecord = makeDispatchRecord; | 1400 exports.makeDispatchRecord = makeDispatchRecord; |
1400 exports.dispatchRecordInterceptor = dispatchRecordInterceptor; | 1401 exports.dispatchRecordInterceptor = dispatchRecordInterceptor; |
1401 exports.dispatchRecordProto = dispatchRecordProto; | 1402 exports.dispatchRecordProto = dispatchRecordProto; |
1402 exports.dispatchRecordExtension = dispatchRecordExtension; | 1403 exports.dispatchRecordExtension = dispatchRecordExtension; |
1403 exports.dispatchRecordIndexability = dispatchRecordIndexability; | 1404 exports.dispatchRecordIndexability = dispatchRecordIndexability; |
1404 exports.getNativeInterceptor = getNativeInterceptor; | 1405 exports.getNativeInterceptor = getNativeInterceptor; |
1405 exports.mapTypeToInterceptor = mapTypeToInterceptor; | 1406 exports.mapTypeToInterceptor = mapTypeToInterceptor; |
1406 exports.findIndexForNativeSubclassType = findIndexForNativeSubclassType; | 1407 exports.findIndexForNativeSubclassType = findIndexForNativeSubclassType; |
1407 exports.findInterceptorConstructorForType = findInterceptorConstructorForType; | 1408 exports.findInterceptorConstructorForType = findInterceptorConstructorForType; |
1408 exports.findConstructorForNativeSubclassType = findConstructorForNativeSubclas
sType; | 1409 exports.findConstructorForNativeSubclassType = findConstructorForNativeSubclas
sType; |
1409 exports.findInterceptorForType = findInterceptorForType; | 1410 exports.findInterceptorForType = findInterceptorForType; |
1410 exports.Interceptor = Interceptor; | |
1411 exports.JSBool = JSBool; | 1411 exports.JSBool = JSBool; |
1412 exports.JSNull = JSNull; | 1412 exports.JSNull = JSNull; |
1413 exports.JSIndexable = JSIndexable; | 1413 exports.JSIndexable = JSIndexable; |
1414 exports.JSMutableIndexable = JSMutableIndexable; | 1414 exports.JSMutableIndexable = JSMutableIndexable; |
1415 exports.JSObject = JSObject; | 1415 exports.JSObject = JSObject; |
1416 exports.JavaScriptObject = JavaScriptObject; | 1416 exports.JavaScriptObject = JavaScriptObject; |
1417 exports.PlainJavaScriptObject = PlainJavaScriptObject; | 1417 exports.PlainJavaScriptObject = PlainJavaScriptObject; |
1418 exports.UnknownJavaScriptObject = UnknownJavaScriptObject; | 1418 exports.UnknownJavaScriptObject = UnknownJavaScriptObject; |
1419 })(_interceptors || (_interceptors = {})); | 1419 })(_interceptors || (_interceptors = {})); |
OLD | NEW |