| OLD | NEW |
| 1 var _js_helper; | 1 var _js_helper; |
| 2 (function(exports) { | 2 (function(exports) { |
| 3 'use strict'; | 3 'use strict'; |
| 4 class NoSideEffects extends core.Object { | 4 class NoSideEffects extends core.Object { |
| 5 NoSideEffects() { | 5 NoSideEffects() { |
| 6 } | 6 } |
| 7 } | 7 } |
| 8 class NoThrows extends core.Object { | 8 class NoThrows extends core.Object { |
| 9 NoThrows() { | 9 NoThrows() { |
| 10 } | 10 } |
| (...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 468 let _nativeAnchoredRegExp = Symbol('_nativeAnchoredRegExp'); | 468 let _nativeAnchoredRegExp = Symbol('_nativeAnchoredRegExp'); |
| 469 let _isMultiLine = Symbol('_isMultiLine'); | 469 let _isMultiLine = Symbol('_isMultiLine'); |
| 470 let _isCaseSensitive = Symbol('_isCaseSensitive'); | 470 let _isCaseSensitive = Symbol('_isCaseSensitive'); |
| 471 let _execGlobal = Symbol('_execGlobal'); | 471 let _execGlobal = Symbol('_execGlobal'); |
| 472 let _execAnchored = Symbol('_execAnchored'); | 472 let _execAnchored = Symbol('_execAnchored'); |
| 473 class JSSyntaxRegExp extends core.Object { | 473 class JSSyntaxRegExp extends core.Object { |
| 474 toString() { | 474 toString() { |
| 475 return `RegExp/${this.pattern}/`; | 475 return `RegExp/${this.pattern}/`; |
| 476 } | 476 } |
| 477 JSSyntaxRegExp(source, opt$) { | 477 JSSyntaxRegExp(source, opt$) { |
| 478 let multiLine = opt$.multiLine === void 0 ? false : opt$.multiLine; | 478 let multiLine = opt$ && 'multiLine' in opt$ ? opt$.multiLine : false; |
| 479 let caseSensitive = opt$.caseSensitive === void 0 ? true : opt$.caseSensit
ive; | 479 let caseSensitive = opt$ && 'caseSensitive' in opt$ ? opt$.caseSensitive :
true; |
| 480 this.pattern = source; | 480 this.pattern = source; |
| 481 this[_nativeRegExp] = makeNative(source, multiLine, caseSensitive, false); | 481 this[_nativeRegExp] = makeNative(source, multiLine, caseSensitive, false); |
| 482 this[_nativeGlobalRegExp] = null; | 482 this[_nativeGlobalRegExp] = null; |
| 483 this[_nativeAnchoredRegExp] = null; | 483 this[_nativeAnchoredRegExp] = null; |
| 484 } | 484 } |
| 485 get [_nativeGlobalVersion]() { | 485 get [_nativeGlobalVersion]() { |
| 486 if (this[_nativeGlobalRegExp] !== null) | 486 if (this[_nativeGlobalRegExp] !== null) |
| 487 return this[_nativeGlobalRegExp]; | 487 return this[_nativeGlobalRegExp]; |
| 488 return this[_nativeGlobalRegExp] = makeNative(this.pattern, this[_isMultiL
ine], this[_isCaseSensitive], true); | 488 return this[_nativeGlobalRegExp] = makeNative(this.pattern, this[_isMultiL
ine], this[_isCaseSensitive], true); |
| 489 } | 489 } |
| (...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 929 // Function copyTypeArguments: (Object, Object) → void | 929 // Function copyTypeArguments: (Object, Object) → void |
| 930 function copyTypeArguments(source, target) { | 930 function copyTypeArguments(source, target) { |
| 931 target.$builtinTypeInfo = source.$builtinTypeInfo; | 931 target.$builtinTypeInfo = source.$builtinTypeInfo; |
| 932 } | 932 } |
| 933 // Function getClassName: (dynamic) → String | 933 // Function getClassName: (dynamic) → String |
| 934 function getClassName(object) { | 934 function getClassName(object) { |
| 935 return _interceptors.getInterceptor(object).constructor.builtin$cls; | 935 return _interceptors.getInterceptor(object).constructor.builtin$cls; |
| 936 } | 936 } |
| 937 // Function getRuntimeTypeAsString: (dynamic, {onTypeVariable: (int) → String}
) → String | 937 // Function getRuntimeTypeAsString: (dynamic, {onTypeVariable: (int) → String}
) → String |
| 938 function getRuntimeTypeAsString(runtimeType, opt$) { | 938 function getRuntimeTypeAsString(runtimeType, opt$) { |
| 939 let onTypeVariable = opt$.onTypeVariable === void 0 ? null : opt$.onTypeVari
able; | 939 let onTypeVariable = opt$ && 'onTypeVariable' in opt$ ? opt$.onTypeVariable
: null; |
| 940 dart.assert(isJsArray(runtimeType)); | 940 dart.assert(isJsArray(runtimeType)); |
| 941 let className = getConstructorName(getIndex(runtimeType, 0)); | 941 let className = getConstructorName(getIndex(runtimeType, 0)); |
| 942 return `${className}` + `${joinArguments(runtimeType, 1, {onTypeVariable: on
TypeVariable})}`; | 942 return `${className}` + `${joinArguments(runtimeType, 1, {onTypeVariable: on
TypeVariable})}`; |
| 943 } | 943 } |
| 944 // Function getConstructorName: (dynamic) → String | 944 // Function getConstructorName: (dynamic) → String |
| 945 function getConstructorName(type) { | 945 function getConstructorName(type) { |
| 946 return type.builtin$cls; | 946 return type.builtin$cls; |
| 947 } | 947 } |
| 948 // Function runtimeTypeToString: (dynamic, {onTypeVariable: (int) → String}) →
String | 948 // Function runtimeTypeToString: (dynamic, {onTypeVariable: (int) → String}) →
String |
| 949 function runtimeTypeToString(type, opt$) { | 949 function runtimeTypeToString(type, opt$) { |
| 950 let onTypeVariable = opt$.onTypeVariable === void 0 ? null : opt$.onTypeVari
able; | 950 let onTypeVariable = opt$ && 'onTypeVariable' in opt$ ? opt$.onTypeVariable
: null; |
| 951 if (type === null) { | 951 if (type === null) { |
| 952 return 'dynamic'; | 952 return 'dynamic'; |
| 953 } else if (isJsArray(type)) { | 953 } else if (isJsArray(type)) { |
| 954 return getRuntimeTypeAsString(type, {onTypeVariable: onTypeVariable}); | 954 return getRuntimeTypeAsString(type, {onTypeVariable: onTypeVariable}); |
| 955 } else if (isJsFunction(type)) { | 955 } else if (isJsFunction(type)) { |
| 956 return getConstructorName(type); | 956 return getConstructorName(type); |
| 957 } else if (typeof type == number) { | 957 } else if (typeof type == number) { |
| 958 if (onTypeVariable === null) { | 958 if (onTypeVariable === null) { |
| 959 return dart.as(dart.dinvoke(type, 'toString'), core.String); | 959 return dart.as(dart.dinvoke(type, 'toString'), core.String); |
| 960 } else { | 960 } else { |
| 961 return onTypeVariable(dart.as(type, core.int)); | 961 return onTypeVariable(dart.as(type, core.int)); |
| 962 } | 962 } |
| 963 } else { | 963 } else { |
| 964 return null; | 964 return null; |
| 965 } | 965 } |
| 966 } | 966 } |
| 967 // Function joinArguments: (dynamic, int, {onTypeVariable: (int) → String}) →
String | 967 // Function joinArguments: (dynamic, int, {onTypeVariable: (int) → String}) →
String |
| 968 function joinArguments(types, startIndex, opt$) { | 968 function joinArguments(types, startIndex, opt$) { |
| 969 let onTypeVariable = opt$.onTypeVariable === void 0 ? null : opt$.onTypeVari
able; | 969 let onTypeVariable = opt$ && 'onTypeVariable' in opt$ ? opt$.onTypeVariable
: null; |
| 970 if (types === null) | 970 if (types === null) |
| 971 return ''; | 971 return ''; |
| 972 dart.assert(isJsArray(types)); | 972 dart.assert(isJsArray(types)); |
| 973 let firstArgument = true; | 973 let firstArgument = true; |
| 974 let allDynamic = true; | 974 let allDynamic = true; |
| 975 let buffer = new core.StringBuffer(); | 975 let buffer = new core.StringBuffer(); |
| 976 for (let index = startIndex; dart.notNull(index) < dart.notNull(getLength(ty
pes)); index = dart.notNull(index) + 1) { | 976 for (let index = startIndex; dart.notNull(index) < dart.notNull(getLength(ty
pes)); index = dart.notNull(index) + 1) { |
| 977 if (firstArgument) { | 977 if (firstArgument) { |
| 978 firstArgument = false; | 978 firstArgument = false; |
| 979 } else { | 979 } else { |
| (...skipping 2767 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3747 exports.arrayGet = arrayGet; | 3747 exports.arrayGet = arrayGet; |
| 3748 exports.arraySet = arraySet; | 3748 exports.arraySet = arraySet; |
| 3749 exports.propertyGet = propertyGet; | 3749 exports.propertyGet = propertyGet; |
| 3750 exports.callHasOwnProperty = callHasOwnProperty; | 3750 exports.callHasOwnProperty = callHasOwnProperty; |
| 3751 exports.propertySet = propertySet; | 3751 exports.propertySet = propertySet; |
| 3752 exports.getPropertyFromPrototype = getPropertyFromPrototype; | 3752 exports.getPropertyFromPrototype = getPropertyFromPrototype; |
| 3753 exports.toStringForNativeObject = toStringForNativeObject; | 3753 exports.toStringForNativeObject = toStringForNativeObject; |
| 3754 exports.hashCodeForNativeObject = hashCodeForNativeObject; | 3754 exports.hashCodeForNativeObject = hashCodeForNativeObject; |
| 3755 exports.defineProperty = defineProperty; | 3755 exports.defineProperty = defineProperty; |
| 3756 exports.isDartObject = isDartObject; | 3756 exports.isDartObject = isDartObject; |
| 3757 exports.interceptorsByTag = interceptorsByTag; | |
| 3758 exports.leafTags = leafTags; | |
| 3759 exports.findDispatchTagForInterceptorClass = findDispatchTagForInterceptorClas
s; | 3757 exports.findDispatchTagForInterceptorClass = findDispatchTagForInterceptorClas
s; |
| 3760 exports.lookupInterceptor = lookupInterceptor; | 3758 exports.lookupInterceptor = lookupInterceptor; |
| 3761 exports.UNCACHED_MARK = UNCACHED_MARK; | 3759 exports.UNCACHED_MARK = UNCACHED_MARK; |
| 3762 exports.INSTANCE_CACHED_MARK = INSTANCE_CACHED_MARK; | 3760 exports.INSTANCE_CACHED_MARK = INSTANCE_CACHED_MARK; |
| 3763 exports.LEAF_MARK = LEAF_MARK; | 3761 exports.LEAF_MARK = LEAF_MARK; |
| 3764 exports.INTERIOR_MARK = INTERIOR_MARK; | 3762 exports.INTERIOR_MARK = INTERIOR_MARK; |
| 3765 exports.DISCRIMINATED_MARK = DISCRIMINATED_MARK; | 3763 exports.DISCRIMINATED_MARK = DISCRIMINATED_MARK; |
| 3766 exports.lookupAndCacheInterceptor = lookupAndCacheInterceptor; | 3764 exports.lookupAndCacheInterceptor = lookupAndCacheInterceptor; |
| 3767 exports.patchInstance = patchInstance; | 3765 exports.patchInstance = patchInstance; |
| 3768 exports.patchProto = patchProto; | 3766 exports.patchProto = patchProto; |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3920 exports.stringSuperNativeTypeCast = stringSuperNativeTypeCast; | 3918 exports.stringSuperNativeTypeCast = stringSuperNativeTypeCast; |
| 3921 exports.listTypeCheck = listTypeCheck; | 3919 exports.listTypeCheck = listTypeCheck; |
| 3922 exports.listTypeCast = listTypeCast; | 3920 exports.listTypeCast = listTypeCast; |
| 3923 exports.listSuperTypeCheck = listSuperTypeCheck; | 3921 exports.listSuperTypeCheck = listSuperTypeCheck; |
| 3924 exports.listSuperTypeCast = listSuperTypeCast; | 3922 exports.listSuperTypeCast = listSuperTypeCast; |
| 3925 exports.listSuperNativeTypeCheck = listSuperNativeTypeCheck; | 3923 exports.listSuperNativeTypeCheck = listSuperNativeTypeCheck; |
| 3926 exports.listSuperNativeTypeCast = listSuperNativeTypeCast; | 3924 exports.listSuperNativeTypeCast = listSuperNativeTypeCast; |
| 3927 exports.voidTypeCheck = voidTypeCheck; | 3925 exports.voidTypeCheck = voidTypeCheck; |
| 3928 exports.checkMalformedType = checkMalformedType; | 3926 exports.checkMalformedType = checkMalformedType; |
| 3929 exports.checkDeferredIsLoaded = checkDeferredIsLoaded; | 3927 exports.checkDeferredIsLoaded = checkDeferredIsLoaded; |
| 3930 exports.JavaScriptIndexingBehavior = JavaScriptIndexingBehavior; | |
| 3931 exports.TypeErrorImplementation = TypeErrorImplementation; | 3928 exports.TypeErrorImplementation = TypeErrorImplementation; |
| 3932 exports.CastErrorImplementation = CastErrorImplementation; | 3929 exports.CastErrorImplementation = CastErrorImplementation; |
| 3933 exports.FallThroughErrorImplementation = FallThroughErrorImplementation; | 3930 exports.FallThroughErrorImplementation = FallThroughErrorImplementation; |
| 3934 exports.assertHelper = assertHelper; | 3931 exports.assertHelper = assertHelper; |
| 3935 exports.throwNoSuchMethod = throwNoSuchMethod; | 3932 exports.throwNoSuchMethod = throwNoSuchMethod; |
| 3936 exports.throwCyclicInit = throwCyclicInit; | 3933 exports.throwCyclicInit = throwCyclicInit; |
| 3937 exports.RuntimeError = RuntimeError; | 3934 exports.RuntimeError = RuntimeError; |
| 3938 exports.DeferredNotLoadedError = DeferredNotLoadedError; | 3935 exports.DeferredNotLoadedError = DeferredNotLoadedError; |
| 3939 exports.RuntimeType = RuntimeType; | 3936 exports.RuntimeType = RuntimeType; |
| 3940 exports.RuntimeFunctionType = RuntimeFunctionType; | 3937 exports.RuntimeFunctionType = RuntimeFunctionType; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 3953 exports.UnimplementedNoSuchMethodError = UnimplementedNoSuchMethodError; | 3950 exports.UnimplementedNoSuchMethodError = UnimplementedNoSuchMethodError; |
| 3954 exports.random64 = random64; | 3951 exports.random64 = random64; |
| 3955 exports.jsonEncodeNative = jsonEncodeNative; | 3952 exports.jsonEncodeNative = jsonEncodeNative; |
| 3956 exports.getIsolateAffinityTag = getIsolateAffinityTag; | 3953 exports.getIsolateAffinityTag = getIsolateAffinityTag; |
| 3957 exports.loadDeferredLibrary = loadDeferredLibrary; | 3954 exports.loadDeferredLibrary = loadDeferredLibrary; |
| 3958 exports.MainError = MainError; | 3955 exports.MainError = MainError; |
| 3959 exports.missingMain = missingMain; | 3956 exports.missingMain = missingMain; |
| 3960 exports.badMain = badMain; | 3957 exports.badMain = badMain; |
| 3961 exports.mainHasTooManyParameters = mainHasTooManyParameters; | 3958 exports.mainHasTooManyParameters = mainHasTooManyParameters; |
| 3962 })(_js_helper || (_js_helper = {})); | 3959 })(_js_helper || (_js_helper = {})); |
| OLD | NEW |