OLD | NEW |
1 var _js_helper = dart.defineLibrary(_js_helper, {}); | 1 var _js_helper = dart.defineLibrary(_js_helper, {}); |
2 var core = dart.import(core); | 2 var core = dart.import(core); |
3 var collection = dart.import(collection); | 3 var collection = dart.import(collection); |
4 var _internal = dart.import(_internal); | 4 var _internal = dart.import(_internal); |
5 var _foreign_helper = dart.import(_foreign_helper); | 5 var _foreign_helper = dart.import(_foreign_helper); |
6 var _js_embedded_names = dart.import(_js_embedded_names); | 6 var _js_embedded_names = dart.import(_js_embedded_names); |
7 var _interceptors = dart.lazyImport(_interceptors); | 7 var _interceptors = dart.lazyImport(_interceptors); |
8 var _js_names = dart.import(_js_names); | 8 var _js_names = dart.import(_js_names); |
9 var async = dart.import(async); | 9 var async = dart.import(async); |
10 var _isolate_helper = dart.lazyImport(_isolate_helper); | 10 var _isolate_helper = dart.lazyImport(_isolate_helper); |
(...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
640 } | 640 } |
641 get isMultiLine() { | 641 get isMultiLine() { |
642 return this[_isMultiLine]; | 642 return this[_isMultiLine]; |
643 } | 643 } |
644 get isCaseSensitive() { | 644 get isCaseSensitive() { |
645 return this[_isCaseSensitive]; | 645 return this[_isCaseSensitive]; |
646 } | 646 } |
647 } | 647 } |
648 JSSyntaxRegExp[dart.implements] = () => [core.RegExp]; | 648 JSSyntaxRegExp[dart.implements] = () => [core.RegExp]; |
649 dart.setSignature(JSSyntaxRegExp, { | 649 dart.setSignature(JSSyntaxRegExp, { |
650 constructors: () => ({JSSyntaxRegExp: [JSSyntaxRegExp, [core.String], {ultiL
in: core.bool, aseSensitiv: core.bool}]}), | 650 constructors: () => ({JSSyntaxRegExp: [JSSyntaxRegExp, [core.String], {multi
Line: core.bool, caseSensitive: core.bool}]}), |
651 methods: () => ({ | 651 methods: () => ({ |
652 firstMatch: [core.Match, [core.String]], | 652 firstMatch: [core.Match, [core.String]], |
653 hasMatch: [core.bool, [core.String]], | 653 hasMatch: [core.bool, [core.String]], |
654 stringMatch: [core.String, [core.String]], | 654 stringMatch: [core.String, [core.String]], |
655 allMatches: [core.Iterable$(core.Match), [core.String], [core.int]], | 655 allMatches: [core.Iterable$(core.Match), [core.String], [core.int]], |
656 [_execGlobal]: [core.Match, [core.String, core.int]], | 656 [_execGlobal]: [core.Match, [core.String, core.int]], |
657 [_execAnchored]: [core.Match, [core.String, core.int]], | 657 [_execAnchored]: [core.Match, [core.String, core.int]], |
658 matchAsPrefix: [core.Match, [core.String], [core.int]] | 658 matchAsPrefix: [core.Match, [core.String], [core.int]] |
659 }), | 659 }), |
660 statics: () => ({makeNative: [core.Object, [core.String, core.bool, core.boo
l, core.bool]]}), | 660 statics: () => ({makeNative: [core.Object, [core.String, core.bool, core.boo
l, core.bool]]}), |
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1051 function getClassName(object) { | 1051 function getClassName(object) { |
1052 return _interceptors.getInterceptor(object).constructor.builtin$cls; | 1052 return _interceptors.getInterceptor(object).constructor.builtin$cls; |
1053 } | 1053 } |
1054 dart.fn(getClassName, core.String, [core.Object]); | 1054 dart.fn(getClassName, core.String, [core.Object]); |
1055 function getRuntimeTypeAsString(runtimeType, opts) { | 1055 function getRuntimeTypeAsString(runtimeType, opts) { |
1056 let onTypeVariable = opts && 'onTypeVariable' in opts ? opts.onTypeVariable
: null; | 1056 let onTypeVariable = opts && 'onTypeVariable' in opts ? opts.onTypeVariable
: null; |
1057 dart.assert(isJsArray(runtimeType)); | 1057 dart.assert(isJsArray(runtimeType)); |
1058 let className = getConstructorName(getIndex(runtimeType, 0)); | 1058 let className = getConstructorName(getIndex(runtimeType, 0)); |
1059 return `${className}` + `${joinArguments(runtimeType, 1, {onTypeVariable: on
TypeVariable})}`; | 1059 return `${className}` + `${joinArguments(runtimeType, 1, {onTypeVariable: on
TypeVariable})}`; |
1060 } | 1060 } |
1061 dart.fn(getRuntimeTypeAsString, core.String, [core.Object], {nTypeVariabl: dar
t.functionType(core.String, [core.int])}); | 1061 dart.fn(getRuntimeTypeAsString, core.String, [core.Object], {onTypeVariable: d
art.functionType(core.String, [core.int])}); |
1062 function getConstructorName(type) { | 1062 function getConstructorName(type) { |
1063 return type.builtin$cls; | 1063 return type.builtin$cls; |
1064 } | 1064 } |
1065 dart.fn(getConstructorName, core.String, [core.Object]); | 1065 dart.fn(getConstructorName, core.String, [core.Object]); |
1066 function runtimeTypeToString(type, opts) { | 1066 function runtimeTypeToString(type, opts) { |
1067 let onTypeVariable = opts && 'onTypeVariable' in opts ? opts.onTypeVariable
: null; | 1067 let onTypeVariable = opts && 'onTypeVariable' in opts ? opts.onTypeVariable
: null; |
1068 if (type == null) { | 1068 if (type == null) { |
1069 return 'dynamic'; | 1069 return 'dynamic'; |
1070 } else if (isJsArray(type)) { | 1070 } else if (isJsArray(type)) { |
1071 return getRuntimeTypeAsString(type, {onTypeVariable: onTypeVariable}); | 1071 return getRuntimeTypeAsString(type, {onTypeVariable: onTypeVariable}); |
1072 } else if (isJsFunction(type)) { | 1072 } else if (isJsFunction(type)) { |
1073 return getConstructorName(type); | 1073 return getConstructorName(type); |
1074 } else if (typeof type == 'number') { | 1074 } else if (typeof type == 'number') { |
1075 if (onTypeVariable == null) { | 1075 if (onTypeVariable == null) { |
1076 return dart.toString(type); | 1076 return dart.toString(type); |
1077 } else { | 1077 } else { |
1078 return onTypeVariable(dart.as(type, core.int)); | 1078 return onTypeVariable(dart.as(type, core.int)); |
1079 } | 1079 } |
1080 } else { | 1080 } else { |
1081 return null; | 1081 return null; |
1082 } | 1082 } |
1083 } | 1083 } |
1084 dart.fn(runtimeTypeToString, core.String, [core.Object], {nTypeVariabl: dart.f
unctionType(core.String, [core.int])}); | 1084 dart.fn(runtimeTypeToString, core.String, [core.Object], {onTypeVariable: dart
.functionType(core.String, [core.int])}); |
1085 function joinArguments(types, startIndex, opts) { | 1085 function joinArguments(types, startIndex, opts) { |
1086 let onTypeVariable = opts && 'onTypeVariable' in opts ? opts.onTypeVariable
: null; | 1086 let onTypeVariable = opts && 'onTypeVariable' in opts ? opts.onTypeVariable
: null; |
1087 if (types == null) | 1087 if (types == null) |
1088 return ''; | 1088 return ''; |
1089 dart.assert(isJsArray(types)); | 1089 dart.assert(isJsArray(types)); |
1090 let firstArgument = true; | 1090 let firstArgument = true; |
1091 let allDynamic = true; | 1091 let allDynamic = true; |
1092 let buffer = new core.StringBuffer(); | 1092 let buffer = new core.StringBuffer(); |
1093 for (let index = startIndex; dart.notNull(index) < dart.notNull(getLength(ty
pes)); index = dart.notNull(index) + 1) { | 1093 for (let index = startIndex; dart.notNull(index) < dart.notNull(getLength(ty
pes)); index = dart.notNull(index) + 1) { |
1094 if (firstArgument) { | 1094 if (firstArgument) { |
1095 firstArgument = false; | 1095 firstArgument = false; |
1096 } else { | 1096 } else { |
1097 buffer.write(', '); | 1097 buffer.write(', '); |
1098 } | 1098 } |
1099 let argument = getIndex(types, index); | 1099 let argument = getIndex(types, index); |
1100 if (argument != null) { | 1100 if (argument != null) { |
1101 allDynamic = false; | 1101 allDynamic = false; |
1102 } | 1102 } |
1103 buffer.write(runtimeTypeToString(argument, {onTypeVariable: onTypeVariable
})); | 1103 buffer.write(runtimeTypeToString(argument, {onTypeVariable: onTypeVariable
})); |
1104 } | 1104 } |
1105 return allDynamic ? '' : `<${buffer}>`; | 1105 return allDynamic ? '' : `<${buffer}>`; |
1106 } | 1106 } |
1107 dart.fn(joinArguments, core.String, [core.Object, core.int], {nTypeVariabl: da
rt.functionType(core.String, [core.int])}); | 1107 dart.fn(joinArguments, core.String, [core.Object, core.int], {onTypeVariable:
dart.functionType(core.String, [core.int])}); |
1108 function getRuntimeTypeString(object) { | 1108 function getRuntimeTypeString(object) { |
1109 let className = getClassName(object); | 1109 let className = getClassName(object); |
1110 if (object == null) | 1110 if (object == null) |
1111 return className; | 1111 return className; |
1112 let typeInfo = object.$builtinTypeInfo; | 1112 let typeInfo = object.$builtinTypeInfo; |
1113 return `${className}${joinArguments(typeInfo, 0)}`; | 1113 return `${className}${joinArguments(typeInfo, 0)}`; |
1114 } | 1114 } |
1115 dart.fn(getRuntimeTypeString, core.String, [core.Object]); | 1115 dart.fn(getRuntimeTypeString, core.String, [core.Object]); |
1116 function getRuntimeType(object) { | 1116 function getRuntimeType(object) { |
1117 let type = getRuntimeTypeString(object); | 1117 let type = getRuntimeTypeString(object); |
(...skipping 3264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4382 exports.jsonEncodeNative = jsonEncodeNative; | 4382 exports.jsonEncodeNative = jsonEncodeNative; |
4383 exports.getIsolateAffinityTag = getIsolateAffinityTag; | 4383 exports.getIsolateAffinityTag = getIsolateAffinityTag; |
4384 exports.LoadLibraryFunctionType = LoadLibraryFunctionType; | 4384 exports.LoadLibraryFunctionType = LoadLibraryFunctionType; |
4385 exports.DeferredLoadCallback = DeferredLoadCallback; | 4385 exports.DeferredLoadCallback = DeferredLoadCallback; |
4386 exports.loadDeferredLibrary = loadDeferredLibrary; | 4386 exports.loadDeferredLibrary = loadDeferredLibrary; |
4387 exports.MainError = MainError; | 4387 exports.MainError = MainError; |
4388 exports.missingMain = missingMain; | 4388 exports.missingMain = missingMain; |
4389 exports.badMain = badMain; | 4389 exports.badMain = badMain; |
4390 exports.mainHasTooManyParameters = mainHasTooManyParameters; | 4390 exports.mainHasTooManyParameters = mainHasTooManyParameters; |
4391 })(_js_helper, core, collection, _internal, _foreign_helper, _js_embedded_names,
_interceptors, _js_names, async, _isolate_helper); | 4391 })(_js_helper, core, collection, _internal, _foreign_helper, _js_embedded_names,
_interceptors, _js_names, async, _isolate_helper); |
OLD | NEW |