| 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 2706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2717 String source = getLine(line).text; | 2717 String source = getLine(line).text; |
| 2718 | 2718 |
| 2719 var pos = column; | 2719 var pos = column; |
| 2720 if (pos >= source.length) { | 2720 if (pos >= source.length) { |
| 2721 return null; | 2721 return null; |
| 2722 } | 2722 } |
| 2723 | 2723 |
| 2724 var c = source.codeUnitAt(pos); | 2724 var c = source.codeUnitAt(pos); |
| 2725 if (c == 123) return 1; // { - Map literal | 2725 if (c == 123) return 1; // { - Map literal |
| 2726 | 2726 |
| 2727 if (c == 91) return 1; // [ - List literal, index, index assignment | 2727 if (c == 91) return 1; // [ - List literal, index, index assignment |
| 2728 |
| 2729 if (c == 40) return 1; // ( - Closure call |
| 2728 | 2730 |
| 2729 if (_isOperatorChar(c)) { | 2731 if (_isOperatorChar(c)) { |
| 2730 while (++pos < source.length && | 2732 while (++pos < source.length && |
| 2731 _isOperatorChar(source.codeUnitAt(pos))); | 2733 _isOperatorChar(source.codeUnitAt(pos))); |
| 2732 return pos - column; | 2734 return pos - column; |
| 2733 } | 2735 } |
| 2734 | 2736 |
| 2735 if (_isInitialIdentifierChar(c)) { | 2737 if (_isInitialIdentifierChar(c)) { |
| 2736 while (++pos < source.length && | 2738 while (++pos < source.length && |
| 2737 _isIdentifierChar(source.codeUnitAt(pos))); | 2739 _isIdentifierChar(source.codeUnitAt(pos))); |
| (...skipping 1080 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3818 var v = list[i]; | 3820 var v = list[i]; |
| 3819 if ((v is ObservableMap) && _isServiceMap(v)) { | 3821 if ((v is ObservableMap) && _isServiceMap(v)) { |
| 3820 list[i] = owner.getFromMap(v); | 3822 list[i] = owner.getFromMap(v); |
| 3821 } else if (v is ObservableList) { | 3823 } else if (v is ObservableList) { |
| 3822 _upgradeObservableList(v, owner); | 3824 _upgradeObservableList(v, owner); |
| 3823 } else if (v is ObservableMap) { | 3825 } else if (v is ObservableMap) { |
| 3824 _upgradeObservableMap(v, owner); | 3826 _upgradeObservableMap(v, owner); |
| 3825 } | 3827 } |
| 3826 } | 3828 } |
| 3827 } | 3829 } |
| OLD | NEW |