OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | |
2 // for details. All rights reserved. Use of this source code is governed by a | |
3 // BSD-style license that can be found in the LICENSE file | |
4 | |
5 part of app; | |
6 | |
7 class VMUpdateEvent implements M.VMUpdateEvent { | |
8 final DateTime timestamp; | |
9 final M.VMRef vm; | |
10 VMUpdateEvent(this.timestamp, this.vm) { | |
11 assert(timestamp != null); | |
12 assert(vm != null); | |
13 } | |
14 } | |
turnidge
2016/08/04 18:16:36
One blank line between each class declaration.
cbernaschina
2016/08/04 21:00:19
Done.
| |
15 class IsolateStartEvent implements M.IsolateStartEvent { | |
16 final DateTime timestamp; | |
17 final M.IsolateRef isolate; | |
18 IsolateStartEvent(this.timestamp, this.isolate) { | |
19 assert(timestamp != null); | |
20 assert(isolate != null); | |
21 } | |
22 } | |
23 class IsolateRunnableEvent implements M.IsolateRunnableEvent { | |
24 final DateTime timestamp; | |
25 final M.IsolateRef isolate; | |
26 IsolateRunnableEvent(this.timestamp, this.isolate) { | |
27 assert(timestamp != null); | |
28 assert(isolate != null); | |
29 } | |
30 } | |
31 class IsolateExitEvent implements M.IsolateExitEvent { | |
32 final DateTime timestamp; | |
33 final M.IsolateRef isolate; | |
34 IsolateExitEvent(this.timestamp, this.isolate) { | |
35 assert(timestamp != null); | |
36 assert(isolate != null); | |
37 } | |
38 } | |
39 class IsolateUpdateEvent implements M.IsolateUpdateEvent { | |
40 final DateTime timestamp; | |
41 final M.IsolateRef isolate; | |
42 IsolateUpdateEvent(this.timestamp, this.isolate) { | |
43 assert(timestamp != null); | |
44 assert(isolate != null); | |
45 } | |
46 } | |
47 class IsolateReloadEvent implements M.IsolateReloadEvent { | |
48 final DateTime timestamp; | |
49 final M.IsolateRef isolate; | |
50 final M.ErrorRef error; | |
51 IsolateReloadEvent(this.timestamp, this.isolate, this.error) { | |
52 assert(timestamp != null); | |
53 assert(isolate != null); | |
54 assert(error != null); | |
55 } | |
56 } | |
57 class ServiceExtensionAddedEvent implements M.ServiceExtensionAddedEvent { | |
58 final DateTime timestamp; | |
59 final M.IsolateRef isolate; | |
60 final String extensionRPC; | |
61 ServiceExtensionAddedEvent(this.timestamp, this.isolate, this.extensionRPC) { | |
62 assert(timestamp != null); | |
63 assert(isolate != null); | |
64 assert(extensionRPC != null); | |
65 } | |
66 } | |
67 class DebuggerSettingsUpdateEvent implements M.DebuggerSettingsUpdateEvent { | |
68 final DateTime timestamp; | |
69 final M.IsolateRef isolate; | |
70 DebuggerSettingsUpdateEvent(this.timestamp, this.isolate) { | |
71 assert(timestamp != null); | |
72 assert(isolate != null); | |
73 } | |
74 } | |
75 class PauseStartEvent implements M.PauseStartEvent { | |
76 final DateTime timestamp; | |
77 final M.IsolateRef isolate; | |
78 PauseStartEvent(this.timestamp, this.isolate) { | |
79 assert(timestamp != null); | |
80 assert(isolate != null); | |
81 } | |
82 } | |
83 class PauseExitEvent implements M.PauseExitEvent { | |
84 final DateTime timestamp; | |
85 final M.IsolateRef isolate; | |
86 PauseExitEvent(this.timestamp, this.isolate) { | |
87 assert(timestamp != null); | |
88 assert(isolate != null); | |
89 } | |
90 } | |
91 class PauseBreakpointEvent implements M.PauseBreakpointEvent { | |
92 final DateTime timestamp; | |
93 final M.IsolateRef isolate; | |
94 final Iterable<M.Breakpoint> pauseBreakpoints; | |
95 final M.Frame topFrame; | |
96 final bool atAsyncSuspension; | |
97 /// [optional] | |
98 final M.Breakpoint breakpoint; | |
99 PauseBreakpointEvent(this.timestamp, this.isolate, | |
100 Iterable<M.Breakpoint> pauseBreakpoints, this.topFrame, | |
101 this.atAsyncSuspension, [this.breakpoint]) | |
102 : pauseBreakpoints = new List.unmodifiable(pauseBreakpoints){ | |
103 assert(timestamp != null); | |
104 assert(isolate != null); | |
105 assert(pauseBreakpoints != null); | |
106 assert(topFrame != null); | |
107 assert(atAsyncSuspension != null); | |
108 } | |
109 } | |
110 class PauseInterruptedEvent implements M.PauseInterruptedEvent { | |
111 final DateTime timestamp; | |
112 final M.IsolateRef isolate; | |
113 final M.Frame topFrame; | |
114 final bool atAsyncSuspension; | |
115 PauseInterruptedEvent(this.timestamp, this.isolate, this.topFrame, | |
116 this.atAsyncSuspension) { | |
117 assert(timestamp != null); | |
118 assert(isolate != null); | |
119 assert(topFrame != null); | |
120 assert(atAsyncSuspension != null); | |
121 } | |
122 } | |
123 class PauseExceptionEvent implements M.PauseExceptionEvent { | |
124 final DateTime timestamp; | |
125 final M.IsolateRef isolate; | |
126 final M.Frame topFrame; | |
127 final M.InstanceRef exception; | |
128 PauseExceptionEvent(this.timestamp, this.isolate, this.topFrame, | |
129 this.exception) { | |
130 assert(timestamp != null); | |
131 assert(isolate != null); | |
132 assert(topFrame != null); | |
133 assert(exception != null); | |
134 } | |
135 } | |
136 class ResumeEvent implements M.ResumeEvent { | |
137 final DateTime timestamp; | |
138 final M.IsolateRef isolate; | |
139 ResumeEvent(this.timestamp, this.isolate) { | |
140 assert(timestamp != null); | |
141 assert(isolate != null); | |
142 } | |
143 } | |
144 class BreakpointAddedEvent implements M.BreakpointAddedEvent { | |
145 final DateTime timestamp; | |
146 final M.IsolateRef isolate; | |
147 final M.Breakpoint breakpoint; | |
148 BreakpointAddedEvent(this.timestamp, this.isolate, this.breakpoint) { | |
149 assert(timestamp != null); | |
150 assert(isolate != null); | |
151 assert(breakpoint != null); | |
152 } | |
153 } | |
154 class BreakpointResolvedEvent implements M.BreakpointResolvedEvent { | |
155 final DateTime timestamp; | |
156 final M.IsolateRef isolate; | |
157 final M.Breakpoint breakpoint; | |
158 BreakpointResolvedEvent(this.timestamp, this.isolate, this.breakpoint) { | |
159 assert(timestamp != null); | |
160 assert(isolate != null); | |
161 assert(breakpoint != null); | |
162 } | |
163 } | |
164 class BreakpointRemovedEvent implements M.BreakpointRemovedEvent { | |
165 final DateTime timestamp; | |
166 final M.IsolateRef isolate; | |
167 final M.Breakpoint breakpoint; | |
168 BreakpointRemovedEvent(this.timestamp, this.isolate, this.breakpoint) { | |
169 assert(timestamp != null); | |
170 assert(isolate != null); | |
171 assert(breakpoint != null); | |
172 } | |
173 } | |
174 class InspectEvent implements M.InspectEvent { | |
175 final DateTime timestamp; | |
176 final M.IsolateRef isolate; | |
177 final M.InstanceRef inspectee; | |
178 InspectEvent(this.timestamp, this.isolate, this.inspectee) { | |
179 assert(timestamp != null); | |
180 assert(isolate != null); | |
181 assert(inspectee != null); | |
182 } | |
183 } | |
184 class NoneEvent implements M.NoneEvent { | |
185 final DateTime timestamp; | |
186 final M.IsolateRef isolate; | |
187 NoneEvent(this.timestamp, this.isolate) { | |
188 assert(timestamp != null); | |
189 assert(isolate != null); | |
190 } | |
191 } | |
192 class GCEvent implements M.GCEvent { | |
193 final DateTime timestamp; | |
194 final M.IsolateRef isolate; | |
195 GCEvent(this.timestamp, this.isolate) { | |
196 assert(timestamp != null); | |
197 assert(isolate != null); | |
198 } | |
199 } | |
200 class ExtensionEvent implements M.ExtensionEvent { | |
201 final DateTime timestamp; | |
202 final M.IsolateRef isolate; | |
203 final String extensionKind; | |
204 final M.ExtensionData extensionData; | |
205 ExtensionEvent(this.timestamp, this.isolate, this.extensionKind, | |
206 this.extensionData) { | |
207 assert(timestamp != null); | |
208 assert(isolate != null); | |
209 assert(extensionKind != null); | |
210 assert(extensionData != null); | |
211 } | |
212 } | |
213 class TimelineEventsEvent implements M.TimelineEventsEvent { | |
214 final DateTime timestamp; | |
215 final M.IsolateRef isolate; | |
216 final Iterable<M.TimelineEvent> timelineEvents; | |
217 TimelineEventsEvent(this.timestamp, this.isolate, | |
218 Iterable<M.TimelineEvent> timelineEvents) | |
219 : timelineEvents = new List.unmodifiable(timelineEvents){ | |
220 assert(timestamp != null); | |
221 assert(isolate != null); | |
222 assert(timelineEvents != null); | |
223 } | |
224 } | |
225 class ConnectionClosedEvent implements M.ConnectionClosedEvent { | |
226 final DateTime timestamp; | |
227 final String reason; | |
228 ConnectionClosedEvent(this.timestamp, this.reason) { | |
229 assert(timestamp != null); | |
230 assert(reason != null); | |
231 } | |
232 } | |
OLD | NEW |