Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(128)

Side by Side Diff: lib/src/frame.dart

Issue 1234733002: Properly shorten library names on Windows. (Closed) Base URL: git@github.com:dart-lang/stack_trace@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « CHANGELOG.md ('k') | lib/src/trace.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « CHANGELOG.md ('k') | lib/src/trace.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698