| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 library vm_trace; | 5 library vm_trace; |
| 6 | 6 |
| 7 import 'frame.dart'; | 7 import 'frame.dart'; |
| 8 import 'utils.dart'; | 8 import 'utils.dart'; |
| 9 | 9 |
| 10 /// An implementation of [StackTrace] that emulates the behavior of the VM's | 10 /// An implementation of [StackTrace] that emulates the behavior of the VM's |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 var member = frame.member | 25 var member = frame.member |
| 26 .replaceAllMapped(new RegExp(r"[^.]+\.<async>"), | 26 .replaceAllMapped(new RegExp(r"[^.]+\.<async>"), |
| 27 (match) => "${match[1]}.<${match[1]}_async_body>") | 27 (match) => "${match[1]}.<${match[1]}_async_body>") |
| 28 .replaceAll("<fn>", "<anonymous closure>"); | 28 .replaceAll("<fn>", "<anonymous closure>"); |
| 29 var line = frame.line == null ? 0 : frame.line; | 29 var line = frame.line == null ? 0 : frame.line; |
| 30 var column = frame.column == null ? 0 : frame.column; | 30 var column = frame.column == null ? 0 : frame.column; |
| 31 return "$number$member (${frame.uri}:$line:$column)\n"; | 31 return "$number$member (${frame.uri}:$line:$column)\n"; |
| 32 }).join(); | 32 }).join(); |
| 33 } | 33 } |
| 34 } | 34 } |
| OLD | NEW |