| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 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 | 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. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 part of models; | 5 part of models; |
| 6 | 6 |
| 7 abstract class Event { | 7 abstract class Event { |
| 8 /// The timestamp (in milliseconds since the epoch) associated with this | 8 /// The timestamp (in milliseconds since the epoch) associated with this |
| 9 /// event. For some isolate pause events, the timestamp is from when the | 9 /// event. For some isolate pause events, the timestamp is from when the |
| 10 /// isolate was paused. For other events, the timestamp is from when the | 10 /// isolate was paused. For other events, the timestamp is from when the |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 | 190 |
| 191 bool isAtAsyncSuspension(DebugEvent event) { | 191 bool isAtAsyncSuspension(DebugEvent event) { |
| 192 if (event is PauseBreakpointEvent) { | 192 if (event is PauseBreakpointEvent) { |
| 193 return event.atAsyncSuspension; | 193 return event.atAsyncSuspension; |
| 194 } | 194 } |
| 195 if (event is PauseInterruptedEvent) { | 195 if (event is PauseInterruptedEvent) { |
| 196 return event.atAsyncSuspension; | 196 return event.atAsyncSuspension; |
| 197 } | 197 } |
| 198 return false; | 198 return false; |
| 199 } | 199 } |
| 200 |
| 201 abstract class ServiceEvent extends Event { |
| 202 /// The identifier of the service |
| 203 String get service; |
| 204 |
| 205 /// The JSON-RPC 2.0 Method that identifes this instance |
| 206 String get method; |
| 207 } |
| 208 |
| 209 abstract class ServiceRegisteredEvent extends ServiceEvent { |
| 210 /// The alias associated with this new instance |
| 211 String get alias; |
| 212 } |
| 213 |
| 214 abstract class ServiceUnregisteredEvent extends ServiceEvent {} |
| OLD | NEW |