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

Side by Side Diff: pkg/stack_trace/lib/src/trace.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/stack_trace/lib/src/frame.dart ('k') | pkg/stack_trace/lib/src/utils.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 trace; 5 library trace;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 import 'dart:uri';
9 import 'dart:math' as math; 8 import 'dart:math' as math;
10 9
11 import 'frame.dart'; 10 import 'frame.dart';
12 import 'lazy_trace.dart'; 11 import 'lazy_trace.dart';
13 12
14 final _patchRegExp = new RegExp(r"-patch$"); 13 final _patchRegExp = new RegExp(r"-patch$");
15 14
16 /// A stack trace, comprised of a list of stack frames. 15 /// A stack trace, comprised of a list of stack frames.
17 class Trace implements StackTrace { 16 class Trace implements StackTrace {
18 /// The stack frames that comprise this stack trace. 17 /// The stack frames that comprise this stack trace.
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 if (string.length >= length) return string; 132 if (string.length >= length) return string;
134 133
135 var result = new StringBuffer(); 134 var result = new StringBuffer();
136 result.write(string); 135 result.write(string);
137 for (var i = 0; i < length - string.length; i++) { 136 for (var i = 0; i < length - string.length; i++) {
138 result.write(' '); 137 result.write(' ');
139 } 138 }
140 139
141 return result.toString(); 140 return result.toString();
142 } 141 }
OLDNEW
« no previous file with comments | « pkg/stack_trace/lib/src/frame.dart ('k') | pkg/stack_trace/lib/src/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698