| OLD | NEW | 
|---|
| 1 // Copyright (c) 2014, the Dart project authors.  Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 service; | 5 part of service; | 
| 6 | 6 | 
| 7 /// Helper function for canceling a Future<StreamSubscription>. | 7 /// Helper function for canceling a Future<StreamSubscription>. | 
| 8 Future cancelFutureSubscription( | 8 Future cancelFutureSubscription( | 
| 9     Future<StreamSubscription> subscriptionFuture) async { | 9     Future<StreamSubscription> subscriptionFuture) async { | 
| 10   if (subscriptionFuture != null) { | 10   if (subscriptionFuture != null) { | 
| (...skipping 1316 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1327   } | 1327   } | 
| 1328 | 1328 | 
| 1329   void _removeBreakpoint(Breakpoint bpt) { | 1329   void _removeBreakpoint(Breakpoint bpt) { | 
| 1330     breakpoints.remove(bpt.number); | 1330     breakpoints.remove(bpt.number); | 
| 1331     bpt.remove(); | 1331     bpt.remove(); | 
| 1332   } | 1332   } | 
| 1333 | 1333 | 
| 1334   void _onEvent(ServiceEvent event) { | 1334   void _onEvent(ServiceEvent event) { | 
| 1335     switch(event.kind) { | 1335     switch(event.kind) { | 
| 1336       case ServiceEvent.kIsolateStart: | 1336       case ServiceEvent.kIsolateStart: | 
|  | 1337       case ServiceEvent.kIsolateRunnable: | 
| 1337       case ServiceEvent.kIsolateExit: | 1338       case ServiceEvent.kIsolateExit: | 
| 1338       case ServiceEvent.kInspect: | 1339       case ServiceEvent.kInspect: | 
| 1339         // Handled elsewhere. | 1340         // Handled elsewhere. | 
| 1340         break; | 1341         break; | 
| 1341 | 1342 | 
| 1342       case ServiceEvent.kBreakpointAdded: | 1343       case ServiceEvent.kBreakpointAdded: | 
| 1343         _addBreakpoint(event.breakpoint); | 1344         _addBreakpoint(event.breakpoint); | 
| 1344         break; | 1345         break; | 
| 1345 | 1346 | 
| 1346       case ServiceEvent.kIsolateUpdate: | 1347       case ServiceEvent.kIsolateUpdate: | 
| (...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1699       return level; | 1700       return level; | 
| 1700     } | 1701     } | 
| 1701   } | 1702   } | 
| 1702   return new Level('$value', value); | 1703   return new Level('$value', value); | 
| 1703 } | 1704 } | 
| 1704 | 1705 | 
| 1705 /// A [ServiceEvent] is an asynchronous event notification from the vm. | 1706 /// A [ServiceEvent] is an asynchronous event notification from the vm. | 
| 1706 class ServiceEvent extends ServiceObject { | 1707 class ServiceEvent extends ServiceObject { | 
| 1707   /// The possible 'kind' values. | 1708   /// The possible 'kind' values. | 
| 1708   static const kIsolateStart           = 'IsolateStart'; | 1709   static const kIsolateStart           = 'IsolateStart'; | 
|  | 1710   static const kIsolateRunnable        = 'IsolateRunnable'; | 
| 1709   static const kIsolateExit            = 'IsolateExit'; | 1711   static const kIsolateExit            = 'IsolateExit'; | 
| 1710   static const kIsolateUpdate          = 'IsolateUpdate'; | 1712   static const kIsolateUpdate          = 'IsolateUpdate'; | 
| 1711   static const kPauseStart             = 'PauseStart'; | 1713   static const kPauseStart             = 'PauseStart'; | 
| 1712   static const kPauseExit              = 'PauseExit'; | 1714   static const kPauseExit              = 'PauseExit'; | 
| 1713   static const kPauseBreakpoint        = 'PauseBreakpoint'; | 1715   static const kPauseBreakpoint        = 'PauseBreakpoint'; | 
| 1714   static const kPauseInterrupted       = 'PauseInterrupted'; | 1716   static const kPauseInterrupted       = 'PauseInterrupted'; | 
| 1715   static const kPauseException         = 'PauseException'; | 1717   static const kPauseException         = 'PauseException'; | 
| 1716   static const kResume                 = 'Resume'; | 1718   static const kResume                 = 'Resume'; | 
| 1717   static const kBreakpointAdded        = 'BreakpointAdded'; | 1719   static const kBreakpointAdded        = 'BreakpointAdded'; | 
| 1718   static const kBreakpointResolved     = 'BreakpointResolved'; | 1720   static const kBreakpointResolved     = 'BreakpointResolved'; | 
| (...skipping 2075 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 3794     var v = list[i]; | 3796     var v = list[i]; | 
| 3795     if ((v is ObservableMap) && _isServiceMap(v)) { | 3797     if ((v is ObservableMap) && _isServiceMap(v)) { | 
| 3796       list[i] = owner.getFromMap(v); | 3798       list[i] = owner.getFromMap(v); | 
| 3797     } else if (v is ObservableList) { | 3799     } else if (v is ObservableList) { | 
| 3798       _upgradeObservableList(v, owner); | 3800       _upgradeObservableList(v, owner); | 
| 3799     } else if (v is ObservableMap) { | 3801     } else if (v is ObservableMap) { | 
| 3800       _upgradeObservableMap(v, owner); | 3802       _upgradeObservableMap(v, owner); | 
| 3801     } | 3803     } | 
| 3802   } | 3804   } | 
| 3803 } | 3805 } | 
| OLD | NEW | 
|---|