| OLD | NEW |
| 1 dart_library.library('dart/_js_helper', null, /* Imports */[ | 1 dart_library.library('dart/_js_helper', null, /* Imports */[ |
| 2 'dart/_runtime', | 2 'dart/_runtime', |
| 3 'dart/core', | 3 'dart/core', |
| 4 'dart/collection', | 4 'dart/collection', |
| 5 'dart/_interceptors', | 5 'dart/_interceptors', |
| 6 'dart/_foreign_helper' | 6 'dart/_foreign_helper' |
| 7 ], /* Lazy imports */[ | 7 ], /* Lazy imports */[ |
| 8 ], function(exports, dart, core, collection, _interceptors, _foreign_helper) { | 8 ], function(exports, dart, core, collection, _interceptors, _foreign_helper) { |
| 9 'use strict'; | 9 'use strict'; |
| 10 let dartx = dart.dartx; | 10 let dartx = dart.dartx; |
| (...skipping 1094 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1105 return !ret.done; | 1105 return !ret.done; |
| 1106 } | 1106 } |
| 1107 } | 1107 } |
| 1108 SyncIterator[dart.implements] = () => [core.Iterator$(E)]; | 1108 SyncIterator[dart.implements] = () => [core.Iterator$(E)]; |
| 1109 dart.setSignature(SyncIterator, { | 1109 dart.setSignature(SyncIterator, { |
| 1110 constructors: () => ({SyncIterator: [SyncIterator$(E), [dart.dynamic]]}), | 1110 constructors: () => ({SyncIterator: [SyncIterator$(E), [dart.dynamic]]}), |
| 1111 methods: () => ({moveNext: [core.bool, []]}) | 1111 methods: () => ({moveNext: [core.bool, []]}) |
| 1112 }); | 1112 }); |
| 1113 return SyncIterator; | 1113 return SyncIterator; |
| 1114 }); | 1114 }); |
| 1115 let SyncIterator = SyncIterator$(); | 1115 const SyncIterator = SyncIterator$(); |
| 1116 const _generator = Symbol('_generator'); | 1116 const _generator = Symbol('_generator'); |
| 1117 const _args = Symbol('_args'); | 1117 const _args = Symbol('_args'); |
| 1118 const SyncIterable$ = dart.generic(function(E) { | 1118 const SyncIterable$ = dart.generic(function(E) { |
| 1119 class SyncIterable extends collection.IterableBase$(E) { | 1119 class SyncIterable extends collection.IterableBase$(E) { |
| 1120 SyncIterable(generator, args) { | 1120 SyncIterable(generator, args) { |
| 1121 this[_generator] = generator; | 1121 this[_generator] = generator; |
| 1122 this[_args] = args; | 1122 this[_args] = args; |
| 1123 super.IterableBase(); | 1123 super.IterableBase(); |
| 1124 } | 1124 } |
| 1125 [_jsIterator]() { | 1125 [_jsIterator]() { |
| 1126 return this[_generator](...this[_args]); | 1126 return this[_generator](...this[_args]); |
| 1127 } | 1127 } |
| 1128 get iterator() { | 1128 get iterator() { |
| 1129 return new (SyncIterator$(E))(this[_jsIterator]()); | 1129 return new (SyncIterator$(E))(this[_jsIterator]()); |
| 1130 } | 1130 } |
| 1131 } | 1131 } |
| 1132 dart.setSignature(SyncIterable, { | 1132 dart.setSignature(SyncIterable, { |
| 1133 constructors: () => ({SyncIterable: [SyncIterable$(E), [dart.dynamic, dart
.dynamic]]}), | 1133 constructors: () => ({SyncIterable: [SyncIterable$(E), [dart.dynamic, dart
.dynamic]]}), |
| 1134 methods: () => ({[_jsIterator]: [dart.dynamic, []]}) | 1134 methods: () => ({[_jsIterator]: [dart.dynamic, []]}) |
| 1135 }); | 1135 }); |
| 1136 dart.defineExtensionMembers(SyncIterable, ['iterator']); | 1136 dart.defineExtensionMembers(SyncIterable, ['iterator']); |
| 1137 return SyncIterable; | 1137 return SyncIterable; |
| 1138 }); | 1138 }); |
| 1139 let SyncIterable = SyncIterable$(); | 1139 const SyncIterable = SyncIterable$(); |
| 1140 // Exports: | 1140 // Exports: |
| 1141 exports.NoThrows = NoThrows; | 1141 exports.NoThrows = NoThrows; |
| 1142 exports.NoInline = NoInline; | 1142 exports.NoInline = NoInline; |
| 1143 exports.Native = Native; | 1143 exports.Native = Native; |
| 1144 exports.JsPeerInterface = JsPeerInterface; | 1144 exports.JsPeerInterface = JsPeerInterface; |
| 1145 exports.SupportJsExtensionMethods = SupportJsExtensionMethods; | 1145 exports.SupportJsExtensionMethods = SupportJsExtensionMethods; |
| 1146 exports.defineProperty = defineProperty; | 1146 exports.defineProperty = defineProperty; |
| 1147 exports.regExpGetNative = regExpGetNative; | 1147 exports.regExpGetNative = regExpGetNative; |
| 1148 exports.regExpGetGlobalNative = regExpGetGlobalNative; | 1148 exports.regExpGetGlobalNative = regExpGetGlobalNative; |
| 1149 exports.regExpCaptureCount = regExpCaptureCount; | 1149 exports.regExpCaptureCount = regExpCaptureCount; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1193 exports.CastErrorImplementation = CastErrorImplementation; | 1193 exports.CastErrorImplementation = CastErrorImplementation; |
| 1194 exports.FallThroughErrorImplementation = FallThroughErrorImplementation; | 1194 exports.FallThroughErrorImplementation = FallThroughErrorImplementation; |
| 1195 exports.RuntimeError = RuntimeError; | 1195 exports.RuntimeError = RuntimeError; |
| 1196 exports.random64 = random64; | 1196 exports.random64 = random64; |
| 1197 exports.jsonEncodeNative = jsonEncodeNative; | 1197 exports.jsonEncodeNative = jsonEncodeNative; |
| 1198 exports.SyncIterator$ = SyncIterator$; | 1198 exports.SyncIterator$ = SyncIterator$; |
| 1199 exports.SyncIterator = SyncIterator; | 1199 exports.SyncIterator = SyncIterator; |
| 1200 exports.SyncIterable$ = SyncIterable$; | 1200 exports.SyncIterable$ = SyncIterable$; |
| 1201 exports.SyncIterable = SyncIterable; | 1201 exports.SyncIterable = SyncIterable; |
| 1202 }); | 1202 }); |
| OLD | NEW |