| 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 1933 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1944 variables.sort(ServiceObject.LexicalSortName); | 1944 variables.sort(ServiceObject.LexicalSortName); |
| 1945 functions.clear(); | 1945 functions.clear(); |
| 1946 functions.addAll(map['functions']); | 1946 functions.addAll(map['functions']); |
| 1947 functions.sort(ServiceObject.LexicalSortName); | 1947 functions.sort(ServiceObject.LexicalSortName); |
| 1948 } | 1948 } |
| 1949 | 1949 |
| 1950 Future<ServiceObject> evaluate(String expression) { | 1950 Future<ServiceObject> evaluate(String expression) { |
| 1951 return isolate._eval(this, expression); | 1951 return isolate._eval(this, expression); |
| 1952 } | 1952 } |
| 1953 | 1953 |
| 1954 Script get rootScript { |
| 1955 for (Script script in scripts) { |
| 1956 if (script.uri == uri) return script; |
| 1957 } |
| 1958 return null; |
| 1959 } |
| 1960 |
| 1954 String toString() => "Library($uri)"; | 1961 String toString() => "Library($uri)"; |
| 1955 } | 1962 } |
| 1956 | 1963 |
| 1957 class AllocationCount extends Observable { | 1964 class AllocationCount extends Observable { |
| 1958 @observable int instances = 0; | 1965 @observable int instances = 0; |
| 1959 @observable int bytes = 0; | 1966 @observable int bytes = 0; |
| 1960 | 1967 |
| 1961 void reset() { | 1968 void reset() { |
| 1962 instances = 0; | 1969 instances = 0; |
| 1963 bytes = 0; | 1970 bytes = 0; |
| (...skipping 1721 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3685 var v = list[i]; | 3692 var v = list[i]; |
| 3686 if ((v is ObservableMap) && _isServiceMap(v)) { | 3693 if ((v is ObservableMap) && _isServiceMap(v)) { |
| 3687 list[i] = owner.getFromMap(v); | 3694 list[i] = owner.getFromMap(v); |
| 3688 } else if (v is ObservableList) { | 3695 } else if (v is ObservableList) { |
| 3689 _upgradeObservableList(v, owner); | 3696 _upgradeObservableList(v, owner); |
| 3690 } else if (v is ObservableMap) { | 3697 } else if (v is ObservableMap) { |
| 3691 _upgradeObservableMap(v, owner); | 3698 _upgradeObservableMap(v, owner); |
| 3692 } | 3699 } |
| 3693 } | 3700 } |
| 3694 } | 3701 } |
| OLD | NEW |