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 /// An RpcException represents an exceptional event that happened | 7 /// An RpcException represents an exceptional event that happened |
8 /// while invoking an rpc. | 8 /// while invoking an rpc. |
9 abstract class RpcException implements Exception { | 9 abstract class RpcException implements Exception { |
10 RpcException(this.message); | 10 RpcException(this.message); |
(...skipping 2801 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2812 if (script != null) { | 2812 if (script != null) { |
2813 // Already done. | 2813 // Already done. |
2814 return; | 2814 return; |
2815 } | 2815 } |
2816 if (kind != CodeKind.Dart){ | 2816 if (kind != CodeKind.Dart){ |
2817 return; | 2817 return; |
2818 } | 2818 } |
2819 if (function == null) { | 2819 if (function == null) { |
2820 return; | 2820 return; |
2821 } | 2821 } |
2822 if (function.location.script == null) { | 2822 if ((function.location == null) || |
| 2823 (function.location.script == null)) { |
2823 // Attempt to load the function. | 2824 // Attempt to load the function. |
2824 function.load().then((func) { | 2825 function.load().then((func) { |
2825 var script = function.location.script; | 2826 var script = function.location.script; |
2826 if (script == null) { | 2827 if (script == null) { |
2827 // Function doesn't have an associated script. | 2828 // Function doesn't have an associated script. |
2828 return; | 2829 return; |
2829 } | 2830 } |
2830 // Load the script and then update descriptors. | 2831 // Load the script and then update descriptors. |
2831 script.load().then(_updateDescriptors); | 2832 script.load().then(_updateDescriptors); |
2832 }); | 2833 }); |
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3267 var v = list[i]; | 3268 var v = list[i]; |
3268 if ((v is ObservableMap) && _isServiceMap(v)) { | 3269 if ((v is ObservableMap) && _isServiceMap(v)) { |
3269 list[i] = owner.getFromMap(v); | 3270 list[i] = owner.getFromMap(v); |
3270 } else if (v is ObservableList) { | 3271 } else if (v is ObservableList) { |
3271 _upgradeObservableList(v, owner); | 3272 _upgradeObservableList(v, owner); |
3272 } else if (v is ObservableMap) { | 3273 } else if (v is ObservableMap) { |
3273 _upgradeObservableMap(v, owner); | 3274 _upgradeObservableMap(v, owner); |
3274 } | 3275 } |
3275 } | 3276 } |
3276 } | 3277 } |
OLD | NEW |