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

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

Issue 16019002: Merge the dart:uri library into dart:core and update the Uri class (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Final cleanup Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « pkg/serialization/lib/src/serialization_rule.dart ('k') | pkg/stack_trace/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 import 'dart:uri';
8 7
9 import 'package:pathos/path.dart' as path; 8 import 'package:pathos/path.dart' as path;
10 9
11 import 'trace.dart'; 10 import 'trace.dart';
12 import 'utils.dart'; 11 import 'utils.dart';
13 12
14 final _nativeFrameRegExp = new RegExp( 13 final _nativeFrameRegExp = new RegExp(
15 r'^#\d+\s+([^\s].*) \((.+):(\d+):(\d+)\)$'); 14 r'^#\d+\s+([^\s].*) \((.+):(\d+):(\d+)\)$');
16 15
17 /// A single stack frame. Each frame points to a precise location in Dart code. 16 /// A single stack frame. Each frame points to a precise location in Dart code.
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 86
88 var uri = Uri.parse(match[2]); 87 var uri = Uri.parse(match[2]);
89 var member = match[1].replaceAll("<anonymous closure>", "<fn>"); 88 var member = match[1].replaceAll("<anonymous closure>", "<fn>");
90 return new Frame(uri, int.parse(match[3]), int.parse(match[4]), member); 89 return new Frame(uri, int.parse(match[3]), int.parse(match[4]), member);
91 } 90 }
92 91
93 Frame(this.uri, this.line, this.column, this.member); 92 Frame(this.uri, this.line, this.column, this.member);
94 93
95 String toString() => '$location in $member'; 94 String toString() => '$location in $member';
96 } 95 }
OLDNEW
« no previous file with comments | « pkg/serialization/lib/src/serialization_rule.dart ('k') | pkg/stack_trace/lib/src/trace.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698