| 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 2137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2148 @observable var associations; // If a Map. | 2148 @observable var associations; // If a Map. |
| 2149 @observable var typedElements; // If a TypedData. | 2149 @observable var typedElements; // If a TypedData. |
| 2150 @observable var referent; // If a MirrorReference. | 2150 @observable var referent; // If a MirrorReference. |
| 2151 @observable Instance key; // If a WeakProperty. | 2151 @observable Instance key; // If a WeakProperty. |
| 2152 @observable Instance value; // If a WeakProperty. | 2152 @observable Instance value; // If a WeakProperty. |
| 2153 @observable Breakpoint activationBreakpoint; // If a Closure. | 2153 @observable Breakpoint activationBreakpoint; // If a Closure. |
| 2154 @observable Function oneByteFunction; // If a RegExp. | 2154 @observable Function oneByteFunction; // If a RegExp. |
| 2155 @observable Function twoByteFunction; // If a RegExp. | 2155 @observable Function twoByteFunction; // If a RegExp. |
| 2156 @observable Function externalOneByteFunction; // If a RegExp. | 2156 @observable Function externalOneByteFunction; // If a RegExp. |
| 2157 @observable Function externalTwoByteFunction; // If a RegExp. | 2157 @observable Function externalTwoByteFunction; // If a RegExp. |
| 2158 @observable bool isCaseSensitive; // If a RegExp. |
| 2159 @observable bool isMultiLine; // If a RegExp. |
| 2158 | 2160 |
| 2159 bool get isAbstractType { | 2161 bool get isAbstractType { |
| 2160 return (kind == 'Type' || kind == 'TypeRef' || | 2162 return (kind == 'Type' || kind == 'TypeRef' || |
| 2161 kind == 'TypeParameter' || kind == 'BoundedType'); | 2163 kind == 'TypeParameter' || kind == 'BoundedType'); |
| 2162 } | 2164 } |
| 2163 bool get isNull => kind == 'Null'; | 2165 bool get isNull => kind == 'Null'; |
| 2164 bool get isBool => kind == 'Bool'; | 2166 bool get isBool => kind == 'Bool'; |
| 2165 bool get isDouble => kind == 'Double'; | 2167 bool get isDouble => kind == 'Double'; |
| 2166 bool get isString => kind == 'String'; | 2168 bool get isString => kind == 'String'; |
| 2167 bool get isInt => kind == 'Int'; | 2169 bool get isInt => kind == 'Int'; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2208 name = map['name']; | 2210 name = map['name']; |
| 2209 length = map['length']; | 2211 length = map['length']; |
| 2210 pattern = map['pattern']; | 2212 pattern = map['pattern']; |
| 2211 | 2213 |
| 2212 if (mapIsRef) { | 2214 if (mapIsRef) { |
| 2213 return; | 2215 return; |
| 2214 } | 2216 } |
| 2215 | 2217 |
| 2216 size = map['size']; | 2218 size = map['size']; |
| 2217 | 2219 |
| 2220 isCaseSensitive = map['isCaseSensitive']; |
| 2221 isMultiLine = map['isMultiLine']; |
| 2218 oneByteFunction = map['_oneByteFunction']; | 2222 oneByteFunction = map['_oneByteFunction']; |
| 2219 twoByteFunction = map['_twoByteFunction']; | 2223 twoByteFunction = map['_twoByteFunction']; |
| 2220 externalOneByteFunction = map['_externalOneByteFunction']; | 2224 externalOneByteFunction = map['_externalOneByteFunction']; |
| 2221 externalTwoByteFunction = map['_externalTwoByteFunction']; | 2225 externalTwoByteFunction = map['_externalTwoByteFunction']; |
| 2222 | 2226 |
| 2223 nativeFields = map['_nativeFields']; | 2227 nativeFields = map['_nativeFields']; |
| 2224 fields = map['fields']; | 2228 fields = map['fields']; |
| 2225 elements = map['elements']; | 2229 elements = map['elements']; |
| 2226 associations = map['associations']; | 2230 associations = map['associations']; |
| 2227 if (map['bytes'] != null) { | 2231 if (map['bytes'] != null) { |
| (...skipping 1477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3705 var v = list[i]; | 3709 var v = list[i]; |
| 3706 if ((v is ObservableMap) && _isServiceMap(v)) { | 3710 if ((v is ObservableMap) && _isServiceMap(v)) { |
| 3707 list[i] = owner.getFromMap(v); | 3711 list[i] = owner.getFromMap(v); |
| 3708 } else if (v is ObservableList) { | 3712 } else if (v is ObservableList) { |
| 3709 _upgradeObservableList(v, owner); | 3713 _upgradeObservableList(v, owner); |
| 3710 } else if (v is ObservableMap) { | 3714 } else if (v is ObservableMap) { |
| 3711 _upgradeObservableMap(v, owner); | 3715 _upgradeObservableMap(v, owner); |
| 3712 } | 3716 } |
| 3713 } | 3717 } |
| 3714 } | 3718 } |
| OLD | NEW |