| 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 @patch | 5 @patch class UserTag { |
| 6 class UserTag { | 6 @patch factory UserTag(String label) { |
| 7 @patch | |
| 8 factory UserTag(String label) { | |
| 9 return new _UserTag(label); | 7 return new _UserTag(label); |
| 10 } | 8 } |
| 11 @patch | 9 @patch static UserTag get defaultTag => _getDefaultTag(); |
| 12 static UserTag get defaultTag => _getDefaultTag(); | |
| 13 } | 10 } |
| 14 | 11 |
| 15 class _UserTag implements UserTag { | 12 class _UserTag implements UserTag { |
| 16 factory _UserTag(String label) native "UserTag_new"; | 13 factory _UserTag(String label) native "UserTag_new"; |
| 17 String get label native "UserTag_label"; | 14 String get label native "UserTag_label"; |
| 18 UserTag makeCurrent() native "UserTag_makeCurrent"; | 15 UserTag makeCurrent() native "UserTag_makeCurrent"; |
| 19 } | 16 } |
| 20 | 17 |
| 21 @patch | 18 @patch UserTag getCurrentTag() => _getCurrentTag(); |
| 22 UserTag getCurrentTag() => _getCurrentTag(); | |
| 23 UserTag _getCurrentTag() native "Profiler_getCurrentTag"; | 19 UserTag _getCurrentTag() native "Profiler_getCurrentTag"; |
| 24 | 20 |
| 25 UserTag _getDefaultTag() native "UserTag_defaultTag"; | 21 UserTag _getDefaultTag() native "UserTag_defaultTag"; |
| OLD | NEW |