OLD | NEW |
1 library; | 1 library; |
2 import self as self; | 2 import self as self; |
3 import "dart:core" as core; | 3 import "dart:core" as core; |
4 | 4 |
5 typedef fn = (dynamic) → dynamic; | 5 typedef fn = (dynamic) → dynamic; |
6 typedef fn2 = (dynamic, dynamic) → dynamic; | 6 typedef fn2 = (dynamic, dynamic) → dynamic; |
7 class X extends core::Object { | 7 class X extends core::Object { |
8 default constructor •() → void | 8 default constructor •() → void |
9 : super core::Object::•() | 9 : super core::Object::•() |
10 ; | 10 ; |
11 } | 11 } |
12 static method startIsolateMock(dynamic parentPort, dynamic entryPoint, dynamic a
rgs, dynamic message, dynamic isSpawnUri, dynamic controlPort, core::List<dynami
c> capabilities) → void { | 12 static method startIsolateMock(dynamic parentPort, dynamic entryPoint, dynamic a
rgs, dynamic message, dynamic isSpawnUri, dynamic controlPort, core::List<dynami
c> capabilities) → void { |
13 final dynamic #context = MakeVector(7); | 13 final dynamic #context = MakeVector(7); |
14 #context[2] = entryPoint; | 14 #context[2] = entryPoint; |
| 15 entryPoint = null; |
15 #context[3] = args; | 16 #context[3] = args; |
| 17 args = null; |
16 #context[4] = message; | 18 #context[4] = message; |
| 19 message = null; |
17 #context[5] = isSpawnUri; | 20 #context[5] = isSpawnUri; |
| 21 isSpawnUri = null; |
18 if(!controlPort.==(null)) { | 22 if(!controlPort.==(null)) { |
19 controlPort.handler = MakeClosure<(dynamic) → dynamic>(self::closure#startIs
olateMock#function, #context); | 23 controlPort.handler = MakeClosure<(dynamic) → dynamic>(self::closure#startIs
olateMock#function, #context); |
20 } | 24 } |
21 if(!parentPort.==(null)) { | 25 if(!parentPort.==(null)) { |
22 dynamic readyMessage = core::List::_internal<dynamic>(2); | 26 dynamic readyMessage = core::List::_internal<dynamic>(2); |
23 readyMessage.[]=(0, controlPort.sendPort); | 27 readyMessage.[]=(0, controlPort.sendPort); |
24 readyMessage.[]=(1, capabilities); | 28 readyMessage.[]=(1, capabilities); |
25 capabilities = null; | 29 capabilities = null; |
26 parentPort.send(readyMessage); | 30 parentPort.send(readyMessage); |
27 } | 31 } |
(...skipping 15 matching lines...) Expand all Loading... |
43 (#contextParameter[2]).call(#contextParameter[3]); | 47 (#contextParameter[2]).call(#contextParameter[3]); |
44 } | 48 } |
45 else { | 49 else { |
46 (#contextParameter[2]).call(); | 50 (#contextParameter[2]).call(); |
47 } | 51 } |
48 } | 52 } |
49 else { | 53 else { |
50 (#contextParameter[2]).call(#contextParameter[4]); | 54 (#contextParameter[2]).call(#contextParameter[4]); |
51 } | 55 } |
52 } | 56 } |
OLD | NEW |