Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(582)

Unified Diff: runtime/observatory/lib/event.dart

Issue 2345023003: Use dartfmt on Observatory code (Closed)
Patch Set: merge Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/observatory/lib/object_graph.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/observatory/lib/event.dart
diff --git a/runtime/observatory/lib/event.dart b/runtime/observatory/lib/event.dart
index ce30fb2b3b2ffe680612313827ac54d9010bfbbe..4ca9106ac39b98ed96eb39ae6594c93f1ea745d0 100644
--- a/runtime/observatory/lib/event.dart
+++ b/runtime/observatory/lib/event.dart
@@ -106,12 +106,17 @@ class PauseBreakpointEvent implements M.PauseBreakpointEvent {
final Iterable<M.Breakpoint> pauseBreakpoints;
final M.Frame topFrame;
final bool atAsyncSuspension;
+
/// [optional]
final M.Breakpoint breakpoint;
- PauseBreakpointEvent(this.timestamp, this.isolate,
- Iterable<M.Breakpoint> pauseBreakpoints, this.topFrame,
- this.atAsyncSuspension, [this.breakpoint])
- : pauseBreakpoints = new List.unmodifiable(pauseBreakpoints){
+ PauseBreakpointEvent(
+ this.timestamp,
+ this.isolate,
+ Iterable<M.Breakpoint> pauseBreakpoints,
+ this.topFrame,
+ this.atAsyncSuspension,
+ [this.breakpoint])
+ : pauseBreakpoints = new List.unmodifiable(pauseBreakpoints) {
assert(timestamp != null);
assert(isolate != null);
assert(pauseBreakpoints != null);
@@ -125,8 +130,8 @@ class PauseInterruptedEvent implements M.PauseInterruptedEvent {
final M.IsolateRef isolate;
final M.Frame topFrame;
final bool atAsyncSuspension;
- PauseInterruptedEvent(this.timestamp, this.isolate, this.topFrame,
- this.atAsyncSuspension) {
+ PauseInterruptedEvent(
+ this.timestamp, this.isolate, this.topFrame, this.atAsyncSuspension) {
assert(timestamp != null);
assert(isolate != null);
assert(atAsyncSuspension != null);
@@ -138,8 +143,8 @@ class PauseExceptionEvent implements M.PauseExceptionEvent {
final M.IsolateRef isolate;
final M.Frame topFrame;
final M.InstanceRef exception;
- PauseExceptionEvent(this.timestamp, this.isolate, this.topFrame,
- this.exception) {
+ PauseExceptionEvent(
+ this.timestamp, this.isolate, this.topFrame, this.exception) {
assert(timestamp != null);
assert(isolate != null);
assert(topFrame != null);
@@ -235,8 +240,8 @@ class ExtensionEvent implements M.ExtensionEvent {
final M.IsolateRef isolate;
final String extensionKind;
final M.ExtensionData extensionData;
- ExtensionEvent(this.timestamp, this.isolate, this.extensionKind,
- this.extensionData) {
+ ExtensionEvent(
+ this.timestamp, this.isolate, this.extensionKind, this.extensionData) {
assert(timestamp != null);
assert(isolate != null);
assert(extensionKind != null);
@@ -248,9 +253,9 @@ class TimelineEventsEvent implements M.TimelineEventsEvent {
final DateTime timestamp;
final M.IsolateRef isolate;
final Iterable<M.TimelineEvent> timelineEvents;
- TimelineEventsEvent(this.timestamp, this.isolate,
- Iterable<M.TimelineEvent> timelineEvents)
- : timelineEvents = new List.unmodifiable(timelineEvents){
+ TimelineEventsEvent(
+ this.timestamp, this.isolate, Iterable<M.TimelineEvent> timelineEvents)
+ : timelineEvents = new List.unmodifiable(timelineEvents) {
assert(timestamp != null);
assert(isolate != null);
assert(timelineEvents != null);
@@ -267,7 +272,7 @@ class ConnectionClosedEvent implements M.ConnectionClosedEvent {
}
M.Event createEventFromServiceEvent(S.ServiceEvent event) {
- switch(event.kind) {
+ switch (event.kind) {
case S.ServiceEvent.kVMUpdate:
return new VMUpdateEvent(event.timestamp, event.vm);
case S.ServiceEvent.kIsolateStart:
@@ -277,18 +282,19 @@ M.Event createEventFromServiceEvent(S.ServiceEvent event) {
case S.ServiceEvent.kIsolateUpdate:
return new IsolateUpdateEvent(event.timestamp, event.isolate);
case S.ServiceEvent.kIsolateReload:
- return new IsolateReloadEvent(event.timestamp, event.isolate, event.error);
+ return new IsolateReloadEvent(
+ event.timestamp, event.isolate, event.error);
case S.ServiceEvent.kIsolateExit:
return new IsolateExitEvent(event.timestamp, event.isolate);
case S.ServiceEvent.kBreakpointAdded:
- return new BreakpointAddedEvent(event.timestamp, event.isolate,
- event.breakpoint);
+ return new BreakpointAddedEvent(
+ event.timestamp, event.isolate, event.breakpoint);
case S.ServiceEvent.kBreakpointResolved:
- return new BreakpointResolvedEvent(event.timestamp, event.isolate,
- event.breakpoint);
+ return new BreakpointResolvedEvent(
+ event.timestamp, event.isolate, event.breakpoint);
case S.ServiceEvent.kBreakpointRemoved:
- return new BreakpointRemovedEvent(event.timestamp, event.isolate,
- event.breakpoint);
+ return new BreakpointRemovedEvent(
+ event.timestamp, event.isolate, event.breakpoint);
case S.ServiceEvent.kDebuggerSettingsUpdate:
return new DebuggerSettingsUpdateEvent(event.timestamp, event.isolate);
case S.ServiceEvent.kResume:
@@ -298,8 +304,12 @@ M.Event createEventFromServiceEvent(S.ServiceEvent event) {
case S.ServiceEvent.kPauseExit:
return new PauseExitEvent(event.timestamp, event.isolate);
case S.ServiceEvent.kPauseBreakpoint:
- return new PauseBreakpointEvent(event.timestamp, event.isolate,
- event.pauseBreakpoints, event.topFrame, event.atAsyncSuspension,
+ return new PauseBreakpointEvent(
+ event.timestamp,
+ event.isolate,
+ event.pauseBreakpoints,
+ event.topFrame,
+ event.atAsyncSuspension,
event.breakpoint);
case S.Isolate.kLoggingStream:
return new LoggingEvent(event.timestamp, event.isolate, event.logRecord);
@@ -307,11 +317,10 @@ M.Event createEventFromServiceEvent(S.ServiceEvent event) {
return new PauseInterruptedEvent(event.timestamp, event.isolate,
event.topFrame, event.atAsyncSuspension);
case S.ServiceEvent.kPauseException:
- return new PauseExceptionEvent(event.timestamp, event.isolate,
- event.topFrame, event.exception);
+ return new PauseExceptionEvent(
+ event.timestamp, event.isolate, event.topFrame, event.exception);
case S.ServiceEvent.kInspect:
- return new InspectEvent(event.timestamp, event.isolate,
- event.inspectee);
+ return new InspectEvent(event.timestamp, event.isolate, event.inspectee);
case S.ServiceEvent.kGC:
return new GCEvent(event.timestamp, event.isolate);
case S.ServiceEvent.kNone:
« no previous file with comments | « no previous file | runtime/observatory/lib/object_graph.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698