OLD | NEW |
1 part of dart.async; | 1 part of dart.async; |
2 typedef dynamic ZoneCallback(); | 2 typedef dynamic ZoneCallback(); |
3 typedef dynamic ZoneUnaryCallback(arg); | 3 typedef dynamic ZoneUnaryCallback(arg); |
4 typedef dynamic ZoneBinaryCallback(arg1, arg2); | 4 typedef dynamic ZoneBinaryCallback(arg1, arg2); |
5 typedef dynamic HandleUncaughtErrorHandler(Zone self, ZoneDelegate parent, Zone
zone, error, StackTrace stackTrace); | 5 typedef dynamic HandleUncaughtErrorHandler(Zone self, ZoneDelegate parent, Zone
zone, error, StackTrace stackTrace); |
6 typedef dynamic RunHandler(Zone self, ZoneDelegate parent, Zone zone, f()); | 6 typedef dynamic RunHandler(Zone self, ZoneDelegate parent, Zone zone, f()); |
7 typedef dynamic RunUnaryHandler(Zone self, ZoneDelegate parent, Zone zone, f(ar
g), arg); | 7 typedef dynamic RunUnaryHandler(Zone self, ZoneDelegate parent, Zone zone, f(ar
g), arg); |
8 typedef dynamic RunBinaryHandler(Zone self, ZoneDelegate parent, Zone zone, f(a
rg1, arg2), arg1, arg2); | 8 typedef dynamic RunBinaryHandler(Zone self, ZoneDelegate parent, Zone zone, f(a
rg1, arg2), arg1, arg2); |
9 typedef ZoneCallback RegisterCallbackHandler(Zone self, ZoneDelegate parent, Zo
ne zone, f()); | 9 typedef ZoneCallback RegisterCallbackHandler(Zone self, ZoneDelegate parent, Zo
ne zone, f()); |
10 typedef ZoneUnaryCallback RegisterUnaryCallbackHandler(Zone self, ZoneDelegate
parent, Zone zone, f(arg)); | 10 typedef ZoneUnaryCallback RegisterUnaryCallbackHandler(Zone self, ZoneDelegate
parent, Zone zone, f(arg)); |
11 typedef ZoneBinaryCallback RegisterBinaryCallbackHandler(Zone self, ZoneDelegat
e parent, Zone zone, f(arg1, arg2)); | 11 typedef ZoneBinaryCallback RegisterBinaryCallbackHandler(Zone self, ZoneDelegat
e parent, Zone zone, f(arg1, arg2)); |
12 typedef AsyncError ErrorCallbackHandler(Zone self, ZoneDelegate parent, Zone zo
ne, Object error, StackTrace stackTrace); | 12 typedef AsyncError ErrorCallbackHandler(Zone self, ZoneDelegate parent, Zone zo
ne, Object error, StackTrace stackTrace); |
13 typedef void ScheduleMicrotaskHandler(Zone self, ZoneDelegate parent, Zone zone
, f()); | 13 typedef void ScheduleMicrotaskHandler(Zone self, ZoneDelegate parent, Zone zone
, f()); |
14 typedef Timer CreateTimerHandler(Zone self, ZoneDelegate parent, Zone zone, Dur
ation duration, void f()); | 14 typedef Timer CreateTimerHandler(Zone self, ZoneDelegate parent, Zone zone, Dur
ation duration, void f()); |
15 typedef Timer CreatePeriodicTimerHandler(Zone self, ZoneDelegate parent, Zone z
one, Duration period, void f(Timer timer)); | 15 typedef Timer CreatePeriodicTimerHandler(Zone self, ZoneDelegate parent, Zone z
one, Duration period, void f(Timer timer)); |
16 typedef void PrintHandler(Zone self, ZoneDelegate parent, Zone zone, String lin
e); | 16 typedef void PrintHandler(Zone self, ZoneDelegate parent, Zone zone, String lin
e); |
17 typedef Zone ForkHandler(Zone self, ZoneDelegate parent, Zone zone, ZoneSpecifi
cation specification, Map zoneValues); | 17 typedef Zone ForkHandler(Zone self, ZoneDelegate parent, Zone zone, ZoneSpecifi
cation specification, Map zoneValues); |
18 class AsyncError implements Error {final error; | 18 class AsyncError implements Error {final error; |
19 final StackTrace stackTrace; | 19 final StackTrace stackTrace; |
20 AsyncError(this.error, this.stackTrace); | 20 AsyncError(this.error, this.stackTrace); |
21 String toString() => ((__x167) => DDC$RT.cast(__x167, dynamic, String, "CastGen
eral", """line 46, column 24 of dart:async/zone.dart: """, __x167 is String, tru
e))(error.toString()); | 21 String toString() => ((__x167) => DEVC$RT.cast(__x167, dynamic, String, "CastGe
neral", """line 46, column 24 of dart:async/zone.dart: """, __x167 is String, tr
ue))(error.toString()); |
22 } | 22 } |
23 class _ZoneFunction {final _Zone zone; | 23 class _ZoneFunction {final _Zone zone; |
24 final Function function; | 24 final Function function; |
25 const _ZoneFunction(this.zone, this.function); | 25 const _ZoneFunction(this.zone, this.function); |
26 } | 26 } |
27 abstract class ZoneSpecification {const factory ZoneSpecification({ | 27 abstract class ZoneSpecification {const factory ZoneSpecification({ |
28 dynamic handleUncaughtError(Zone self, ZoneDelegate parent, Zone zone, error, St
ackTrace stackTrace), dynamic run(Zone self, ZoneDelegate parent, Zone zone, f()
), dynamic runUnary(Zone self, ZoneDelegate parent, Zone zone, f(arg), arg), dyn
amic runBinary(Zone self, ZoneDelegate parent, Zone zone, f(arg1, arg2), arg1, a
rg2), ZoneCallback registerCallback(Zone self, ZoneDelegate parent, Zone zone, f
()), ZoneUnaryCallback registerUnaryCallback(Zone self, ZoneDelegate parent, Zon
e zone, f(arg)), ZoneBinaryCallback registerBinaryCallback(Zone self, ZoneDelega
te parent, Zone zone, f(arg1, arg2)), AsyncError errorCallback(Zone self, ZoneDe
legate parent, Zone zone, Object error, StackTrace stackTrace), void scheduleMic
rotask(Zone self, ZoneDelegate parent, Zone zone, f()), Timer createTimer(Zone s
elf, ZoneDelegate parent, Zone zone, Duration duration, void f()), Timer createP
eriodicTimer(Zone self, ZoneDelegate parent, Zone zone, Duration period, void f(
Timer timer)), void print(Zone self, ZoneDelegate parent, Zone zone, String line
), Zone fork(Zone self, ZoneDelegate parent, Zone zone, ZoneSpecification specif
ication, Map zoneValues)} | 28 dynamic handleUncaughtError(Zone self, ZoneDelegate parent, Zone zone, error, St
ackTrace stackTrace), dynamic run(Zone self, ZoneDelegate parent, Zone zone, f()
), dynamic runUnary(Zone self, ZoneDelegate parent, Zone zone, f(arg), arg), dyn
amic runBinary(Zone self, ZoneDelegate parent, Zone zone, f(arg1, arg2), arg1, a
rg2), ZoneCallback registerCallback(Zone self, ZoneDelegate parent, Zone zone, f
()), ZoneUnaryCallback registerUnaryCallback(Zone self, ZoneDelegate parent, Zon
e zone, f(arg)), ZoneBinaryCallback registerBinaryCallback(Zone self, ZoneDelega
te parent, Zone zone, f(arg1, arg2)), AsyncError errorCallback(Zone self, ZoneDe
legate parent, Zone zone, Object error, StackTrace stackTrace), void scheduleMic
rotask(Zone self, ZoneDelegate parent, Zone zone, f()), Timer createTimer(Zone s
elf, ZoneDelegate parent, Zone zone, Duration duration, void f()), Timer createP
eriodicTimer(Zone self, ZoneDelegate parent, Zone zone, Duration period, void f(
Timer timer)), void print(Zone self, ZoneDelegate parent, Zone zone, String line
), Zone fork(Zone self, ZoneDelegate parent, Zone zone, ZoneSpecification specif
ication, Map zoneValues)} |
29 ) = _ZoneSpecification; | 29 ) = _ZoneSpecification; |
30 factory ZoneSpecification.from(ZoneSpecification other, { | 30 factory ZoneSpecification.from(ZoneSpecification other, { |
31 dynamic handleUncaughtError(Zone self, ZoneDelegate parent, Zone zone, error, St
ackTrace stackTrace) : null, dynamic run(Zone self, ZoneDelegate parent, Zone zo
ne, f()) : null, dynamic runUnary(Zone self, ZoneDelegate parent, Zone zone, f(a
rg), arg) : null, dynamic runBinary(Zone self, ZoneDelegate parent, Zone zone, f
(arg1, arg2), arg1, arg2) : null, ZoneCallback registerCallback(Zone self, ZoneD
elegate parent, Zone zone, f()) : null, ZoneUnaryCallback registerUnaryCallback(
Zone self, ZoneDelegate parent, Zone zone, f(arg)) : null, ZoneBinaryCallback re
gisterBinaryCallback(Zone self, ZoneDelegate parent, Zone zone, f(arg1, arg2)) :
null, AsyncError errorCallback(Zone self, ZoneDelegate parent, Zone zone, Objec
t error, StackTrace stackTrace), void scheduleMicrotask(Zone self, ZoneDelegate
parent, Zone zone, f()) : null, Timer createTimer(Zone self, ZoneDelegate parent
, Zone zone, Duration duration, void f()) : null, Timer createPeriodicTimer(Zone
self, ZoneDelegate parent, Zone zone, Duration period, void f(Timer timer)) : n
ull, void print(Zone self, ZoneDelegate parent, Zone zone, String line) : null,
Zone fork(Zone self, ZoneDelegate parent, Zone zone, ZoneSpecification specifica
tion, Map zoneValues) : null} | 31 dynamic handleUncaughtError(Zone self, ZoneDelegate parent, Zone zone, error, St
ackTrace stackTrace) : null, dynamic run(Zone self, ZoneDelegate parent, Zone zo
ne, f()) : null, dynamic runUnary(Zone self, ZoneDelegate parent, Zone zone, f(a
rg), arg) : null, dynamic runBinary(Zone self, ZoneDelegate parent, Zone zone, f
(arg1, arg2), arg1, arg2) : null, ZoneCallback registerCallback(Zone self, ZoneD
elegate parent, Zone zone, f()) : null, ZoneUnaryCallback registerUnaryCallback(
Zone self, ZoneDelegate parent, Zone zone, f(arg)) : null, ZoneBinaryCallback re
gisterBinaryCallback(Zone self, ZoneDelegate parent, Zone zone, f(arg1, arg2)) :
null, AsyncError errorCallback(Zone self, ZoneDelegate parent, Zone zone, Objec
t error, StackTrace stackTrace), void scheduleMicrotask(Zone self, ZoneDelegate
parent, Zone zone, f()) : null, Timer createTimer(Zone self, ZoneDelegate parent
, Zone zone, Duration duration, void f()) : null, Timer createPeriodicTimer(Zone
self, ZoneDelegate parent, Zone zone, Duration period, void f(Timer timer)) : n
ull, void print(Zone self, ZoneDelegate parent, Zone zone, String line) : null,
Zone fork(Zone self, ZoneDelegate parent, Zone zone, ZoneSpecification specifica
tion, Map zoneValues) : null} |
32 ) { | 32 ) { |
33 return new ZoneSpecification(handleUncaughtError: ((__x174) => DDC$RT.cast(__x17
4, dynamic, __t168, "CastGeneral", """line 138, column 28 of dart:async/zone.dar
t: """, __x174 is __t168, false))(handleUncaughtError != null ? handleUncaughtEr
ror : other.handleUncaughtError), run: ((__x180) => DDC$RT.cast(__x180, dynamic,
__t175, "CastGeneral", """line 141, column 12 of dart:async/zone.dart: """, __x
180 is __t175, false))(run != null ? run : other.run), runUnary: ((__x188) => DD
C$RT.cast(__x188, dynamic, __t181, "CastGeneral", """line 142, column 17 of dart
:async/zone.dart: """, __x188 is __t181, false))(runUnary != null ? runUnary : o
ther.runUnary), runBinary: ((__x198) => DDC$RT.cast(__x198, dynamic, __t189, "Ca
stGeneral", """line 143, column 18 of dart:async/zone.dart: """, __x198 is __t18
9, false))(runBinary != null ? runBinary : other.runBinary), registerCallback: (
(__x205) => DDC$RT.cast(__x205, dynamic, __t199, "CastGeneral", """line 144, col
umn 25 of dart:async/zone.dart: """, __x205 is __t199, false))(registerCallback
!= null ? registerCallback : other.registerCallback), registerUnaryCallback: ((_
_x214) => DDC$RT.cast(__x214, dynamic, __t206, "CastGeneral", """line 147, colum
n 30 of dart:async/zone.dart: """, __x214 is __t206, false))(registerUnaryCallba
ck != null ? registerUnaryCallback : other.registerUnaryCallback), registerBinar
yCallback: ((__x225) => DDC$RT.cast(__x225, dynamic, __t215, "CastGeneral", """l
ine 150, column 31 of dart:async/zone.dart: """, __x225 is __t215, false))(regis
terBinaryCallback != null ? registerBinaryCallback : other.registerBinaryCallbac
k), errorCallback: ((__x232) => DDC$RT.cast(__x232, dynamic, __t226, "CastGenera
l", """line 153, column 22 of dart:async/zone.dart: """, __x232 is __t226, false
))(errorCallback != null ? errorCallback : other.errorCallback), scheduleMicrota
sk: ((__x238) => DDC$RT.cast(__x238, dynamic, __t233, "CastGeneral", """line 156
, column 26 of dart:async/zone.dart: """, __x238 is __t233, false))(scheduleMicr
otask != null ? scheduleMicrotask : other.scheduleMicrotask), createTimer: ((__x
245) => DDC$RT.cast(__x245, dynamic, __t239, "CastGeneral", """line 159, column
21 of dart:async/zone.dart: """, __x245 is __t239, false))(createTimer != null ?
createTimer : other.createTimer), createPeriodicTimer: ((__x253) => DDC$RT.cast
(__x253, dynamic, __t246, "CastGeneral", """line 160, column 28 of dart:async/zo
ne.dart: """, __x253 is __t246, false))(createPeriodicTimer != null ? createPeri
odicTimer : other.createPeriodicTimer), print: ((__x259) => DDC$RT.cast(__x259,
dynamic, __t254, "CastGeneral", """line 163, column 15 of dart:async/zone.dart:
""", __x259 is __t254, false))(print != null ? print : other.print), fork: ((__x
266) => DDC$RT.cast(__x266, dynamic, __t260, "CastGeneral", """line 164, column
13 of dart:async/zone.dart: """, __x266 is __t260, false))(fork != null ? fork :
other.fork)); | 33 return new ZoneSpecification(handleUncaughtError: ((__x174) => DEVC$RT.cast(__x1
74, dynamic, __t168, "CastGeneral", """line 138, column 28 of dart:async/zone.da
rt: """, __x174 is __t168, false))(handleUncaughtError != null ? handleUncaughtE
rror : other.handleUncaughtError), run: ((__x180) => DEVC$RT.cast(__x180, dynami
c, __t175, "CastGeneral", """line 141, column 12 of dart:async/zone.dart: """, _
_x180 is __t175, false))(run != null ? run : other.run), runUnary: ((__x188) =>
DEVC$RT.cast(__x188, dynamic, __t181, "CastGeneral", """line 142, column 17 of d
art:async/zone.dart: """, __x188 is __t181, false))(runUnary != null ? runUnary
: other.runUnary), runBinary: ((__x198) => DEVC$RT.cast(__x198, dynamic, __t189,
"CastGeneral", """line 143, column 18 of dart:async/zone.dart: """, __x198 is _
_t189, false))(runBinary != null ? runBinary : other.runBinary), registerCallbac
k: ((__x205) => DEVC$RT.cast(__x205, dynamic, __t199, "CastGeneral", """line 144
, column 25 of dart:async/zone.dart: """, __x205 is __t199, false))(registerCall
back != null ? registerCallback : other.registerCallback), registerUnaryCallback
: ((__x214) => DEVC$RT.cast(__x214, dynamic, __t206, "CastGeneral", """line 147,
column 30 of dart:async/zone.dart: """, __x214 is __t206, false))(registerUnary
Callback != null ? registerUnaryCallback : other.registerUnaryCallback), registe
rBinaryCallback: ((__x225) => DEVC$RT.cast(__x225, dynamic, __t215, "CastGeneral
", """line 150, column 31 of dart:async/zone.dart: """, __x225 is __t215, false)
)(registerBinaryCallback != null ? registerBinaryCallback : other.registerBinary
Callback), errorCallback: ((__x232) => DEVC$RT.cast(__x232, dynamic, __t226, "Ca
stGeneral", """line 153, column 22 of dart:async/zone.dart: """, __x232 is __t22
6, false))(errorCallback != null ? errorCallback : other.errorCallback), schedul
eMicrotask: ((__x238) => DEVC$RT.cast(__x238, dynamic, __t233, "CastGeneral", ""
"line 156, column 26 of dart:async/zone.dart: """, __x238 is __t233, false))(sch
eduleMicrotask != null ? scheduleMicrotask : other.scheduleMicrotask), createTim
er: ((__x245) => DEVC$RT.cast(__x245, dynamic, __t239, "CastGeneral", """line 15
9, column 21 of dart:async/zone.dart: """, __x245 is __t239, false))(createTimer
!= null ? createTimer : other.createTimer), createPeriodicTimer: ((__x253) => D
EVC$RT.cast(__x253, dynamic, __t246, "CastGeneral", """line 160, column 28 of da
rt:async/zone.dart: """, __x253 is __t246, false))(createPeriodicTimer != null ?
createPeriodicTimer : other.createPeriodicTimer), print: ((__x259) => DEVC$RT.c
ast(__x259, dynamic, __t254, "CastGeneral", """line 163, column 15 of dart:async
/zone.dart: """, __x259 is __t254, false))(print != null ? print : other.print),
fork: ((__x266) => DEVC$RT.cast(__x266, dynamic, __t260, "CastGeneral", """line
164, column 13 of dart:async/zone.dart: """, __x266 is __t260, false))(fork !=
null ? fork : other.fork)); |
34 } | 34 } |
35 HandleUncaughtErrorHandler get handleUncaughtError; | 35 HandleUncaughtErrorHandler get handleUncaughtError; |
36 RunHandler get run; | 36 RunHandler get run; |
37 RunUnaryHandler get runUnary; | 37 RunUnaryHandler get runUnary; |
38 RunBinaryHandler get runBinary; | 38 RunBinaryHandler get runBinary; |
39 RegisterCallbackHandler get registerCallback; | 39 RegisterCallbackHandler get registerCallback; |
40 RegisterUnaryCallbackHandler get registerUnaryCallback; | 40 RegisterUnaryCallbackHandler get registerUnaryCallback; |
41 RegisterBinaryCallbackHandler get registerBinaryCallback; | 41 RegisterBinaryCallbackHandler get registerBinaryCallback; |
42 ErrorCallbackHandler get errorCallback; | 42 ErrorCallbackHandler get errorCallback; |
43 ScheduleMicrotaskHandler get scheduleMicrotask; | 43 ScheduleMicrotaskHandler get scheduleMicrotask; |
(...skipping 28 matching lines...) Expand all Loading... |
72 ZoneBinaryCallback registerBinaryCallback(Zone zone, f(arg1, arg2)); | 72 ZoneBinaryCallback registerBinaryCallback(Zone zone, f(arg1, arg2)); |
73 AsyncError errorCallback(Zone zone, Object error, StackTrace stackTrace); | 73 AsyncError errorCallback(Zone zone, Object error, StackTrace stackTrace); |
74 void scheduleMicrotask(Zone zone, f()); | 74 void scheduleMicrotask(Zone zone, f()); |
75 Timer createTimer(Zone zone, Duration duration, void f()); | 75 Timer createTimer(Zone zone, Duration duration, void f()); |
76 Timer createPeriodicTimer(Zone zone, Duration period, void f(Timer timer)); | 76 Timer createPeriodicTimer(Zone zone, Duration period, void f(Timer timer)); |
77 void print(Zone zone, String line); | 77 void print(Zone zone, String line); |
78 Zone fork(Zone zone, ZoneSpecification specification, Map zoneValues); | 78 Zone fork(Zone zone, ZoneSpecification specification, Map zoneValues); |
79 } | 79 } |
80 abstract class Zone {Zone._(); | 80 abstract class Zone {Zone._(); |
81 static const Zone ROOT = _ROOT_ZONE; | 81 static const Zone ROOT = _ROOT_ZONE; |
82 static Zone _current = DDC$RT.cast(_ROOT_ZONE, dynamic, Zone, "CastGeneral", ""
"line 262, column 26 of dart:async/zone.dart: """, _ROOT_ZONE is Zone, true); | 82 static Zone _current = DEVC$RT.cast(_ROOT_ZONE, dynamic, Zone, "CastGeneral", "
""line 262, column 26 of dart:async/zone.dart: """, _ROOT_ZONE is Zone, true); |
83 static Zone get current => _current; | 83 static Zone get current => _current; |
84 dynamic handleUncaughtError(error, StackTrace stackTrace); | 84 dynamic handleUncaughtError(error, StackTrace stackTrace); |
85 Zone get parent; | 85 Zone get parent; |
86 Zone get errorZone; | 86 Zone get errorZone; |
87 bool inSameErrorZone(Zone otherZone); | 87 bool inSameErrorZone(Zone otherZone); |
88 Zone fork({ | 88 Zone fork({ |
89 ZoneSpecification specification, Map zoneValues} | 89 ZoneSpecification specification, Map zoneValues} |
90 ); | 90 ); |
91 dynamic run(f()); | 91 dynamic run(f()); |
92 dynamic runUnary(f(arg), var arg); | 92 dynamic runUnary(f(arg), var arg); |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 return (implementation.function)(implZone, _parentDelegate(implZone), zone, f,
arg); | 143 return (implementation.function)(implZone, _parentDelegate(implZone), zone, f,
arg); |
144 } | 144 } |
145 dynamic runBinary(Zone zone, f(arg1, arg2), arg1, arg2) { | 145 dynamic runBinary(Zone zone, f(arg1, arg2), arg1, arg2) { |
146 _ZoneFunction implementation = _delegationTarget._runBinary; | 146 _ZoneFunction implementation = _delegationTarget._runBinary; |
147 _Zone implZone = implementation.zone; | 147 _Zone implZone = implementation.zone; |
148 return (implementation.function)(implZone, _parentDelegate(implZone), zone, f,
arg1, arg2); | 148 return (implementation.function)(implZone, _parentDelegate(implZone), zone, f,
arg1, arg2); |
149 } | 149 } |
150 ZoneCallback registerCallback(Zone zone, f()) { | 150 ZoneCallback registerCallback(Zone zone, f()) { |
151 _ZoneFunction implementation = _delegationTarget._registerCallback; | 151 _ZoneFunction implementation = _delegationTarget._registerCallback; |
152 _Zone implZone = implementation.zone; | 152 _Zone implZone = implementation.zone; |
153 return ((__x267) => DDC$RT.cast(__x267, dynamic, __t204, "CastGeneral", """line
522, column 12 of dart:async/zone.dart: """, __x267 is __t204, false))((impleme
ntation.function)(implZone, _parentDelegate(implZone), zone, f)); | 153 return ((__x267) => DEVC$RT.cast(__x267, dynamic, __t204, "CastGeneral", """lin
e 522, column 12 of dart:async/zone.dart: """, __x267 is __t204, false))((implem
entation.function)(implZone, _parentDelegate(implZone), zone, f)); |
154 } | 154 } |
155 ZoneUnaryCallback registerUnaryCallback(Zone zone, f(arg)) { | 155 ZoneUnaryCallback registerUnaryCallback(Zone zone, f(arg)) { |
156 _ZoneFunction implementation = _delegationTarget._registerUnaryCallback; | 156 _ZoneFunction implementation = _delegationTarget._registerUnaryCallback; |
157 _Zone implZone = implementation.zone; | 157 _Zone implZone = implementation.zone; |
158 return ((__x268) => DDC$RT.cast(__x268, dynamic, __t212, "CastGeneral", """line
529, column 12 of dart:async/zone.dart: """, __x268 is __t212, false))((impleme
ntation.function)(implZone, _parentDelegate(implZone), zone, f)); | 158 return ((__x268) => DEVC$RT.cast(__x268, dynamic, __t212, "CastGeneral", """lin
e 529, column 12 of dart:async/zone.dart: """, __x268 is __t212, false))((implem
entation.function)(implZone, _parentDelegate(implZone), zone, f)); |
159 } | 159 } |
160 ZoneBinaryCallback registerBinaryCallback(Zone zone, f(arg1, arg2)) { | 160 ZoneBinaryCallback registerBinaryCallback(Zone zone, f(arg1, arg2)) { |
161 _ZoneFunction implementation = _delegationTarget._registerBinaryCallback; | 161 _ZoneFunction implementation = _delegationTarget._registerBinaryCallback; |
162 _Zone implZone = implementation.zone; | 162 _Zone implZone = implementation.zone; |
163 return ((__x269) => DDC$RT.cast(__x269, dynamic, __t222, "CastGeneral", """line
536, column 12 of dart:async/zone.dart: """, __x269 is __t222, false))((impleme
ntation.function)(implZone, _parentDelegate(implZone), zone, f)); | 163 return ((__x269) => DEVC$RT.cast(__x269, dynamic, __t222, "CastGeneral", """lin
e 536, column 12 of dart:async/zone.dart: """, __x269 is __t222, false))((implem
entation.function)(implZone, _parentDelegate(implZone), zone, f)); |
164 } | 164 } |
165 AsyncError errorCallback(Zone zone, Object error, StackTrace stackTrace) { | 165 AsyncError errorCallback(Zone zone, Object error, StackTrace stackTrace) { |
166 _ZoneFunction implementation = _delegationTarget._errorCallback; | 166 _ZoneFunction implementation = _delegationTarget._errorCallback; |
167 _Zone implZone = implementation.zone; | 167 _Zone implZone = implementation.zone; |
168 if (identical(implZone, _ROOT_ZONE)) return null; | 168 if (identical(implZone, _ROOT_ZONE)) return null; |
169 return ((__x270) => DDC$RT.cast(__x270, dynamic, AsyncError, "CastGeneral", """
line 544, column 12 of dart:async/zone.dart: """, __x270 is AsyncError, true))((
implementation.function)(implZone, _parentDelegate(implZone), zone, error, stack
Trace)); | 169 return ((__x270) => DEVC$RT.cast(__x270, dynamic, AsyncError, "CastGeneral", ""
"line 544, column 12 of dart:async/zone.dart: """, __x270 is AsyncError, true))(
(implementation.function)(implZone, _parentDelegate(implZone), zone, error, stac
kTrace)); |
170 } | 170 } |
171 void scheduleMicrotask(Zone zone, f()) { | 171 void scheduleMicrotask(Zone zone, f()) { |
172 _ZoneFunction implementation = _delegationTarget._scheduleMicrotask; | 172 _ZoneFunction implementation = _delegationTarget._scheduleMicrotask; |
173 _Zone implZone = implementation.zone; | 173 _Zone implZone = implementation.zone; |
174 (implementation.function)(implZone, _parentDelegate(implZone), zone, f); | 174 (implementation.function)(implZone, _parentDelegate(implZone), zone, f); |
175 } | 175 } |
176 Timer createTimer(Zone zone, Duration duration, void f()) { | 176 Timer createTimer(Zone zone, Duration duration, void f()) { |
177 _ZoneFunction implementation = _delegationTarget._createTimer; | 177 _ZoneFunction implementation = _delegationTarget._createTimer; |
178 _Zone implZone = implementation.zone; | 178 _Zone implZone = implementation.zone; |
179 return ((__x271) => DDC$RT.cast(__x271, dynamic, Timer, "CastGeneral", """line
558, column 12 of dart:async/zone.dart: """, __x271 is Timer, true))((implementa
tion.function)(implZone, _parentDelegate(implZone), zone, duration, f)); | 179 return ((__x271) => DEVC$RT.cast(__x271, dynamic, Timer, "CastGeneral", """line
558, column 12 of dart:async/zone.dart: """, __x271 is Timer, true))((implement
ation.function)(implZone, _parentDelegate(implZone), zone, duration, f)); |
180 } | 180 } |
181 Timer createPeriodicTimer(Zone zone, Duration period, void f(Timer timer)) { | 181 Timer createPeriodicTimer(Zone zone, Duration period, void f(Timer timer)) { |
182 _ZoneFunction implementation = _delegationTarget._createPeriodicTimer; | 182 _ZoneFunction implementation = _delegationTarget._createPeriodicTimer; |
183 _Zone implZone = implementation.zone; | 183 _Zone implZone = implementation.zone; |
184 return ((__x272) => DDC$RT.cast(__x272, dynamic, Timer, "CastGeneral", """line
565, column 12 of dart:async/zone.dart: """, __x272 is Timer, true))((implementa
tion.function)(implZone, _parentDelegate(implZone), zone, period, f)); | 184 return ((__x272) => DEVC$RT.cast(__x272, dynamic, Timer, "CastGeneral", """line
565, column 12 of dart:async/zone.dart: """, __x272 is Timer, true))((implement
ation.function)(implZone, _parentDelegate(implZone), zone, period, f)); |
185 } | 185 } |
186 void print(Zone zone, String line) { | 186 void print(Zone zone, String line) { |
187 _ZoneFunction implementation = _delegationTarget._print; | 187 _ZoneFunction implementation = _delegationTarget._print; |
188 _Zone implZone = implementation.zone; | 188 _Zone implZone = implementation.zone; |
189 (implementation.function)(implZone, _parentDelegate(implZone), zone, line); | 189 (implementation.function)(implZone, _parentDelegate(implZone), zone, line); |
190 } | 190 } |
191 Zone fork(Zone zone, ZoneSpecification specification, Map zoneValues) { | 191 Zone fork(Zone zone, ZoneSpecification specification, Map zoneValues) { |
192 _ZoneFunction implementation = _delegationTarget._fork; | 192 _ZoneFunction implementation = _delegationTarget._fork; |
193 _Zone implZone = implementation.zone; | 193 _Zone implZone = implementation.zone; |
194 return ((__x273) => DDC$RT.cast(__x273, dynamic, Zone, "CastGeneral", """line 5
80, column 12 of dart:async/zone.dart: """, __x273 is Zone, true))((implementati
on.function)(implZone, _parentDelegate(implZone), zone, specification, zoneValue
s)); | 194 return ((__x273) => DEVC$RT.cast(__x273, dynamic, Zone, "CastGeneral", """line
580, column 12 of dart:async/zone.dart: """, __x273 is Zone, true))((implementat
ion.function)(implZone, _parentDelegate(implZone), zone, specification, zoneValu
es)); |
195 } | 195 } |
196 } | 196 } |
197 abstract class _Zone implements Zone {const _Zone(); | 197 abstract class _Zone implements Zone {const _Zone(); |
198 _ZoneFunction get _runUnary; | 198 _ZoneFunction get _runUnary; |
199 _ZoneFunction get _run; | 199 _ZoneFunction get _run; |
200 _ZoneFunction get _runBinary; | 200 _ZoneFunction get _runBinary; |
201 _ZoneFunction get _registerCallback; | 201 _ZoneFunction get _registerCallback; |
202 _ZoneFunction get _registerUnaryCallback; | 202 _ZoneFunction get _registerUnaryCallback; |
203 _ZoneFunction get _registerBinaryCallback; | 203 _ZoneFunction get _registerBinaryCallback; |
204 _ZoneFunction get _errorCallback; | 204 _ZoneFunction get _errorCallback; |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
324 dynamic handleUncaughtError(error, StackTrace stackTrace) { | 324 dynamic handleUncaughtError(error, StackTrace stackTrace) { |
325 _ZoneFunction implementation = this._handleUncaughtError; | 325 _ZoneFunction implementation = this._handleUncaughtError; |
326 assert (implementation != null); ZoneDelegate parentDelegate = _parentDelegate(
implementation.zone); | 326 assert (implementation != null); ZoneDelegate parentDelegate = _parentDelegate(
implementation.zone); |
327 return (implementation.function)(implementation.zone, parentDelegate, this, err
or, stackTrace); | 327 return (implementation.function)(implementation.zone, parentDelegate, this, err
or, stackTrace); |
328 } | 328 } |
329 Zone fork({ | 329 Zone fork({ |
330 ZoneSpecification specification, Map zoneValues} | 330 ZoneSpecification specification, Map zoneValues} |
331 ) { | 331 ) { |
332 _ZoneFunction implementation = this._fork; | 332 _ZoneFunction implementation = this._fork; |
333 assert (implementation != null); ZoneDelegate parentDelegate = _parentDelegate(
implementation.zone); | 333 assert (implementation != null); ZoneDelegate parentDelegate = _parentDelegate(
implementation.zone); |
334 return ((__x274) => DDC$RT.cast(__x274, dynamic, Zone, "CastGeneral", """line 7
87, column 12 of dart:async/zone.dart: """, __x274 is Zone, true))((implementati
on.function)(implementation.zone, parentDelegate, this, specification, zoneValue
s)); | 334 return ((__x274) => DEVC$RT.cast(__x274, dynamic, Zone, "CastGeneral", """line
787, column 12 of dart:async/zone.dart: """, __x274 is Zone, true))((implementat
ion.function)(implementation.zone, parentDelegate, this, specification, zoneValu
es)); |
335 } | 335 } |
336 dynamic run(f()) { | 336 dynamic run(f()) { |
337 _ZoneFunction implementation = this._run; | 337 _ZoneFunction implementation = this._run; |
338 assert (implementation != null); ZoneDelegate parentDelegate = _parentDelegate(
implementation.zone); | 338 assert (implementation != null); ZoneDelegate parentDelegate = _parentDelegate(
implementation.zone); |
339 return (implementation.function)(implementation.zone, parentDelegate, this, f); | 339 return (implementation.function)(implementation.zone, parentDelegate, this, f); |
340 } | 340 } |
341 dynamic runUnary(f(arg), arg) { | 341 dynamic runUnary(f(arg), arg) { |
342 _ZoneFunction implementation = this._runUnary; | 342 _ZoneFunction implementation = this._runUnary; |
343 assert (implementation != null); ZoneDelegate parentDelegate = _parentDelegate(
implementation.zone); | 343 assert (implementation != null); ZoneDelegate parentDelegate = _parentDelegate(
implementation.zone); |
344 return (implementation.function)(implementation.zone, parentDelegate, this, f,
arg); | 344 return (implementation.function)(implementation.zone, parentDelegate, this, f,
arg); |
345 } | 345 } |
346 dynamic runBinary(f(arg1, arg2), arg1, arg2) { | 346 dynamic runBinary(f(arg1, arg2), arg1, arg2) { |
347 _ZoneFunction implementation = this._runBinary; | 347 _ZoneFunction implementation = this._runBinary; |
348 assert (implementation != null); ZoneDelegate parentDelegate = _parentDelegate(
implementation.zone); | 348 assert (implementation != null); ZoneDelegate parentDelegate = _parentDelegate(
implementation.zone); |
349 return (implementation.function)(implementation.zone, parentDelegate, this, f,
arg1, arg2); | 349 return (implementation.function)(implementation.zone, parentDelegate, this, f,
arg1, arg2); |
350 } | 350 } |
351 ZoneCallback registerCallback(f()) { | 351 ZoneCallback registerCallback(f()) { |
352 _ZoneFunction implementation = this._registerCallback; | 352 _ZoneFunction implementation = this._registerCallback; |
353 assert (implementation != null); ZoneDelegate parentDelegate = _parentDelegate(
implementation.zone); | 353 assert (implementation != null); ZoneDelegate parentDelegate = _parentDelegate(
implementation.zone); |
354 return ((__x275) => DDC$RT.cast(__x275, dynamic, __t204, "CastGeneral", """line
820, column 12 of dart:async/zone.dart: """, __x275 is __t204, false))((impleme
ntation.function)(implementation.zone, parentDelegate, this, f)); | 354 return ((__x275) => DEVC$RT.cast(__x275, dynamic, __t204, "CastGeneral", """lin
e 820, column 12 of dart:async/zone.dart: """, __x275 is __t204, false))((implem
entation.function)(implementation.zone, parentDelegate, this, f)); |
355 } | 355 } |
356 ZoneUnaryCallback registerUnaryCallback(f(arg)) { | 356 ZoneUnaryCallback registerUnaryCallback(f(arg)) { |
357 _ZoneFunction implementation = this._registerUnaryCallback; | 357 _ZoneFunction implementation = this._registerUnaryCallback; |
358 assert (implementation != null); ZoneDelegate parentDelegate = _parentDelegate(
implementation.zone); | 358 assert (implementation != null); ZoneDelegate parentDelegate = _parentDelegate(
implementation.zone); |
359 return ((__x276) => DDC$RT.cast(__x276, dynamic, __t212, "CastGeneral", """line
828, column 12 of dart:async/zone.dart: """, __x276 is __t212, false))((impleme
ntation.function)(implementation.zone, parentDelegate, this, f)); | 359 return ((__x276) => DEVC$RT.cast(__x276, dynamic, __t212, "CastGeneral", """lin
e 828, column 12 of dart:async/zone.dart: """, __x276 is __t212, false))((implem
entation.function)(implementation.zone, parentDelegate, this, f)); |
360 } | 360 } |
361 ZoneBinaryCallback registerBinaryCallback(f(arg1, arg2)) { | 361 ZoneBinaryCallback registerBinaryCallback(f(arg1, arg2)) { |
362 _ZoneFunction implementation = this._registerBinaryCallback; | 362 _ZoneFunction implementation = this._registerBinaryCallback; |
363 assert (implementation != null); ZoneDelegate parentDelegate = _parentDelegate(
implementation.zone); | 363 assert (implementation != null); ZoneDelegate parentDelegate = _parentDelegate(
implementation.zone); |
364 return ((__x277) => DDC$RT.cast(__x277, dynamic, __t222, "CastGeneral", """line
836, column 12 of dart:async/zone.dart: """, __x277 is __t222, false))((impleme
ntation.function)(implementation.zone, parentDelegate, this, f)); | 364 return ((__x277) => DEVC$RT.cast(__x277, dynamic, __t222, "CastGeneral", """lin
e 836, column 12 of dart:async/zone.dart: """, __x277 is __t222, false))((implem
entation.function)(implementation.zone, parentDelegate, this, f)); |
365 } | 365 } |
366 AsyncError errorCallback(Object error, StackTrace stackTrace) { | 366 AsyncError errorCallback(Object error, StackTrace stackTrace) { |
367 final _ZoneFunction implementation = this._errorCallback; | 367 final _ZoneFunction implementation = this._errorCallback; |
368 assert (implementation != null); final Zone implementationZone = implementation
.zone; | 368 assert (implementation != null); final Zone implementationZone = implementation
.zone; |
369 if (identical(implementationZone, _ROOT_ZONE)) return null; | 369 if (identical(implementationZone, _ROOT_ZONE)) return null; |
370 final ZoneDelegate parentDelegate = _parentDelegate(DDC$RT.cast(implementationZ
one, Zone, _Zone, "CastGeneral", """line 845, column 57 of dart:async/zone.dart:
""", implementationZone is _Zone, true)); | 370 final ZoneDelegate parentDelegate = _parentDelegate(DEVC$RT.cast(implementation
Zone, Zone, _Zone, "CastGeneral", """line 845, column 57 of dart:async/zone.dart
: """, implementationZone is _Zone, true)); |
371 return ((__x278) => DDC$RT.cast(__x278, dynamic, AsyncError, "CastGeneral", """
line 846, column 12 of dart:async/zone.dart: """, __x278 is AsyncError, true))((
implementation.function)(implementationZone, parentDelegate, this, error, stackT
race)); | 371 return ((__x278) => DEVC$RT.cast(__x278, dynamic, AsyncError, "CastGeneral", ""
"line 846, column 12 of dart:async/zone.dart: """, __x278 is AsyncError, true))(
(implementation.function)(implementationZone, parentDelegate, this, error, stack
Trace)); |
372 } | 372 } |
373 void scheduleMicrotask(void f()) { | 373 void scheduleMicrotask(void f()) { |
374 _ZoneFunction implementation = this._scheduleMicrotask; | 374 _ZoneFunction implementation = this._scheduleMicrotask; |
375 assert (implementation != null); ZoneDelegate parentDelegate = _parentDelegate(
implementation.zone); | 375 assert (implementation != null); ZoneDelegate parentDelegate = _parentDelegate(
implementation.zone); |
376 return (implementation.function)(implementation.zone, parentDelegate, this, f); | 376 return (implementation.function)(implementation.zone, parentDelegate, this, f); |
377 } | 377 } |
378 Timer createTimer(Duration duration, void f()) { | 378 Timer createTimer(Duration duration, void f()) { |
379 _ZoneFunction implementation = this._createTimer; | 379 _ZoneFunction implementation = this._createTimer; |
380 assert (implementation != null); ZoneDelegate parentDelegate = _parentDelegate(
implementation.zone); | 380 assert (implementation != null); ZoneDelegate parentDelegate = _parentDelegate(
implementation.zone); |
381 return ((__x279) => DDC$RT.cast(__x279, dynamic, Timer, "CastGeneral", """line
862, column 12 of dart:async/zone.dart: """, __x279 is Timer, true))((implementa
tion.function)(implementation.zone, parentDelegate, this, duration, f)); | 381 return ((__x279) => DEVC$RT.cast(__x279, dynamic, Timer, "CastGeneral", """line
862, column 12 of dart:async/zone.dart: """, __x279 is Timer, true))((implement
ation.function)(implementation.zone, parentDelegate, this, duration, f)); |
382 } | 382 } |
383 Timer createPeriodicTimer(Duration duration, void f(Timer timer)) { | 383 Timer createPeriodicTimer(Duration duration, void f(Timer timer)) { |
384 _ZoneFunction implementation = this._createPeriodicTimer; | 384 _ZoneFunction implementation = this._createPeriodicTimer; |
385 assert (implementation != null); ZoneDelegate parentDelegate = _parentDelegate(
implementation.zone); | 385 assert (implementation != null); ZoneDelegate parentDelegate = _parentDelegate(
implementation.zone); |
386 return ((__x280) => DDC$RT.cast(__x280, dynamic, Timer, "CastGeneral", """line
870, column 12 of dart:async/zone.dart: """, __x280 is Timer, true))((implementa
tion.function)(implementation.zone, parentDelegate, this, duration, f)); | 386 return ((__x280) => DEVC$RT.cast(__x280, dynamic, Timer, "CastGeneral", """line
870, column 12 of dart:async/zone.dart: """, __x280 is Timer, true))((implement
ation.function)(implementation.zone, parentDelegate, this, duration, f)); |
387 } | 387 } |
388 void print(String line) { | 388 void print(String line) { |
389 _ZoneFunction implementation = this._print; | 389 _ZoneFunction implementation = this._print; |
390 assert (implementation != null); ZoneDelegate parentDelegate = _parentDelegate(
implementation.zone); | 390 assert (implementation != null); ZoneDelegate parentDelegate = _parentDelegate(
implementation.zone); |
391 return (implementation.function)(implementation.zone, parentDelegate, this, lin
e); | 391 return (implementation.function)(implementation.zone, parentDelegate, this, lin
e); |
392 } | 392 } |
393 } | 393 } |
394 void _rootHandleUncaughtError(Zone self, ZoneDelegate parent, Zone zone, error,
StackTrace stackTrace) { | 394 void _rootHandleUncaughtError(Zone self, ZoneDelegate parent, Zone zone, error,
StackTrace stackTrace) { |
395 _schedulePriorityAsyncCallback(() { | 395 _schedulePriorityAsyncCallback(() { |
396 throw new _UncaughtAsyncError(error, stackTrace); | 396 throw new _UncaughtAsyncError(error, stackTrace); |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
445 _scheduleAsyncCallback(f); | 445 _scheduleAsyncCallback(f); |
446 } | 446 } |
447 Timer _rootCreateTimer(Zone self, ZoneDelegate parent, Zone zone, Duration dura
tion, void callback()) { | 447 Timer _rootCreateTimer(Zone self, ZoneDelegate parent, Zone zone, Duration dura
tion, void callback()) { |
448 if (!identical(_ROOT_ZONE, zone)) { | 448 if (!identical(_ROOT_ZONE, zone)) { |
449 callback = zone.bindCallback(callback); | 449 callback = zone.bindCallback(callback); |
450 } | 450 } |
451 return Timer._createTimer(duration, callback); | 451 return Timer._createTimer(duration, callback); |
452 } | 452 } |
453 Timer _rootCreatePeriodicTimer(Zone self, ZoneDelegate parent, Zone zone, Durat
ion duration, void callback(Timer timer)) { | 453 Timer _rootCreatePeriodicTimer(Zone self, ZoneDelegate parent, Zone zone, Durat
ion duration, void callback(Timer timer)) { |
454 if (!identical(_ROOT_ZONE, zone)) { | 454 if (!identical(_ROOT_ZONE, zone)) { |
455 callback = zone.bindUnaryCallback(DDC$RT.wrap((void f(Timer __u281)) { | 455 callback = zone.bindUnaryCallback(DEVC$RT.wrap((void f(Timer __u281)) { |
456 void c(Timer x0) => f(DDC$RT.cast(x0, dynamic, Timer, "CastParam", """line 962,
column 39 of dart:async/zone.dart: """, x0 is Timer, true)); | 456 void c(Timer x0) => f(DEVC$RT.cast(x0, dynamic, Timer, "CastParam", """line 962,
column 39 of dart:async/zone.dart: """, x0 is Timer, true)); |
457 return f == null ? null : c; | 457 return f == null ? null : c; |
458 } | 458 } |
459 , callback, __t282, __t212, "Wrap", """line 962, column 39 of dart:async/zone.da
rt: """, callback is __t212)); | 459 , callback, __t282, __t212, "Wrap", """line 962, column 39 of dart:async/zone.da
rt: """, callback is __t212)); |
460 } | 460 } |
461 return Timer._createPeriodicTimer(duration, callback); | 461 return Timer._createPeriodicTimer(duration, callback); |
462 } | 462 } |
463 void _rootPrint(Zone self, ZoneDelegate parent, Zone zone, String line) { | 463 void _rootPrint(Zone self, ZoneDelegate parent, Zone zone, String line) { |
464 printToConsole(line); | 464 printToConsole(line); |
465 } | 465 } |
466 void _printToZone(String line) { | 466 void _printToZone(String line) { |
(...skipping 12 matching lines...) Expand all Loading... |
479 if (zone is _Zone) { | 479 if (zone is _Zone) { |
480 valueMap = zone._map; | 480 valueMap = zone._map; |
481 } | 481 } |
482 else { | 482 else { |
483 valueMap = new HashMap(); | 483 valueMap = new HashMap(); |
484 } | 484 } |
485 } | 485 } |
486 else { | 486 else { |
487 valueMap = new HashMap.from(zoneValues); | 487 valueMap = new HashMap.from(zoneValues); |
488 } | 488 } |
489 return new _CustomZone(DDC$RT.cast(zone, Zone, _Zone, "CastGeneral", """line 99
9, column 26 of dart:async/zone.dart: """, zone is _Zone, true), specification,
valueMap); | 489 return new _CustomZone(DEVC$RT.cast(zone, Zone, _Zone, "CastGeneral", """line 9
99, column 26 of dart:async/zone.dart: """, zone is _Zone, true), specification,
valueMap); |
490 } | 490 } |
491 class _RootZoneSpecification implements ZoneSpecification {HandleUncaughtErrorH
andler get handleUncaughtError => _rootHandleUncaughtError; | 491 class _RootZoneSpecification implements ZoneSpecification {HandleUncaughtErrorH
andler get handleUncaughtError => _rootHandleUncaughtError; |
492 RunHandler get run => _rootRun; | 492 RunHandler get run => _rootRun; |
493 RunUnaryHandler get runUnary => _rootRunUnary; | 493 RunUnaryHandler get runUnary => _rootRunUnary; |
494 RunBinaryHandler get runBinary => _rootRunBinary; | 494 RunBinaryHandler get runBinary => _rootRunBinary; |
495 RegisterCallbackHandler get registerCallback => _rootRegisterCallback; | 495 RegisterCallbackHandler get registerCallback => _rootRegisterCallback; |
496 RegisterUnaryCallbackHandler get registerUnaryCallback => _rootRegisterUnaryCal
lback; | 496 RegisterUnaryCallbackHandler get registerUnaryCallback => _rootRegisterUnaryCal
lback; |
497 RegisterBinaryCallbackHandler get registerBinaryCallback => _rootRegisterBinary
Callback; | 497 RegisterBinaryCallbackHandler get registerBinaryCallback => _rootRegisterBinary
Callback; |
498 ErrorCallbackHandler get errorCallback => _rootErrorCallback; | 498 ErrorCallbackHandler get errorCallback => _rootErrorCallback; |
499 ScheduleMicrotaskHandler get scheduleMicrotask => _rootScheduleMicrotask; | 499 ScheduleMicrotaskHandler get scheduleMicrotask => _rootScheduleMicrotask; |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
630 dynamic runZoned(body(), { | 630 dynamic runZoned(body(), { |
631 Map zoneValues, ZoneSpecification zoneSpecification, Function onError} | 631 Map zoneValues, ZoneSpecification zoneSpecification, Function onError} |
632 ) { | 632 ) { |
633 HandleUncaughtErrorHandler errorHandler; | 633 HandleUncaughtErrorHandler errorHandler; |
634 if (onError != null) { | 634 if (onError != null) { |
635 errorHandler = (Zone self, ZoneDelegate parent, Zone zone, error, StackTrace sta
ckTrace) { | 635 errorHandler = (Zone self, ZoneDelegate parent, Zone zone, error, StackTrace sta
ckTrace) { |
636 try { | 636 try { |
637 if (onError is ZoneBinaryCallback) { | 637 if (onError is ZoneBinaryCallback) { |
638 return self.parent.runBinary(onError, error, stackTrace); | 638 return self.parent.runBinary(onError, error, stackTrace); |
639 } | 639 } |
640 return self.parent.runUnary(DDC$RT.cast(onError, Function, __t212, "CastGeneral
", """line 1228, column 37 of dart:async/zone.dart: """, onError is __t212, fals
e), error); | 640 return self.parent.runUnary(DEVC$RT.cast(onError, Function, __t212, "CastGenera
l", """line 1228, column 37 of dart:async/zone.dart: """, onError is __t212, fal
se), error); |
641 } | 641 } |
642 catch (e, s) { | 642 catch (e, s) { |
643 if (identical(e, error)) { | 643 if (identical(e, error)) { |
644 return parent.handleUncaughtError(zone, error, stackTrace); | 644 return parent.handleUncaughtError(zone, error, stackTrace); |
645 } | 645 } |
646 else { | 646 else { |
647 return parent.handleUncaughtError(zone, e, s); | 647 return parent.handleUncaughtError(zone, e, s); |
648 } | 648 } |
649 } | 649 } |
650 } | 650 } |
(...skipping 23 matching lines...) Expand all Loading... |
674 typedef __t212 __t206(Zone __u207, ZoneDelegate __u208, Zone __u209, dynamic __
u210(dynamic __u211)); | 674 typedef __t212 __t206(Zone __u207, ZoneDelegate __u208, Zone __u209, dynamic __
u210(dynamic __u211)); |
675 typedef dynamic __t222(dynamic __u223, dynamic __u224); | 675 typedef dynamic __t222(dynamic __u223, dynamic __u224); |
676 typedef __t222 __t215(Zone __u216, ZoneDelegate __u217, Zone __u218, dynamic __
u219(dynamic __u220, dynamic __u221)); | 676 typedef __t222 __t215(Zone __u216, ZoneDelegate __u217, Zone __u218, dynamic __
u219(dynamic __u220, dynamic __u221)); |
677 typedef AsyncError __t226(Zone __u227, ZoneDelegate __u228, Zone __u229, Object
__u230, StackTrace __u231); | 677 typedef AsyncError __t226(Zone __u227, ZoneDelegate __u228, Zone __u229, Object
__u230, StackTrace __u231); |
678 typedef void __t233(Zone __u234, ZoneDelegate __u235, Zone __u236, dynamic __u2
37()); | 678 typedef void __t233(Zone __u234, ZoneDelegate __u235, Zone __u236, dynamic __u2
37()); |
679 typedef Timer __t239(Zone __u240, ZoneDelegate __u241, Zone __u242, Duration __
u243, void __u244()); | 679 typedef Timer __t239(Zone __u240, ZoneDelegate __u241, Zone __u242, Duration __
u243, void __u244()); |
680 typedef Timer __t246(Zone __u247, ZoneDelegate __u248, Zone __u249, Duration __
u250, void __u251(Timer __u252)); | 680 typedef Timer __t246(Zone __u247, ZoneDelegate __u248, Zone __u249, Duration __
u250, void __u251(Timer __u252)); |
681 typedef void __t254(Zone __u255, ZoneDelegate __u256, Zone __u257, String __u25
8); | 681 typedef void __t254(Zone __u255, ZoneDelegate __u256, Zone __u257, String __u25
8); |
682 typedef Zone __t260(Zone __u261, ZoneDelegate __u262, Zone __u263, ZoneSpecific
ation __u264, Map<dynamic, dynamic> __u265); | 682 typedef Zone __t260(Zone __u261, ZoneDelegate __u262, Zone __u263, ZoneSpecific
ation __u264, Map<dynamic, dynamic> __u265); |
683 typedef void __t282(Timer __u283); | 683 typedef void __t282(Timer __u283); |
OLD | NEW |