| OLD | NEW |
| 1 Sky Event Model | 1 Sky Event Model |
| 2 =============== | 2 =============== |
| 3 | 3 |
| 4 ```dart | 4 ```dart |
| 5 SKY MODULE | |
| 6 <!-- part of dart:sky --> | |
| 7 | |
| 8 <script> | |
| 9 import 'dart:collection'; | 5 import 'dart:collection'; |
| 10 import 'dart:async'; | 6 import 'dart:async'; |
| 11 | 7 |
| 12 class ExceptionAndStackTrace<T> { | 8 class ExceptionAndStackTrace<T> { |
| 13 const ExceptionAndStackTrace(this.exception, this.stackTrace); | 9 const ExceptionAndStackTrace(this.exception, this.stackTrace); |
| 14 final T exception; | 10 final T exception; |
| 15 final StackTrace stackTrace; | 11 final StackTrace stackTrace; |
| 16 } | 12 } |
| 17 | 13 |
| 18 class ExceptionListException<T> extends IterableMixin<ExceptionAndStackTrace<T>>
implements Exception { | 14 class ExceptionListException<T> extends IterableMixin<ExceptionAndStackTrace<T>>
implements Exception { |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 if (exceptions.length > 0) | 188 if (exceptions.length > 0) |
| 193 throw exceptions; | 189 throw exceptions; |
| 194 return event.result; | 190 return event.result; |
| 195 } | 191 } |
| 196 | 192 |
| 197 void _dispatchEventLocally(Event event) { | 193 void _dispatchEventLocally(Event event) { |
| 198 event._currentTarget = this; | 194 event._currentTarget = this; |
| 199 _eventsController.add(event); | 195 _eventsController.add(event); |
| 200 } | 196 } |
| 201 } | 197 } |
| 202 </script> | |
| 203 ``` | 198 ``` |
| OLD | NEW |