| 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 /// A [ServiceObject] is an object known to the VM service and is tied | 7 /// A [ServiceObject] is an object known to the VM service and is tied |
| 8 /// to an owning [Isolate]. | 8 /// to an owning [Isolate]. |
| 9 abstract class ServiceObject extends Observable { | 9 abstract class ServiceObject extends Observable { |
| 10 static int LexicalSortName(ServiceObject o1, ServiceObject o2) { | 10 static int LexicalSortName(ServiceObject o1, ServiceObject o2) { |
| (...skipping 1816 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1827 | 1827 |
| 1828 | 1828 |
| 1829 class ScriptLine extends Observable { | 1829 class ScriptLine extends Observable { |
| 1830 final Script script; | 1830 final Script script; |
| 1831 final int line; | 1831 final int line; |
| 1832 final String text; | 1832 final String text; |
| 1833 @observable int hits; | 1833 @observable int hits; |
| 1834 @observable ServiceMap bpt; | 1834 @observable ServiceMap bpt; |
| 1835 @observable bool possibleBpt = true; | 1835 @observable bool possibleBpt = true; |
| 1836 | 1836 |
| 1837 bool get isBlank { |
| 1838 // Compute isBlank on demand. |
| 1839 if (_isBlank == null) { |
| 1840 _isBlank = text.trim().isEmpty; |
| 1841 } |
| 1842 return _isBlank; |
| 1843 } |
| 1844 bool _isBlank; |
| 1845 |
| 1837 static bool _isTrivialToken(String token) { | 1846 static bool _isTrivialToken(String token) { |
| 1838 if (token == 'else') { | 1847 if (token == 'else') { |
| 1839 return true; | 1848 return true; |
| 1840 } | 1849 } |
| 1841 for (var c in token.split('')) { | 1850 for (var c in token.split('')) { |
| 1842 switch (c) { | 1851 switch (c) { |
| 1843 case '{': | 1852 case '{': |
| 1844 case '}': | 1853 case '}': |
| 1845 case '(': | 1854 case '(': |
| 1846 case ')': | 1855 case ')': |
| (...skipping 930 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2777 var v = list[i]; | 2786 var v = list[i]; |
| 2778 if ((v is ObservableMap) && _isServiceMap(v)) { | 2787 if ((v is ObservableMap) && _isServiceMap(v)) { |
| 2779 list[i] = owner.getFromMap(v); | 2788 list[i] = owner.getFromMap(v); |
| 2780 } else if (v is ObservableList) { | 2789 } else if (v is ObservableList) { |
| 2781 _upgradeObservableList(v, owner); | 2790 _upgradeObservableList(v, owner); |
| 2782 } else if (v is ObservableMap) { | 2791 } else if (v is ObservableMap) { |
| 2783 _upgradeObservableMap(v, owner); | 2792 _upgradeObservableMap(v, owner); |
| 2784 } | 2793 } |
| 2785 } | 2794 } |
| 2786 } | 2795 } |
| OLD | NEW |