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 1499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1510 | 1510 |
1511 Future<ServiceObject> addBreakpointByScriptUri( | 1511 Future<ServiceObject> addBreakpointByScriptUri( |
1512 String uri, int line, [int col]) { | 1512 String uri, int line, [int col]) { |
1513 Map params = { | 1513 Map params = { |
1514 'scriptUri': uri, | 1514 'scriptUri': uri, |
1515 'line': line.toString(), | 1515 'line': line.toString(), |
1516 }; | 1516 }; |
1517 if (col != null) { | 1517 if (col != null) { |
1518 params['column'] = col.toString(); | 1518 params['column'] = col.toString(); |
1519 } | 1519 } |
1520 return invokeRpc('addBreakpoint', params); | 1520 return invokeRpc('addBreakpointWithScriptUri', params); |
1521 } | 1521 } |
1522 | 1522 |
1523 Future<ServiceObject> addBreakpointAtEntry(ServiceFunction function) { | 1523 Future<ServiceObject> addBreakpointAtEntry(ServiceFunction function) { |
1524 return invokeRpc('addBreakpointAtEntry', | 1524 return invokeRpc('addBreakpointAtEntry', |
1525 { 'functionId': function.id }); | 1525 { 'functionId': function.id }); |
1526 } | 1526 } |
1527 | 1527 |
1528 Future<ServiceObject> addBreakOnActivation(Instance closure) { | 1528 Future<ServiceObject> addBreakOnActivation(Instance closure) { |
1529 return invokeRpc('_addBreakpointAtActivation', | 1529 return invokeRpc('_addBreakpointAtActivation', |
1530 { 'objectId': closure.id }); | 1530 { 'objectId': closure.id }); |
(...skipping 2397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3928 var v = list[i]; | 3928 var v = list[i]; |
3929 if ((v is ObservableMap) && _isServiceMap(v)) { | 3929 if ((v is ObservableMap) && _isServiceMap(v)) { |
3930 list[i] = owner.getFromMap(v); | 3930 list[i] = owner.getFromMap(v); |
3931 } else if (v is ObservableList) { | 3931 } else if (v is ObservableList) { |
3932 _upgradeObservableList(v, owner); | 3932 _upgradeObservableList(v, owner); |
3933 } else if (v is ObservableMap) { | 3933 } else if (v is ObservableMap) { |
3934 _upgradeObservableMap(v, owner); | 3934 _upgradeObservableMap(v, owner); |
3935 } | 3935 } |
3936 } | 3936 } |
3937 } | 3937 } |
OLD | NEW |