| 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 frame; | 5 library frame; |
| 6 | 6 |
| 7 | |
| 8 import 'package:path/path.dart' as path; | 7 import 'package:path/path.dart' as path; |
| 9 | 8 |
| 10 import 'trace.dart'; | 9 import 'trace.dart'; |
| 11 | 10 |
| 12 // #1 Foo._bar (file:///home/nweiz/code/stuff.dart:42:21) | 11 // #1 Foo._bar (file:///home/nweiz/code/stuff.dart:42:21) |
| 13 // #1 Foo._bar (file:///home/nweiz/code/stuff.dart:42) | 12 // #1 Foo._bar (file:///home/nweiz/code/stuff.dart:42) |
| 14 // #1 Foo._bar (file:///home/nweiz/code/stuff.dart) | 13 // #1 Foo._bar (file:///home/nweiz/code/stuff.dart) |
| 15 final _vmFrame = new RegExp(r'^#\d+\s+(\S.*) \((.+?)((?::\d+){0,2})\)$'); | 14 final _vmFrame = new RegExp(r'^#\d+\s+(\S.*) \((.+?)((?::\d+){0,2})\)$'); |
| 16 | 15 |
| 17 // at VW.call$0 (http://pub.dartlang.org/stuff.dart.js:560:28) | 16 // at VW.call$0 (http://pub.dartlang.org/stuff.dart.js:560:28) |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 // their stack frames. However, if we do get a relative path, we should | 286 // their stack frames. However, if we do get a relative path, we should |
| 288 // handle it gracefully. | 287 // handle it gracefully. |
| 289 if (uriOrPath.contains('\\')) return path.windows.toUri(uriOrPath); | 288 if (uriOrPath.contains('\\')) return path.windows.toUri(uriOrPath); |
| 290 return Uri.parse(uriOrPath); | 289 return Uri.parse(uriOrPath); |
| 291 } | 290 } |
| 292 | 291 |
| 293 Frame(this.uri, this.line, this.column, this.member); | 292 Frame(this.uri, this.line, this.column, this.member); |
| 294 | 293 |
| 295 String toString() => '$location in $member'; | 294 String toString() => '$location in $member'; |
| 296 } | 295 } |
| OLD | NEW |