| 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 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 409 hooks = applyHooksTransformer(_fallbackConstructorHooksTransformer, hooks); | 409 hooks = applyHooksTransformer(_fallbackConstructorHooksTransformer, hooks); |
| 410 hooks = applyHooksTransformer(_firefoxHooksTransformer, hooks); | 410 hooks = applyHooksTransformer(_firefoxHooksTransformer, hooks); |
| 411 hooks = applyHooksTransformer(_ieHooksTransformer, hooks); | 411 hooks = applyHooksTransformer(_ieHooksTransformer, hooks); |
| 412 hooks = applyHooksTransformer(_operaHooksTransformer, hooks); | 412 hooks = applyHooksTransformer(_operaHooksTransformer, hooks); |
| 413 hooks = applyHooksTransformer(_safariHooksTransformer, hooks); | 413 hooks = applyHooksTransformer(_safariHooksTransformer, hooks); |
| 414 hooks = applyHooksTransformer(_fixDocumentHooksTransformer, hooks); | 414 hooks = applyHooksTransformer(_fixDocumentHooksTransformer, hooks); |
| 415 hooks = applyHooksTransformer(_dartExperimentalFixupGetTagHooksTransformer,
hooks); | 415 hooks = applyHooksTransformer(_dartExperimentalFixupGetTagHooksTransformer,
hooks); |
| 416 if (typeof dartNativeDispatchHooksTransformer != "undefined") { | 416 if (typeof dartNativeDispatchHooksTransformer != "undefined") { |
| 417 let transformers = dartNativeDispatchHooksTransformer; | 417 let transformers = dartNativeDispatchHooksTransformer; |
| 418 if (typeof transformers == "function") { | 418 if (typeof transformers == "function") { |
| 419 transformers = new core.List.from([transformers]); | 419 transformers = [transformers]; |
| 420 } | 420 } |
| 421 if (transformers.constructor == Array) { | 421 if (transformers.constructor == Array) { |
| 422 for (let i = 0; dart.notNull(i) < transformers.length; i = dart.notNull(
i) + 1) { | 422 for (let i = 0; dart.notNull(i) < transformers.length; i = dart.notNull(
i) + 1) { |
| 423 let transformer = transformers[i]; | 423 let transformer = transformers[i]; |
| 424 if (typeof transformer == "function") { | 424 if (typeof transformer == "function") { |
| 425 hooks = applyHooksTransformer(transformer, hooks); | 425 hooks = applyHooksTransformer(transformer, hooks); |
| 426 } | 426 } |
| 427 } | 427 } |
| 428 } | 428 } |
| 429 } | 429 } |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 599 group(index) { | 599 group(index) { |
| 600 return this[_match][core.$get](index); | 600 return this[_match][core.$get](index); |
| 601 } | 601 } |
| 602 get(index) { | 602 get(index) { |
| 603 return this.group(index); | 603 return this.group(index); |
| 604 } | 604 } |
| 605 get groupCount() { | 605 get groupCount() { |
| 606 return dart.notNull(this[_match][core.$length]) - 1; | 606 return dart.notNull(this[_match][core.$length]) - 1; |
| 607 } | 607 } |
| 608 groups(groups) { | 608 groups(groups) { |
| 609 let out = new core.List$(core.String).from([]); | 609 let out = dart.setType([], core.List$(core.String)); |
| 610 for (let i of groups) { | 610 for (let i of groups) { |
| 611 out[core.$add](this.group(i)); | 611 out[core.$add](this.group(i)); |
| 612 } | 612 } |
| 613 return out; | 613 return out; |
| 614 } | 614 } |
| 615 } | 615 } |
| 616 _MatchImplementation[dart.implements] = () => [core.Match]; | 616 _MatchImplementation[dart.implements] = () => [core.Match]; |
| 617 let _re = Symbol('_re'); | 617 let _re = Symbol('_re'); |
| 618 let _string = Symbol('_string'); | 618 let _string = Symbol('_string'); |
| 619 let _start = Symbol('_start'); | 619 let _start = Symbol('_start'); |
| (...skipping 812 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1432 return this[_kind] == JSInvocationMirror.GETTER; | 1432 return this[_kind] == JSInvocationMirror.GETTER; |
| 1433 } | 1433 } |
| 1434 get isSetter() { | 1434 get isSetter() { |
| 1435 return this[_kind] == JSInvocationMirror.SETTER; | 1435 return this[_kind] == JSInvocationMirror.SETTER; |
| 1436 } | 1436 } |
| 1437 get isAccessor() { | 1437 get isAccessor() { |
| 1438 return this[_kind] != JSInvocationMirror.METHOD; | 1438 return this[_kind] != JSInvocationMirror.METHOD; |
| 1439 } | 1439 } |
| 1440 get positionalArguments() { | 1440 get positionalArguments() { |
| 1441 if (this.isGetter) | 1441 if (this.isGetter) |
| 1442 return /* Unimplemented const */new core.List.from([]); | 1442 return /* Unimplemented const */[]; |
| 1443 let argumentCount = dart.notNull(this[_arguments][core.$length]) - dart.no
tNull(this[_namedArgumentNames][core.$length]); | 1443 let argumentCount = dart.notNull(this[_arguments][core.$length]) - dart.no
tNull(this[_namedArgumentNames][core.$length]); |
| 1444 if (argumentCount == 0) | 1444 if (argumentCount == 0) |
| 1445 return /* Unimplemented const */new core.List.from([]); | 1445 return /* Unimplemented const */[]; |
| 1446 let list = new core.List.from([]); | 1446 let list = []; |
| 1447 for (let index = 0; dart.notNull(index) < dart.notNull(argumentCount); ind
ex = dart.notNull(index) + 1) { | 1447 for (let index = 0; dart.notNull(index) < dart.notNull(argumentCount); ind
ex = dart.notNull(index) + 1) { |
| 1448 list[core.$add](this[_arguments][core.$get](index)); | 1448 list[core.$add](this[_arguments][core.$get](index)); |
| 1449 } | 1449 } |
| 1450 return dart.as(makeLiteralListConst(list), core.List); | 1450 return dart.as(makeLiteralListConst(list), core.List); |
| 1451 } | 1451 } |
| 1452 get namedArguments() { | 1452 get namedArguments() { |
| 1453 if (this.isAccessor) | 1453 if (this.isAccessor) |
| 1454 return dart.map(); | 1454 return dart.map(); |
| 1455 let namedArgumentCount = this[_namedArgumentNames][core.$length]; | 1455 let namedArgumentCount = this[_namedArgumentNames][core.$length]; |
| 1456 let namedArgumentsStartIndex = dart.notNull(this[_arguments][core.$length]
) - dart.notNull(namedArgumentCount); | 1456 let namedArgumentsStartIndex = dart.notNull(this[_arguments][core.$length]
) - dart.notNull(namedArgumentCount); |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1532 } | 1532 } |
| 1533 get isGetterStub() { | 1533 get isGetterStub() { |
| 1534 return !!this.jsFunction.$getterStub; | 1534 return !!this.jsFunction.$getterStub; |
| 1535 } | 1535 } |
| 1536 invokeOn(victim, arguments$) { | 1536 invokeOn(victim, arguments$) { |
| 1537 let receiver = victim; | 1537 let receiver = victim; |
| 1538 if (!dart.notNull(this.isIntercepted)) { | 1538 if (!dart.notNull(this.isIntercepted)) { |
| 1539 if (!dart.is(arguments$, _interceptors.JSArray)) | 1539 if (!dart.is(arguments$, _interceptors.JSArray)) |
| 1540 arguments$ = new core.List.from(arguments$); | 1540 arguments$ = new core.List.from(arguments$); |
| 1541 } else { | 1541 } else { |
| 1542 let _ = new core.List.from([victim]); | 1542 let _ = [victim]; |
| 1543 _[core.$addAll](arguments$); | 1543 _[core.$addAll](arguments$); |
| 1544 arguments$ = _; | 1544 arguments$ = _; |
| 1545 if (this.cachedInterceptor != null) | 1545 if (this.cachedInterceptor != null) |
| 1546 receiver = this.cachedInterceptor; | 1546 receiver = this.cachedInterceptor; |
| 1547 } | 1547 } |
| 1548 return this.jsFunction.apply(receiver, arguments$); | 1548 return this.jsFunction.apply(receiver, arguments$); |
| 1549 } | 1549 } |
| 1550 } | 1550 } |
| 1551 class CachedCatchAllInvocation extends CachedInvocation { | 1551 class CachedCatchAllInvocation extends CachedInvocation { |
| 1552 CachedCatchAllInvocation(name, jsFunction, isIntercepted, cachedInterceptor)
{ | 1552 CachedCatchAllInvocation(name, jsFunction, isIntercepted, cachedInterceptor)
{ |
| (...skipping 11 matching lines...) Expand all Loading... |
| 1564 if (dart.is(arguments$, _interceptors.JSArray)) { | 1564 if (dart.is(arguments$, _interceptors.JSArray)) { |
| 1565 providedArgumentCount = arguments$[core.$length]; | 1565 providedArgumentCount = arguments$[core.$length]; |
| 1566 if (dart.notNull(providedArgumentCount) < dart.notNull(fullParameterCo
unt)) { | 1566 if (dart.notNull(providedArgumentCount) < dart.notNull(fullParameterCo
unt)) { |
| 1567 arguments$ = new core.List.from(arguments$); | 1567 arguments$ = new core.List.from(arguments$); |
| 1568 } | 1568 } |
| 1569 } else { | 1569 } else { |
| 1570 arguments$ = new core.List.from(arguments$); | 1570 arguments$ = new core.List.from(arguments$); |
| 1571 providedArgumentCount = arguments$[core.$length]; | 1571 providedArgumentCount = arguments$[core.$length]; |
| 1572 } | 1572 } |
| 1573 } else { | 1573 } else { |
| 1574 let _ = new core.List.from([victim]); | 1574 let _ = [victim]; |
| 1575 _[core.$addAll](arguments$); | 1575 _[core.$addAll](arguments$); |
| 1576 arguments$ = _; | 1576 arguments$ = _; |
| 1577 if (this.cachedInterceptor != null) | 1577 if (this.cachedInterceptor != null) |
| 1578 receiver = this.cachedInterceptor; | 1578 receiver = this.cachedInterceptor; |
| 1579 providedArgumentCount = dart.notNull(arguments$[core.$length]) - 1; | 1579 providedArgumentCount = dart.notNull(arguments$[core.$length]) - 1; |
| 1580 } | 1580 } |
| 1581 if (dart.notNull(this.info.areOptionalParametersNamed) && dart.notNull(pro
videdArgumentCount) > dart.notNull(this.info.requiredParameterCount)) { | 1581 if (dart.notNull(this.info.areOptionalParametersNamed) && dart.notNull(pro
videdArgumentCount) > dart.notNull(this.info.requiredParameterCount)) { |
| 1582 throw new UnimplementedNoSuchMethodError(`Invocation of unstubbed method
'${this.info.reflectionName}'` + ` with ${arguments$[core.$length]} arguments.`
); | 1582 throw new UnimplementedNoSuchMethodError(`Invocation of unstubbed method
'${this.info.reflectionName}'` + ` with ${arguments$[core.$length]} arguments.`
); |
| 1583 } else if (dart.notNull(providedArgumentCount) < dart.notNull(this.info.re
quiredParameterCount)) { | 1583 } else if (dart.notNull(providedArgumentCount) < dart.notNull(this.info.re
quiredParameterCount)) { |
| 1584 throw new UnimplementedNoSuchMethodError(`Invocation of unstubbed method
'${this.info.reflectionName}'` + ` with ${providedArgumentCount} arguments (too
few).`); | 1584 throw new UnimplementedNoSuchMethodError(`Invocation of unstubbed method
'${this.info.reflectionName}'` + ` with ${providedArgumentCount} arguments (too
few).`); |
| (...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1869 if (dart.notNull(end) <= dart.notNull(kMaxApply)) { | 1869 if (dart.notNull(end) <= dart.notNull(kMaxApply)) { |
| 1870 subarray = array; | 1870 subarray = array; |
| 1871 } else { | 1871 } else { |
| 1872 subarray = array.slice(i, dart.notNull(i) + dart.notNull(kMaxApply) <
dart.notNull(end) ? dart.notNull(i) + dart.notNull(kMaxApply) : end); | 1872 subarray = array.slice(i, dart.notNull(i) + dart.notNull(kMaxApply) <
dart.notNull(end) ? dart.notNull(i) + dart.notNull(kMaxApply) : end); |
| 1873 } | 1873 } |
| 1874 result = result + String.fromCharCode.apply(null, subarray); | 1874 result = result + String.fromCharCode.apply(null, subarray); |
| 1875 } | 1875 } |
| 1876 return result; | 1876 return result; |
| 1877 } | 1877 } |
| 1878 static stringFromCodePoints(codePoints) { | 1878 static stringFromCodePoints(codePoints) { |
| 1879 let a = new core.List$(core.int).from([]); | 1879 let a = dart.setType([], core.List$(core.int)); |
| 1880 for (let i of dart.as(codePoints, core.Iterable)) { | 1880 for (let i of dart.as(codePoints, core.Iterable)) { |
| 1881 if (!(typeof i == 'number')) | 1881 if (!(typeof i == 'number')) |
| 1882 throw new core.ArgumentError(i); | 1882 throw new core.ArgumentError(i); |
| 1883 if (dart.dsend(i, '<=', 65535)) { | 1883 if (dart.dsend(i, '<=', 65535)) { |
| 1884 a[core.$add](dart.as(i, core.int)); | 1884 a[core.$add](dart.as(i, core.int)); |
| 1885 } else if (dart.dsend(i, '<=', 1114111)) { | 1885 } else if (dart.dsend(i, '<=', 1114111)) { |
| 1886 a[core.$add](core.int['+'](55296, dart.dsend(dart.dsend(dart.dsend(i,
'-', 65536), '>>', 10), '&', 1023))); | 1886 a[core.$add](core.int['+'](55296, dart.dsend(dart.dsend(dart.dsend(i,
'-', 65536), '>>', 10), '&', 1023))); |
| 1887 a[core.$add](core.int['+'](56320, dart.dsend(i, '&', 1023))); | 1887 a[core.$add](core.int['+'](56320, dart.dsend(i, '&', 1023))); |
| 1888 } else { | 1888 } else { |
| 1889 throw new core.ArgumentError(i); | 1889 throw new core.ArgumentError(i); |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2017 return object[key]; | 2017 return object[key]; |
| 2018 } | 2018 } |
| 2019 static setProperty(object, key, value) { | 2019 static setProperty(object, key, value) { |
| 2020 if (dart.notNull(object == null) || typeof object == 'boolean' || dart.is(
object, core.num) || typeof object == 'string') { | 2020 if (dart.notNull(object == null) || typeof object == 'boolean' || dart.is(
object, core.num) || typeof object == 'string') { |
| 2021 throw new core.ArgumentError(object); | 2021 throw new core.ArgumentError(object); |
| 2022 } | 2022 } |
| 2023 object[key] = value; | 2023 object[key] = value; |
| 2024 } | 2024 } |
| 2025 static functionNoSuchMethod(func, positionalArguments, namedArguments) { | 2025 static functionNoSuchMethod(func, positionalArguments, namedArguments) { |
| 2026 let argumentCount = 0; | 2026 let argumentCount = 0; |
| 2027 let arguments$ = new core.List.from([]); | 2027 let arguments$ = []; |
| 2028 let namedArgumentList = new core.List.from([]); | 2028 let namedArgumentList = []; |
| 2029 if (positionalArguments != null) { | 2029 if (positionalArguments != null) { |
| 2030 argumentCount = dart.notNull(argumentCount) + dart.notNull(positionalArg
uments[core.$length]); | 2030 argumentCount = dart.notNull(argumentCount) + dart.notNull(positionalArg
uments[core.$length]); |
| 2031 arguments$[core.$addAll](positionalArguments); | 2031 arguments$[core.$addAll](positionalArguments); |
| 2032 } | 2032 } |
| 2033 let names = ''; | 2033 let names = ''; |
| 2034 if (dart.notNull(namedArguments != null) && !dart.notNull(namedArguments.i
sEmpty)) { | 2034 if (dart.notNull(namedArguments != null) && !dart.notNull(namedArguments.i
sEmpty)) { |
| 2035 namedArguments.forEach((name, argument) => { | 2035 namedArguments.forEach((name, argument) => { |
| 2036 names = `${names}$${name}`; | 2036 names = `${names}$${name}`; |
| 2037 namedArgumentList[core.$add](name); | 2037 namedArgumentList[core.$add](name); |
| 2038 arguments$[core.$add](argument); | 2038 arguments$[core.$add](argument); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 2049 let argumentCount = 0; | 2049 let argumentCount = 0; |
| 2050 let arguments$ = null; | 2050 let arguments$ = null; |
| 2051 if (positionalArguments != null) { | 2051 if (positionalArguments != null) { |
| 2052 if (positionalArguments instanceof Array) { | 2052 if (positionalArguments instanceof Array) { |
| 2053 arguments$ = positionalArguments; | 2053 arguments$ = positionalArguments; |
| 2054 } else { | 2054 } else { |
| 2055 arguments$ = new core.List.from(positionalArguments); | 2055 arguments$ = new core.List.from(positionalArguments); |
| 2056 } | 2056 } |
| 2057 argumentCount = arguments$.length; | 2057 argumentCount = arguments$.length; |
| 2058 } else { | 2058 } else { |
| 2059 arguments$ = new core.List.from([]); | 2059 arguments$ = []; |
| 2060 } | 2060 } |
| 2061 let selectorName = `${_foreign_helper.JS_GET_NAME("CALL_PREFIX")}$${argume
ntCount}`; | 2061 let selectorName = `${_foreign_helper.JS_GET_NAME("CALL_PREFIX")}$${argume
ntCount}`; |
| 2062 let jsFunction = func[selectorName]; | 2062 let jsFunction = func[selectorName]; |
| 2063 if (jsFunction == null) { | 2063 if (jsFunction == null) { |
| 2064 return Primitives.functionNoSuchMethod(func, positionalArguments, null); | 2064 return Primitives.functionNoSuchMethod(func, positionalArguments, null); |
| 2065 } | 2065 } |
| 2066 return jsFunction.apply(func, arguments$); | 2066 return jsFunction.apply(func, arguments$); |
| 2067 } | 2067 } |
| 2068 static applyFunctionWithNamedArguments(func, positionalArguments, namedArgum
ents) { | 2068 static applyFunctionWithNamedArguments(func, positionalArguments, namedArgum
ents) { |
| 2069 if (namedArguments.isEmpty) { | 2069 if (namedArguments.isEmpty) { |
| 2070 return Primitives.applyFunctionWithPositionalArguments(func, positionalA
rguments); | 2070 return Primitives.applyFunctionWithPositionalArguments(func, positionalA
rguments); |
| 2071 } | 2071 } |
| 2072 let interceptor = _interceptors.getInterceptor(func); | 2072 let interceptor = _interceptors.getInterceptor(func); |
| 2073 let jsFunction = interceptor["call*"]; | 2073 let jsFunction = interceptor["call*"]; |
| 2074 if (jsFunction == null) { | 2074 if (jsFunction == null) { |
| 2075 return Primitives.functionNoSuchMethod(func, positionalArguments, namedA
rguments); | 2075 return Primitives.functionNoSuchMethod(func, positionalArguments, namedA
rguments); |
| 2076 } | 2076 } |
| 2077 let info = new ReflectionInfo(jsFunction); | 2077 let info = new ReflectionInfo(jsFunction); |
| 2078 if (dart.notNull(info == null) || !dart.notNull(info.areOptionalParameters
Named)) { | 2078 if (dart.notNull(info == null) || !dart.notNull(info.areOptionalParameters
Named)) { |
| 2079 return Primitives.functionNoSuchMethod(func, positionalArguments, namedA
rguments); | 2079 return Primitives.functionNoSuchMethod(func, positionalArguments, namedA
rguments); |
| 2080 } | 2080 } |
| 2081 if (positionalArguments != null) { | 2081 if (positionalArguments != null) { |
| 2082 positionalArguments = new core.List.from(positionalArguments); | 2082 positionalArguments = new core.List.from(positionalArguments); |
| 2083 } else { | 2083 } else { |
| 2084 positionalArguments = new core.List.from([]); | 2084 positionalArguments = []; |
| 2085 } | 2085 } |
| 2086 if (info.requiredParameterCount != positionalArguments[core.$length]) { | 2086 if (info.requiredParameterCount != positionalArguments[core.$length]) { |
| 2087 return Primitives.functionNoSuchMethod(func, positionalArguments, namedA
rguments); | 2087 return Primitives.functionNoSuchMethod(func, positionalArguments, namedA
rguments); |
| 2088 } | 2088 } |
| 2089 let defaultArguments = new core.Map(); | 2089 let defaultArguments = new core.Map(); |
| 2090 for (let i = 0; dart.notNull(i) < dart.notNull(info.optionalParameterCount
); i = dart.notNull(i) + 1) { | 2090 for (let i = 0; dart.notNull(i) < dart.notNull(info.optionalParameterCount
); i = dart.notNull(i) + 1) { |
| 2091 let index = dart.notNull(i) + dart.notNull(info.requiredParameterCount); | 2091 let index = dart.notNull(i) + dart.notNull(info.requiredParameterCount); |
| 2092 let parameterName = info.parameterNameInOrder(index); | 2092 let parameterName = info.parameterNameInOrder(index); |
| 2093 let value = info.defaultValueInOrder(index); | 2093 let value = info.defaultValueInOrder(index); |
| 2094 let defaultValue = getMetadata(value); | 2094 let defaultValue = getMetadata(value); |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2272 toString: function() { | 2272 toString: function() { |
| 2273 return "$receiver$"; | 2273 return "$receiver$"; |
| 2274 } | 2274 } |
| 2275 }; | 2275 }; |
| 2276 } | 2276 } |
| 2277 static extractPattern(message) { | 2277 static extractPattern(message) { |
| 2278 message = message.replace(String({}), '$receiver$'); | 2278 message = message.replace(String({}), '$receiver$'); |
| 2279 message = message.replace(new RegExp(ESCAPE_REGEXP, 'g'), '\\$&'); | 2279 message = message.replace(new RegExp(ESCAPE_REGEXP, 'g'), '\\$&'); |
| 2280 let match = dart.as(message.match(/\\\$[a-zA-Z]+\\\$/g), core.List$(core.S
tring)); | 2280 let match = dart.as(message.match(/\\\$[a-zA-Z]+\\\$/g), core.List$(core.S
tring)); |
| 2281 if (match == null) | 2281 if (match == null) |
| 2282 match = new core.List$(core.String).from([]); | 2282 match = dart.setType([], core.List$(core.String)); |
| 2283 let arguments$ = match.indexOf('\\$arguments\\$'); | 2283 let arguments$ = match.indexOf('\\$arguments\\$'); |
| 2284 let argumentsExpr = match.indexOf('\\$argumentsExpr\\$'); | 2284 let argumentsExpr = match.indexOf('\\$argumentsExpr\\$'); |
| 2285 let expr = match.indexOf('\\$expr\\$'); | 2285 let expr = match.indexOf('\\$expr\\$'); |
| 2286 let method = match.indexOf('\\$method\\$'); | 2286 let method = match.indexOf('\\$method\\$'); |
| 2287 let receiver = match.indexOf('\\$receiver\\$'); | 2287 let receiver = match.indexOf('\\$receiver\\$'); |
| 2288 let pattern = message.replace('\\$arguments\\$', '((?:x|[^x])*)').replace(
'\\$argumentsExpr\\$', '((?:x|[^x])*)').replace('\\$expr\\$', '((?:x|[^x])*)').r
eplace('\\$method\\$', '((?:x|[^x])*)').replace('\\$receiver\\$', '((?:x|[^x])*)
'); | 2288 let pattern = message.replace('\\$arguments\\$', '((?:x|[^x])*)').replace(
'\\$argumentsExpr\\$', '((?:x|[^x])*)').replace('\\$expr\\$', '((?:x|[^x])*)').r
eplace('\\$method\\$', '((?:x|[^x])*)').replace('\\$receiver\\$', '((?:x|[^x])*)
'); |
| 2289 return new TypeErrorDecoder(arguments$, argumentsExpr, expr, method, recei
ver, pattern); | 2289 return new TypeErrorDecoder(arguments$, argumentsExpr, expr, method, recei
ver, pattern); |
| 2290 } | 2290 } |
| 2291 static provokeCallErrorOn(expression) { | 2291 static provokeCallErrorOn(expression) { |
| 2292 let func = function($expr$) { | 2292 let func = function($expr$) { |
| (...skipping 1210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3503 } | 3503 } |
| 3504 // Function convertRtiToRuntimeType: (dynamic) → RuntimeType | 3504 // Function convertRtiToRuntimeType: (dynamic) → RuntimeType |
| 3505 function convertRtiToRuntimeType(rti) { | 3505 function convertRtiToRuntimeType(rti) { |
| 3506 if (rti == null) { | 3506 if (rti == null) { |
| 3507 return getDynamicRuntimeType(); | 3507 return getDynamicRuntimeType(); |
| 3508 } else if (typeof rti == "function") { | 3508 } else if (typeof rti == "function") { |
| 3509 return new RuntimeTypePlain(rti.name); | 3509 return new RuntimeTypePlain(rti.name); |
| 3510 } else if (rti.constructor == Array) { | 3510 } else if (rti.constructor == Array) { |
| 3511 let list = dart.as(rti, core.List); | 3511 let list = dart.as(rti, core.List); |
| 3512 let name = list[core.$get](0).name; | 3512 let name = list[core.$get](0).name; |
| 3513 let arguments$ = new core.List.from([]); | 3513 let arguments$ = []; |
| 3514 for (let i = 1; dart.notNull(i) < dart.notNull(list[core.$length]); i = da
rt.notNull(i) + 1) { | 3514 for (let i = 1; dart.notNull(i) < dart.notNull(list[core.$length]); i = da
rt.notNull(i) + 1) { |
| 3515 arguments$[core.$add](convertRtiToRuntimeType(list[core.$get](i))); | 3515 arguments$[core.$add](convertRtiToRuntimeType(list[core.$get](i))); |
| 3516 } | 3516 } |
| 3517 return new RuntimeTypeGeneric(name, dart.as(arguments$, core.List$(Runtime
Type)), rti); | 3517 return new RuntimeTypeGeneric(name, dart.as(arguments$, core.List$(Runtime
Type)), rti); |
| 3518 } else if ("func" in rti) { | 3518 } else if ("func" in rti) { |
| 3519 return new FunctionTypeInfoDecoderRing(rti).toRuntimeType(); | 3519 return new FunctionTypeInfoDecoderRing(rti).toRuntimeType(); |
| 3520 } else { | 3520 } else { |
| 3521 throw new RuntimeError("Cannot convert " + `'${JSON.stringify(rti)}' to Ru
ntimeType.`); | 3521 throw new RuntimeError("Cannot convert " + `'${JSON.stringify(rti)}' to Ru
ntimeType.`); |
| 3522 } | 3522 } |
| 3523 } | 3523 } |
| (...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4044 exports.jsonEncodeNative = jsonEncodeNative; | 4044 exports.jsonEncodeNative = jsonEncodeNative; |
| 4045 exports.getIsolateAffinityTag = getIsolateAffinityTag; | 4045 exports.getIsolateAffinityTag = getIsolateAffinityTag; |
| 4046 exports.LoadLibraryFunctionType = LoadLibraryFunctionType; | 4046 exports.LoadLibraryFunctionType = LoadLibraryFunctionType; |
| 4047 exports.DeferredLoadCallback = DeferredLoadCallback; | 4047 exports.DeferredLoadCallback = DeferredLoadCallback; |
| 4048 exports.loadDeferredLibrary = loadDeferredLibrary; | 4048 exports.loadDeferredLibrary = loadDeferredLibrary; |
| 4049 exports.MainError = MainError; | 4049 exports.MainError = MainError; |
| 4050 exports.missingMain = missingMain; | 4050 exports.missingMain = missingMain; |
| 4051 exports.badMain = badMain; | 4051 exports.badMain = badMain; |
| 4052 exports.mainHasTooManyParameters = mainHasTooManyParameters; | 4052 exports.mainHasTooManyParameters = mainHasTooManyParameters; |
| 4053 })(_js_helper || (_js_helper = {})); | 4053 })(_js_helper || (_js_helper = {})); |
| OLD | NEW |