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 1771 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1782 class Instance extends ServiceObject { | 1782 class Instance extends ServiceObject { |
1783 @observable String kind; | 1783 @observable String kind; |
1784 @observable Class clazz; | 1784 @observable Class clazz; |
1785 @observable int size; | 1785 @observable int size; |
1786 @observable int retainedSize; | 1786 @observable int retainedSize; |
1787 @observable String valueAsString; // If primitive. | 1787 @observable String valueAsString; // If primitive. |
1788 @observable bool valueAsStringIsTruncated; | 1788 @observable bool valueAsStringIsTruncated; |
1789 @observable ServiceFunction function; // If a closure. | 1789 @observable ServiceFunction function; // If a closure. |
1790 @observable Context context; // If a closure. | 1790 @observable Context context; // If a closure. |
1791 @observable String name; // If a Type. | 1791 @observable String name; // If a Type. |
1792 @observable int length; // If a List. | 1792 @observable int length; // If a List or Map. |
1793 | 1793 |
1794 @observable var typeClass; | 1794 @observable var typeClass; |
1795 @observable var fields; | 1795 @observable var fields; |
1796 @observable var nativeFields; | 1796 @observable var nativeFields; |
1797 @observable var elements; | 1797 @observable var elements; // If a List. |
| 1798 @observable var associations; // If a Map. |
1798 @observable var referent; // If a MirrorReference. | 1799 @observable var referent; // If a MirrorReference. |
1799 @observable Instance key; // If a WeakProperty. | 1800 @observable Instance key; // If a WeakProperty. |
1800 @observable Instance value; // If a WeakProperty. | 1801 @observable Instance value; // If a WeakProperty. |
1801 | 1802 |
1802 bool get isAbstractType { | 1803 bool get isAbstractType { |
1803 return (kind == 'Type' || kind == 'TypeRef' || | 1804 return (kind == 'Type' || kind == 'TypeRef' || |
1804 kind == 'TypeParameter' || kind == 'BoundedType'); | 1805 kind == 'TypeParameter' || kind == 'BoundedType'); |
1805 } | 1806 } |
1806 bool get isNull => kind == 'Null'; | 1807 bool get isNull => kind == 'Null'; |
1807 bool get isBool => kind == 'Bool'; | 1808 bool get isBool => kind == 'Bool'; |
(...skipping 27 matching lines...) Expand all Loading... |
1835 name = map['name']; | 1836 name = map['name']; |
1836 length = map['length']; | 1837 length = map['length']; |
1837 | 1838 |
1838 if (mapIsRef) { | 1839 if (mapIsRef) { |
1839 return; | 1840 return; |
1840 } | 1841 } |
1841 | 1842 |
1842 nativeFields = map['_nativeFields']; | 1843 nativeFields = map['_nativeFields']; |
1843 fields = map['fields']; | 1844 fields = map['fields']; |
1844 elements = map['elements']; | 1845 elements = map['elements']; |
| 1846 associations = map['associations']; |
1845 typeClass = map['typeClass']; | 1847 typeClass = map['typeClass']; |
1846 referent = map['mirrorReferent']; | 1848 referent = map['mirrorReferent']; |
1847 key = map['propertyKey']; | 1849 key = map['propertyKey']; |
1848 value = map['propertyValue']; | 1850 value = map['propertyValue']; |
1849 | 1851 |
1850 // We are fully loaded. | 1852 // We are fully loaded. |
1851 _loaded = true; | 1853 _loaded = true; |
1852 } | 1854 } |
1853 | 1855 |
1854 String get shortName { | 1856 String get shortName { |
(...skipping 1307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3162 var v = list[i]; | 3164 var v = list[i]; |
3163 if ((v is ObservableMap) && _isServiceMap(v)) { | 3165 if ((v is ObservableMap) && _isServiceMap(v)) { |
3164 list[i] = owner.getFromMap(v); | 3166 list[i] = owner.getFromMap(v); |
3165 } else if (v is ObservableList) { | 3167 } else if (v is ObservableList) { |
3166 _upgradeObservableList(v, owner); | 3168 _upgradeObservableList(v, owner); |
3167 } else if (v is ObservableMap) { | 3169 } else if (v is ObservableMap) { |
3168 _upgradeObservableMap(v, owner); | 3170 _upgradeObservableMap(v, owner); |
3169 } | 3171 } |
3170 } | 3172 } |
3171 } | 3173 } |
OLD | NEW |